@Deprecated
public class TransactionImpl
extends java.lang.Object
| 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(javax.transaction.xa.XAResource xaresource,
int i)
Deprecated.
|
boolean |
enlistResource(javax.transaction.xa.XAResource xaresource)
Deprecated.
|
java.sql.Connection |
getConnection(DataSourceImpl ds,
java.lang.String user,
java.lang.String password)
Deprecated.
|
int |
getStatus()
Deprecated.
|
void |
invokeAfterCompletion()
Deprecated.
|
void |
registerSynchronization(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 java.sql.Connection getConnection(DataSourceImpl ds, java.lang.String user, java.lang.String password) throws java.sql.SQLException
java.sql.SQLExceptionpublic void invokeAfterCompletion()
public void rollbackConnection()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void commitConnection()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void cleanup()
public void commit()
throws RollbackException,
HeuristicMixedException,
HeuristicRollbackException,
java.lang.SecurityException,
java.lang.IllegalStateException,
SystemException
RollbackExceptionHeuristicMixedExceptionHeuristicRollbackExceptionjava.lang.SecurityExceptionjava.lang.IllegalStateExceptionSystemExceptionpublic int getStatus()
throws SystemException
SystemExceptionpublic void registerSynchronization(Synchronization synchronization)
throws RollbackException,
java.lang.IllegalStateException,
SystemException
RollbackExceptionjava.lang.IllegalStateExceptionSystemExceptionpublic void rollback()
throws java.lang.IllegalStateException,
SystemException
java.lang.IllegalStateExceptionSystemExceptionpublic void setRollbackOnly()
throws java.lang.IllegalStateException,
SystemException
java.lang.IllegalStateExceptionSystemExceptionpublic boolean enlistResource(javax.transaction.xa.XAResource xaresource)
throws RollbackException,
java.lang.IllegalStateException,
SystemException
RollbackExceptionjava.lang.IllegalStateExceptionSystemExceptionpublic boolean delistResource(javax.transaction.xa.XAResource xaresource,
int i)
throws java.lang.IllegalStateException,
SystemException
java.lang.IllegalStateExceptionSystemException