Package org.kuali.rice.krad.service.impl
Class PersistenceServiceImpl
java.lang.Object
org.kuali.rice.krad.service.impl.PersistenceServiceStructureImplBase
org.kuali.rice.krad.service.impl.PersistenceServiceImplBase
org.kuali.rice.krad.service.impl.PersistenceServiceImpl
- All Implemented Interfaces:
PersistenceService
@Deprecated
@Transactional
public class PersistenceServiceImpl
extends PersistenceServiceImplBase
implements PersistenceService
Deprecated.
This class is the service implementation for the Persistence structure.
OjbRepositoryExplorer provides functions for extracting information from the
OJB repository at runtime. This is the default implementation, that is
delivered with Kuali.
-
Field Summary
Fields inherited from class org.kuali.rice.krad.service.impl.PersistenceServiceStructureImplBase
LOG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanallForeignKeyValuesPopulatedForReference(PersistableBusinessObject bo, String referenceName) Deprecated.This method examines whether all the foreign key fields for the specified reference contain values.voidDeprecated.getFlattenedPrimaryKeyFieldValues(Object persistableObject) Deprecated.org.kuali.rice.krad.service.KualiModuleServiceDeprecated.booleanDeprecated.Defers to the service for the given classvoidlinkObjects(Object persistableObject) Deprecated.For each reference object to the parent persistableObject, sets the key values for that object.voidloadRepositoryDescriptor(String ojbRepositoryFilePath) Deprecated.voidDeprecated.This method refreshes all reference objects to this main object that are 'non-updateable'.Deprecated.voidretrieveNonKeyFields(Object persistableObject) Deprecated.voidretrieveReferenceObject(Object persistableObject, String referenceObjectName) Deprecated.voidretrieveReferenceObjects(Object persistableObject, List referenceObjectNames) Deprecated.voidretrieveReferenceObjects(List persistableObjects, List referenceObjectNames) Deprecated.voidsetKualiModuleService(org.kuali.rice.krad.service.KualiModuleService kualiModuleService) Deprecated.voidsetPersistenceServiceOjb(PersistenceService persistenceServiceOjb) Deprecated.Methods inherited from class org.kuali.rice.krad.service.impl.PersistenceServiceImplBase
getPrimaryKeyFieldValues, getPrimaryKeyFieldValuesMethods inherited from class org.kuali.rice.krad.service.impl.PersistenceServiceStructureImplBase
getBusinessObjectAttributeClass, getClassDescriptor, getDescriptorRepository, isJpaEnabledForKradClass, listPrimaryKeyFieldNamesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.kuali.rice.krad.service.PersistenceService
getPrimaryKeyFieldValues, getPrimaryKeyFieldValues, isJpaEnabledForKradClass
-
Constructor Details
-
PersistenceServiceImpl
public PersistenceServiceImpl()Deprecated.
-
-
Method Details
-
setPersistenceServiceOjb
Deprecated. -
clearCache
public void clearCache()Deprecated.- Specified by:
clearCachein interfacePersistenceService
-
loadRepositoryDescriptor
Deprecated.- Specified by:
loadRepositoryDescriptorin interfacePersistenceService
-
resolveProxy
Deprecated.- Specified by:
resolveProxyin interfacePersistenceService
-
retrieveNonKeyFields
Deprecated.- Specified by:
retrieveNonKeyFieldsin interfacePersistenceService- Parameters:
persistableObject- object whose objects need to be filled in based on primary keys- See Also:
-
retrieveReferenceObject
Deprecated.- Specified by:
retrieveReferenceObjectin interfacePersistenceService- 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:
-
retrieveReferenceObjects
Deprecated.- Specified by:
retrieveReferenceObjectsin interfacePersistenceService- 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:
-
retrieveReferenceObjects
Deprecated.- Specified by:
retrieveReferenceObjectsin interfacePersistenceService- 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:
-
getFlattenedPrimaryKeyFieldValues
Deprecated.- Specified by:
getFlattenedPrimaryKeyFieldValuesin interfacePersistenceService- 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:
-
linkObjects
Deprecated.For each reference object to the parent persistableObject, sets the key values for that object. First, if the reference object already has a value for the key, the value is left unchanged. Otherwise, for non-anonymous keys, the value is taken from the parent object. For anonymous keys, all other persistableObjects are checked until a value for the key is found.- Specified by:
linkObjectsin interfacePersistenceService- Parameters:
persistableObject- object whose objects need to have keys filled- See Also:
-
allForeignKeyValuesPopulatedForReference
public boolean allForeignKeyValuesPopulatedForReference(PersistableBusinessObject bo, String referenceName) Deprecated.Description copied from interface:PersistenceServiceThis method examines whether all the foreign key fields for the specified reference contain values.- Specified by:
allForeignKeyValuesPopulatedForReferencein interfacePersistenceService- Parameters:
bo-referenceName-- Returns:
- true if they all are accessible and have values, false otherwise
- See Also:
-
refreshAllNonUpdatingReferences
Deprecated.Description copied from interface:PersistenceServiceThis 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:
refreshAllNonUpdatingReferencesin interfacePersistenceService- Parameters:
bo- - the businessObject to be refreshed- See Also:
-
isProxied
Deprecated.Defers to the service for the given class- Specified by:
isProxiedin interfacePersistenceService- Parameters:
bo- the object to determine if it is a proxy- Returns:
- true if the object is an ORM proxy; false otherwise
- See Also:
-
getKualiModuleService
public org.kuali.rice.krad.service.KualiModuleService getKualiModuleService()Deprecated. -
setKualiModuleService
public void setKualiModuleService(org.kuali.rice.krad.service.KualiModuleService kualiModuleService) Deprecated.
-