@Transactional public class PersistenceServiceOjbImpl extends PersistenceServiceImplBase implements PersistenceService
Constructor and Description |
---|
PersistenceServiceOjbImpl() |
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) |
boolean |
isProxied(Object object)
Asks persistenceDao if this represents a proxy
|
void |
linkObjects(Object persistableObject)
For each reference object to the parent persistableObject, sets the key
values for that object.
|
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 |
setPersistenceDao(PersistenceDao persistenceDao)
Sets the persistenceDao attribute value.
|
getPrimaryKeyFieldValues, getPrimaryKeyFieldValues
getBusinessObjectAttributeClass, getClassDescriptor, getDescriptorRepository, isJpaEnabledForKradClass, listPrimaryKeyFieldNames
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPrimaryKeyFieldValues, getPrimaryKeyFieldValues, isJpaEnabledForKradClass
public PersistenceServiceOjbImpl()
public void clearCache()
clearCache
in interface PersistenceService
public Object resolveProxy(Object o)
resolveProxy
in interface PersistenceService
public void loadRepositoryDescriptor(String ojbRepositoryFilePath)
loadRepositoryDescriptor
in interface PersistenceService
public void retrieveNonKeyFields(Object persistableObject)
retrieveNonKeyFields
in interface PersistenceService
persistableObject
- object whose objects need to be filled in based on primary keysPersistenceService.retrieveNonKeyFields(java.lang.Object)
public void retrieveReferenceObject(Object persistableObject, String referenceObjectName)
retrieveReferenceObject
in interface PersistenceService
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 valuesPersistenceService.retrieveReferenceObject(java.lang.Object,
String referenceObjectName)
public void retrieveReferenceObjects(Object persistableObject, List referenceObjectNames)
retrieveReferenceObjects
in interface PersistenceService
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 valuesPersistenceService.retrieveReferenceObject(java.lang.Object,
String referenceObjectName)
public void retrieveReferenceObjects(List persistableObjects, List referenceObjectNames)
retrieveReferenceObjects
in interface PersistenceService
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 valuesPersistenceService.retrieveReferenceObject(java.lang.Object,
String referenceObjectName)
public String getFlattenedPrimaryKeyFieldValues(Object persistableObject)
getFlattenedPrimaryKeyFieldValues
in interface PersistenceService
persistableObject
- object whose primary key field name,value pairs you wantPersistenceService.getFlattenedPrimaryKeyFieldValues(java.lang.Object)
public void linkObjects(Object persistableObject)
linkObjects
in interface PersistenceService
persistableObject
- object whose objects need to have keys filledorg.kuali.rice.krad.service.PersistenceService#getReferencedObject(java.lang.Object,
org.apache.ojb.broker.metadata.ObjectReferenceDescriptor)
public boolean allForeignKeyValuesPopulatedForReference(PersistableBusinessObject bo, String referenceName)
PersistenceService
allForeignKeyValuesPopulatedForReference
in interface PersistenceService
org.kuali.rice.krad.service.PersistenceService#allForeignKeyValuesPopulatedForReference(org.kuali.rice.krad.bo.BusinessObject,
java.lang.String)
public void refreshAllNonUpdatingReferences(PersistableBusinessObject bo)
PersistenceService
refreshAllNonUpdatingReferences
in interface PersistenceService
bo
- - the businessObject to be refreshedorg.kuali.rice.krad.service.PersistenceService#refreshAllNonUpdatingReferences(org.kuali.rice.krad.bo.BusinessObject)
public boolean isProxied(Object object)
isProxied
in interface PersistenceService
object
- the object to determine if it is a proxyPersistenceService.isProxied(java.lang.Object)
public void setPersistenceDao(PersistenceDao persistenceDao)
persistenceDao
- The persistenceDao to set.Copyright © 2005-2015 The Kuali Foundation. All Rights Reserved.