org.kuali.rice.krad.service.impl
Class PersistenceServiceJpaImpl
java.lang.Object
org.kuali.rice.krad.service.impl.PersistenceServiceStructureImplBase
org.kuali.rice.krad.service.impl.PersistenceServiceImplBase
org.kuali.rice.krad.service.impl.PersistenceServiceJpaImpl
- All Implemented Interfaces:
- PersistenceService
@Transactional
public class PersistenceServiceJpaImpl
- extends PersistenceServiceImplBase
- implements PersistenceService
This class is the service implementation for the Persistence structure.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PersistenceServiceJpaImpl
public PersistenceServiceJpaImpl()
setPersistenceDao
public void setPersistenceDao(PersistenceDao persistenceDao)
allForeignKeyValuesPopulatedForReference
public boolean allForeignKeyValuesPopulatedForReference(PersistableBusinessObject bo,
String referenceName)
- Description copied from interface:
PersistenceService
- This method examines whether all the foreign key fields for the specified reference contain values.
- Specified by:
allForeignKeyValuesPopulatedForReference
in interface PersistenceService
- Returns:
- true if they all are accessible and have values, false otherwise
- See Also:
PersistenceService.allForeignKeyValuesPopulatedForReference(org.kuali.rice.krad.bo.PersistableBusinessObject, java.lang.String)
clearCache
public void clearCache()
- Specified by:
clearCache
in interface PersistenceService
- See Also:
PersistenceService.clearCache()
getFlattenedPrimaryKeyFieldValues
public String getFlattenedPrimaryKeyFieldValues(Object persistableObject)
- Specified by:
getFlattenedPrimaryKeyFieldValues
in interface PersistenceService
- Parameters:
persistableObject
- object whose primary key field name,value pairs you want
- Returns:
- a String representation of the primary key fields and values for the given persistableObject
- See Also:
PersistenceService.getFlattenedPrimaryKeyFieldValues(java.lang.Object)
linkObjects
public void linkObjects(Object persistableObject)
- Specified by:
linkObjects
in interface PersistenceService
- Parameters:
persistableObject
- object whose objects need to have keys filled- See Also:
PersistenceService.linkObjects(java.lang.Object)
loadRepositoryDescriptor
public void loadRepositoryDescriptor(String ojbRepositoryFilePath)
- Specified by:
loadRepositoryDescriptor
in interface PersistenceService
- See Also:
PersistenceService.loadRepositoryDescriptor(java.lang.String)
refreshAllNonUpdatingReferences
public void refreshAllNonUpdatingReferences(PersistableBusinessObject bo)
- Description copied from interface:
PersistenceService
- 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.
- Specified by:
refreshAllNonUpdatingReferences
in interface PersistenceService
- Parameters:
bo
- - the businessObject to be refreshed- See Also:
PersistenceService.refreshAllNonUpdatingReferences(org.kuali.rice.krad.bo.PersistableBusinessObject)
resolveProxy
public Object resolveProxy(Object o)
- Specified by:
resolveProxy
in interface PersistenceService
- See Also:
PersistenceService.resolveProxy(java.lang.Object)
retrieveNonKeyFields
public void retrieveNonKeyFields(Object persistableObject)
- Specified by:
retrieveNonKeyFields
in interface PersistenceService
- Parameters:
persistableObject
- object whose objects need to be filled in based on primary keys- See Also:
PersistenceService.retrieveNonKeyFields(java.lang.Object)
retrieveReferenceObject
public void retrieveReferenceObject(Object persistableObject,
String referenceObjectName)
- Specified by:
retrieveReferenceObject
in interface PersistenceService
- 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- See Also:
PersistenceService.retrieveReferenceObject(java.lang.Object, java.lang.String)
retrieveReferenceObjects
public void retrieveReferenceObjects(Object persistableObject,
List referenceObjectNames)
- Specified by:
retrieveReferenceObjects
in interface PersistenceService
- 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- See Also:
PersistenceService.retrieveReferenceObjects(java.lang.Object, java.util.List)
retrieveReferenceObjects
public void retrieveReferenceObjects(List persistableObjects,
List referenceObjectNames)
- Specified by:
retrieveReferenceObjects
in interface PersistenceService
- 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- See Also:
PersistenceService.retrieveReferenceObjects(java.util.List, java.util.List)
isProxied
public boolean isProxied(Object object)
- Asks persistenceDao if this represents a proxy
- Specified by:
isProxied
in interface PersistenceService
- Parameters:
object
- the object to determine if it is a proxy
- Returns:
- true if the object is an ORM proxy; false otherwise
- See Also:
PersistenceService.isProxied(java.lang.Object)
Copyright © 2005-2011 The Kuali Foundation. All Rights Reserved.