Class TransactionImpl
- java.lang.Object
-
- org.eclipse.persistence.internal.jpa.transaction.TransactionImpl
-
- All Implemented Interfaces:
javax.transaction.Transaction
@Deprecated public class TransactionImpl extends java.lang.Object implements javax.transaction.TransactionDeprecated.Implementation of JTA Transaction class. The guts of the tx logic is contained in this class. Currently support is limited to enlisting only a single tx data source
-
-
Field Summary
Fields Modifier and Type Field Description static booleanDUMP_AFTER_COMPLETION_ERRORSDeprecated.static intSTATUS_ACTIVEDeprecated.Static constantsstatic intSTATUS_COMMITTEDDeprecated.static intSTATUS_COMMITTINGDeprecated.static intSTATUS_MARKED_ROLLBACKDeprecated.static intSTATUS_NO_TRANSACTIONDeprecated.static intSTATUS_PREPAREDDeprecated.static intSTATUS_PREPARINGDeprecated.static intSTATUS_ROLLEDBACKDeprecated.static intSTATUS_ROLLING_BACKDeprecated.static intSTATUS_UNKNOWNDeprecated.
-
Constructor Summary
Constructors Constructor Description TransactionImpl()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidcleanup()Deprecated.voidcommit()Deprecated.voidcommitConnection()Deprecated.booleandelistResource(javax.transaction.xa.XAResource xaresource, int i)Deprecated.booleanenlistResource(javax.transaction.xa.XAResource xaresource)Deprecated.java.sql.ConnectiongetConnection(DataSourceImpl ds, java.lang.String user, java.lang.String password)Deprecated.intgetStatus()Deprecated.voidinvokeAfterCompletion()Deprecated.voidregisterSynchronization(javax.transaction.Synchronization synchronization)Deprecated.voidrollback()Deprecated.voidrollbackConnection()Deprecated.voidsetRollbackOnly()Deprecated.
-
-
-
Field Detail
-
STATUS_ACTIVE
public static final int STATUS_ACTIVE
Deprecated.Static constants- See Also:
- Constant Field Values
-
STATUS_MARKED_ROLLBACK
public static final int STATUS_MARKED_ROLLBACK
Deprecated.- See Also:
- Constant Field Values
-
STATUS_PREPARED
public static final int STATUS_PREPARED
Deprecated.- See Also:
- Constant Field Values
-
STATUS_COMMITTED
public static final int STATUS_COMMITTED
Deprecated.- See Also:
- Constant Field Values
-
STATUS_ROLLEDBACK
public static final int STATUS_ROLLEDBACK
Deprecated.- See Also:
- Constant Field Values
-
STATUS_UNKNOWN
public static final int STATUS_UNKNOWN
Deprecated.- See Also:
- Constant Field Values
-
STATUS_NO_TRANSACTION
public static final int STATUS_NO_TRANSACTION
Deprecated.- See Also:
- Constant Field Values
-
STATUS_PREPARING
public static final int STATUS_PREPARING
Deprecated.- See Also:
- Constant Field Values
-
STATUS_COMMITTING
public static final int STATUS_COMMITTING
Deprecated.- See Also:
- Constant Field Values
-
STATUS_ROLLING_BACK
public static final int STATUS_ROLLING_BACK
Deprecated.- See Also:
- Constant Field Values
-
DUMP_AFTER_COMPLETION_ERRORS
public static boolean DUMP_AFTER_COMPLETION_ERRORS
Deprecated.
-
-
Method Detail
-
getConnection
public java.sql.Connection getConnection(DataSourceImpl ds, java.lang.String user, java.lang.String password) throws java.sql.SQLException
Deprecated.- Throws:
java.sql.SQLException
-
invokeAfterCompletion
public void invokeAfterCompletion()
Deprecated.
-
rollbackConnection
public void rollbackConnection() throws java.sql.SQLExceptionDeprecated.- Throws:
java.sql.SQLException
-
commitConnection
public void commitConnection() throws java.sql.SQLExceptionDeprecated.- Throws:
java.sql.SQLException
-
cleanup
public void cleanup()
Deprecated.
-
commit
public void commit() throws javax.transaction.RollbackException, javax.transaction.HeuristicMixedException, javax.transaction.HeuristicRollbackException, java.lang.SecurityException, java.lang.IllegalStateException, javax.transaction.SystemExceptionDeprecated.- Specified by:
commitin interfacejavax.transaction.Transaction- Throws:
javax.transaction.RollbackExceptionjavax.transaction.HeuristicMixedExceptionjavax.transaction.HeuristicRollbackExceptionjava.lang.SecurityExceptionjava.lang.IllegalStateExceptionjavax.transaction.SystemException
-
getStatus
public int getStatus() throws javax.transaction.SystemExceptionDeprecated.- Specified by:
getStatusin interfacejavax.transaction.Transaction- Throws:
javax.transaction.SystemException
-
registerSynchronization
public void registerSynchronization(javax.transaction.Synchronization synchronization) throws javax.transaction.RollbackException, java.lang.IllegalStateException, javax.transaction.SystemExceptionDeprecated.- Specified by:
registerSynchronizationin interfacejavax.transaction.Transaction- Throws:
javax.transaction.RollbackExceptionjava.lang.IllegalStateExceptionjavax.transaction.SystemException
-
rollback
public void rollback() throws java.lang.IllegalStateException, javax.transaction.SystemExceptionDeprecated.- Specified by:
rollbackin interfacejavax.transaction.Transaction- Throws:
java.lang.IllegalStateExceptionjavax.transaction.SystemException
-
setRollbackOnly
public void setRollbackOnly() throws java.lang.IllegalStateException, javax.transaction.SystemExceptionDeprecated.- Specified by:
setRollbackOnlyin interfacejavax.transaction.Transaction- Throws:
java.lang.IllegalStateExceptionjavax.transaction.SystemException
-
enlistResource
public boolean enlistResource(javax.transaction.xa.XAResource xaresource) throws javax.transaction.RollbackException, java.lang.IllegalStateException, javax.transaction.SystemExceptionDeprecated.- Specified by:
enlistResourcein interfacejavax.transaction.Transaction- Throws:
javax.transaction.RollbackExceptionjava.lang.IllegalStateExceptionjavax.transaction.SystemException
-
delistResource
public boolean delistResource(javax.transaction.xa.XAResource xaresource, int i) throws java.lang.IllegalStateException, javax.transaction.SystemExceptionDeprecated.- Specified by:
delistResourcein interfacejavax.transaction.Transaction- Throws:
java.lang.IllegalStateExceptionjavax.transaction.SystemException
-
-