|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.davesag.generica.persistence.jdo.JdoTransaction
The JdoTransaction delegates to an underlying
Transaction.
| Field Summary | |
protected javax.jdo.Transaction |
theTransaction
the Transaction we are delegating to |
| Constructor Summary | |
JdoTransaction()
default constructor |
|
| Method Summary | |
void |
commit()
Tell the undelying JDO Transaction to commit. |
Object |
getDelegate()
Get the JDO Transaction being delegated to. |
boolean |
isActive()
test to see if this transaction is still active. |
void |
rollback()
rollback this transaction. |
void |
setDelegate(Object delegate)
Set the JDO Transaction to delegate to. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected javax.jdo.Transaction theTransaction
| Constructor Detail |
public JdoTransaction()
| Method Detail |
public void setDelegate(Object delegate)
throws ClassCastException
setDelegate in interface Managerdelegate - The JDO Transaction to delegate to.
ClassCastException - if the delegate was not a JDO
PersistenceManager.public Object getDelegate()
getDelegate in interface Manager
public void commit()
throws ArchiveException
commit in interface TransactionArchiveException - if anything jdo related went wrong.
DelegateException - if the underlying transaction has not been
set.
public void rollback()
throws ArchiveException
rollback in interface TransactionArchiveException - if anything jdo related went wrong.
DelegateException - if there was no PersistenceManager to
delegate to.
public boolean isActive()
throws ArchiveException
isActive in interface TransactionArchiveException - if anything went wrong.
DelegateException - if the underlying transaction has not been
set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||