Interface PersistenceService

All Known Implementing Classes:
PersistenceServiceImpl, PersistenceServiceOjbImpl

@Deprecated public interface PersistenceService
Deprecated.
use new KRAD Data framework DataObjectService
Author:
Kuali Rice Team (rice.collab@kuali.org)
  • Method Details

    • loadRepositoryDescriptor

      @Deprecated void loadRepositoryDescriptor(String ojbRepositoryFilePath)
      Deprecated.
    • clearCache

      @Deprecated void clearCache()
      Deprecated.
    • resolveProxy

      @Deprecated Object resolveProxy(Object o)
      Deprecated.
    • getPrimaryKeyFieldValues

      @Deprecated Map getPrimaryKeyFieldValues(Object persistableObject)
      Deprecated.
      Parameters:
      persistableObject - object whose primary key field name,value pairs you want
      Returns:
      a Map containing the names and values of fields specified the given class which are designated as key fields in the OJB repository file
      Throws:
      IllegalArgumentException - if the given Object is null
      org.kuali.rice.krad.exception.ClassNotPersistableException - if the given object is of a type not described in the OJB repository
    • getPrimaryKeyFieldValues

      @Deprecated Map getPrimaryKeyFieldValues(Object persistableObject, boolean sortFieldNames)
      Deprecated.
      Parameters:
      persistableObject - object whose primary key field name,value pairs you want
      sortFieldNames - if true, the returned Map will iterate through its entries sorted by fieldName
      Returns:
      a Map containing the names and values of fields specified the given class which are designated as key fields in the OJB repository file
      Throws:
      IllegalArgumentException - if the given Object is null
      org.kuali.rice.krad.exception.ClassNotPersistableException - if the given object is of a type not described in the OJB repository
    • retrieveNonKeyFields

      @Deprecated void retrieveNonKeyFields(Object persistableObject)
      Deprecated.
      Parameters:
      persistableObject - object whose objects need to be filled in based on primary keys
      Throws:
      IllegalArgumentException - if the given Object is null
      org.kuali.rice.krad.exception.ClassNotPersistableException - if the given object is of a type not described in the OJB repository
    • retrieveReferenceObject

      @Deprecated void retrieveReferenceObject(Object persistableObject, String referenceObjectName)
      Deprecated.
      Parameters:
      persistableObject - object whose specified reference object needs to be filled in based on primary keys
      referenceObjectName - the name of the reference object that will be filled in based on primary key values
      Throws:
      IllegalArgumentException - if the given Object is null
      org.kuali.rice.krad.exception.ClassNotPersistableException - if the given object is of a type not described in the OJB repository
    • retrieveReferenceObjects

      @Deprecated void retrieveReferenceObjects(Object persistableObject, List referenceObjectNames)
      Deprecated.
      Parameters:
      persistableObject - object whose specified reference objects need to be filled in based on primary keys
      referenceObjectNames - the names of the reference objects that will be filled in based on primary key values
      Throws:
      IllegalArgumentException - if either of the given lists is null or empty, or if any of the referenceObjectNames is blank
      org.kuali.rice.krad.exception.ClassNotPersistableException - if the given object is of a type not described in the OJB repository
    • retrieveReferenceObjects

      @Deprecated void retrieveReferenceObjects(List persistableObjects, List referenceObjectNames)
      Deprecated.
      Parameters:
      persistableObjects - objects whose specified reference objects need to be filled in based on primary keys
      referenceObjectNames - the names of the reference objects that will be filled in based on primary key values
      Throws:
      IllegalArgumentException - if either of the given lists is null or empty, or if any of the referenceObjectNames is blank
      org.kuali.rice.krad.exception.ClassNotPersistableException - if the given object is of a type not described in the OJB repository
    • linkObjects

      @Deprecated void linkObjects(Object persistableObject)
      Deprecated.
      Parameters:
      persistableObject - object whose objects need to have keys filled
      Throws:
      IllegalArgumentException - if the given Object is null
      org.kuali.rice.krad.exception.ClassNotPersistableException - if the given object is of a type not described in the OJB repository
    • getFlattenedPrimaryKeyFieldValues

      @Deprecated String getFlattenedPrimaryKeyFieldValues(Object persistableObject)
      Deprecated.
      Parameters:
      persistableObject - object whose primary key field name,value pairs you want
      bounded - - whether to restrict the number of rows returned
      Returns:
      a String representation of the primary key fields and values for the given persistableObject
      Throws:
      IllegalArgumentException - if the given Object is null
      org.kuali.rice.krad.exception.ClassNotPersistableException - if the given object is of a type not described in the OJB repository
    • allForeignKeyValuesPopulatedForReference

      @Deprecated boolean allForeignKeyValuesPopulatedForReference(PersistableBusinessObject bo, String referenceName)
      Deprecated.
      This method examines whether all the foreign key fields for the specified reference contain values.
      Parameters:
      bo -
      referenceName -
      Returns:
      true if they all are accessible and have values, false otherwise
    • refreshAllNonUpdatingReferences

      @Deprecated void refreshAllNonUpdatingReferences(PersistableBusinessObject bo)
      Deprecated.
      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.
      Parameters:
      bo - - the businessObject to be refreshed
    • isProxied

      @Deprecated boolean isProxied(Object object)
      Deprecated.
      Determines if the given object is proxied by the ORM or not
      Parameters:
      object - the object to determine if it is a proxy
      Returns:
      true if the object is an ORM proxy; false otherwise
    • isJpaEnabledForKradClass

      @Deprecated boolean isJpaEnabledForKradClass(Class clazz)
      Deprecated.
      Determines if JPA is enabled for the KNS and for the given class
      Parameters:
      clazz - the class to check for JPA enabling of
      Returns:
      true if JPA is enabled for the class, false otherwise