Package com.zfabrik.tx
Class UserTransaction
java.lang.Object
com.zfabrik.tx.UserTransaction
- All Implemented Interfaces:
javax.transaction.UserTransaction
public wrapper of UT implementation
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
begin()
void
commit()
static javax.transaction.UserTransaction
get()
int
void
rollback()
void
void
setTransactionTimeout(int arg0)
-
Constructor Details
-
UserTransaction
public UserTransaction()
-
-
Method Details
-
get
public static javax.transaction.UserTransaction get() -
begin
public void begin() throws javax.transaction.NotSupportedException, javax.transaction.SystemException- Specified by:
begin
in interfacejavax.transaction.UserTransaction
- Throws:
javax.transaction.NotSupportedException
javax.transaction.SystemException
-
commit
public void commit() throws javax.transaction.RollbackException, javax.transaction.HeuristicMixedException, javax.transaction.HeuristicRollbackException, SecurityException, IllegalStateException, javax.transaction.SystemException- Specified by:
commit
in interfacejavax.transaction.UserTransaction
- Throws:
javax.transaction.RollbackException
javax.transaction.HeuristicMixedException
javax.transaction.HeuristicRollbackException
SecurityException
IllegalStateException
javax.transaction.SystemException
-
getStatus
public int getStatus() throws javax.transaction.SystemException- Specified by:
getStatus
in interfacejavax.transaction.UserTransaction
- Throws:
javax.transaction.SystemException
-
rollback
public void rollback() throws IllegalStateException, SecurityException, javax.transaction.SystemException- Specified by:
rollback
in interfacejavax.transaction.UserTransaction
- Throws:
IllegalStateException
SecurityException
javax.transaction.SystemException
-
setRollbackOnly
- Specified by:
setRollbackOnly
in interfacejavax.transaction.UserTransaction
- Throws:
IllegalStateException
javax.transaction.SystemException
-
setTransactionTimeout
public void setTransactionTimeout(int arg0) throws javax.transaction.SystemException- Specified by:
setTransactionTimeout
in interfacejavax.transaction.UserTransaction
- Throws:
javax.transaction.SystemException
-