public class EJBTxnHandlerImpl extends java.lang.Object implements JTATransactionHandler
Constructor and Description |
---|
EJBTxnHandlerImpl(javax.ejb.SessionContext ctx,
int timeout,
boolean timeoutAfterBegin) |
Modifier and Type | Method and Description |
---|---|
void |
begin() |
void |
beginActivation() |
void |
beginPassivation() |
void |
end() |
void |
endActivation() |
void |
endPassivation() |
protected int |
getStatus() |
void |
handleClose(java.sql.Connection conn)
Terminates the transaction.
|
void |
handleCommit(java.sql.Connection conn,
boolean autoStart)
Commits changes to the database.
|
void |
handleOpen(java.sql.Connection conn)
Initializes the transaction.
|
void |
handleRollback(java.sql.Connection c,
boolean autoStart)
Discards changes to the database.
|
void |
registerSynchronization(DBTransaction txn) |
void |
resume() |
void |
suspend() |
public EJBTxnHandlerImpl(javax.ejb.SessionContext ctx, int timeout, boolean timeoutAfterBegin)
public final void begin()
begin
in interface TransactionHandler
public final void end()
public final void handleOpen(java.sql.Connection conn)
TransactionHandler
handleOpen
in interface TransactionHandler
public final void handleCommit(java.sql.Connection conn, boolean autoStart)
TransactionHandler
handleCommit
in interface TransactionHandler
public final void handleRollback(java.sql.Connection c, boolean autoStart)
TransactionHandler
handleRollback
in interface TransactionHandler
public void handleClose(java.sql.Connection conn)
TransactionHandler
handleClose
in interface TransactionHandler
public void registerSynchronization(DBTransaction txn)
registerSynchronization
in interface JTATransactionHandler
protected int getStatus()
public void suspend()
suspend
in interface TransactionHandler
public void resume()
resume
in interface TransactionHandler
public void beginActivation()
beginActivation
in interface TransactionHandler
public void endActivation()
endActivation
in interface TransactionHandler
public void beginPassivation()
beginPassivation
in interface TransactionHandler
public void endPassivation()
endPassivation
in interface TransactionHandler