public class DefaultTxnHandlerImpl extends java.lang.Object implements TransactionHandler
TransactionHandler| Constructor and Description |
|---|
DefaultTxnHandlerImpl()
Creates a transaction handler on a JDBC connection.
|
| Modifier and Type | Method and Description |
|---|---|
void |
begin() |
void |
beginActivation() |
void |
beginPassivation() |
void |
end() |
void |
endActivation() |
void |
endPassivation() |
void |
handleClose(java.sql.Connection conn)
Issues a close() command to the JDBC connection.
|
void |
handleCommit(java.sql.Connection conn,
boolean autoStart)
Issues a commit() command to the JDBC connection.
|
void |
handleOpen(java.sql.Connection conn)
Opens a transaction.
|
void |
handleRollback(java.sql.Connection conn,
boolean autoStart)
Issues a rollback() command to the JDBC connection.
|
void |
resume() |
void |
suspend() |
public DefaultTxnHandlerImpl()
public void begin()
begin in interface TransactionHandlerpublic void end()
public 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 TransactionHandlerpublic void handleOpen(java.sql.Connection conn)
handleOpen in interface TransactionHandlerpublic void handleCommit(java.sql.Connection conn,
boolean autoStart)
handleCommit in interface TransactionHandlerDMLException - if an attempt to post to the database was
unsuccessful.public void handleRollback(java.sql.Connection conn,
boolean autoStart)
handleRollback in interface TransactionHandlerDMLException - if an attempt to post to the database was
unsuccessful.public void handleClose(java.sql.Connection conn)
handleClose in interface TransactionHandlerDMLException - if an attempt to post to the database was
unsuccessful.