public class TransactionImpl extends Object implements Transaction
| Modifier and Type | Field and Description |
|---|---|
static boolean |
DUMP_AFTER_COMPLETION_ERRORS |
static int |
STATUS_ACTIVE
Static constants
|
static int |
STATUS_COMMITTED |
static int |
STATUS_COMMITTING |
static int |
STATUS_MARKED_ROLLBACK |
static int |
STATUS_NO_TRANSACTION |
static int |
STATUS_PREPARED |
static int |
STATUS_PREPARING |
static int |
STATUS_ROLLEDBACK |
static int |
STATUS_ROLLING_BACK |
static int |
STATUS_UNKNOWN |
| Constructor and Description |
|---|
TransactionImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup() |
void |
commit() |
void |
commitConnection() |
boolean |
delistResource(XAResource xaresource,
int i) |
boolean |
enlistResource(XAResource xaresource) |
Connection |
getConnection(DataSourceImpl ds,
String user,
String password) |
int |
getStatus() |
void |
invokeAfterCompletion() |
void |
registerSynchronization(Synchronization synchronization) |
void |
rollback() |
void |
rollbackConnection() |
void |
setRollbackOnly() |
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 RollbackException,
HeuristicMixedException,
HeuristicRollbackException,
SecurityException,
IllegalStateException,
SystemException
commit in interface TransactionRollbackExceptionHeuristicMixedExceptionHeuristicRollbackExceptionSecurityExceptionIllegalStateExceptionSystemExceptionpublic int getStatus()
throws SystemException
getStatus in interface TransactionSystemExceptionpublic void registerSynchronization(Synchronization synchronization) throws RollbackException, IllegalStateException, SystemException
registerSynchronization in interface TransactionRollbackExceptionIllegalStateExceptionSystemExceptionpublic void rollback()
throws IllegalStateException,
SystemException
rollback in interface TransactionIllegalStateExceptionSystemExceptionpublic void setRollbackOnly()
throws IllegalStateException,
SystemException
setRollbackOnly in interface TransactionIllegalStateExceptionSystemExceptionpublic boolean enlistResource(XAResource xaresource) throws RollbackException, IllegalStateException, SystemException
enlistResource in interface TransactionRollbackExceptionIllegalStateExceptionSystemExceptionpublic boolean delistResource(XAResource xaresource, int i) throws IllegalStateException, SystemException
delistResource in interface TransactionIllegalStateExceptionSystemExceptionCopyright © 2024. All rights reserved.