Package org.kuali.rice.krad.bo
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,org.kuali.rice.core.api.mo.common.GloballyUnique,org.kuali.rice.core.api.mo.common.Versioned,org.kuali.rice.core.api.mo.ModelObjectBasic,org.kuali.rice.krad.bo.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, org.kuali.rice.core.api.mo.common.Versioned, org.kuali.rice.core.api.mo.common.GloballyUnique
Deprecated.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected PersistableBusinessObjectExtensionDeprecated.protected booleanDeprecated.protected StringDeprecated.protected LongDeprecated. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidafterDelete(org.apache.ojb.broker.PersistenceBroker persistenceBroker) Deprecated.Implementation of the OJB afterDelete hook which delegates topostRemove().final voidafterInsert(org.apache.ojb.broker.PersistenceBroker persistenceBroker) Deprecated.Implementation of the OJB afterInsert hook which delegates topostPersist().final voidafterLookup(org.apache.ojb.broker.PersistenceBroker persistenceBroker) Deprecated.Implementation of the OJB afterLookup hook which delegates topostLoad().final voidafterUpdate(org.apache.ojb.broker.PersistenceBroker persistenceBroker) Deprecated.Implementation of the OJB afterUpdate hook which delegates topostUpdate().final voidbeforeDelete(org.apache.ojb.broker.PersistenceBroker persistenceBroker) Deprecated.Implementation of the OJB beforeDelete hook which delegates topreRemove().final voidbeforeInsert(org.apache.ojb.broker.PersistenceBroker persistenceBroker) Deprecated.Implementation of the OJB beforeInsert hook which delegates toprePersist().final voidbeforeUpdate(org.apache.ojb.broker.PersistenceBroker persistenceBroker) Deprecated.Implementation of the OJB beforeUpdate hook which delegates topreUpdate().Deprecated.If this method is not implemented appropriately for PersistableBusinessObject with collections, then PersistableBusinessObject with collections will not persist deletions correctly.Deprecated.protected static LegacyAppFrameworkAdapterServiceDeprecated.application code should never use this!Deprecated.Deprecated.booleanDeprecated.Gets the newCollectionRecord attribute.voidDeprecated.Hook to link in any editable user fields.protected voidpostLoad()Deprecated.Default implementation of the JPAPostLoadhook.protected voidDeprecated.Default implementation of the JPAPostPersisthook.protected voidDeprecated.Default implementation of the JPAPostRemovehook.protected voidDeprecated.Default implementation of the JPAPostUpdatehook.protected voidDeprecated.Default implementation of the JPAPrePersisthook which generates the unique objectId for this persistable business object if it does not already have one.protected voidDeprecated.Default implementation of the JPAPreRemovehook.protected voidDeprecated.Default implementation of the JPAPreUpdatehook which generates the unique objectId for this persistable business object if it does not already have one.voidrefresh()Deprecated.getService Refreshes the reference objects from the primitive values.voidDeprecated.voidrefreshReferenceObject(String referenceObjectName) Deprecated.This method is used to refresh a reference object that hangs off of a document.voidsetExtension(PersistableBusinessObjectExtension extension) Deprecated.voidsetNewCollectionRecord(boolean isNewCollectionRecord) Deprecated.Sets the newCollectionRecord attribute value.voidsetObjectId(String objectId) Deprecated.Sets the unique identifier for the objectvoidsetVersionNumber(Long versionNumber) Deprecated.Sets the business object's version number.Methods inherited from class org.kuali.rice.krad.bo.BusinessObjectBase
toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.kuali.rice.core.api.mo.ModelObjectBasic
toString
-
Field Details
-
versionNumber
Deprecated. -
objectId
Deprecated. -
newCollectionRecord
protected boolean newCollectionRecordDeprecated. -
extension
Deprecated.
-
-
Constructor Details
-
PersistableBusinessObjectBase
public PersistableBusinessObjectBase()Deprecated.
-
-
Method Details
-
getVersionNumber
Deprecated.- Specified by:
getVersionNumberin interfaceorg.kuali.rice.core.api.mo.common.Versioned
-
setVersionNumber
Deprecated.Description copied from interface:PersistableBusinessObjectSets 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:
setVersionNumberin interfacePersistableBusinessObject- Parameters:
versionNumber- the version number to set on this business object
-
getObjectId
Deprecated.- Specified by:
getObjectIdin interfaceorg.kuali.rice.core.api.mo.common.GloballyUnique
-
setObjectId
Deprecated.Description copied from interface:PersistableBusinessObjectSets the unique identifier for the object- Specified by:
setObjectIdin interfacePersistableBusinessObject- Parameters:
objectId-
-
isNewCollectionRecord
public boolean isNewCollectionRecord()Deprecated.Gets the newCollectionRecord attribute.- Specified by:
isNewCollectionRecordin interfacePersistableBusinessObject- Returns:
- Returns the newCollectionRecord.
-
setNewCollectionRecord
public void setNewCollectionRecord(boolean isNewCollectionRecord) Deprecated.Sets the newCollectionRecord attribute value.- Specified by:
setNewCollectionRecordin interfacePersistableBusinessObject- 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 topostRemove(). 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:
afterDeletein interfaceorg.apache.ojb.broker.PersistenceBrokerAware- Throws:
org.apache.ojb.broker.PersistenceBrokerException- See Also:
-
postRemove
protected void postRemove()Deprecated.Default implementation of the JPAPostRemovehook. 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 topostPersist(). 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:
afterInsertin interfaceorg.apache.ojb.broker.PersistenceBrokerAware- Throws:
org.apache.ojb.broker.PersistenceBrokerException- See Also:
-
postPersist
protected void postPersist()Deprecated.Default implementation of the JPAPostPersisthook. 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 topostLoad(). 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:
afterLookupin interfaceorg.apache.ojb.broker.PersistenceBrokerAware- Throws:
org.apache.ojb.broker.PersistenceBrokerException- See Also:
-
postLoad
protected void postLoad()Deprecated.Default implementation of the JPAPostLoadhook. 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 topostUpdate(). 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:
afterUpdatein interfaceorg.apache.ojb.broker.PersistenceBrokerAware- Throws:
org.apache.ojb.broker.PersistenceBrokerException- See Also:
-
postUpdate
protected void postUpdate()Deprecated.Default implementation of the JPAPostUpdatehook. 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 topreRemove(). 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:
beforeDeletein interfaceorg.apache.ojb.broker.PersistenceBrokerAware- Throws:
org.apache.ojb.broker.PersistenceBrokerException- See Also:
-
preRemove
protected void preRemove()Deprecated.Default implementation of the JPAPreRemovehook. 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 toprePersist(). 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:
beforeInsertin interfaceorg.apache.ojb.broker.PersistenceBrokerAware- Throws:
org.apache.ojb.broker.PersistenceBrokerException- See Also:
-
prePersist
protected void prePersist()Deprecated.Default implementation of the JPAPrePersisthook 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 topreUpdate(). 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:
beforeUpdatein interfaceorg.apache.ojb.broker.PersistenceBrokerAware- Throws:
org.apache.ojb.broker.PersistenceBrokerException- See Also:
-
preUpdate
protected void preUpdate()Deprecated.Default implementation of the JPAPreUpdatehook 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:
refreshin interfaceorg.kuali.rice.krad.bo.BusinessObject- See Also:
-
refreshNonUpdateableReferences
public void refreshNonUpdateableReferences()Deprecated.- Specified by:
refreshNonUpdateableReferencesin interfacePersistableBusinessObject- See Also:
-
refreshReferenceObject
Deprecated.Description copied from interface:PersistableBusinessObjectThis 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:
refreshReferenceObjectin interfacePersistableBusinessObject- Parameters:
referenceObjectName-
-
buildListOfDeletionAwareLists
Deprecated.Description copied from interface:PersistableBusinessObjectIf 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:
buildListOfDeletionAwareListsin interfacePersistableBusinessObject- Returns:
- List of collections which need to be monitored for changes by OJB
-
linkEditableUserFields
public void linkEditableUserFields()Deprecated.Description copied from interface:PersistableBusinessObjectHook to link in any editable user fields.- Specified by:
linkEditableUserFieldsin interfacePersistableBusinessObject
-
getExtension
Deprecated.- Specified by:
getExtensionin interfacePersistableBusinessObject
-
setExtension
Deprecated.- Specified by:
setExtensionin interfacePersistableBusinessObject
-
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
-
DataObjectService. In this framework, data objects are not required to have a superclass and can be POJO's but they can optionally useDataObjectBaseto emulate previous functionality.