|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface DomainAccessObject
Implemented by all DomainAccess patterned classes.
| Method Summary | |
|---|---|
void |
add(DomainObject obj)
Add a new instance to this domain access object. |
void |
addGroup(java.util.Collection collection,
java.awt.Component parent)
Allows the mass deletion of domain objects. |
void |
addListener(DomainAccessListener listener)
Add a listener to this domain access object. |
void |
closeLongSession()
|
void |
closeLongSessionRollback()
|
void |
delete(DomainObject obj)
Remove an instance from the control of the domain access object. |
void |
deleteGroup(java.util.Collection collection)
How does this differ from delete group. |
void |
deleteLongSession(DomainObject obj)
|
java.util.Collection |
findAll(org.hibernate.LockMode lockmode,
java.lang.String... sortField)
Get a collection of all objects under the control of this domain access object. |
java.util.Collection |
findAll(java.lang.String... sortField)
Get a collection of all objects under the control of this domain access object. |
java.util.Collection |
findAllLongSession(java.lang.Boolean alwaysApplyFilters,
java.lang.String... sortField)
|
java.util.Collection |
findAllLongSession(java.lang.String... sortField)
Get a collection of all objects under the control of this domain access object. |
java.util.Collection |
findByExample(java.lang.Object instance)
Find instances through a named query without parameters. |
java.util.Collection |
findByNamedQuery(java.lang.String namedQuery)
Find instances through a named query without parameters. |
java.util.Collection |
findByNamedQuery(java.lang.String namedQuery,
java.lang.Object propertyObject)
Find instances through a named query with parameters. |
DomainObject |
findByPrimaryKey(java.lang.Long id)
Find an object instance by its identifier. |
DomainObject |
findByPrimaryKeyLongSession(java.lang.Long id)
Find an object instance by its identifier. |
DomainObject |
findByPrimaryKeyLongSessionForPrinting(java.lang.Long id)
Find an object instance by its identifier. |
java.util.Collection |
findByPropertyValue(java.lang.String propertyName,
java.lang.Object value)
Find instances through a named query without parameters. |
java.util.Collection |
findByPropertyValues(java.lang.String propertyName,
java.lang.Object[] values)
Find instances through a named query without parameters. |
java.util.Collection |
findByPropertyValuesLongSession(java.lang.String propertyName,
java.lang.Object[] values)
Find instances through a named query without parameters. |
java.util.Collection |
findByQuery(java.lang.String queryString)
Find a collection of objects by a query string. |
java.util.Collection |
findByQueryEditor(QueryEditor editor,
InfiniteProgressPanel progressPanel)
Find a collection of objects by a query string. |
DomainObject |
findByUniquePropertyValue(java.lang.String propertyName,
java.lang.Object value)
Find instances through a named query without parameters. |
DomainObject |
findByUniquePropertyValueLongSession(java.lang.String propertyName,
java.lang.Object value)
Find instances through a named query without parameters. |
java.lang.Integer |
getCountBasedOnPropertyValue(java.lang.String propertyName,
java.lang.Object value)
|
org.hibernate.Session |
getLongSession()
|
int |
merge(java.util.Collection<DomainObject> mergeFrom,
DomainObject mergeTo,
InfiniteProgressPanel progressPanel)
|
void |
removeListener(DomainAccessListener listener)
Remove a listener from this domain access object. |
void |
update(DomainObject obj)
Update an instance within this domain access object. |
void |
updateLongSession(DomainObject obj)
Update an instance within this domain access object. |
void |
updateLongSession(DomainObject obj,
boolean closeSession)
Update an instance within this domain access object. |
int |
updateTextField(java.lang.String propertyName,
java.lang.String oldValue,
java.lang.String newValue,
InfiniteProgressPanel progressPanel)
Find instances through a named query without parameters. |
| Method Detail |
|---|
void addListener(DomainAccessListener listener)
listener - the listener to addvoid removeListener(DomainAccessListener listener)
listener - the listener to remove
void add(DomainObject obj)
throws PersistenceException
obj - the object to add
PersistenceException - we could not persist this object
void addGroup(java.util.Collection collection,
java.awt.Component parent)
throws PersistenceException
collection - the collection to delete
PersistenceException - we could not persist the changes.
void update(DomainObject obj)
throws PersistenceException
obj - the object to update
PersistenceException - fails if we could not persist the changes
void updateLongSession(DomainObject obj)
throws PersistenceException
obj - the object to update
PersistenceException - fails if we could not persist the changes
void updateLongSession(DomainObject obj,
boolean closeSession)
throws PersistenceException
obj - the object to update
PersistenceException - fails if we could not persist the changes
void deleteGroup(java.util.Collection collection)
throws PersistenceException,
LookupException
collection - the collection to delete.
PersistenceException - we could not persist the changes.
LookupException - we could not lookup the reference instances.
void delete(DomainObject obj)
throws PersistenceException,
DeleteException
obj - the object to remove
PersistenceException - fails if we could not persist the removal
DeleteException
void deleteLongSession(DomainObject obj)
throws PersistenceException,
DeleteException
PersistenceException
DeleteException
DomainObject findByPrimaryKey(java.lang.Long id)
throws LookupException
id - the identifier with which to find it
LookupException - if we failed to execute the lookup
DomainObject findByPrimaryKeyLongSession(java.lang.Long id)
throws LookupException
id - the identifier with which to find it
LookupException - if we failed to execute the lookup
DomainObject findByPrimaryKeyLongSessionForPrinting(java.lang.Long id)
throws LookupException
id - the identifier with which to find it
LookupException - if we failed to execute the lookup
void closeLongSession()
throws java.sql.SQLException
java.sql.SQLException
void closeLongSessionRollback()
throws java.sql.SQLException
java.sql.SQLExceptionorg.hibernate.Session getLongSession()
java.util.Collection findAll(java.lang.String... sortField)
throws LookupException
LookupException - if we failed to execute the lookup
java.util.Collection findAll(org.hibernate.LockMode lockmode,
java.lang.String... sortField)
throws LookupException
LookupException - if we failed to execute the lookup
java.util.Collection findAllLongSession(java.lang.String... sortField)
throws LookupException
LookupException - if we failed to execute the lookup
java.util.Collection findAllLongSession(java.lang.Boolean alwaysApplyFilters,
java.lang.String... sortField)
throws LookupException
LookupException
java.util.Collection findByQuery(java.lang.String queryString)
throws LookupException
queryString - the hql.
LookupException - we couldnt find what you were looking for.
java.util.Collection findByQueryEditor(QueryEditor editor,
InfiniteProgressPanel progressPanel)
throws LookupException
editor - an AT query editor.
LookupException - we couldnt find what you were looking for.
java.util.Collection findByNamedQuery(java.lang.String namedQuery,
java.lang.Object propertyObject)
throws LookupException
namedQuery - the query to usepropertyObject - the bean to use to provide properties to the query
LookupException - if we failed to execute the query
java.util.Collection findByNamedQuery(java.lang.String namedQuery)
throws LookupException
namedQuery - the query to use
LookupException - if we failed to execute the query
java.util.Collection findByExample(java.lang.Object instance)
throws LookupException
instance - the instance to use as an example
LookupException - if we failed to execute the query
java.util.Collection findByPropertyValue(java.lang.String propertyName,
java.lang.Object value)
throws LookupException
propertyName - the name of the propertyvalue - the value of the property
LookupException - if we failed to execute the query
java.util.Collection findByPropertyValues(java.lang.String propertyName,
java.lang.Object[] values)
throws LookupException
propertyName - the name of the propertyvalues - the value of the property
LookupException - if we failed to execute the query
java.util.Collection findByPropertyValuesLongSession(java.lang.String propertyName,
java.lang.Object[] values)
throws LookupException
propertyName - the name of the propertyvalues - the value of the property
LookupException - if we failed to execute the query
DomainObject findByUniquePropertyValue(java.lang.String propertyName,
java.lang.Object value)
throws LookupException
propertyName - the name of the propertyvalue - the value of the property
LookupException - if we failed to execute the query
DomainObject findByUniquePropertyValueLongSession(java.lang.String propertyName,
java.lang.Object value)
throws LookupException
propertyName - the name of the propertyvalue - the value of the property
LookupException - if we failed to execute the query
int updateTextField(java.lang.String propertyName,
java.lang.String oldValue,
java.lang.String newValue,
InfiniteProgressPanel progressPanel)
throws LookupException,
java.lang.IllegalAccessException,
java.lang.reflect.InvocationTargetException,
ValidationException
propertyName - the name of the propertyoldValue - the old value of the propertynewValue - the new value of the property
LookupException - if we failed to execute the query
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
ValidationException
java.lang.Integer getCountBasedOnPropertyValue(java.lang.String propertyName,
java.lang.Object value)
int merge(java.util.Collection<DomainObject> mergeFrom,
DomainObject mergeTo,
InfiniteProgressPanel progressPanel)
throws MergeException
MergeException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||