Package org.kuali.rice.krad.service
Interface PersistenceService
- All Known Implementing Classes:
PersistenceServiceImpl,PersistenceServiceOjbImpl
Deprecated.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Method Summary
Modifier and TypeMethodDescriptionbooleanallForeignKeyValuesPopulatedForReference(PersistableBusinessObject bo, String referenceName) Deprecated.voidDeprecated.getFlattenedPrimaryKeyFieldValues(Object persistableObject) Deprecated.getPrimaryKeyFieldValues(Object persistableObject) Deprecated.getPrimaryKeyFieldValues(Object persistableObject, boolean sortFieldNames) Deprecated.booleanisJpaEnabledForKradClass(Class clazz) Deprecated.booleanDeprecated.voidlinkObjects(Object persistableObject) Deprecated.voidloadRepositoryDescriptor(String ojbRepositoryFilePath) Deprecated.voidDeprecated.Deprecated.voidretrieveNonKeyFields(Object persistableObject) Deprecated.voidretrieveReferenceObject(Object persistableObject, String referenceObjectName) Deprecated.voidretrieveReferenceObjects(Object persistableObject, List referenceObjectNames) Deprecated.voidretrieveReferenceObjects(List persistableObjects, List referenceObjectNames) Deprecated.
-
Method Details
-
loadRepositoryDescriptor
Deprecated. -
clearCache
Deprecated. -
resolveProxy
Deprecated. -
getPrimaryKeyFieldValues
Deprecated.- Parameters:
persistableObject- object whose primary key field name,value pairs you want- Returns:
- a Map containing the names and values of fields specified the given class which are designated as key fields in the OJB repository file
- Throws:
IllegalArgumentException- if the given Object is nullorg.kuali.rice.krad.exception.ClassNotPersistableException- if the given object is of a type not described in the OJB repository
-
getPrimaryKeyFieldValues
Deprecated.- Parameters:
persistableObject- object whose primary key field name,value pairs you wantsortFieldNames- if true, the returned Map will iterate through its entries sorted by fieldName- Returns:
- a Map containing the names and values of fields specified the given class which are designated as key fields in the OJB repository file
- Throws:
IllegalArgumentException- if the given Object is nullorg.kuali.rice.krad.exception.ClassNotPersistableException- if the given object is of a type not described in the OJB repository
-
retrieveNonKeyFields
Deprecated.- Parameters:
persistableObject- object whose objects need to be filled in based on primary keys- Throws:
IllegalArgumentException- if the given Object is nullorg.kuali.rice.krad.exception.ClassNotPersistableException- if the given object is of a type not described in the OJB repository
-
retrieveReferenceObject
Deprecated.- Parameters:
persistableObject- object whose specified reference object needs to be filled in based on primary keysreferenceObjectName- the name of the reference object that will be filled in based on primary key values- Throws:
IllegalArgumentException- if the given Object is nullorg.kuali.rice.krad.exception.ClassNotPersistableException- if the given object is of a type not described in the OJB repository
-
retrieveReferenceObjects
Deprecated.- Parameters:
persistableObject- object whose specified reference objects need to be filled in based on primary keysreferenceObjectNames- the names of the reference objects that will be filled in based on primary key values- Throws:
IllegalArgumentException- if either of the given lists is null or empty, or if any of the referenceObjectNames is blankorg.kuali.rice.krad.exception.ClassNotPersistableException- if the given object is of a type not described in the OJB repository
-
retrieveReferenceObjects
Deprecated.- Parameters:
persistableObjects- objects whose specified reference objects need to be filled in based on primary keysreferenceObjectNames- the names of the reference objects that will be filled in based on primary key values- Throws:
IllegalArgumentException- if either of the given lists is null or empty, or if any of the referenceObjectNames is blankorg.kuali.rice.krad.exception.ClassNotPersistableException- if the given object is of a type not described in the OJB repository
-
linkObjects
Deprecated.- Parameters:
persistableObject- object whose objects need to have keys filled- Throws:
IllegalArgumentException- if the given Object is nullorg.kuali.rice.krad.exception.ClassNotPersistableException- if the given object is of a type not described in the OJB repository
-
getFlattenedPrimaryKeyFieldValues
Deprecated.- Parameters:
persistableObject- object whose primary key field name,value pairs you wantbounded- - whether to restrict the number of rows returned- Returns:
- a String representation of the primary key fields and values for the given persistableObject
- Throws:
IllegalArgumentException- if the given Object is nullorg.kuali.rice.krad.exception.ClassNotPersistableException- if the given object is of a type not described in the OJB repository
-
allForeignKeyValuesPopulatedForReference
@Deprecated boolean allForeignKeyValuesPopulatedForReference(PersistableBusinessObject bo, String referenceName) Deprecated.This method examines whether all the foreign key fields for the specified reference contain values.- Parameters:
bo-referenceName-- Returns:
- true if they all are accessible and have values, false otherwise
-
refreshAllNonUpdatingReferences
Deprecated.This method refreshes all reference objects to this main object that are 'non-updateable'. In general, this means that if a reference object is configured to not be updated when the parent document is saved, then they are non-updated. This will not refresh updateable objects, which can cause problems when you're creating new objects. See PersistenceServiceImpl.isUpdateableReference() for the full logic.- Parameters:
bo- - the businessObject to be refreshed
-
isProxied
Deprecated.Determines if the given object is proxied by the ORM or not- Parameters:
object- the object to determine if it is a proxy- Returns:
- true if the object is an ORM proxy; false otherwise
-
isJpaEnabledForKradClass
Deprecated.Determines if JPA is enabled for the KNS and for the given class- Parameters:
clazz- the class to check for JPA enabling of- Returns:
- true if JPA is enabled for the class, false otherwise
-
DataObjectService