|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JdbcEventLogger
A logging service used by Cayenne to output database interactions.
Method Summary | |
---|---|
boolean |
isLoggable()
Returns true if current thread default log level is high enough to generate output. |
void |
log(String message)
Logs an arbitrary message. |
void |
logBeginTransaction(String transactionLabel)
|
void |
logCommitTransaction(String transactionLabel)
|
void |
logConnect(String dataSource)
Logs database connection event using container data source. |
void |
logConnect(String url,
String userName,
String password)
|
void |
logConnectFailure(Throwable th)
|
void |
logConnectSuccess()
|
void |
logGeneratedKey(DbAttribute attribute,
Object value)
|
void |
logPoolCreated(DataSourceInfo dsi)
Logs database connection event. |
void |
logQuery(String sql,
List<?> params)
|
void |
logQuery(String sql,
List<DbAttribute> attrs,
List<?> params,
long time)
|
void |
logQueryError(Throwable th)
|
void |
logQueryParameters(String label,
List<DbAttribute> attrs,
List<Object> parameters,
boolean isInserting)
|
void |
logRollbackTransaction(String transactionLabel)
|
void |
logSelectCount(int count,
long time)
|
void |
logUpdateCount(int count)
|
Method Detail |
---|
void log(String message)
void logConnect(String dataSource)
void logConnect(String url, String userName, String password)
void logPoolCreated(DataSourceInfo dsi)
void logConnectSuccess()
void logConnectFailure(Throwable th)
void logGeneratedKey(DbAttribute attribute, Object value)
void logQuery(String sql, List<?> params)
void logQuery(String sql, List<DbAttribute> attrs, List<?> params, long time)
void logQueryParameters(String label, List<DbAttribute> attrs, List<Object> parameters, boolean isInserting)
void logSelectCount(int count, long time)
void logUpdateCount(int count)
void logBeginTransaction(String transactionLabel)
void logCommitTransaction(String transactionLabel)
void logRollbackTransaction(String transactionLabel)
void logQueryError(Throwable th)
boolean isLoggable()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |