| org.kuali.core.dao.BusinessObjectDao
All known Subclasses: org.kuali.core.dao.ojb.BusinessObjectDaoOjb,
BusinessObjectDao | public interface BusinessObjectDao (Code) | | This is the generic data access interface for business objects. This should be used for unit testing purposes only.
|
Method Summary | |
public int | countMatching(Class clazz, Map fieldValues) | public int | countMatching(Class clazz, Map positiveFieldValues, Map negativeFieldValues) This method returns the number of matching result given the positive criterias and
negative criterias. | public void | delete(PersistableBusinessObject bo) Deletes a business object from the database. | public void | delete(List<PersistableBusinessObject> boList) Deletes each business object in the given List from the database. | public void | deleteMatching(Class clazz, Map fieldValues) | public 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. | public 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. | public 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. | public 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. | public PersistableBusinessObject | findByPrimaryKey(Class clazz, Map primaryKeys) Retrieves an object instance identified bys it primary keys and values. | public 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. | public 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. | public 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. | public PersistableBusinessObject | retrieve(PersistableBusinessObject object) Retrieves an object instance identified by the class of the given object and the object's primary key values. | public void | save(PersistableBusinessObject bo) Saves any object that implements the BusinessObject interface. | public void | save(List businessObjects) Saves a List of BusinessObjects. |
countMatching | public int countMatching(Class clazz, Map fieldValues)(Code) | | Parameters: clazz - Parameters: fieldValues - count of BusinessObjects of the given class whose fields match the values in the given Map. |
countMatching | public int countMatching(Class clazz, Map positiveFieldValues, Map negativeFieldValues)(Code) | | This method returns the number of matching result given the positive criterias and
negative criterias. The negative criterias are the ones that will be set to
"notEqualTo" or "notIn"
Parameters: clazz - Parameters: positiveFieldValues - Map of fields and values for positive criteria Parameters: negativeFieldValues - Map of fields and values for negative criteria |
deleteMatching | public void deleteMatching(Class clazz, Map fieldValues)(Code) | | Deletes the business objects matching the given fieldValues
Parameters: clazz - Parameters: fieldValues - |
findAll | public Collection findAll(Class clazz)(Code) | | Retrieves a collection of business objects populated with data, such that each record in the database populates a new object
instance. This will only retrieve business objects by class type.
Parameters: clazz - |
findAllActive | public Collection findAllActive(Class clazz)(Code) | | Retrieves a collection of business objects populated with data, such that each record in the database populates a new object
instance. This will only retrieve business objects by class type.
Adds criteria on active column to return only active records. Assumes there exist a mapping for PropertyConstants.Active
Parameters: clazz - |
findAllActiveOrderBy | public Collection findAllActiveOrderBy(Class clazz, String sortField, boolean sortAscending)(Code) | | Retrieves a collection of business objects populated with data, such that each record in the database populates a new object
instance. This will only retrieve business objects by class type. Orders the results by the given field.
Adds criteria on active column to return only active records. Assumes there exist a mapping for PropertyConstants.Active
Parameters: clazz - |
findAllOrderBy | public Collection findAllOrderBy(Class clazz, String sortField, boolean sortAscending)(Code) | | Retrieves a collection of business objects populated with data, such that each record in the database populates a new object
instance. This will only retrieve business objects by class type. Orders the results by the given field.
Parameters: clazz - |
findByPrimaryKey | public PersistableBusinessObject findByPrimaryKey(Class clazz, Map primaryKeys)(Code) | | Retrieves an object instance identified bys it primary keys and values. This can be done by constructing a map where the key
to the map entry is the primary key attribute and the value of the entry being the primary key value. For composite keys,
pass in each primaryKey attribute and its value as a map entry.
Parameters: clazz - Parameters: primaryKeys - |
findMatching | public Collection findMatching(Class clazz, Map fieldValues)(Code) | | This method retrieves a collection of business objects populated with data, such that each record in the database populates a
new object instance. This will retrieve business objects by class type and also by criteria passed in as key-value pairs,
specifically attribute name-expected value.
Parameters: clazz - Parameters: fieldValues - |
findMatchingActive | public Collection findMatchingActive(Class clazz, Map fieldValues)(Code) | | This method retrieves a collection of business objects populated with data, such that each record in the database populates a
new object instance. This will retrieve business objects by class type and also by criteria passed in as key-value pairs,
specifically attribute name-expected value.
Adds criteria on active column to return only active records. Assumes there exist a mapping for PropertyConstants.Active
Parameters: clazz - Parameters: fieldValues - |
findMatchingOrderBy | public Collection findMatchingOrderBy(Class clazz, Map fieldValues, String sortField, boolean sortAscending)(Code) | | This method retrieves a collection of business objects populated with data, such that each record in the database populates a
new object instance. This will retrieve business objects by class type and also by criteria passed in as key-value pairs,
specifically attribute name-expected value. Orders the results by the given field.
Parameters: clazz - Parameters: fieldValues - |
save | public void save(List businessObjects)(Code) | | Saves a List of BusinessObjects.
Parameters: businessObjects - |
|
|