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.@Deprecated @MappedSuperclass public abstract class PersistableBusinessObjectBase extends BusinessObjectBase implements PersistableBusinessObject, org.apache.ojb.broker.PersistenceBrokerAware, Versioned, GloballyUnique
Modifier and Type | Field and Description |
---|---|
protected PersistableBusinessObjectExtension |
extension
Deprecated.
|
protected boolean |
newCollectionRecord
Deprecated.
|
protected String |
objectId
Deprecated.
|
protected Long |
versionNumber
Deprecated.
|
Constructor and Description |
---|
PersistableBusinessObjectBase()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
afterDelete(org.apache.ojb.broker.PersistenceBroker persistenceBroker)
Deprecated.
Implementation of the OJB afterDelete hook which delegates to
postRemove() . |
void |
afterInsert(org.apache.ojb.broker.PersistenceBroker persistenceBroker)
Deprecated.
Implementation of the OJB afterInsert hook which delegates to
postPersist() . |
void |
afterLookup(org.apache.ojb.broker.PersistenceBroker persistenceBroker)
Deprecated.
Implementation of the OJB afterLookup hook which delegates to
postLoad() . |
void |
afterUpdate(org.apache.ojb.broker.PersistenceBroker persistenceBroker)
Deprecated.
Implementation of the OJB afterUpdate hook which delegates to
postUpdate() . |
void |
beforeDelete(org.apache.ojb.broker.PersistenceBroker persistenceBroker)
Deprecated.
Implementation of the OJB beforeDelete hook which delegates to
preRemove() . |
void |
beforeInsert(org.apache.ojb.broker.PersistenceBroker persistenceBroker)
Deprecated.
Implementation of the OJB beforeInsert hook which delegates to
prePersist() . |
void |
beforeUpdate(org.apache.ojb.broker.PersistenceBroker persistenceBroker)
Deprecated.
Implementation of the OJB beforeUpdate hook which delegates to
preUpdate() . |
List<Collection<PersistableBusinessObject>> |
buildListOfDeletionAwareLists()
Deprecated.
If this method is not implemented appropriately for PersistableBusinessObject with collections, then PersistableBusinessObject with collections will not persist deletions correctly.
|
PersistableBusinessObjectExtension |
getExtension()
Deprecated.
|
protected static LegacyAppFrameworkAdapterService |
getLegacyDataAdapter()
Deprecated.
application code should never use this! Always use KRAD code directly.
|
String |
getObjectId()
Deprecated.
Return the globally unique object id of this object.
|
Long |
getVersionNumber()
Deprecated.
Returns the version number for this object.
|
boolean |
isNewCollectionRecord()
Deprecated.
Gets the newCollectionRecord attribute.
|
void |
linkEditableUserFields()
Deprecated.
Hook to link in any editable user fields.
|
protected void |
postLoad()
Deprecated.
Default implementation of the JPA
PostLoad hook. |
protected void |
postPersist()
Deprecated.
Default implementation of the JPA
PostPersist hook. |
protected void |
postRemove()
Deprecated.
Default implementation of the JPA
PostRemove hook. |
protected void |
postUpdate()
Deprecated.
Default implementation of the JPA
PostUpdate hook. |
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. |
protected void |
preRemove()
Deprecated.
Default implementation of the JPA
PreRemove hook. |
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. |
void |
refresh()
Deprecated.
getService Refreshes the reference objects from the primitive values.
|
void |
refreshNonUpdateableReferences()
Deprecated.
|
void |
refreshReferenceObject(String referenceObjectName)
Deprecated.
This method is used to refresh a reference object that hangs off of a document.
|
void |
setExtension(PersistableBusinessObjectExtension extension)
Deprecated.
|
void |
setNewCollectionRecord(boolean isNewCollectionRecord)
Deprecated.
Sets the newCollectionRecord attribute value.
|
void |
setObjectId(String objectId)
Deprecated.
Sets the unique identifier for the object
|
void |
setVersionNumber(Long versionNumber)
Deprecated.
Sets the business object's version number.
|
toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
toString
protected Long versionNumber
protected boolean newCollectionRecord
protected PersistableBusinessObjectExtension extension
public PersistableBusinessObjectBase()
public Long getVersionNumber()
Versioned
getVersionNumber
in interface Versioned
public void setVersionNumber(Long versionNumber)
PersistableBusinessObject
setVersionNumber
in interface PersistableBusinessObject
versionNumber
- the version number to set on this business objectpublic String getObjectId()
GloballyUnique
getObjectId
in interface GloballyUnique
public void setObjectId(String objectId)
PersistableBusinessObject
setObjectId
in interface PersistableBusinessObject
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
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
public void linkEditableUserFields()
PersistableBusinessObject
linkEditableUserFields
in interface PersistableBusinessObject
public PersistableBusinessObjectExtension getExtension()
getExtension
in interface PersistableBusinessObject
public void setExtension(PersistableBusinessObjectExtension extension)
setExtension
in interface PersistableBusinessObject
@Deprecated protected static LegacyAppFrameworkAdapterService getLegacyDataAdapter()
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.