public class EmptyTransactionHandler extends java.lang.Object implements TransactionHandler
Extend this class to override Transaction methods e,g handleCommit
of interest.
TransactionHandler| Constructor and Description |
|---|
EmptyTransactionHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
begin() |
void |
beginActivation() |
void |
beginPassivation() |
void |
endActivation() |
void |
endPassivation() |
void |
handleClose(java.sql.Connection c)
Terminates the transaction.
|
void |
handleCommit(java.sql.Connection c,
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 |
resume() |
void |
suspend() |
public void begin()
begin in interface TransactionHandlerpublic void handleOpen(java.sql.Connection conn)
TransactionHandlerhandleOpen in interface TransactionHandlerpublic void handleCommit(java.sql.Connection c,
boolean autoStart)
TransactionHandlerhandleCommit in interface TransactionHandlerpublic void handleRollback(java.sql.Connection c,
boolean autoStart)
TransactionHandlerhandleRollback in interface TransactionHandlerpublic void handleClose(java.sql.Connection c)
TransactionHandlerhandleClose in interface TransactionHandlerpublic void suspend()
suspend in interface TransactionHandlerpublic void resume()
resume in interface TransactionHandlerpublic void beginActivation()
beginActivation in interface TransactionHandlerpublic void endActivation()
endActivation in interface TransactionHandlerpublic void beginPassivation()
beginPassivation in interface TransactionHandlerpublic void endPassivation()
endPassivation in interface TransactionHandler