public interface SQLLog
Modifier and Type | Interface and Description |
---|---|
static interface |
SQLLog.BatchLogger
Instances of this are used to log batch statements.
|
Modifier and Type | Method and Description |
---|---|
SQLLog.BatchLogger |
logBatch()
Factory method used to obtain a SQLLog.BatchLogger which will be used to log
a specific batch statement.
|
void |
logBeginTransaction(Handle h)
Called when a transaction is started
|
void |
logCheckpointTransaction(Handle h,
String name)
Called when a transaction is checkpointed
|
void |
logCommitTransaction(long time,
Handle h)
Called when a transaction is committed
|
void |
logObtainHandle(long time,
Handle h)
Called when a handle is opened from a DBI instance
|
void |
logPreparedBatch(long time,
String sql,
int count)
Called to log a prepared batch execution
|
void |
logReleaseCheckpointTransaction(Handle h,
String name)
Called when a transaction checkpoint is released
|
void |
logReleaseHandle(Handle h)
Called when a handle is closed
|
void |
logRollbackToCheckpoint(long time,
Handle h,
String checkpointName)
Called when a transaction checkpoint is rolled back to
|
void |
logRollbackTransaction(long time,
Handle h)
Called when a transaction is committed
|
void |
logSQL(long time,
String sql)
Called to log typical sql statements
|
SQLLog.BatchLogger logBatch()
void logBeginTransaction(Handle h)
void logCheckpointTransaction(Handle h, String name)
name
- the checkpoint namevoid logCommitTransaction(long time, Handle h)
void logObtainHandle(long time, Handle h)
void logPreparedBatch(long time, String sql, int count)
sql
- The sql for the prepared batchcount
- the number of elements in the prepared batchvoid logReleaseCheckpointTransaction(Handle h, String name)
name
- the checkpoint namevoid logReleaseHandle(Handle h)
void logRollbackToCheckpoint(long time, Handle h, String checkpointName)
void logRollbackTransaction(long time, Handle h)
void logSQL(long time, String sql)
sql
- the actual sql being exectedCopyright © 2018. All rights reserved.