Class PersistableBusinessObjectBase

java.lang.Object
org.kuali.rice.krad.bo.BusinessObjectBase
org.kuali.rice.krad.bo.PersistableBusinessObjectBase
All Implemented Interfaces:
Serializable, org.apache.ojb.broker.PersistenceBrokerAware, GloballyUnique, Versioned, ModelObjectBasic, BusinessObject, PersistableBusinessObject
Direct Known Subclasses:
GlobalBusinessObjectDetailBase, InactivatableFromToImpl, KualiCodeBase, MultipleValueLookupMetadata, PersistableBusinessObjectExtensionBase

@Deprecated @MappedSuperclass public abstract class PersistableBusinessObjectBase extends BusinessObjectBase implements PersistableBusinessObject, org.apache.ojb.broker.PersistenceBrokerAware, Versioned, GloballyUnique
Deprecated.
use new KRAD Data framework DataObjectService. In this framework, data objects are not required to have a superclass and can be POJO's but they can optionally use DataObjectBase to emulate previous functionality.
Author:
Kuali Rice Team (rice.collab@kuali.org)
See Also:
  • Field Details

    • versionNumber

      protected Long versionNumber
      Deprecated.
    • objectId

      protected String objectId
      Deprecated.
    • newCollectionRecord

      protected boolean newCollectionRecord
      Deprecated.
    • extension

      Deprecated.
  • Constructor Details

    • PersistableBusinessObjectBase

      public PersistableBusinessObjectBase()
      Deprecated.
  • Method Details

    • getVersionNumber

      public Long getVersionNumber()
      Deprecated.
      Specified by:
      getVersionNumber in interface Versioned
    • setVersionNumber

      public void setVersionNumber(Long versionNumber)
      Deprecated.
      Description copied from interface: PersistableBusinessObject
      Sets the business object's version number. It is rarely advisable for client code to manually set this value as the framework should generally handle the management of version numbers internally.
      Specified by:
      setVersionNumber in interface PersistableBusinessObject
      Parameters:
      versionNumber - the version number to set on this business object
    • getObjectId

      public String getObjectId()
      Deprecated.
      Specified by:
      getObjectId in interface GloballyUnique
    • setObjectId

      public void setObjectId(String objectId)
      Deprecated.
      Description copied from interface: PersistableBusinessObject
      Sets the unique identifier for the object
      Specified by:
      setObjectId in interface PersistableBusinessObject
      Parameters:
      objectId -
    • isNewCollectionRecord

      public boolean isNewCollectionRecord()
      Deprecated.
      Gets the newCollectionRecord attribute.
      Specified by:
      isNewCollectionRecord in interface PersistableBusinessObject
      Returns:
      Returns the newCollectionRecord.
    • setNewCollectionRecord

      public void setNewCollectionRecord(boolean isNewCollectionRecord)
      Deprecated.
      Sets the newCollectionRecord attribute value.
      Specified by:
      setNewCollectionRecord in interface PersistableBusinessObject
      Parameters:
      isNewCollectionRecord - The newCollectionRecord to set.
    • afterDelete

      public final void afterDelete(org.apache.ojb.broker.PersistenceBroker persistenceBroker) throws org.apache.ojb.broker.PersistenceBrokerException
      Deprecated.
      Implementation of the OJB afterDelete hook which delegates to postRemove(). This method is final because it is recommended that sub-classes override and implement postRemove if they need to take advantage of this persistence hook.
      Specified by:
      afterDelete in interface org.apache.ojb.broker.PersistenceBrokerAware
      Throws:
      org.apache.ojb.broker.PersistenceBrokerException
      See Also:
      • PersistenceBrokerAware.afterDelete(org.apache.ojb.broker.PersistenceBroker)
    • postRemove

      protected void postRemove()
      Deprecated.
      Default implementation of the JPA PostRemove hook. This implementation currently does nothing, however sub-classes can override and implement this method if needed.

      This method is currently invoked by the corresponding OJB afterDelete(PersistenceBroker) hook.

    • afterInsert

      public final void afterInsert(org.apache.ojb.broker.PersistenceBroker persistenceBroker) throws org.apache.ojb.broker.PersistenceBrokerException
      Deprecated.
      Implementation of the OJB afterInsert hook which delegates to postPersist(). This method is final because it is recommended that sub-classes override and implement postPersist if they need to take advantage of this persistence hook.
      Specified by:
      afterInsert in interface org.apache.ojb.broker.PersistenceBrokerAware
      Throws:
      org.apache.ojb.broker.PersistenceBrokerException
      See Also:
      • PersistenceBrokerAware.afterInsert(org.apache.ojb.broker.PersistenceBroker)
    • postPersist

      protected void postPersist()
      Deprecated.
      Default implementation of the JPA PostPersist hook. This implementation currently does nothing, however sub-classes can override and implement this method if needed.

      This method is currently invoked by the corresponding OJB afterInsert(PersistenceBroker) hook.

    • afterLookup

      public final void afterLookup(org.apache.ojb.broker.PersistenceBroker persistenceBroker) throws org.apache.ojb.broker.PersistenceBrokerException
      Deprecated.
      Implementation of the OJB afterLookup hook which delegates to postLoad(). This method is final because it is recommended that sub-classes override and implement postLoad if they need to take advantage of this persistence hook.
      Specified by:
      afterLookup in interface org.apache.ojb.broker.PersistenceBrokerAware
      Throws:
      org.apache.ojb.broker.PersistenceBrokerException
      See Also:
      • PersistenceBrokerAware.afterLookup(org.apache.ojb.broker.PersistenceBroker)
    • postLoad

      protected void postLoad()
      Deprecated.
      Default implementation of the JPA PostLoad hook. This implementation currently does nothing, however sub-classes can override and implement this method if needed.

      This method is currently invoked by the corresponding OJB afterLookup(PersistenceBroker) hook.

    • afterUpdate

      public final void afterUpdate(org.apache.ojb.broker.PersistenceBroker persistenceBroker) throws org.apache.ojb.broker.PersistenceBrokerException
      Deprecated.
      Implementation of the OJB afterUpdate hook which delegates to postUpdate(). This method is final because it is recommended that sub-classes override and implement postUpdate if they need to take advantage of this persistence hook.
      Specified by:
      afterUpdate in interface org.apache.ojb.broker.PersistenceBrokerAware
      Throws:
      org.apache.ojb.broker.PersistenceBrokerException
      See Also:
      • PersistenceBrokerAware.afterUpdate(org.apache.ojb.broker.PersistenceBroker)
    • postUpdate

      protected void postUpdate()
      Deprecated.
      Default implementation of the JPA PostUpdate hook. This implementation currently does nothing, however sub-classes can override and implement this method if needed.

      This method is currently invoked by the corresponding OJB afterUpdate(PersistenceBroker) hook.

    • beforeDelete

      public final void beforeDelete(org.apache.ojb.broker.PersistenceBroker persistenceBroker) throws org.apache.ojb.broker.PersistenceBrokerException
      Deprecated.
      Implementation of the OJB beforeDelete hook which delegates to preRemove(). This method is final because it is recommended that sub-classes override and implement preRemove if they need to take advantage of this persistence hook.
      Specified by:
      beforeDelete in interface org.apache.ojb.broker.PersistenceBrokerAware
      Throws:
      org.apache.ojb.broker.PersistenceBrokerException
      See Also:
      • PersistenceBrokerAware.beforeDelete(org.apache.ojb.broker.PersistenceBroker)
    • preRemove

      protected void preRemove()
      Deprecated.
      Default implementation of the JPA PreRemove hook. This implementation currently does nothing, however sub-classes can implement this method if needed.

      This method is currently invoked by the corresponding OJB beforeDelete(PersistenceBroker) hook.

    • beforeInsert

      public final void beforeInsert(org.apache.ojb.broker.PersistenceBroker persistenceBroker) throws org.apache.ojb.broker.PersistenceBrokerException
      Deprecated.
      Implementation of the OJB beforeInsert hook which delegates to prePersist(). This method is final because it is recommended that sub-classes override and implement prePersist if they need to take advantage of this persistence hook.
      Specified by:
      beforeInsert in interface org.apache.ojb.broker.PersistenceBrokerAware
      Throws:
      org.apache.ojb.broker.PersistenceBrokerException
      See Also:
      • PersistenceBrokerAware.beforeInsert(org.apache.ojb.broker.PersistenceBroker)
    • prePersist

      protected void prePersist()
      Deprecated.
      Default implementation of the JPA PrePersist hook which generates the unique objectId for this persistable business object if it does not already have one. Any sub-class which overrides this method should take care to invoke super.prePersist to ensure that the objectId for this persistable business object is generated properly.

      This method is currently invoked by the corresponding OJB beforeInsert(PersistenceBroker) hook.

    • beforeUpdate

      public final void beforeUpdate(org.apache.ojb.broker.PersistenceBroker persistenceBroker) throws org.apache.ojb.broker.PersistenceBrokerException
      Deprecated.
      Implementation of the OJB beforeUpdate hook which delegates to preUpdate(). This method is final because it is recommended that sub-classes override and implement preUpdate if they need to take advantage of this persistence hook.
      Specified by:
      beforeUpdate in interface org.apache.ojb.broker.PersistenceBrokerAware
      Throws:
      org.apache.ojb.broker.PersistenceBrokerException
      See Also:
      • PersistenceBrokerAware.beforeUpdate(org.apache.ojb.broker.PersistenceBroker)
    • preUpdate

      protected void preUpdate()
      Deprecated.
      Default implementation of the JPA PreUpdate hook which generates the unique objectId for this persistable business object if it does not already have one. Any sub-class which overrides this method should take care to invoke super.preUpdate to ensure that the objectId for this persistable business object is generated properly.

      This method is currently invoked by the corresponding OJB beforeUpdate(PersistenceBroker) hook.

    • refresh

      public void refresh()
      Deprecated.
      getService Refreshes the reference objects from the primitive values.
      Specified by:
      refresh in interface BusinessObject
      See Also:
    • refreshNonUpdateableReferences

      public void refreshNonUpdateableReferences()
      Deprecated.
      Specified by:
      refreshNonUpdateableReferences in interface PersistableBusinessObject
      See Also:
    • refreshReferenceObject

      public void refreshReferenceObject(String referenceObjectName)
      Deprecated.
      Description copied from interface: PersistableBusinessObject
      This method is used to refresh a reference object that hangs off of a document. For example, if the attribute's keys were updated for a reference object, but the reference object wasn't, this method would go out and retrieve the reference object.
      Specified by:
      refreshReferenceObject in interface PersistableBusinessObject
      Parameters:
      referenceObjectName -
    • buildListOfDeletionAwareLists

      public List<Collection<PersistableBusinessObject>> buildListOfDeletionAwareLists()
      Deprecated.
      Description copied from interface: PersistableBusinessObject
      If this method is not implemented appropriately for PersistableBusinessObject with collections, then PersistableBusinessObject with collections will not persist deletions correctly. Elements that have been deleted will reappear in the DB after retrieval.
      Specified by:
      buildListOfDeletionAwareLists in interface PersistableBusinessObject
      Returns:
      List of collections which need to be monitored for changes by OJB
    • linkEditableUserFields

      public void linkEditableUserFields()
      Deprecated.
      Description copied from interface: PersistableBusinessObject
      Hook to link in any editable user fields.
      Specified by:
      linkEditableUserFields in interface PersistableBusinessObject
    • getExtension

      public PersistableBusinessObjectExtension getExtension()
      Deprecated.
      Specified by:
      getExtension in interface PersistableBusinessObject
    • setExtension

      public void setExtension(PersistableBusinessObjectExtension extension)
      Deprecated.
      Specified by:
      setExtension in interface PersistableBusinessObject
    • getLegacyDataAdapter

      @Deprecated protected static LegacyAppFrameworkAdapterService getLegacyDataAdapter()
      Deprecated.
      application code should never use this! Always use KRAD code directly.
      Returns the legacy data adapter for handling legacy KNS and KRAD data and metadata.
      Returns:
      the legacy data adapter