Methods Summary |
---|
public void | begin()
// Start the transaction
tm.begin();
Transaction tx = tm.getTransaction();
if (log.isDebugEnabled())
log.debug("UserTx begin: " + tx);
|
public void | commit()
Transaction tx = tm.getTransaction();
if (log.isDebugEnabled())
log.debug("UserTx commit: " + tx);
tm.commit();
|
public int | getStatus()
return tm.getStatus();
|
public void | readExternal(java.io.ObjectInput in)
this.tm = TxUtil.getTransactionManager();
|
public void | rollback()
Transaction tx = tm.getTransaction();
if (log.isDebugEnabled())
log.debug("UserTx rollback: " + tx);
tm.rollback();
|
public void | setRollbackOnly()
Transaction tx = tm.getTransaction();
if (log.isDebugEnabled())
log.debug("UserTx setRollbackOnly: " + tx);
tm.setRollbackOnly();
|
public void | setTransactionTimeout(int seconds)Set the transaction timeout value for new transactions
started by this instance.
tm.setTransactionTimeout(seconds);
|
public void | writeExternal(java.io.ObjectOutput out)
//To change body of implemented methods use File | Settings | File Templates.
|