FileDocCategorySizeDatePackage
TransactionException.javaAPI DocGlassfish v2 API9888Tue May 22 16:54:18 BST 2007oracle.toplink.essentials.exceptions

TransactionException

public class TransactionException extends TopLinkException

Fields Summary
public static final int
ERROR_DOING_JNDI_LOOKUP
public static final int
ERROR_GETTING_TRANSACTION_STATUS
public static final int
ERROR_GETTING_TRANSACTION
public static final int
ERROR_BINDING_TO_TRANSACTION
public static final int
ERROR_BEGINNING_TRANSACTION
public static final int
ERROR_COMMITTING_TRANSACTION
public static final int
ERROR_ROLLING_BACK_TRANSACTION
public static final int
ERROR_MARKING_TRANSACTION_FOR_ROLLBACK
public static final int
ERROR_NO_EXTERNAL_TRANSACTION_ACTIVE
public static final int
ERROR_INACTIVE_UOW
public static final int
ERROR_OBTAINING_TRANSACTION_MANAGER
public static final int
ERROR_NO_TRANSACTION_ACTIVE
public static final int
ERROR_TRANSACTION_IS_ACTIVE
public static final int
ENTITY_TRANSACTION_WITH_JTA_NOT_ALLOWED
public static final int
CANNOT_ENLIST_MULTIPLE_DATASOURCES
public static final int
EXCEPTION_IN_PROXY_EXECUTION
Constructors Summary
public TransactionException(String message)


       
        super(message);
    
public TransactionException(String message, Exception internalException)

        super(message, internalException);
    
Methods Summary
public static oracle.toplink.essentials.exceptions.TransactionExceptionentityTransactionWithJTANotAllowed()

        Object[] args = {  };
        TransactionException ex = new TransactionException(ExceptionMessageGenerator.buildMessage(TransactionException.class, ENTITY_TRANSACTION_WITH_JTA_NOT_ALLOWED, args));
        ex.setErrorCode(ENTITY_TRANSACTION_WITH_JTA_NOT_ALLOWED);
        return ex;
    
public static oracle.toplink.essentials.exceptions.TransactionExceptionerrorBeginningExternalTransaction(java.lang.Exception internalException)

        Object[] args = {  };
        TransactionException ex = new TransactionException(ExceptionMessageGenerator.buildMessage(TransactionException.class, ERROR_BEGINNING_TRANSACTION, args));
        ex.setErrorCode(ERROR_BEGINNING_TRANSACTION);
        ex.setInternalException(internalException);
        return ex;
    
public static oracle.toplink.essentials.exceptions.TransactionExceptionerrorBindingToExternalTransaction(java.lang.Exception internalException)

        Object[] args = {  };
        TransactionException ex = new TransactionException(ExceptionMessageGenerator.buildMessage(TransactionException.class, ERROR_BINDING_TO_TRANSACTION, args));
        ex.setErrorCode(ERROR_BINDING_TO_TRANSACTION);
        ex.setInternalException(internalException);
        return ex;
    
public static oracle.toplink.essentials.exceptions.TransactionExceptionerrorCommittingExternalTransaction(java.lang.Exception internalException)

        Object[] args = {  };
        TransactionException ex = new TransactionException(ExceptionMessageGenerator.buildMessage(TransactionException.class, ERROR_COMMITTING_TRANSACTION, args));
        ex.setErrorCode(ERROR_COMMITTING_TRANSACTION);
        ex.setInternalException(internalException);
        return ex;
    
public static oracle.toplink.essentials.exceptions.TransactionExceptionerrorGettingExternalTransaction(java.lang.Exception internalException)

        Object[] args = {  };
        TransactionException ex = new TransactionException(ExceptionMessageGenerator.buildMessage(TransactionException.class, ERROR_GETTING_TRANSACTION, args));
        ex.setErrorCode(ERROR_GETTING_TRANSACTION);
        ex.setInternalException(internalException);
        return ex;
    
public static oracle.toplink.essentials.exceptions.TransactionExceptionerrorGettingExternalTransactionStatus(java.lang.Exception internalException)

        Object[] args = {  };
        TransactionException ex = new TransactionException(ExceptionMessageGenerator.buildMessage(TransactionException.class, ERROR_GETTING_TRANSACTION_STATUS, args));
        ex.setErrorCode(ERROR_GETTING_TRANSACTION_STATUS);
        ex.setInternalException(internalException);
        return ex;
    
public static oracle.toplink.essentials.exceptions.TransactionExceptionerrorMarkingTransactionForRollback(java.lang.Exception internalException)

        Object[] args = {  };
        TransactionException ex = new TransactionException(ExceptionMessageGenerator.buildMessage(TransactionException.class, ERROR_MARKING_TRANSACTION_FOR_ROLLBACK, args));
        ex.setErrorCode(ERROR_MARKING_TRANSACTION_FOR_ROLLBACK);
        ex.setInternalException(internalException);
        return ex;
    
public static oracle.toplink.essentials.exceptions.TransactionExceptionerrorObtainingTransactionManager(java.lang.Exception internalException)

        Object[] args = {  };
        TransactionException ex = new TransactionException(ExceptionMessageGenerator.buildMessage(TransactionException.class, ERROR_OBTAINING_TRANSACTION_MANAGER, args));
        ex.setErrorCode(ERROR_OBTAINING_TRANSACTION_MANAGER);
        ex.setInternalException(internalException);
        return ex;
    
public static oracle.toplink.essentials.exceptions.TransactionExceptionerrorRollingBackExternalTransaction(java.lang.Exception internalException)

        Object[] args = {  };
        TransactionException ex = new TransactionException(ExceptionMessageGenerator.buildMessage(TransactionException.class, ERROR_ROLLING_BACK_TRANSACTION, args));
        ex.setErrorCode(ERROR_ROLLING_BACK_TRANSACTION);
        ex.setInternalException(internalException);
        return ex;
    
public static oracle.toplink.essentials.exceptions.TransactionExceptionexternalTransactionNotActive()

        Object[] args = {  };
        TransactionException ex = new TransactionException(ExceptionMessageGenerator.buildMessage(TransactionException.class, ERROR_NO_EXTERNAL_TRANSACTION_ACTIVE, args));
        ex.setErrorCode(ERROR_NO_EXTERNAL_TRANSACTION_ACTIVE);
        return ex;
    
public static oracle.toplink.essentials.exceptions.TransactionExceptioninactiveUnitOfWork(oracle.toplink.essentials.internal.sessions.UnitOfWorkImpl unitOfWork)

        Object[] args = { unitOfWork };
        TransactionException ex = new TransactionException(ExceptionMessageGenerator.buildMessage(TransactionException.class, ERROR_INACTIVE_UOW, args));
        ex.setErrorCode(ERROR_INACTIVE_UOW);
        return ex;
    
public static oracle.toplink.essentials.exceptions.TransactionExceptioninternalProxyException(java.lang.Exception ex1)

        Object[] args = {  };
        TransactionException ex = new TransactionException(ExceptionMessageGenerator.buildMessage(TransactionException.class, EXCEPTION_IN_PROXY_EXECUTION, args), ex1);
        ex.setErrorCode(EXCEPTION_IN_PROXY_EXECUTION);
        return ex;
    
public static oracle.toplink.essentials.exceptions.TransactionExceptionjndiLookupException(java.lang.String jndiName, java.lang.Exception internalException)

        Object[] args = { jndiName };
        TransactionException ex = new TransactionException(ExceptionMessageGenerator.buildMessage(TransactionException.class, ERROR_DOING_JNDI_LOOKUP, args));
        ex.setErrorCode(ERROR_DOING_JNDI_LOOKUP);
        ex.setInternalException(internalException);
        return ex;
    
public static oracle.toplink.essentials.exceptions.TransactionExceptionmultipleResourceException()

        Object[] args = {  };
        TransactionException ex = new TransactionException(ExceptionMessageGenerator.buildMessage(TransactionException.class, CANNOT_ENLIST_MULTIPLE_DATASOURCES, args));
        ex.setErrorCode(CANNOT_ENLIST_MULTIPLE_DATASOURCES);
        return ex;
    
public static oracle.toplink.essentials.exceptions.TransactionExceptiontransactionIsActive()

        Object[] args = {  };
        TransactionException ex = new TransactionException(ExceptionMessageGenerator.buildMessage(TransactionException.class, ERROR_TRANSACTION_IS_ACTIVE, args));
        ex.setErrorCode(ERROR_TRANSACTION_IS_ACTIVE);
        return ex;
    
public static oracle.toplink.essentials.exceptions.TransactionExceptiontransactionNotActive()

        Object[] args = {  };
        TransactionException ex = new TransactionException(ExceptionMessageGenerator.buildMessage(TransactionException.class, ERROR_NO_TRANSACTION_ACTIVE, args));
        ex.setErrorCode(ERROR_NO_TRANSACTION_ACTIVE);
        return ex;