|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ojb.server.ObjectTransactionWrapper
Class declaration
Constructor Summary | |
ObjectTransactionWrapper(java.lang.Object obj)
Create a wrapper by providing an Object. |
Method Summary | |
void |
abort()
abort method comment. |
void |
afterAbort()
Method declaration |
void |
afterCommit()
Method declaration |
void |
beforeAbort()
Method declaration |
void |
beforeCommit()
We need to implement the Two-Phase Commit protocol. beginCommit is where we say if we can or cannot commit the transaction. |
void |
commit()
commit method comment. |
ModificationState |
getModificationState()
returns the Modification-state. |
java.lang.Object |
getObject()
Simple maintenance methods. |
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 |
needsInsert()
returns true if the underlying Object needs an INSERT statement. |
boolean |
needsUpdate()
returns true if the underlying Object needs an UPDATE statement. |
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 |
|
Constructor Detail |
public ObjectTransactionWrapper(java.lang.Object obj)
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 void abort()
public void commit()
public ModificationState getModificationState()
public boolean needsInsert()
needsInsert
in interface ObjectModification
public boolean needsUpdate()
needsUpdate
in interface ObjectModification
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: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |