|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface SQLLog
Interface used to receive sql logging events.
| Nested Class Summary | |
|---|---|
static interface |
SQLLog.BatchLogger
Instances of this are used to log batch statements. |
| Method Summary | |
|---|---|
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 |
| Method Detail |
|---|
SQLLog.BatchLogger logBatch()
void logBeginTransaction(Handle h)
void logCheckpointTransaction(Handle h,
String name)
name - the checkpoint name
void 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 batch
void 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 exected
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||