|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.sf.hibernate.odmg.Transaction
Implements the ODMG Transaction API.
| Field Summary |
| Fields inherited from interface org.odmg.Transaction |
READ, UPGRADE, WRITE |
| Constructor Summary | |
Transaction()
Instantiate a Transaction for a Database created by the current thread. |
|
Transaction(org.odmg.Database database)
Instantiate a Transaction for the given Database. |
|
| Method Summary | |
void |
abort()
Abort the transaction. |
void |
begin()
Begin the transaction. |
void |
checkpoint()
Commit the changes, but leave the transaction open. |
void |
commit()
Commit the transaction. |
Session |
getSession()
Get the underlying Hibernate Session. |
boolean |
isOpen()
Is the transaction open. |
void |
join()
Associate the current thread with this Transaction. |
void |
leave()
Disassociate the thread the Transaction. |
void |
lock(Object obj,
int lockMode)
Obtain a lock upon the given object. |
boolean |
tryLock(Object obj,
int lockMode)
Not implemented. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Transaction(org.odmg.Database database)
throws org.odmg.ODMGException
public Transaction()
throws org.odmg.ODMGException
| Method Detail |
public Session getSession()
public void join()
join in interface org.odmg.TransactionTransaction.join()public void leave()
leave in interface org.odmg.TransactionTransaction.leave()public void begin()
begin in interface org.odmg.TransactionTransaction.begin()public boolean isOpen()
isOpen in interface org.odmg.TransactionTransaction.isOpen()public void commit()
commit in interface org.odmg.TransactionTransaction.commit()public void abort()
abort in interface org.odmg.TransactionTransaction.abort()public void checkpoint()
checkpoint in interface org.odmg.TransactionTransaction.checkpoint()
public void lock(Object obj,
int lockMode)
throws org.odmg.LockNotGrantedException
lock in interface org.odmg.Transactionorg.odmg.LockNotGrantedExceptionTransaction.lock(Object, int)
public boolean tryLock(Object obj,
int lockMode)
tryLock in interface org.odmg.TransactionTransaction.tryLock(Object, int)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||