@Deprecated public class BusinessObjectServiceImpl extends Object implements BusinessObjectService
Constructor and Description |
---|
BusinessObjectServiceImpl()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
int |
countMatching(Class 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.
|
int |
countMatching(Class 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.
|
void |
delete(List<? extends org.kuali.rice.krad.bo.PersistableBusinessObject> boList)
Deprecated.
Deletes each business object in the given List.
|
void |
delete(Object bo)
Deprecated.
Deletes a business object from the database.
|
void |
deleteMatching(Class clazz,
Map<String,?> fieldValues)
Deprecated.
Deletes the object(s) matching the given field values
|
<T> Collection<T> |
findAll(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> Collection<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> T |
findByPrimaryKey(Class<T> clazz,
Map<String,?> primaryKeys)
Deprecated.
Retrieves an object instance identified by its primary keys and values.
|
<T> T |
findBySinglePrimaryKey(Class<T> clazz,
Object primaryKey)
Deprecated.
Retrieves an object instance identified by its primary key.
|
<T> Collection<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> Collection<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.
|
protected BusinessObjectDao |
getBusinessObjectDao()
Deprecated.
Gets the businessObjectDao attribute.
|
protected org.kuali.rice.krad.service.DataObjectMetaDataService |
getDataObjectMetaDataService()
Deprecated.
|
protected org.kuali.rice.kim.api.identity.PersonService |
getPersonService()
Deprecated.
|
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.
|
protected boolean |
isBusinessObjectAllowedForSave(org.kuali.rice.krad.bo.PersistableBusinessObject bo)
Deprecated.
Returns true if the BusinessObjectService should be permitted to save instances of the given PersistableBusinessObject.
|
List<? extends org.kuali.rice.krad.bo.PersistableBusinessObject> |
linkAndSave(List<? extends org.kuali.rice.krad.bo.PersistableBusinessObject> businessObjects)
Deprecated.
Links up any contained objects, and Saves the businessObjects on the list via the persistence layer.
|
org.kuali.rice.krad.bo.PersistableBusinessObject |
linkAndSave(org.kuali.rice.krad.bo.PersistableBusinessObject bo)
Deprecated.
Links up any contained objects, and then Saves the passed in object via the persistence layer.
|
void |
linkUserFields(Object bo)
Deprecated.
Updates all KualiUser or Person objects contained within this BO, based on the UserID as the authoritative key.
|
protected void |
linkUserFieldsInBoList(List<org.kuali.rice.krad.bo.PersistableBusinessObject> list)
Deprecated.
|
org.kuali.rice.krad.bo.PersistableBusinessObject |
manageReadOnly(org.kuali.rice.krad.bo.PersistableBusinessObject 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 database
|
Object |
retrieve(Object object)
Deprecated.
Retrieves an object instance identified by the class of the given object and the object's primary key values.
|
List<? extends org.kuali.rice.krad.bo.PersistableBusinessObject> |
save(List<? extends org.kuali.rice.krad.bo.PersistableBusinessObject> businessObjects)
Deprecated.
Saves the businessObjects on the list via the persistence layer.
|
<T extends org.kuali.rice.krad.bo.PersistableBusinessObject> |
save(T bo)
Deprecated.
Saves the passed in object via the persistence layer.
|
void |
setBusinessObjectDao(BusinessObjectDao businessObjectDao)
Deprecated.
Sets the businessObjectDao attribute value.
|
void |
setDataObjectMetaDataService(org.kuali.rice.krad.service.DataObjectMetaDataService dataObjectMetadataService)
Deprecated.
|
void |
setPersistenceService(org.kuali.rice.krad.service.PersistenceService persistenceService)
Deprecated.
Sets the persistenceService attribute value.
|
void |
setPersistenceStructureService(org.kuali.rice.krad.service.PersistenceStructureService persistenceStructureService)
Deprecated.
Sets the persistenceStructureService attribute value.
|
void |
setPersonService(org.kuali.rice.kim.api.identity.PersonService personService)
Deprecated.
Sets the kualiUserService attribute value.
|
protected void |
validateBusinessObjectForSave(List<? extends org.kuali.rice.krad.bo.PersistableBusinessObject> businessObjects)
Deprecated.
|
protected void |
validateBusinessObjectForSave(org.kuali.rice.krad.bo.PersistableBusinessObject bo)
Deprecated.
|
public BusinessObjectServiceImpl()
@Transactional public <T extends org.kuali.rice.krad.bo.PersistableBusinessObject> T save(T bo)
BusinessObjectService
save
in interface BusinessObjectService
bo
- A BusinessObject instance or descendent that you wish to be stored.@Transactional public List<? extends org.kuali.rice.krad.bo.PersistableBusinessObject> save(List<? extends org.kuali.rice.krad.bo.PersistableBusinessObject> businessObjects)
BusinessObjectService
save
in interface BusinessObjectService
businessObjects
- A List@Transactional public org.kuali.rice.krad.bo.PersistableBusinessObject linkAndSave(org.kuali.rice.krad.bo.PersistableBusinessObject bo)
BusinessObjectService
linkAndSave
in interface BusinessObjectService
bo
- A BusinessObject instance or descendent that you wish to be stored.@Transactional public List<? extends org.kuali.rice.krad.bo.PersistableBusinessObject> linkAndSave(List<? extends org.kuali.rice.krad.bo.PersistableBusinessObject> businessObjects)
BusinessObjectService
linkAndSave
in interface BusinessObjectService
businessObjects
- A Listprotected void validateBusinessObjectForSave(org.kuali.rice.krad.bo.PersistableBusinessObject bo)
protected void validateBusinessObjectForSave(List<? extends org.kuali.rice.krad.bo.PersistableBusinessObject> businessObjects)
protected boolean isBusinessObjectAllowedForSave(org.kuali.rice.krad.bo.PersistableBusinessObject bo)
public <T> T findBySinglePrimaryKey(Class<T> clazz, Object primaryKey)
BusinessObjectService
BusinessObjectService.findByPrimaryKey(Class, java.util.Map)
findBySinglePrimaryKey
in interface BusinessObjectService
public <T> T findByPrimaryKey(Class<T> clazz, Map<String,?> primaryKeys)
BusinessObjectService
findByPrimaryKey
in interface BusinessObjectService
public Object retrieve(Object object)
BusinessObjectService
retrieve
in interface BusinessObjectService
public <T> Collection<T> findAll(Class<T> clazz)
BusinessObjectService
findAll
in interface BusinessObjectService
public <T> Collection<T> findAllOrderBy(Class<T> clazz, String sortField, boolean sortAscending)
BusinessObjectService
findAllOrderBy
in interface BusinessObjectService
public <T> Collection<T> findMatching(Class<T> clazz, Map<String,?> fieldValues)
BusinessObjectService
findMatching
in interface BusinessObjectService
public int countMatching(Class clazz, Map<String,?> fieldValues)
BusinessObjectService
countMatching
in interface BusinessObjectService
public int countMatching(Class clazz, Map<String,?> positiveFieldValues, Map<String,?> negativeFieldValues)
BusinessObjectService
countMatching
in interface BusinessObjectService
public <T> Collection<T> findMatchingOrderBy(Class<T> clazz, Map<String,?> fieldValues, String sortField, boolean sortAscending)
BusinessObjectService
findMatchingOrderBy
in interface BusinessObjectService
@Transactional public void delete(Object bo)
BusinessObjectService
delete
in interface BusinessObjectService
@Transactional public void delete(List<? extends org.kuali.rice.krad.bo.PersistableBusinessObject> boList)
BusinessObjectService
delete
in interface BusinessObjectService
@Transactional public void deleteMatching(Class clazz, Map<String,?> fieldValues)
BusinessObjectService
deleteMatching
in interface BusinessObjectService
public org.kuali.rice.krad.bo.BusinessObject getReferenceIfExists(org.kuali.rice.krad.bo.BusinessObject bo, String referenceName)
BusinessObjectService
getReferenceIfExists
in interface BusinessObjectService
bo
- - populated BusinessObject instance that includes the referenceName propertyreferenceName
- - name of the member/property to loadpublic void linkUserFields(Object bo)
BusinessObjectService
linkUserFields
in interface BusinessObjectService
bo
- The populated BO (or descendent) instance to be linked & updatedprotected void linkUserFieldsInBoList(List<org.kuali.rice.krad.bo.PersistableBusinessObject> list)
public org.kuali.rice.krad.bo.PersistableBusinessObject manageReadOnly(org.kuali.rice.krad.bo.PersistableBusinessObject bo)
BusinessObjectService
manageReadOnly
in interface BusinessObjectService
bo
- the business object to managedprotected BusinessObjectDao getBusinessObjectDao()
public void setBusinessObjectDao(BusinessObjectDao businessObjectDao)
businessObjectDao
- The businessObjectDao to set.public void setPersistenceStructureService(org.kuali.rice.krad.service.PersistenceStructureService persistenceStructureService)
persistenceStructureService
- The persistenceStructureService to set.public final void setPersonService(org.kuali.rice.kim.api.identity.PersonService personService)
protected org.kuali.rice.kim.api.identity.PersonService getPersonService()
public final void setPersistenceService(org.kuali.rice.krad.service.PersistenceService persistenceService)
persistenceService
- The persistenceService to set.protected org.kuali.rice.krad.service.DataObjectMetaDataService getDataObjectMetaDataService()
public void setDataObjectMetaDataService(org.kuali.rice.krad.service.DataObjectMetaDataService dataObjectMetadataService)
Copyright © 2004–2014 The Kuali Foundation. All rights reserved.