Class TransactionException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.eclipse.persistence.exceptions.EclipseLinkException
-
- org.eclipse.persistence.exceptions.TransactionException
-
- All Implemented Interfaces:
java.io.Serializable
public class TransactionException extends EclipseLinkException
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static int
CANNOT_ENLIST_MULTIPLE_DATASOURCES
static int
ENTITY_TRANSACTION_WITH_JTA_NOT_ALLOWED
static int
ERROR_BEGINNING_TRANSACTION
static int
ERROR_BINDING_TO_TRANSACTION
static int
ERROR_COMMITTING_TRANSACTION
static int
ERROR_DOING_JNDI_LOOKUP
static int
ERROR_GETTING_TRANSACTION
static int
ERROR_GETTING_TRANSACTION_STATUS
static int
ERROR_INACTIVE_UOW
static int
ERROR_MARKING_TRANSACTION_FOR_ROLLBACK
static int
ERROR_NO_ENTITY_TRANSACTION_ACTIVE
static int
ERROR_NO_EXTERNAL_TRANSACTION_ACTIVE
static int
ERROR_NO_TRANSACTION_ACTIVE
static int
ERROR_OBTAINING_TRANSACTION_MANAGER
static int
ERROR_ROLLING_BACK_TRANSACTION
static int
ERROR_TRANSACTION_IS_ACTIVE
static int
EXCEPTION_IN_PROXY_EXECUTION
-
Fields inherited from class org.eclipse.persistence.exceptions.EclipseLinkException
CR, errorCode, hasBeenLogged, indentationString, internalException, session, shouldPrintInternalException
-
-
Constructor Summary
Constructors Constructor Description TransactionException(java.lang.String message)
TransactionException(java.lang.String message, java.lang.Exception internalException)
-
Method Summary
-
Methods inherited from class org.eclipse.persistence.exceptions.EclipseLinkException
cr, getErrorCode, getIndentationString, getInternalException, getMessage, getSession, getUnformattedMessage, hasBeenLogged, printStackTrace, printStackTrace, printStackTrace, setErrorCode, setHasBeenLogged, setIndentationString, setInternalException, setSession, setShouldPrintInternalException, shouldPrintInternalException, toString
-
-
-
-
Field Detail
-
ERROR_DOING_JNDI_LOOKUP
public static final int ERROR_DOING_JNDI_LOOKUP
- See Also:
- Constant Field Values
-
ERROR_GETTING_TRANSACTION_STATUS
public static final int ERROR_GETTING_TRANSACTION_STATUS
- See Also:
- Constant Field Values
-
ERROR_GETTING_TRANSACTION
public static final int ERROR_GETTING_TRANSACTION
- See Also:
- Constant Field Values
-
ERROR_OBTAINING_TRANSACTION_MANAGER
public static final int ERROR_OBTAINING_TRANSACTION_MANAGER
- See Also:
- Constant Field Values
-
ERROR_BINDING_TO_TRANSACTION
public static final int ERROR_BINDING_TO_TRANSACTION
- See Also:
- Constant Field Values
-
ERROR_BEGINNING_TRANSACTION
public static final int ERROR_BEGINNING_TRANSACTION
- See Also:
- Constant Field Values
-
ERROR_COMMITTING_TRANSACTION
public static final int ERROR_COMMITTING_TRANSACTION
- See Also:
- Constant Field Values
-
ERROR_ROLLING_BACK_TRANSACTION
public static final int ERROR_ROLLING_BACK_TRANSACTION
- See Also:
- Constant Field Values
-
ERROR_MARKING_TRANSACTION_FOR_ROLLBACK
public static final int ERROR_MARKING_TRANSACTION_FOR_ROLLBACK
- See Also:
- Constant Field Values
-
ERROR_NO_EXTERNAL_TRANSACTION_ACTIVE
public static final int ERROR_NO_EXTERNAL_TRANSACTION_ACTIVE
- See Also:
- Constant Field Values
-
ERROR_INACTIVE_UOW
public static final int ERROR_INACTIVE_UOW
- See Also:
- Constant Field Values
-
ERROR_NO_TRANSACTION_ACTIVE
public static final int ERROR_NO_TRANSACTION_ACTIVE
- See Also:
- Constant Field Values
-
ERROR_TRANSACTION_IS_ACTIVE
public static final int ERROR_TRANSACTION_IS_ACTIVE
- See Also:
- Constant Field Values
-
ENTITY_TRANSACTION_WITH_JTA_NOT_ALLOWED
public static final int ENTITY_TRANSACTION_WITH_JTA_NOT_ALLOWED
- See Also:
- Constant Field Values
-
CANNOT_ENLIST_MULTIPLE_DATASOURCES
public static final int CANNOT_ENLIST_MULTIPLE_DATASOURCES
- See Also:
- Constant Field Values
-
EXCEPTION_IN_PROXY_EXECUTION
public static final int EXCEPTION_IN_PROXY_EXECUTION
- See Also:
- Constant Field Values
-
ERROR_NO_ENTITY_TRANSACTION_ACTIVE
public static final int ERROR_NO_ENTITY_TRANSACTION_ACTIVE
- See Also:
- Constant Field Values
-
-
Method Detail
-
jndiLookupException
public static TransactionException jndiLookupException(java.lang.String jndiName, java.lang.Exception internalException)
-
errorGettingExternalTransactionStatus
public static TransactionException errorGettingExternalTransactionStatus(java.lang.Exception internalException)
-
errorGettingExternalTransaction
public static TransactionException errorGettingExternalTransaction(java.lang.Exception internalException)
-
errorBindingToExternalTransaction
public static TransactionException errorBindingToExternalTransaction(java.lang.Exception internalException)
-
errorBeginningExternalTransaction
public static TransactionException errorBeginningExternalTransaction(java.lang.Exception internalException)
-
errorCommittingExternalTransaction
public static TransactionException errorCommittingExternalTransaction(java.lang.Exception internalException)
-
errorRollingBackExternalTransaction
public static TransactionException errorRollingBackExternalTransaction(java.lang.Exception internalException)
-
errorMarkingTransactionForRollback
public static TransactionException errorMarkingTransactionForRollback(java.lang.Exception internalException)
-
externalTransactionNotActive
public static TransactionException externalTransactionNotActive()
-
inactiveUnitOfWork
public static TransactionException inactiveUnitOfWork(org.eclipse.persistence.internal.sessions.UnitOfWorkImpl unitOfWork)
-
errorObtainingTransactionManager
public static TransactionException errorObtainingTransactionManager(java.lang.Exception internalException)
-
transactionNotActive
public static TransactionException transactionNotActive()
-
transactionIsActive
public static TransactionException transactionIsActive()
-
entityTransactionWithJTANotAllowed
public static TransactionException entityTransactionWithJTANotAllowed()
-
multipleResourceException
public static TransactionException multipleResourceException()
-
internalProxyException
public static TransactionException internalProxyException(java.lang.Exception ex1)
-
entityTransactionNotActive
public static TransactionException entityTransactionNotActive()
-
-