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
SQLException
public void invokeAfterCompletion()
public void rollbackConnection() throws SQLException
SQLException
public void commitConnection() throws SQLException
SQLException
public void cleanup()
public void commit() throws RollbackException, HeuristicMixedException, HeuristicRollbackException, SecurityException, IllegalStateException, SystemException
commit
in interface Transaction
RollbackException
HeuristicMixedException
HeuristicRollbackException
SecurityException
IllegalStateException
SystemException
public int getStatus() throws SystemException
getStatus
in interface Transaction
SystemException
public void registerSynchronization(Synchronization synchronization) throws RollbackException, IllegalStateException, SystemException
registerSynchronization
in interface Transaction
RollbackException
IllegalStateException
SystemException
public void rollback() throws IllegalStateException, SystemException
rollback
in interface Transaction
IllegalStateException
SystemException
public void setRollbackOnly() throws IllegalStateException, SystemException
setRollbackOnly
in interface Transaction
IllegalStateException
SystemException
public boolean enlistResource(XAResource xaresource) throws RollbackException, IllegalStateException, SystemException
enlistResource
in interface Transaction
RollbackException
IllegalStateException
SystemException
public boolean delistResource(XAResource xaresource, int i) throws IllegalStateException, SystemException
delistResource
in interface Transaction
IllegalStateException
SystemException
Copyright © 2024. All rights reserved.