|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ujorm.orm.Transaction
public final class Transaction
Transaction manager.
| Method Summary | |
|---|---|
void |
commit()
Commit the current level of the beginTransaction. |
boolean |
delistResource(XAResource xaRes,
int flag)
|
boolean |
enlistResource(XAResource xaRes)
|
Session |
getSession()
Get the current Session. |
int |
getStatus()
JTA Status |
boolean |
isRoot()
Returns true, if the transactioni the ROOT. |
Transaction |
nestedTransaction()
Create a nested transaction |
void |
registerSynchronization(Synchronization sync)
|
void |
rollback()
Rollback the current level of the beginTransaction. |
void |
setRollbackOnly()
Rollback transaction only, default value is false |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public boolean isRoot()
public void commit()
throws IllegalStateException
commit in interface TransactionIllegalStateException
public void rollback()
throws IllegalStateException
rollback in interface TransactionIllegalStateExceptionpublic Transaction nestedTransaction()
public Session getSession()
public boolean delistResource(XAResource xaRes,
int flag)
throws IllegalStateException
delistResource in interface TransactionIllegalStateException
public boolean enlistResource(XAResource xaRes)
throws IllegalStateException
enlistResource in interface TransactionIllegalStateException
public void registerSynchronization(Synchronization sync)
throws IllegalStateException
registerSynchronization in interface TransactionIllegalStateExceptionpublic void setRollbackOnly()
false
setRollbackOnly in interface Transactionpublic int getStatus()
getStatus in interface Transaction
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||