DataObjectService@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 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 extends BusinessObject> |
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 extends BusinessObject> |
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 BusinessObject> |
findByPrimaryKey(Class<T> clazz,
Map<String,?> primaryKeys)
Deprecated.
Retrieves an object instance identified by its primary keys and values.
|
<T extends BusinessObject> |
findBySinglePrimaryKey(Class<T> clazz,
Object primaryKey)
Deprecated.
Retrieves an object instance identified by its primary key.
|
<T extends BusinessObject> |
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 BusinessObject> |
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 DataObjectMetaDataService |
getDataObjectMetaDataService()
Deprecated.
|
protected PersonService |
getPersonService()
Deprecated.
|
BusinessObject |
getReferenceIfExists(BusinessObject bo,
String referenceName)
Deprecated.
This method attempts to retrieve the reference from a BO if it exists.
|
protected boolean |
isBusinessObjectAllowedForSave(PersistableBusinessObject bo)
Deprecated.
Returns true if the BusinessObjectService should be permitted to save instances of the given PersistableBusinessObject.
|
List<? extends PersistableBusinessObject> |
linkAndSave(List<? extends PersistableBusinessObject> businessObjects)
Deprecated.
Links up any contained objects, and Saves the businessObjects on the list via the persistence layer.
|
PersistableBusinessObject |
linkAndSave(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<PersistableBusinessObject> list)
Deprecated.
|
PersistableBusinessObject |
manageReadOnly(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 PersistableBusinessObject> |
save(List<? extends PersistableBusinessObject> businessObjects)
Deprecated.
Saves the businessObjects on the list via the persistence layer.
|
<T extends 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(DataObjectMetaDataService dataObjectMetadataService)
Deprecated.
|
void |
setPersistenceService(PersistenceService persistenceService)
Deprecated.
Sets the persistenceService attribute value.
|
void |
setPersistenceStructureService(PersistenceStructureService persistenceStructureService)
Deprecated.
Sets the persistenceStructureService attribute value.
|
void |
setPersonService(PersonService personService)
Deprecated.
Sets the kualiUserService attribute value.
|
protected void |
validateBusinessObjectForSave(List<? extends PersistableBusinessObject> businessObjects)
Deprecated.
|
protected void |
validateBusinessObjectForSave(PersistableBusinessObject bo)
Deprecated.
|
public BusinessObjectServiceImpl()
@Transactional public <T extends PersistableBusinessObject> T save(T bo)
BusinessObjectServicesave in interface BusinessObjectServicebo - A BusinessObject instance or descendent that you wish to be stored.@Transactional public List<? extends PersistableBusinessObject> save(List<? extends PersistableBusinessObject> businessObjects)
BusinessObjectServicesave in interface BusinessObjectServicebusinessObjects - A List@Transactional public PersistableBusinessObject linkAndSave(PersistableBusinessObject bo)
BusinessObjectServicelinkAndSave in interface BusinessObjectServicebo - A BusinessObject instance or descendent that you wish to be stored.@Transactional public List<? extends PersistableBusinessObject> linkAndSave(List<? extends PersistableBusinessObject> businessObjects)
BusinessObjectServicelinkAndSave in interface BusinessObjectServicebusinessObjects - A Listprotected void validateBusinessObjectForSave(PersistableBusinessObject bo)
protected void validateBusinessObjectForSave(List<? extends PersistableBusinessObject> businessObjects)
protected boolean isBusinessObjectAllowedForSave(PersistableBusinessObject bo)
public <T extends BusinessObject> T findBySinglePrimaryKey(Class<T> clazz, Object primaryKey)
BusinessObjectServiceBusinessObjectService.findByPrimaryKey(Class, Map)findBySinglePrimaryKey in interface BusinessObjectServicepublic <T extends BusinessObject> T findByPrimaryKey(Class<T> clazz, Map<String,?> primaryKeys)
BusinessObjectServicefindByPrimaryKey in interface BusinessObjectServicepublic Object retrieve(Object object)
BusinessObjectServiceretrieve in interface BusinessObjectServicepublic <T extends BusinessObject> Collection<T> findAll(Class<T> clazz)
BusinessObjectServicefindAll in interface BusinessObjectServicepublic <T extends BusinessObject> Collection<T> findAllOrderBy(Class<T> clazz, String sortField, boolean sortAscending)
BusinessObjectServicefindAllOrderBy in interface BusinessObjectServicepublic <T extends BusinessObject> Collection<T> findMatching(Class<T> clazz, Map<String,?> fieldValues)
BusinessObjectServicefindMatching in interface BusinessObjectServicepublic int countMatching(Class clazz, Map<String,?> fieldValues)
BusinessObjectServicecountMatching in interface BusinessObjectServicepublic int countMatching(Class clazz, Map<String,?> positiveFieldValues, Map<String,?> negativeFieldValues)
BusinessObjectServicecountMatching in interface BusinessObjectServicepublic <T extends BusinessObject> Collection<T> findMatchingOrderBy(Class<T> clazz, Map<String,?> fieldValues, String sortField, boolean sortAscending)
BusinessObjectServicefindMatchingOrderBy in interface BusinessObjectService@Transactional public void delete(Object bo)
BusinessObjectServicedelete in interface BusinessObjectService@Transactional public void delete(List<? extends PersistableBusinessObject> boList)
BusinessObjectServicedelete in interface BusinessObjectService@Transactional public void deleteMatching(Class clazz, Map<String,?> fieldValues)
BusinessObjectServicedeleteMatching in interface BusinessObjectServicepublic BusinessObject getReferenceIfExists(BusinessObject bo, String referenceName)
BusinessObjectServicegetReferenceIfExists in interface BusinessObjectServicebo - - populated BusinessObject instance that includes the referenceName propertyreferenceName - - name of the member/property to loadpublic void linkUserFields(Object bo)
BusinessObjectServicelinkUserFields in interface BusinessObjectServicebo - The populated BO (or descendent) instance to be linked & updatedprotected void linkUserFieldsInBoList(List<PersistableBusinessObject> list)
public PersistableBusinessObject manageReadOnly(PersistableBusinessObject bo)
BusinessObjectServicemanageReadOnly in interface BusinessObjectServicebo - the business object to managedprotected BusinessObjectDao getBusinessObjectDao()
public void setBusinessObjectDao(BusinessObjectDao businessObjectDao)
businessObjectDao - The businessObjectDao to set.public void setPersistenceStructureService(PersistenceStructureService persistenceStructureService)
persistenceStructureService - The persistenceStructureService to set.public final void setPersonService(PersonService personService)
protected PersonService getPersonService()
public final void setPersistenceService(PersistenceService persistenceService)
persistenceService - The persistenceService to set.protected DataObjectMetaDataService getDataObjectMetaDataService()
public void setDataObjectMetaDataService(DataObjectMetaDataService dataObjectMetadataService)
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.