public interface PersistenceService
| Modifier and Type | Method and Description |
|---|---|
boolean |
allForeignKeyValuesPopulatedForReference(PersistableBusinessObject bo,
String referenceName)
This method examines whether all the foreign key fields for the specified reference contain values.
|
void |
clearCache() |
String |
getFlattenedPrimaryKeyFieldValues(Object persistableObject) |
Map |
getPrimaryKeyFieldValues(Object persistableObject) |
Map |
getPrimaryKeyFieldValues(Object persistableObject,
boolean sortFieldNames) |
boolean |
isJpaEnabledForKradClass(Class clazz)
Determines if JPA is enabled for the KNS and for the given class
|
boolean |
isProxied(Object object)
Determines if the given object is proxied by the ORM or not
|
void |
linkObjects(Object persistableObject) |
void |
loadRepositoryDescriptor(String ojbRepositoryFilePath) |
void |
refreshAllNonUpdatingReferences(PersistableBusinessObject bo)
This method refreshes all reference objects to this main object that are 'non-updateable'.
|
Object |
resolveProxy(Object o) |
void |
retrieveNonKeyFields(Object persistableObject) |
void |
retrieveReferenceObject(Object persistableObject,
String referenceObjectName) |
void |
retrieveReferenceObjects(List persistableObjects,
List referenceObjectNames) |
void |
retrieveReferenceObjects(Object persistableObject,
List referenceObjectNames) |
void loadRepositoryDescriptor(String ojbRepositoryFilePath)
void clearCache()
Object resolveProxy(Object o)
Map getPrimaryKeyFieldValues(Object persistableObject)
persistableObject - object whose primary key field name,value pairs you wantIllegalArgumentException - if the given Object is nullClassNotPersistableException - if the given object is of a type not described in the OJB repositoryMap getPrimaryKeyFieldValues(Object persistableObject, boolean sortFieldNames)
persistableObject - object whose primary key field name,value pairs you wantsortFieldNames - if true, the returned Map will iterate through its entries sorted by fieldNameIllegalArgumentException - if the given Object is nullClassNotPersistableException - if the given object is of a type not described in the OJB repositoryvoid retrieveNonKeyFields(Object persistableObject)
persistableObject - object whose objects need to be filled in based on primary keysIllegalArgumentException - if the given Object is nullClassNotPersistableException - if the given object is of a type not described in the OJB repositoryvoid retrieveReferenceObject(Object persistableObject, String referenceObjectName)
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 valuesIllegalArgumentException - if the given Object is nullClassNotPersistableException - if the given object is of a type not described in the OJB repositoryvoid retrieveReferenceObjects(Object persistableObject, List referenceObjectNames)
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 valuesIllegalArgumentException - if either of the given lists is null or empty, or if any of the referenceObjectNames is
blankClassNotPersistableException - if the given object is of a type not described in the OJB repositoryvoid retrieveReferenceObjects(List persistableObjects, List referenceObjectNames)
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 valuesIllegalArgumentException - if either of the given lists is null or empty, or if any of the referenceObjectNames is
blankClassNotPersistableException - if the given object is of a type not described in the OJB repositoryvoid linkObjects(Object persistableObject)
persistableObject - object whose objects need to have keys filledIllegalArgumentException - if the given Object is nullClassNotPersistableException - if the given object is of a type not described in the OJB repositoryString getFlattenedPrimaryKeyFieldValues(Object persistableObject)
persistableObject - object whose primary key field name,value pairs you wantbounded - - whether to restrict the number of rows returnedIllegalArgumentException - if the given Object is nullClassNotPersistableException - if the given object is of a type not described in the OJB repositoryboolean allForeignKeyValuesPopulatedForReference(PersistableBusinessObject bo, String referenceName)
bo - referenceName - void refreshAllNonUpdatingReferences(PersistableBusinessObject bo)
bo - - the businessObject to be refreshedboolean isProxied(Object object)
object - the object to determine if it is a proxyboolean isJpaEnabledForKradClass(Class clazz)
clazz - the class to check for JPA enabling ofCopyright © 2005–2016 The Kuali Foundation. All rights reserved.