Package org.kuali.rice.krad.service
Interface BusinessObjectService
- All Known Implementing Classes:
BusinessObjectServiceImpl
Deprecated.
Defines methods that a BusinessObjectService must provide
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Method Summary
Modifier and TypeMethodDescription<T extends PersistableBusinessObject>
intcountMatching(Class<T> clazz, Map<String, ?> fieldValues) Deprecated.This method retrieves a count of the business objects populated with data which match the criteria in the given Map.<T extends PersistableBusinessObject>
intDeprecated.This method retrieves a count of the business objects populated with data which match both the positive criteria and the negative criteria in the given Map.voidDeprecated.Deletes a business object from the database.<T extends PersistableBusinessObject>
voidDeprecated.Deletes each business object in the given List.<T extends PersistableBusinessObject>
voiddeleteMatching(Class<T> clazz, Map<String, ?> fieldValues) Deprecated.Deletes the object(s) matching the given field values<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>
org.kuali.rice.krad.util.QueryPagingResults<T> 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>
org.kuali.rice.krad.util.QueryPagingResults<T> findAllOrderBy(Class<T> clazz, String sortField, boolean sortAscending, org.kuali.rice.krad.util.QueryPagingRequest pagingRequest) Deprecated.<T extends PersistableBusinessObject>
TfindByPrimaryKey(Class<T> clazz, Map<String, ?> primaryKeys) Deprecated.Retrieves an object instance identified by its primary keys and values.<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>
org.kuali.rice.krad.util.QueryPagingResults<T> findMatching(Class<T> clazz, Map<String, ?> fieldValues, org.kuali.rice.krad.util.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>
org.kuali.rice.krad.util.QueryPagingResults<T> findMatchingOrderBy(Class<T> clazz, Map<String, ?> fieldValues, String sortField, boolean sortAscending, org.kuali.rice.krad.util.QueryPagingRequest pagingRequest) Deprecated.org.kuali.rice.krad.bo.BusinessObjectgetReferenceIfExists(org.kuali.rice.krad.bo.BusinessObject bo, String referenceName) Deprecated.This method attempts to retrieve the reference from a BO if it exists.<T extends PersistableBusinessObject>
List<T> linkAndSave(List<T> businessObjects) Deprecated.Links up any contained objects, and Saves the businessObjects on the list via the persistence layer.<T extends PersistableBusinessObject>
TlinkAndSave(T bo) Deprecated.Links up any contained objects, and then Saves the passed in object via the persistence layer.voidlinkUserFields(Object bo) Deprecated.Updates all KualiUser or Person objects contained within this BO, based on the UserID as the authoritative key.<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 the businessObjects on the list via the persistence layer.<T extends PersistableBusinessObject>
Tsave(T bo) Deprecated.Saves the passed in object via the persistence layer.
-
Method Details
-
save
Deprecated.Saves the passed in object via the persistence layer. This will throw an IllegalArgumentException (runtime exception) if the object passed in is not a descendent of BusinessObject.- Parameters:
bo- A BusinessObject instance or descendent that you wish to be stored.
-
save
Deprecated.Saves the businessObjects on the list via the persistence layer. This will throw an IllegalArgumentException (runtime exception) if any of the objects passed in is not a descendent of BusinessObject.- Parameters:
businessObjects- A List<PersistableBusinessObject> of objects to persist.
-
linkAndSave
Deprecated.Links up any contained objects, and then Saves the passed in object via the persistence layer. This will throw an IllegalArgumentException (runtime exception) if the object passed in is not a descendent of BusinessObject.- Parameters:
bo- A BusinessObject instance or descendent that you wish to be stored.
-
linkAndSave
Deprecated.Links up any contained objects, and Saves the businessObjects on the list via the persistence layer. This will throw an IllegalArgumentException (runtime exception) if any of the objects passed in is not a descendent of BusinessObject.- Parameters:
businessObjects- A List<BusinessObject> of objects to persist.
-
findBySinglePrimaryKey
Deprecated.Retrieves an object instance identified by its primary key. For composite keys, usefindByPrimaryKey(Class, Map) -
findByPrimaryKey
Deprecated.Retrieves an object instance identified by its 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. -
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> org.kuali.rice.krad.util.QueryPagingResults<T> findAll(Class<T> clazz, org.kuali.rice.krad.util.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. -
findAllOrderBy
<T extends PersistableBusinessObject> org.kuali.rice.krad.util.QueryPagingResults<T> findAllOrderBy(Class<T> clazz, String sortField, boolean sortAscending, org.kuali.rice.krad.util.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 and its expected value. -
findMatching
<T extends PersistableBusinessObject> org.kuali.rice.krad.util.QueryPagingResults<T> findMatching(Class<T> clazz, Map<String, ?> fieldValues, org.kuali.rice.krad.util.QueryPagingRequest pagingRequest) Deprecated. -
countMatching
Deprecated.This method retrieves a count of the business objects populated with data which match the criteria in the given Map.- Returns:
- number of businessObjects of the given class whose fields match the values in the given expected-value Map
-
countMatching
<T extends PersistableBusinessObject> int countMatching(Class<T> clazz, Map<String, ?> positiveFieldValues, Map<String, ?> negativeFieldValues) Deprecated.This method retrieves a count of the business objects populated with data which match both the positive criteria and the negative criteria in the given Map.- Returns:
- number of businessObjects of the given class whose fields match the values in the given expected-value Maps
-
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 and its expected value. Performs an order by on sort field. -
findMatchingOrderBy
<T extends PersistableBusinessObject> org.kuali.rice.krad.util.QueryPagingResults<T> findMatchingOrderBy(Class<T> clazz, Map<String, ?> fieldValues, String sortField, boolean sortAscending, org.kuali.rice.krad.util.QueryPagingRequest pagingRequest) Deprecated. -
delete
Deprecated.Deletes a business object from the database. -
delete
Deprecated.Deletes each business object in the given List. -
deleteMatching
<T extends PersistableBusinessObject> void deleteMatching(Class<T> clazz, Map<String, ?> fieldValues) Deprecated.Deletes the object(s) matching the given field values -
getReferenceIfExists
org.kuali.rice.krad.bo.BusinessObject getReferenceIfExists(org.kuali.rice.krad.bo.BusinessObject bo, String referenceName) Deprecated.This method attempts to retrieve the reference from a BO if it exists.- Parameters:
bo- - populated BusinessObject instance that includes the referenceName propertyreferenceName- - name of the member/property to load- Returns:
- A populated object from the DB, if it exists
-
linkUserFields
Deprecated.Updates all KualiUser or Person objects contained within this BO, based on the UserID as the authoritative key. The appropriate foreign-key field in the BO itself is also updated. This allows UserIDs to be entered on forms, and the back-end will link up correctly based on this non-key field.- Parameters:
bo- The populated BO (or descendent) instance to be linked invalid input: '&' updated
-
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