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
Modifier and TypeFieldDescriptionstatic boolean
Deprecated.static final int
Deprecated.Static constantsstatic final int
Deprecated.static final int
Deprecated.static final int
Deprecated.static final int
Deprecated.static final int
Deprecated.static final int
Deprecated.static final int
Deprecated.static final int
Deprecated.static final int
Deprecated. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
cleanup()
Deprecated.void
commit()
Deprecated.void
Deprecated.boolean
delistResource
(XAResource xaresource, int i) Deprecated.boolean
enlistResource
(XAResource xaresource) Deprecated.getConnection
(DataSourceImpl ds, String user, String password) Deprecated.int
Deprecated.void
Deprecated.void
registerSynchronization
(Synchronization synchronization) Deprecated.void
rollback()
Deprecated.void
Deprecated.void
Deprecated.
-
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:
commit
in interfaceTransaction
- Throws:
RollbackException
HeuristicMixedException
HeuristicRollbackException
SecurityException
IllegalStateException
SystemException
-
getStatus
Deprecated.- Specified by:
getStatus
in interfaceTransaction
- Throws:
SystemException
-
registerSynchronization
public void registerSynchronization(Synchronization synchronization) throws RollbackException, IllegalStateException, SystemException Deprecated.- Specified by:
registerSynchronization
in interfaceTransaction
- Throws:
RollbackException
IllegalStateException
SystemException
-
rollback
Deprecated.- Specified by:
rollback
in interfaceTransaction
- Throws:
IllegalStateException
SystemException
-
setRollbackOnly
Deprecated.- Specified by:
setRollbackOnly
in interfaceTransaction
- Throws:
IllegalStateException
SystemException
-
enlistResource
public boolean enlistResource(XAResource xaresource) throws RollbackException, IllegalStateException, SystemException Deprecated.- Specified by:
enlistResource
in interfaceTransaction
- Throws:
RollbackException
IllegalStateException
SystemException
-
delistResource
public boolean delistResource(XAResource xaresource, int i) throws IllegalStateException, SystemException Deprecated.- Specified by:
delistResource
in interfaceTransaction
- Throws:
IllegalStateException
SystemException
-