Methods Summary |
---|
public void | begin()Create a new transaction and associate it with the current thread.
if (transactionManager == null) init();
this.transactionManager.begin();
|
public void | commit()Complete the transaction associated with the current thread. When this
method completes, the thread becomes associated with no transaction.
if (transactionManager == null) init();
this.transactionManager.commit();
|
public javax.naming.Reference | getReference()This method is used by JNDI to store a referenceable object.
//_logger.log(Level.FINE,"Referenceable object invoked");
return new Reference(this.getClass().getName(),
UserTransactionFactory.class.getName(), null);
|
public int | getStatus()Obtain the status of the transaction associated with the current thread.
if (transactionManager == null) init();
return this.transactionManager.getStatus();
|
private void | init()
this.transactionManager =
TransactionManagerImpl.getTransactionManagerImpl();
|
public void | rollback()Roll back the transaction associated with the current thread. When this
method completes, the thread becomes associated with no transaction.
if (transactionManager == null) init();
this.transactionManager.rollback();
|
public void | setRollbackOnly()Modify the transaction associated with the current thread such that
the only possible outcome of the transaction is to roll back the
transaction.
if (transactionManager == null) init();
this.transactionManager.setRollbackOnly();
|
public void | setTransactionTimeout(int seconds)Modify the timeout value that is associated with transactions started
by subsequent invocations of the begin method.
If an application has not called this method, the transaction
service uses some default value for the transaction timeout.
if (transactionManager == null) init();
this.transactionManager.setTransactionTimeout(seconds);
|