public class TransactionalDb extends BasicDb
Modifier and Type | Class and Description |
---|---|
static interface |
TransactionalDb.TransactionCallback
Transaction callback interface
|
BasicDb.DbProperties
Constructor and Description |
---|
TransactionalDb(BasicDb.DbProperties dbProperties) |
Modifier and Type | Method and Description |
---|---|
java.sql.Connection |
beginTransaction() |
void |
clearCache() |
void |
commitTransaction() |
void |
endTransaction() |
java.sql.Connection |
getConnection() |
boolean |
isInTransaction() |
void |
registerCallback(TransactionalDb.TransactionCallback callback) |
void |
rollbackTransaction() |
analyzeTables, getPooledConnection, getUrl, init, logThreshold, shutdown
public TransactionalDb(BasicDb.DbProperties dbProperties)
public java.sql.Connection getConnection() throws java.sql.SQLException
getConnection
in class BasicDb
java.sql.SQLException
public boolean isInTransaction()
public java.sql.Connection beginTransaction()
public void commitTransaction()
public void rollbackTransaction()
public void endTransaction()
public void registerCallback(TransactionalDb.TransactionCallback callback)
public void clearCache()