com.onewebsql.util.jta
Interface JtaOp<T>

Type Parameters:
T - type of the object returned by the operation

public interface JtaOp<T>

An operation which needs access to JTA object.


Method Summary
 T invoke(UserTransaction userTransaction)
          Invokes the operation which needs access to JTA object.
 

Method Detail

invoke

T invoke(UserTransaction userTransaction)
         throws HeuristicCommitException,
                HeuristicMixedException,
                HeuristicRollbackException,
                InvalidTransactionException,
                NotSupportedException,
                RollbackException,
                SystemException,
                TransactionRequiredException,
                TransactionRolledbackException
Invokes the operation which needs access to JTA object.

Parameters:
userTransaction - JTA transaction
Returns:
result of the operation
Throws:
HeuristicCommitException - if an error occured while handling the transation
HeuristicMixedException - if an error occured while handling the transation
HeuristicRollbackException - if an error occured while handling the transation
InvalidTransactionException - if an error occured while handling the transation
NotSupportedException - if an error occured while handling the transation
RollbackException - if an error occured while handling the transation
SystemException - if an error occured while handling the transation
TransactionRequiredException - if an error occured while handling the transation
TransactionRolledbackException - if an error occured while handling the transation


Copyright © 2011-2013 e-point SA. All Rights Reserved.