|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.krad.bo.BusinessObjectBase org.kuali.rice.krad.bo.PersistableBusinessObjectBase
@MappedSuperclass public abstract class PersistableBusinessObjectBase
Field Summary | |
---|---|
protected PersistableBusinessObjectExtension |
extension
|
protected Long |
versionNumber
|
Constructor Summary | |
---|---|
PersistableBusinessObjectBase()
|
Method Summary | |
---|---|
void |
afterDelete(org.apache.ojb.broker.PersistenceBroker persistenceBroker)
Implementation of the OJB afterDelete hook which delegates to postRemove() . |
void |
afterInsert(org.apache.ojb.broker.PersistenceBroker persistenceBroker)
Implementation of the OJB afterInsert hook which delegates to postPersist() . |
void |
afterLookup(org.apache.ojb.broker.PersistenceBroker persistenceBroker)
Implementation of the OJB afterLookup hook which delegates to postLoad() . |
void |
afterUpdate(org.apache.ojb.broker.PersistenceBroker persistenceBroker)
Implementation of the OJB afterUpdate hook which delegates to postUpdate() . |
void |
beforeDelete(org.apache.ojb.broker.PersistenceBroker persistenceBroker)
Implementation of the OJB beforeDelete hook which delegates to preRemove() . |
void |
beforeInsert(org.apache.ojb.broker.PersistenceBroker persistenceBroker)
Implementation of the OJB beforeInsert hook which delegates to prePersist() . |
void |
beforeUpdate(org.apache.ojb.broker.PersistenceBroker persistenceBroker)
Implementation of the OJB beforeUpdate hook which delegates to preUpdate() . |
List<Collection<PersistableBusinessObject>> |
buildListOfDeletionAwareLists()
If this method is not implemented appropriately for PersistableBusinessObject with collections, then PersistableBusinessObject with collections will not persist deletions correctly. |
PersistableBusinessObjectExtension |
getExtension()
|
String |
getObjectId()
getter for the guid based object id that is assignable to all objects, in order to support custom attributes a mapping must also be added to the OJB file and a column must be added to the database for each business object that extension attributes are supposed to work on. |
protected static PersistenceService |
getPersistenceService()
|
protected static PersistenceStructureService |
getPersistenceStructureService()
|
Long |
getVersionNumber()
Returns the version number for this object. |
boolean |
isNewCollectionRecord()
Gets the newCollectionRecord attribute. |
void |
linkEditableUserFields()
Hook to link in any editable user fields. |
protected void |
postLoad()
Default implementation of the JPA PostLoad hook. |
protected void |
postPersist()
Default implementation of the JPA PostPersist hook. |
protected void |
postRemove()
Default implementation of the JPA PostRemove hook. |
protected void |
postUpdate()
Default implementation of the JPA PostUpdate hook. |
protected void |
prePersist()
Default implementation of the JPA PrePersist hook which generates the unique objectId for this
persistable business object if it does not already have one. |
protected void |
preRemove()
Default implementation of the JPA PreRemove hook. |
protected void |
preUpdate()
Default implementation of the JPA PreUpdate hook which generates the unique objectId for this
persistable business object if it does not already have one. |
void |
refresh()
getService Refreshes the reference objects from the primitive values. |
void |
refreshNonUpdateableReferences()
|
void |
refreshReferenceObject(String referenceObjectName)
This method is used to refresh a reference object that hangs off of a document. |
void |
setExtension(PersistableBusinessObjectExtension extension)
|
void |
setNewCollectionRecord(boolean isNewCollectionRecord)
Sets the newCollectionRecord attribute value. |
void |
setObjectId(String objectId)
setter for the guid based object id that is assignable to all objects, in order to support custom attributes a mapping must also be added to the OJB file and column must be added to the database for each business object that extension attributes are supposed to work on. |
void |
setVersionNumber(Long versionNumber)
Sets the business object's version number. |
Methods inherited from class org.kuali.rice.krad.bo.BusinessObjectBase |
---|
toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.kuali.rice.core.api.mo.ModelObjectBasic |
---|
toString |
Field Detail |
---|
protected Long versionNumber
protected PersistableBusinessObjectExtension extension
Constructor Detail |
---|
public PersistableBusinessObjectBase()
Method Detail |
---|
public Long getVersionNumber()
Versioned
getVersionNumber
in interface Versioned
Versioned.getVersionNumber()
public void setVersionNumber(Long versionNumber)
PersistableBusinessObject
setVersionNumber
in interface PersistableBusinessObject
versionNumber
- the version number to set on this business objectVersioned.getVersionNumber()
public String getObjectId()
getObjectId
in interface GloballyUnique
public void setObjectId(String objectId)
setObjectId
in interface PersistableBusinessObject
objectId
- public boolean isNewCollectionRecord()
isNewCollectionRecord
in interface PersistableBusinessObject
public void setNewCollectionRecord(boolean isNewCollectionRecord)
setNewCollectionRecord
in interface PersistableBusinessObject
isNewCollectionRecord
- The newCollectionRecord to set.public final void afterDelete(org.apache.ojb.broker.PersistenceBroker persistenceBroker) throws org.apache.ojb.broker.PersistenceBrokerException
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.
afterDelete
in interface org.apache.ojb.broker.PersistenceBrokerAware
org.apache.ojb.broker.PersistenceBrokerException
PersistenceBrokerAware.afterDelete(org.apache.ojb.broker.PersistenceBroker)
protected void postRemove()
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.
public final void afterInsert(org.apache.ojb.broker.PersistenceBroker persistenceBroker) throws org.apache.ojb.broker.PersistenceBrokerException
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.
afterInsert
in interface org.apache.ojb.broker.PersistenceBrokerAware
org.apache.ojb.broker.PersistenceBrokerException
PersistenceBrokerAware.afterInsert(org.apache.ojb.broker.PersistenceBroker)
protected void postPersist()
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.
public final void afterLookup(org.apache.ojb.broker.PersistenceBroker persistenceBroker) throws org.apache.ojb.broker.PersistenceBrokerException
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.
afterLookup
in interface org.apache.ojb.broker.PersistenceBrokerAware
org.apache.ojb.broker.PersistenceBrokerException
PersistenceBrokerAware.afterLookup(org.apache.ojb.broker.PersistenceBroker)
protected void postLoad()
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.
public final void afterUpdate(org.apache.ojb.broker.PersistenceBroker persistenceBroker) throws org.apache.ojb.broker.PersistenceBrokerException
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.
afterUpdate
in interface org.apache.ojb.broker.PersistenceBrokerAware
org.apache.ojb.broker.PersistenceBrokerException
PersistenceBrokerAware.afterUpdate(org.apache.ojb.broker.PersistenceBroker)
protected void postUpdate()
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.
public final void beforeDelete(org.apache.ojb.broker.PersistenceBroker persistenceBroker) throws org.apache.ojb.broker.PersistenceBrokerException
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.
beforeDelete
in interface org.apache.ojb.broker.PersistenceBrokerAware
org.apache.ojb.broker.PersistenceBrokerException
PersistenceBrokerAware.beforeDelete(org.apache.ojb.broker.PersistenceBroker)
protected void preRemove()
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.
public final void beforeInsert(org.apache.ojb.broker.PersistenceBroker persistenceBroker) throws org.apache.ojb.broker.PersistenceBrokerException
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.
beforeInsert
in interface org.apache.ojb.broker.PersistenceBrokerAware
org.apache.ojb.broker.PersistenceBrokerException
PersistenceBrokerAware.beforeInsert(org.apache.ojb.broker.PersistenceBroker)
protected void prePersist()
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.
public final void beforeUpdate(org.apache.ojb.broker.PersistenceBroker persistenceBroker) throws org.apache.ojb.broker.PersistenceBrokerException
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.
beforeUpdate
in interface org.apache.ojb.broker.PersistenceBrokerAware
org.apache.ojb.broker.PersistenceBrokerException
PersistenceBrokerAware.beforeUpdate(org.apache.ojb.broker.PersistenceBroker)
protected void preUpdate()
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.
public void refresh()
refresh
in interface BusinessObject
org.kuali.rice.kns.bo.BusinessObject#refresh()
public void refreshNonUpdateableReferences()
refreshNonUpdateableReferences
in interface PersistableBusinessObject
BusinessObject.refresh()
public void refreshReferenceObject(String referenceObjectName)
PersistableBusinessObject
refreshReferenceObject
in interface PersistableBusinessObject
public List<Collection<PersistableBusinessObject>> buildListOfDeletionAwareLists()
PersistableBusinessObject
buildListOfDeletionAwareLists
in interface PersistableBusinessObject
PersistableBusinessObject.buildListOfDeletionAwareLists()
public void linkEditableUserFields()
PersistableBusinessObject
linkEditableUserFields
in interface PersistableBusinessObject
public PersistableBusinessObjectExtension getExtension()
getExtension
in interface PersistableBusinessObject
public void setExtension(PersistableBusinessObjectExtension extension)
setExtension
in interface PersistableBusinessObject
protected static PersistenceService getPersistenceService()
protected static PersistenceStructureService getPersistenceStructureService()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |