|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.davesag.generica.persistence.hibernate.HibernateTransaction
The HibernateTransaction delegates to an underlying Hibernate
Transaction.
| Field Summary | |
protected Transaction |
theTransaction
the Transaction we are delegating to |
| Constructor Summary | |
HibernateTransaction()
default constructor |
|
| Method Summary | |
void |
commit()
commit this transaction. |
Object |
getDelegate()
Get the object to delegate to. |
boolean |
isActive()
test to see if this transaction is still active. |
void |
rollback()
rollback this transaction. |
void |
setDelegate(Object delegate)
Set the Hibernate 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 Transaction theTransaction
| Constructor Detail |
public HibernateTransaction()
| Method Detail |
public void setDelegate(Object delegate)
throws ClassCastException
setDelegate in interface Managerdelegate - The Hibernate Transaction to delegate to.
ClassCastException - if the delegate was not a Hibernate
Transaction.public Object getDelegate()
getDelegate in interface Manager
public void commit()
throws ArchiveException
commit in interface TransactionArchiveException - if anything else went wrong.
DelegateException - if the underlying transaction has not been
set.
public void rollback()
throws ArchiveException
rollback in interface TransactionArchiveException - if anything went wrong.
DelegateException - if there was no underlying hibernate
transaction to delegate to.
public boolean isActive()
throws ArchiveException
isActive in interface TransactionArchiveException - if anything went wrong.
DelegateException - if there was no underlying hibernate
transaction to delegate to.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||