Package org.kuali.rice.krad.dao
Interface BusinessObjectDao
- All Known Implementing Classes:
BusinessObjectDaoOjb,BusinessObjectDaoProxy
Deprecated.
This is the generic data access interface for business objects. This should be used for unit testing purposes only.
-
Method Summary
Modifier and TypeMethodDescription<T extends PersistableBusinessObject>
intcountMatching(Class<T> clazz, Map<String, ?> fieldValues) Deprecated.<T extends PersistableBusinessObject>
intDeprecated.This method returns the number of matching result given the positive criterias and negative criterias.voidDeprecated.Deletes a business object from the database.<T extends PersistableBusinessObject>
voidDeprecated.Deletes each business object in the given List from the database.<T extends PersistableBusinessObject>
voiddeleteMatching(Class<T> clazz, Map<String, ?> fieldValues) Deprecated.Deletes the business objects matching the given fieldValues<T extends PersistableBusinessObject>
List<T> Deprecated.Retrieves a collection of business objects populated with data, such that each record in the database populates a new object instance.<T extends PersistableBusinessObject>
QueryPagingResults<T> findAll(Class<T> clazz, QueryPagingRequest pagingRequest) Deprecated.<T extends PersistableBusinessObject>
List<T> findAllActive(Class<T> clazz) Deprecated.Retrieves a collection of business objects populated with data, such that each record in the database populates a new object instance.<T extends PersistableBusinessObject>
QueryPagingResults<T> findAllActive(Class<T> clazz, QueryPagingRequest pagingRequest) Deprecated.<T extends PersistableBusinessObject>
List<T> findAllActiveOrderBy(Class<T> clazz, String sortField, boolean sortAscending) Deprecated.Retrieves a collection of business objects populated with data, such that each record in the database populates a new object instance.<T extends PersistableBusinessObject>
QueryPagingResults<T> findAllActiveOrderBy(Class<T> clazz, String sortField, boolean sortAscending, QueryPagingRequest pagingRequest) Deprecated.<T extends PersistableBusinessObject>
List<T> findAllInactive(Class<T> clazz) Deprecated.<T extends PersistableBusinessObject>
QueryPagingResults<T> findAllInactive(Class<T> clazz, QueryPagingRequest pagingRequest) Deprecated.<T extends PersistableBusinessObject>
List<T> findAllOrderBy(Class<T> clazz, String sortField, boolean sortAscending) Deprecated.Retrieves a collection of business objects populated with data, such that each record in the database populates a new object instance.<T extends PersistableBusinessObject>
QueryPagingResults<T> findAllOrderBy(Class<T> clazz, String sortField, boolean sortAscending, QueryPagingRequest pagingRequest) Deprecated.<T extends PersistableBusinessObject>
TfindByPrimaryKey(Class<T> clazz, Map<String, ?> primaryKeys) Deprecated.Retrieves an object instance identified bys it primary keys and values.<T extends PersistableBusinessObject>
TfindByPrimaryKeyUsingKeyObject(Class<T> clazz, Object pkObject) Deprecated.Retrieves an object, based on its PK object<T extends PersistableBusinessObject>
TfindBySinglePrimaryKey(Class<T> clazz, Object primaryKey) Deprecated.Retrieves an object instance identified by its primary key.<T extends PersistableBusinessObject>
List<T> findMatching(Class<T> clazz, Map<String, ?> fieldValues) Deprecated.This method retrieves a collection of business objects populated with data, such that each record in the database populates a new object instance.<T extends PersistableBusinessObject>
QueryPagingResults<T> findMatching(Class<T> clazz, Map<String, ?> fieldValues, QueryPagingRequest pagingRequest) Deprecated.<T extends PersistableBusinessObject>
List<T> findMatchingActive(Class<T> clazz, Map<String, ?> fieldValues) Deprecated.This method retrieves a collection of business objects populated with data, such that each record in the database populates a new object instance.<T extends PersistableBusinessObject>
QueryPagingResults<T> findMatchingActive(Class<T> clazz, Map<String, ?> fieldValues, QueryPagingRequest pagingRequest) Deprecated.<T extends PersistableBusinessObject>
List<T> findMatchingOrderBy(Class<T> clazz, Map<String, ?> fieldValues, String sortField, boolean sortAscending) Deprecated.This method retrieves a collection of business objects populated with data, such that each record in the database populates a new object instance.<T extends PersistableBusinessObject>
QueryPagingResults<T> findMatchingOrderBy(Class<T> clazz, Map<String, ?> fieldValues, String sortField, boolean sortAscending, QueryPagingRequest pagingRequest) Deprecated.<T extends PersistableBusinessObject>
TmanageReadOnly(T bo) Deprecated.Merges the given business object, but tells the ORM that the object is to be treated as Read Only, and even if it has changes, it will not be persisted to the databaseDeprecated.Retrieves an object instance identified by the class of the given object and the object's primary key values.<T extends PersistableBusinessObject>
List<T> Deprecated.Saves a List of BusinessObjects.<T extends PersistableBusinessObject>
Tsave(T bo) Deprecated.Saves any object that implements the BusinessObject interface.
-
Method Details
-
save
Deprecated.Saves any object that implements the BusinessObject interface. -
save
Deprecated.Saves a List of BusinessObjects. -
findBySinglePrimaryKey
Deprecated.Retrieves an object instance identified by its primary key. For composite keys, usefindByPrimaryKey(Class, Map) -
findByPrimaryKey
Deprecated.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. -
findByPrimaryKeyUsingKeyObject
<T extends PersistableBusinessObject> T findByPrimaryKeyUsingKeyObject(Class<T> clazz, Object pkObject) Deprecated.Retrieves an object, based on its PK object- Parameters:
clazz- the class of the object to retrievepkObject- the value of the primary key- Returns:
- the retrieved PersistableBusinessObject
-
retrieve
Deprecated.Retrieves an object instance identified by the class of the given object and the object's primary key values. -
findAll
Deprecated.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. -
findAll
<T extends PersistableBusinessObject> QueryPagingResults<T> findAll(Class<T> clazz, QueryPagingRequest pagingRequest) Deprecated. -
findAllActive
Deprecated.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 -
findAllActive
<T extends PersistableBusinessObject> QueryPagingResults<T> findAllActive(Class<T> clazz, QueryPagingRequest pagingRequest) Deprecated. -
findAllInactive
Deprecated. -
findAllInactive
<T extends PersistableBusinessObject> QueryPagingResults<T> findAllInactive(Class<T> clazz, QueryPagingRequest pagingRequest) Deprecated. -
findAllOrderBy
<T extends PersistableBusinessObject> List<T> findAllOrderBy(Class<T> clazz, String sortField, boolean sortAscending) Deprecated.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. -
findAllOrderBy
<T extends PersistableBusinessObject> QueryPagingResults<T> findAllOrderBy(Class<T> clazz, String sortField, boolean sortAscending, QueryPagingRequest pagingRequest) Deprecated. -
findAllActiveOrderBy
<T extends PersistableBusinessObject> List<T> findAllActiveOrderBy(Class<T> clazz, String sortField, boolean sortAscending) Deprecated.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 -
findAllActiveOrderBy
<T extends PersistableBusinessObject> QueryPagingResults<T> findAllActiveOrderBy(Class<T> clazz, String sortField, boolean sortAscending, QueryPagingRequest pagingRequest) Deprecated. -
findMatching
<T extends PersistableBusinessObject> List<T> findMatching(Class<T> clazz, Map<String, ?> fieldValues) Deprecated.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. -
findMatching
<T extends PersistableBusinessObject> QueryPagingResults<T> findMatching(Class<T> clazz, Map<String, ?> fieldValues, QueryPagingRequest pagingRequest) Deprecated. -
findMatchingActive
<T extends PersistableBusinessObject> List<T> findMatchingActive(Class<T> clazz, Map<String, ?> fieldValues) Deprecated.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 -
findMatchingActive
<T extends PersistableBusinessObject> QueryPagingResults<T> findMatchingActive(Class<T> clazz, Map<String, ?> fieldValues, QueryPagingRequest pagingRequest) Deprecated. -
countMatching
Deprecated.- Returns:
- count of BusinessObjects of the given class whose fields match the values in the given Map.
-
countMatching
<T extends PersistableBusinessObject> int countMatching(Class<T> clazz, Map<String, ?> positiveFieldValues, Map<String, ?> negativeFieldValues) Deprecated.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:
positiveFieldValues- Map of fields and values for positive criterianegativeFieldValues- Map of fields and values for negative criteria
-
findMatchingOrderBy
<T extends PersistableBusinessObject> List<T> findMatchingOrderBy(Class<T> clazz, Map<String, ?> fieldValues, String sortField, boolean sortAscending) Deprecated.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. -
findMatchingOrderBy
<T extends PersistableBusinessObject> QueryPagingResults<T> findMatchingOrderBy(Class<T> clazz, Map<String, ?> fieldValues, String sortField, boolean sortAscending, QueryPagingRequest pagingRequest) Deprecated. -
delete
Deprecated.Deletes a business object from the database. -
delete
Deprecated.Deletes each business object in the given List from the database. -
deleteMatching
<T extends PersistableBusinessObject> void deleteMatching(Class<T> clazz, Map<String, ?> fieldValues) Deprecated.Deletes the business objects matching the given fieldValues -
manageReadOnly
Deprecated.Merges the given business object, but tells the ORM that the object is to be treated as Read Only, and even if it has changes, it will not be persisted to the database- Parameters:
bo- the business object to managed- Returns:
- the managed copied of the business object
-
DataObjectService