Module org.eclipse.persistence.jpa
Class TransactionImpl
java.lang.Object
org.eclipse.persistence.internal.jpa.transaction.TransactionImpl
- All Implemented Interfaces:
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
FieldsModifier and TypeFieldDescriptionstatic booleanDeprecated.static final intDeprecated.Static constantsstatic final intDeprecated.static final intDeprecated.static final intDeprecated.static final intDeprecated.static final intDeprecated.static final intDeprecated.static final intDeprecated.static final intDeprecated.static final intDeprecated. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcleanup()Deprecated.voidcommit()Deprecated.voidDeprecated.booleandelistResource(XAResource xaresource, int i) Deprecated.booleanenlistResource(XAResource xaresource) Deprecated.getConnection(DataSourceImpl ds, String user, String password) Deprecated.intDeprecated.voidDeprecated.voidregisterSynchronization(Synchronization synchronization) Deprecated.voidrollback()Deprecated.voidDeprecated.voidDeprecated.
-
Field Details
-
STATUS_ACTIVE
public static final int STATUS_ACTIVEDeprecated.Static constants- See Also:
-
STATUS_MARKED_ROLLBACK
public static final int STATUS_MARKED_ROLLBACKDeprecated.- See Also:
-
STATUS_PREPARED
public static final int STATUS_PREPAREDDeprecated.- See Also:
-
STATUS_COMMITTED
public static final int STATUS_COMMITTEDDeprecated.- See Also:
-
STATUS_ROLLEDBACK
public static final int STATUS_ROLLEDBACKDeprecated.- See Also:
-
STATUS_UNKNOWN
public static final int STATUS_UNKNOWNDeprecated.- See Also:
-
STATUS_NO_TRANSACTION
public static final int STATUS_NO_TRANSACTIONDeprecated.- See Also:
-
STATUS_PREPARING
public static final int STATUS_PREPARINGDeprecated.- See Also:
-
STATUS_COMMITTING
public static final int STATUS_COMMITTINGDeprecated.- See Also:
-
STATUS_ROLLING_BACK
public static final int STATUS_ROLLING_BACKDeprecated.- See Also:
-
DUMP_AFTER_COMPLETION_ERRORS
public static boolean DUMP_AFTER_COMPLETION_ERRORSDeprecated.
-
-
Constructor Details
-
TransactionImpl
public TransactionImpl()Deprecated.
-
-
Method Details
-
getConnection
public Connection getConnection(DataSourceImpl ds, String user, String password) throws SQLException Deprecated.- Throws:
SQLException
-
invokeAfterCompletion
public void invokeAfterCompletion()Deprecated. -
rollbackConnection
Deprecated.- Throws:
SQLException
-
commitConnection
Deprecated.- Throws:
SQLException
-
cleanup
public void cleanup()Deprecated. -
commit
public void commit() throws RollbackException, HeuristicMixedException, HeuristicRollbackException, SecurityException, IllegalStateException, SystemExceptionDeprecated.- Specified by:
commitin interfaceTransaction- Throws:
RollbackExceptionHeuristicMixedExceptionHeuristicRollbackExceptionSecurityExceptionIllegalStateExceptionSystemException
-
getStatus
Deprecated.- Specified by:
getStatusin interfaceTransaction- Throws:
SystemException
-
registerSynchronization
public void registerSynchronization(Synchronization synchronization) throws RollbackException, IllegalStateException, SystemException Deprecated.- Specified by:
registerSynchronizationin interfaceTransaction- Throws:
RollbackExceptionIllegalStateExceptionSystemException
-
rollback
Deprecated.- Specified by:
rollbackin interfaceTransaction- Throws:
IllegalStateExceptionSystemException
-
setRollbackOnly
Deprecated.- Specified by:
setRollbackOnlyin interfaceTransaction- Throws:
IllegalStateExceptionSystemException
-
enlistResource
public boolean enlistResource(XAResource xaresource) throws RollbackException, IllegalStateException, SystemException Deprecated.- Specified by:
enlistResourcein interfaceTransaction- Throws:
RollbackExceptionIllegalStateExceptionSystemException
-
delistResource
public boolean delistResource(XAResource xaresource, int i) throws IllegalStateException, SystemException Deprecated.- Specified by:
delistResourcein interfaceTransaction- Throws:
IllegalStateExceptionSystemException
-