Class TransactionImpl
- java.lang.Object
-
- org.eclipse.persistence.internal.jpa.transaction.TransactionImpl
-
- All Implemented Interfaces:
jakarta.transaction.Transaction
@Deprecated public class TransactionImpl extends Object implements jakarta.transaction.Transaction
Deprecated.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(XAResource xaresource, int i)Deprecated.booleanenlistResource(XAResource xaresource)Deprecated.ConnectiongetConnection(DataSourceImpl ds, String user, String password)Deprecated.intgetStatus()Deprecated.voidinvokeAfterCompletion()Deprecated.voidregisterSynchronization(jakarta.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 Connection getConnection(DataSourceImpl ds, String user, String password) throws SQLException
Deprecated.- Throws:
SQLException
-
invokeAfterCompletion
public void invokeAfterCompletion()
Deprecated.
-
rollbackConnection
public void rollbackConnection() throws SQLExceptionDeprecated.- Throws:
SQLException
-
commitConnection
public void commitConnection() throws SQLExceptionDeprecated.- Throws:
SQLException
-
cleanup
public void cleanup()
Deprecated.
-
commit
public void commit() throws jakarta.transaction.RollbackException, jakarta.transaction.HeuristicMixedException, jakarta.transaction.HeuristicRollbackException, SecurityException, IllegalStateException, jakarta.transaction.SystemExceptionDeprecated.- Specified by:
commitin interfacejakarta.transaction.Transaction- Throws:
jakarta.transaction.RollbackExceptionjakarta.transaction.HeuristicMixedExceptionjakarta.transaction.HeuristicRollbackExceptionSecurityExceptionIllegalStateExceptionjakarta.transaction.SystemException
-
getStatus
public int getStatus() throws jakarta.transaction.SystemExceptionDeprecated.- Specified by:
getStatusin interfacejakarta.transaction.Transaction- Throws:
jakarta.transaction.SystemException
-
registerSynchronization
public void registerSynchronization(jakarta.transaction.Synchronization synchronization) throws jakarta.transaction.RollbackException, IllegalStateException, jakarta.transaction.SystemExceptionDeprecated.- Specified by:
registerSynchronizationin interfacejakarta.transaction.Transaction- Throws:
jakarta.transaction.RollbackExceptionIllegalStateExceptionjakarta.transaction.SystemException
-
rollback
public void rollback() throws IllegalStateException, jakarta.transaction.SystemExceptionDeprecated.- Specified by:
rollbackin interfacejakarta.transaction.Transaction- Throws:
IllegalStateExceptionjakarta.transaction.SystemException
-
setRollbackOnly
public void setRollbackOnly() throws IllegalStateException, jakarta.transaction.SystemExceptionDeprecated.- Specified by:
setRollbackOnlyin interfacejakarta.transaction.Transaction- Throws:
IllegalStateExceptionjakarta.transaction.SystemException
-
enlistResource
public boolean enlistResource(XAResource xaresource) throws jakarta.transaction.RollbackException, IllegalStateException, jakarta.transaction.SystemException
Deprecated.- Specified by:
enlistResourcein interfacejakarta.transaction.Transaction- Throws:
jakarta.transaction.RollbackExceptionIllegalStateExceptionjakarta.transaction.SystemException
-
delistResource
public boolean delistResource(XAResource xaresource, int i) throws IllegalStateException, jakarta.transaction.SystemException
Deprecated.- Specified by:
delistResourcein interfacejakarta.transaction.Transaction- Throws:
IllegalStateExceptionjakarta.transaction.SystemException
-
-