public interface JdbcEventLogger
Modifier and Type | Method and Description |
---|---|
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)
Deprecated.
since 4.0 connection events are logged by the DataSources
using their own logger.
|
void |
logConnect(String url,
String userName,
String password)
Deprecated.
since 4.0 connection events are logged by the DataSources
using their own logger.
|
void |
logConnectFailure(Throwable th)
Deprecated.
since 4.0 connection events are logged by the DataSources
using their own logger.
|
void |
logConnectSuccess()
Deprecated.
since 4.0 connection events are logged by the DataSources
using their own logger.
|
void |
logGeneratedKey(DbAttribute attribute,
Object value) |
void |
logPoolCreated(DataSourceInfo dsi)
Deprecated.
since 4.0 connection events are logged by the DataSources
using their own logger.
|
void |
logQuery(String sql,
List<?> params)
Deprecated.
since 4.0 use
logQuery(String, ParameterBinding[]) . |
void |
logQuery(String sql,
List<DbAttribute> attrs,
List<?> params,
long time)
Deprecated.
since 4.0 use
logQuery(String, ParameterBinding[]) . |
void |
logQuery(String sql,
ParameterBinding[] bindings) |
void |
logQueryError(Throwable th) |
void |
logQueryParameters(String label,
List<DbAttribute> attrs,
List<Object> parameters,
boolean isInserting)
Deprecated.
since 4.0 use
logQueryParameters(String, ParameterBinding[]) |
void |
logQueryParameters(String label,
ParameterBinding[] bindings) |
void |
logRollbackTransaction(String transactionLabel) |
void |
logSelectCount(int count,
long time) |
void |
logSelectCount(int count,
long time,
String sql) |
void |
logUpdateCount(int count) |
void log(String message)
@Deprecated void logConnect(String dataSource)
@Deprecated void logConnect(String url, String userName, String password)
@Deprecated void logPoolCreated(DataSourceInfo dsi)
@Deprecated void logConnectSuccess()
@Deprecated void logConnectFailure(Throwable th)
void logGeneratedKey(DbAttribute attribute, Object value)
@Deprecated void logQuery(String sql, List<?> params)
logQuery(String, ParameterBinding[])
.@Deprecated void logQuery(String sql, List<DbAttribute> attrs, List<?> params, long time)
logQuery(String, ParameterBinding[])
.void logQuery(String sql, ParameterBinding[] bindings)
void logQueryParameters(String label, ParameterBinding[] bindings)
@Deprecated void logQueryParameters(String label, List<DbAttribute> attrs, List<Object> parameters, boolean isInserting)
logQueryParameters(String, ParameterBinding[])
void logSelectCount(int count, long time)
void logSelectCount(int count, long time, String sql)
count
- of selected rowstime
- (milliseconds) time query took to runsql
- SQL that was executed, printed when time exceeds timeThresholdvoid logUpdateCount(int count)
void logBeginTransaction(String transactionLabel)
void logCommitTransaction(String transactionLabel)
void logRollbackTransaction(String transactionLabel)
void logQueryError(Throwable th)
boolean isLoggable()
Copyright © 2001–2018 Apache Cayenne. All rights reserved.