|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BusinessObjectDao
This is the generic data access interface for business objects. This should be used for unit testing purposes only.
Method Summary | |
---|---|
int |
countMatching(Class clazz,
Map fieldValues)
|
int |
countMatching(Class clazz,
Map positiveFieldValues,
Map negativeFieldValues)
This method returns the number of matching result given the positive criterias and negative criterias. |
void |
delete(List<? extends PersistableBusinessObject> boList)
Deletes each business object in the given List from the database. |
void |
delete(PersistableBusinessObject bo)
Deletes a business object from the database. |
void |
deleteMatching(Class clazz,
Map fieldValues)
Deletes the business objects matching the given fieldValues |
Collection |
findAll(Class clazz)
Retrieves a collection of business objects populated with data, such that each record in the database populates a new object instance. |
Collection |
findAllActive(Class clazz)
Retrieves a collection of business objects populated with data, such that each record in the database populates a new object instance. |
Collection |
findAllActiveOrderBy(Class clazz,
String sortField,
boolean sortAscending)
Retrieves a collection of business objects populated with data, such that each record in the database populates a new object instance. |
Collection |
findAllInactive(Class clazz)
|
Collection |
findAllOrderBy(Class clazz,
String sortField,
boolean sortAscending)
Retrieves a collection of business objects populated with data, such that each record in the database populates a new object instance. |
PersistableBusinessObject |
findByPrimaryKey(Class clazz,
Map primaryKeys)
Retrieves an object instance identified bys it primary keys and values. |
PersistableBusinessObject |
findBySinglePrimaryKey(Class clazz,
Object primaryKey)
Retrieves an object instance identified by its primary key. |
Collection |
findMatching(Class clazz,
Map fieldValues)
This method retrieves a collection of business objects populated with data, such that each record in the database populates a new object instance. |
Collection |
findMatchingActive(Class clazz,
Map fieldValues)
This method retrieves a collection of business objects populated with data, such that each record in the database populates a new object instance. |
Collection |
findMatchingOrderBy(Class clazz,
Map fieldValues,
String sortField,
boolean sortAscending)
This method retrieves a collection of business objects populated with data, such that each record in the database populates a new object instance. |
PersistableBusinessObject |
retrieve(PersistableBusinessObject object)
Retrieves an object instance identified by the class of the given object and the object's primary key values. |
void |
save(List businessObjects)
Saves a List of BusinessObjects. |
void |
save(PersistableBusinessObject bo)
Saves any object that implements the BusinessObject interface. |
Method Detail |
---|
void save(PersistableBusinessObject bo)
bo
- void save(List businessObjects)
businessObjects
- PersistableBusinessObject findBySinglePrimaryKey(Class clazz, Object primaryKey)
findByPrimaryKey(Class, Map)
clazz
- primaryKey
-
PersistableBusinessObject findByPrimaryKey(Class clazz, Map primaryKeys)
clazz
- primaryKeys
-
PersistableBusinessObject retrieve(PersistableBusinessObject object)
object
-
Collection findAll(Class clazz)
clazz
-
Collection findAllActive(Class clazz)
clazz
-
Collection findAllInactive(Class clazz)
Collection findAllOrderBy(Class clazz, String sortField, boolean sortAscending)
clazz
-
Collection findAllActiveOrderBy(Class clazz, String sortField, boolean sortAscending)
clazz
-
Collection findMatching(Class clazz, Map fieldValues)
clazz
- fieldValues
-
Collection findMatchingActive(Class clazz, Map fieldValues)
clazz
- fieldValues
-
int countMatching(Class clazz, Map fieldValues)
clazz
- fieldValues
-
int countMatching(Class clazz, Map positiveFieldValues, Map negativeFieldValues)
clazz
- positiveFieldValues
- Map of fields and values for positive criterianegativeFieldValues
- Map of fields and values for negative criteria
Collection findMatchingOrderBy(Class clazz, Map fieldValues, String sortField, boolean sortAscending)
clazz
- fieldValues
-
void delete(PersistableBusinessObject bo)
bo
- void delete(List<? extends PersistableBusinessObject> boList)
boList
- void deleteMatching(Class clazz, Map fieldValues)
clazz
- fieldValues
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |