Package org.kuali.rice.krad.service.impl
Class BusinessObjectServiceImpl
java.lang.Object
org.kuali.rice.krad.service.impl.BusinessObjectServiceImpl
- All Implemented Interfaces:
BusinessObjectService
Deprecated.
This class is the service implementation for the BusinessObjectService structure. This is the default implementation, that is
delivered with Kuali.
-
Constructor Summary
Constructors -
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>
QueryPagingResults<T> findAll(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 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>
QueryPagingResults<T> findMatching(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.protected BusinessObjectDaoDeprecated.protected DataObjectMetaDataServiceDeprecated.protected PersonServiceDeprecated.getReferenceIfExists(BusinessObject bo, String referenceName) Deprecated.This method attempts to retrieve the reference from a BO if it exists.protected booleanDeprecated.Returns true if the BusinessObjectService should be permitted to save instances of the given PersistableBusinessObject.<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.protected voidDeprecated.<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.voidsetBusinessObjectDao(BusinessObjectDao businessObjectDao) Deprecated.voidsetDataObjectMetaDataService(DataObjectMetaDataService dataObjectMetadataService) Deprecated.final voidsetPersistenceService(PersistenceService persistenceService) Deprecated.voidsetPersistenceStructureService(PersistenceStructureService persistenceStructureService) Deprecated.final voidsetPersonService(PersonService personService) Deprecated.protected voidvalidateBusinessObjectForSave(List<? extends PersistableBusinessObject> businessObjects) Deprecated.protected voidDeprecated.
-
Constructor Details
-
BusinessObjectServiceImpl
public BusinessObjectServiceImpl()Deprecated.
-
-
Method Details
-
save
Deprecated.Description copied from interface:BusinessObjectServiceSaves 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.- Specified by:
savein interfaceBusinessObjectService- Parameters:
bo- A BusinessObject instance or descendent that you wish to be stored.
-
save
Deprecated.Description copied from interface:BusinessObjectServiceSaves 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.- Specified by:
savein interfaceBusinessObjectService- Parameters:
businessObjects- A List<PersistableBusinessObject> of objects to persist.
-
linkAndSave
Deprecated.Description copied from interface:BusinessObjectServiceLinks 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.- Specified by:
linkAndSavein interfaceBusinessObjectService- Parameters:
bo- A BusinessObject instance or descendent that you wish to be stored.
-
linkAndSave
@Transactional public <T extends PersistableBusinessObject> List<T> linkAndSave(List<T> businessObjects) Deprecated.Description copied from interface:BusinessObjectServiceLinks 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.- Specified by:
linkAndSavein interfaceBusinessObjectService- Parameters:
businessObjects- A List<BusinessObject> of objects to persist.
-
validateBusinessObjectForSave
Deprecated. -
validateBusinessObjectForSave
protected void validateBusinessObjectForSave(List<? extends PersistableBusinessObject> businessObjects) Deprecated. -
isBusinessObjectAllowedForSave
Deprecated.Returns true if the BusinessObjectService should be permitted to save instances of the given PersistableBusinessObject. Implementation checks a configuration parameter for class names of PersistableBusinessObjects that shouldn't be allowed to be saved. -
findBySinglePrimaryKey
public <T extends PersistableBusinessObject> T findBySinglePrimaryKey(Class<T> clazz, Object primaryKey) Deprecated.Description copied from interface:BusinessObjectServiceRetrieves an object instance identified by its primary key. For composite keys, useBusinessObjectService.findByPrimaryKey(Class, Map)- Specified by:
findBySinglePrimaryKeyin interfaceBusinessObjectService
-
findByPrimaryKey
public <T extends PersistableBusinessObject> T findByPrimaryKey(Class<T> clazz, Map<String, ?> primaryKeys) Deprecated.Description copied from interface:BusinessObjectServiceRetrieves 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.- Specified by:
findByPrimaryKeyin interfaceBusinessObjectService
-
retrieve
Deprecated.Description copied from interface:BusinessObjectServiceRetrieves an object instance identified by the class of the given object and the object's primary key values.- Specified by:
retrievein interfaceBusinessObjectService
-
findAll
Deprecated.Description copied from interface:BusinessObjectServiceRetrieves 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.- Specified by:
findAllin interfaceBusinessObjectService
-
findAll
public <T extends PersistableBusinessObject> QueryPagingResults<T> findAll(Class<T> clazz, QueryPagingRequest pagingRequest) Deprecated.- Specified by:
findAllin interfaceBusinessObjectService
-
findAllOrderBy
public <T extends PersistableBusinessObject> List<T> findAllOrderBy(Class<T> clazz, String sortField, boolean sortAscending) Deprecated.Description copied from interface:BusinessObjectServiceRetrieves 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.- Specified by:
findAllOrderByin interfaceBusinessObjectService
-
findAllOrderBy
public <T extends PersistableBusinessObject> QueryPagingResults<T> findAllOrderBy(Class<T> clazz, String sortField, boolean sortAscending, QueryPagingRequest pagingRequest) Deprecated.- Specified by:
findAllOrderByin interfaceBusinessObjectService
-
findMatching
public <T extends PersistableBusinessObject> List<T> findMatching(Class<T> clazz, Map<String, ?> fieldValues) Deprecated.Description copied from interface:BusinessObjectServiceThis 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.- Specified by:
findMatchingin interfaceBusinessObjectService
-
findMatching
public <T extends PersistableBusinessObject> QueryPagingResults<T> findMatching(Class<T> clazz, Map<String, ?> fieldValues, QueryPagingRequest pagingRequest) Deprecated.- Specified by:
findMatchingin interfaceBusinessObjectService
-
countMatching
public <T extends PersistableBusinessObject> int countMatching(Class<T> clazz, Map<String, ?> fieldValues) Deprecated.Description copied from interface:BusinessObjectServiceThis method retrieves a count of the business objects populated with data which match the criteria in the given Map.- Specified by:
countMatchingin interfaceBusinessObjectService- Returns:
- number of businessObjects of the given class whose fields match the values in the given expected-value Map
-
countMatching
public <T extends PersistableBusinessObject> int countMatching(Class<T> clazz, Map<String, ?> positiveFieldValues, Map<String, ?> negativeFieldValues) Deprecated.Description copied from interface:BusinessObjectServiceThis 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.- Specified by:
countMatchingin interfaceBusinessObjectService- Returns:
- number of businessObjects of the given class whose fields match the values in the given expected-value Maps
-
findMatchingOrderBy
public <T extends PersistableBusinessObject> List<T> findMatchingOrderBy(Class<T> clazz, Map<String, ?> fieldValues, String sortField, boolean sortAscending) Deprecated.Description copied from interface:BusinessObjectServiceThis 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.- Specified by:
findMatchingOrderByin interfaceBusinessObjectService
-
findMatchingOrderBy
public <T extends PersistableBusinessObject> QueryPagingResults<T> findMatchingOrderBy(Class<T> clazz, Map<String, ?> fieldValues, String sortField, boolean sortAscending, QueryPagingRequest pagingRequest) Deprecated.- Specified by:
findMatchingOrderByin interfaceBusinessObjectService
-
delete
Deprecated.Description copied from interface:BusinessObjectServiceDeletes a business object from the database.- Specified by:
deletein interfaceBusinessObjectService
-
delete
Deprecated.Description copied from interface:BusinessObjectServiceDeletes each business object in the given List.- Specified by:
deletein interfaceBusinessObjectService
-
deleteMatching
@Transactional public <T extends PersistableBusinessObject> void deleteMatching(Class<T> clazz, Map<String, ?> fieldValues) Deprecated.Description copied from interface:BusinessObjectServiceDeletes the object(s) matching the given field values- Specified by:
deleteMatchingin interfaceBusinessObjectService
-
getReferenceIfExists
Deprecated.Description copied from interface:BusinessObjectServiceThis method attempts to retrieve the reference from a BO if it exists.- Specified by:
getReferenceIfExistsin interfaceBusinessObjectService- 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.Description copied from interface:BusinessObjectServiceUpdates 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.- Specified by:
linkUserFieldsin interfaceBusinessObjectService- Parameters:
bo- The populated BO (or descendent) instance to be linked invalid input: '&' updated
-
linkUserFieldsInBoList
Deprecated. -
manageReadOnly
Deprecated.Description copied from interface:BusinessObjectServiceMerges 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- Specified by:
manageReadOnlyin interfaceBusinessObjectService- Parameters:
bo- the business object to managed- Returns:
- the managed copied of the business object
-
getBusinessObjectDao
Deprecated. -
setBusinessObjectDao
Deprecated. -
setPersistenceStructureService
Deprecated. -
setPersonService
Deprecated. -
getPersonService
Deprecated. -
setPersistenceService
Deprecated. -
getDataObjectMetaDataService
Deprecated. -
setDataObjectMetaDataService
Deprecated.
-
DataObjectService