|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.sf.hibernate.transaction.JDBCTransaction
Implements a basic transaction strategy for JDBC connections.This is the default Transaction implementation used if none is explicitly specified.
| Constructor Summary | |
JDBCTransaction(SessionImplementor session)
|
|
| Method Summary | |
void |
begin()
|
void |
commit()
Flush the associated Session and end the unit of work. |
void |
rollback()
Force the underlying transaction to roll back. |
boolean |
wasCommitted()
Check if this transaction was successfully committed. |
boolean |
wasRolledBack()
Was this transaction rolled back or set to rollback only? |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public JDBCTransaction(SessionImplementor session) throws HibernateException
| Method Detail |
public void begin()
throws HibernateException
HibernateException
public void commit()
throws HibernateException
Transaction
commit in interface TransactionHibernateException
public void rollback()
throws HibernateException
Transaction
rollback in interface TransactionHibernateExceptionpublic boolean wasRolledBack()
Transaction
wasRolledBack in interface Transactionpublic boolean wasCommitted()
Transaction
wasCommitted in interface Transaction
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||