|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ojb.odmg.ObjectEnvelope
ObjectEnvelope is used during ODMG transactions as a wrapper for a persistent objects declaration
Constructor Summary | |
ObjectEnvelope(java.lang.Object obj,
TransactionImpl aTx)
Create a wrapper by providing an Object. |
Method Summary | |
void |
afterAbort()
Method declaration |
void |
afterCommit()
Method declaration |
void |
beforeAbort()
Method declaration |
void |
beforeCommit()
We need to implement the Two-Phase Commit protocol. |
ModificationState |
getModificationState()
returns the Modification-state. |
java.lang.Object |
getObject()
returns the managed object. |
boolean |
hasChanged()
checks whether object and internal clone differ and returns true if so, returns false else. |
void |
manage(java.lang.Object obj)
Manage an object. |
boolean |
needsDelete()
returns true if the underlying Object needs an UPDATE statement, else returns false. |
boolean |
needsInsert()
returns true if the underlying Object needs an INSERT statement, else returns false. |
boolean |
needsUpdate()
returns true if the underlying Object needs an UPDATE statement, else returns false. |
void |
setModificationState(ModificationState newModificationState)
set the Modification state to a new value. |
java.lang.String |
toString()
returns a String representation. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ObjectEnvelope(java.lang.Object obj, TransactionImpl aTx)
Method Detail |
public void manage(java.lang.Object obj)
public java.lang.Object getObject()
public void beforeCommit()
public void afterCommit()
public void beforeAbort()
public void afterAbort()
public ModificationState getModificationState()
public boolean needsInsert()
needsInsert
in interface ObjectModification
public boolean needsUpdate()
needsUpdate
in interface ObjectModification
public boolean needsDelete()
public void setModificationState(ModificationState newModificationState)
newModificationState
- ojb.server.states.ModificationStatepublic java.lang.String toString()
toString
in class java.lang.Object
public boolean hasChanged()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |