|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PersistenceService
Method Summary | |
---|---|
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)
|
Method Detail |
---|
void loadRepositoryDescriptor(String ojbRepositoryFilePath)
void clearCache()
Object resolveProxy(Object o)
Map getPrimaryKeyFieldValues(Object persistableObject)
persistableObject
- object whose primary key field name,value pairs you want
IllegalArgumentException
- if the given Object is null
ClassNotPersistableException
- 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 fieldName
IllegalArgumentException
- if the given Object is null
ClassNotPersistableException
- 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 keys
IllegalArgumentException
- if the given Object is null
ClassNotPersistableException
- 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 values
IllegalArgumentException
- if the given Object is null
ClassNotPersistableException
- 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 values
IllegalArgumentException
- if either of the given lists is null or empty, or if any of the referenceObjectNames is
blank
ClassNotPersistableException
- 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 values
IllegalArgumentException
- if either of the given lists is null or empty, or if any of the referenceObjectNames is
blank
ClassNotPersistableException
- 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 filled
IllegalArgumentException
- if the given Object is null
ClassNotPersistableException
- 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 returned
IllegalArgumentException
- if the given Object is null
ClassNotPersistableException
- 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 proxy
boolean isJpaEnabledForKradClass(Class clazz)
clazz
- the class to check for JPA enabling of
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |