@Deprecated public class TransactionImpl extends Object implements jakarta.transaction.Transaction
| Modifier and Type | Field and Description |
|---|---|
static boolean |
DUMP_AFTER_COMPLETION_ERRORS
Deprecated.
|
static int |
STATUS_ACTIVE
Deprecated.
Static constants
|
static int |
STATUS_COMMITTED
Deprecated.
|
static int |
STATUS_COMMITTING
Deprecated.
|
static int |
STATUS_MARKED_ROLLBACK
Deprecated.
|
static int |
STATUS_NO_TRANSACTION
Deprecated.
|
static int |
STATUS_PREPARED
Deprecated.
|
static int |
STATUS_PREPARING
Deprecated.
|
static int |
STATUS_ROLLEDBACK
Deprecated.
|
static int |
STATUS_ROLLING_BACK
Deprecated.
|
static int |
STATUS_UNKNOWN
Deprecated.
|
| Constructor and Description |
|---|
TransactionImpl()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup()
Deprecated.
|
void |
commit()
Deprecated.
|
void |
commitConnection()
Deprecated.
|
boolean |
delistResource(XAResource xaresource,
int i)
Deprecated.
|
boolean |
enlistResource(XAResource xaresource)
Deprecated.
|
Connection |
getConnection(DataSourceImpl ds,
String user,
String password)
Deprecated.
|
int |
getStatus()
Deprecated.
|
void |
invokeAfterCompletion()
Deprecated.
|
void |
registerSynchronization(jakarta.transaction.Synchronization synchronization)
Deprecated.
|
void |
rollback()
Deprecated.
|
void |
rollbackConnection()
Deprecated.
|
void |
setRollbackOnly()
Deprecated.
|
public static final int STATUS_ACTIVE
public static final int STATUS_MARKED_ROLLBACK
public static final int STATUS_PREPARED
public static final int STATUS_COMMITTED
public static final int STATUS_ROLLEDBACK
public static final int STATUS_UNKNOWN
public static final int STATUS_NO_TRANSACTION
public static final int STATUS_PREPARING
public static final int STATUS_COMMITTING
public static final int STATUS_ROLLING_BACK
public static boolean DUMP_AFTER_COMPLETION_ERRORS
public Connection getConnection(DataSourceImpl ds, String user, String password) throws SQLException
SQLExceptionpublic void invokeAfterCompletion()
public void rollbackConnection()
throws SQLException
SQLExceptionpublic void commitConnection()
throws SQLException
SQLExceptionpublic void cleanup()
public void commit()
throws jakarta.transaction.RollbackException,
jakarta.transaction.HeuristicMixedException,
jakarta.transaction.HeuristicRollbackException,
SecurityException,
IllegalStateException,
jakarta.transaction.SystemException
commit in interface jakarta.transaction.Transactionjakarta.transaction.RollbackExceptionjakarta.transaction.HeuristicMixedExceptionjakarta.transaction.HeuristicRollbackExceptionSecurityExceptionIllegalStateExceptionjakarta.transaction.SystemExceptionpublic int getStatus()
throws jakarta.transaction.SystemException
getStatus in interface jakarta.transaction.Transactionjakarta.transaction.SystemExceptionpublic void registerSynchronization(jakarta.transaction.Synchronization synchronization)
throws jakarta.transaction.RollbackException,
IllegalStateException,
jakarta.transaction.SystemException
registerSynchronization in interface jakarta.transaction.Transactionjakarta.transaction.RollbackExceptionIllegalStateExceptionjakarta.transaction.SystemExceptionpublic void rollback()
throws IllegalStateException,
jakarta.transaction.SystemException
rollback in interface jakarta.transaction.TransactionIllegalStateExceptionjakarta.transaction.SystemExceptionpublic void setRollbackOnly()
throws IllegalStateException,
jakarta.transaction.SystemException
setRollbackOnly in interface jakarta.transaction.TransactionIllegalStateExceptionjakarta.transaction.SystemExceptionpublic boolean enlistResource(XAResource xaresource) throws jakarta.transaction.RollbackException, IllegalStateException, jakarta.transaction.SystemException
enlistResource in interface jakarta.transaction.Transactionjakarta.transaction.RollbackExceptionIllegalStateExceptionjakarta.transaction.SystemExceptionpublic boolean delistResource(XAResource xaresource, int i) throws IllegalStateException, jakarta.transaction.SystemException
delistResource in interface jakarta.transaction.TransactionIllegalStateExceptionjakarta.transaction.SystemExceptionCopyright © 2007–2021 Eclipse.org - EclipseLink Project. All rights reserved.