|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--stomp.jdo.TransactionWrapper
wraps a JDO Transaction object, preventing any developer attempts to begin or commit the transaction. Alternatively named methods which accomplish this effect are provided, to allow for JDOFactory transaction management which is transparent to the developer. works in conjunction with the HCMPersistenceMananger.
Constructor Summary | |
TransactionWrapper(PMWrapper pm)
|
Method Summary | |
void |
begin()
|
void |
commit()
|
protected void |
fixState(java.lang.Object object)
called when the PM for a transactional object is closed. |
boolean |
getNontransactionalRead()
|
boolean |
getNontransactionalWrite()
|
boolean |
getOptimistic()
|
javax.jdo.PersistenceManager |
getPersistenceManager()
|
boolean |
getRestoreValues()
|
boolean |
getRetainValues()
|
javax.transaction.Synchronization |
getSynchronization()
|
boolean |
isActive()
|
void |
reallyBegin()
For transparent transactional control only. |
boolean |
reallyCommit()
For transparent transactional control only. |
void |
rollback()
rollback the current transaction. |
void |
setNontransactionalRead(boolean nontransactionalRead)
|
void |
setNontransactionalWrite(boolean nontransactionalWrite)
|
void |
setOptimistic(boolean optimistic)
|
void |
setRestoreValues(boolean restore)
|
void |
setRetainValues(boolean retainValues)
|
void |
setSynchronization(javax.transaction.Synchronization sync)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TransactionWrapper(PMWrapper pm)
Method Detail |
public void begin()
begin
in interface javax.jdo.Transaction
public void reallyBegin()
public void commit()
commit
in interface javax.jdo.Transaction
public boolean reallyCommit()
protected void fixState(java.lang.Object object)
public boolean getNontransactionalRead()
getNontransactionalRead
in interface javax.jdo.Transaction
public boolean getNontransactionalWrite()
getNontransactionalWrite
in interface javax.jdo.Transaction
public boolean getOptimistic()
getOptimistic
in interface javax.jdo.Transaction
public javax.jdo.PersistenceManager getPersistenceManager()
getPersistenceManager
in interface javax.jdo.Transaction
public boolean getRetainValues()
getRetainValues
in interface javax.jdo.Transaction
public javax.transaction.Synchronization getSynchronization()
getSynchronization
in interface javax.jdo.Transaction
public boolean isActive()
isActive
in interface javax.jdo.Transaction
public void rollback()
rollback
in interface javax.jdo.Transaction
public void setNontransactionalRead(boolean nontransactionalRead)
setNontransactionalRead
in interface javax.jdo.Transaction
public void setNontransactionalWrite(boolean nontransactionalWrite)
setNontransactionalWrite
in interface javax.jdo.Transaction
public void setOptimistic(boolean optimistic)
setOptimistic
in interface javax.jdo.Transaction
public void setRetainValues(boolean retainValues)
setRetainValues
in interface javax.jdo.Transaction
public void setSynchronization(javax.transaction.Synchronization sync)
setSynchronization
in interface javax.jdo.Transaction
public void setRestoreValues(boolean restore)
setRestoreValues
in interface javax.jdo.Transaction
public boolean getRestoreValues()
getRestoreValues
in interface javax.jdo.Transaction
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |