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 TransactionHandler
public void end()
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
public void handleOpen(java.sql.Connection conn)
handleOpen
in interface TransactionHandler
public void handleCommit(java.sql.Connection conn, boolean autoStart)
handleCommit
in interface TransactionHandler
DMLException
- if an attempt to post to the database was
unsuccessful.public void handleRollback(java.sql.Connection conn, boolean autoStart)
handleRollback
in interface TransactionHandler
DMLException
- if an attempt to post to the database was
unsuccessful.public void handleClose(java.sql.Connection conn)
handleClose
in interface TransactionHandler
DMLException
- if an attempt to post to the database was
unsuccessful.