Package org.apache.cayenne.log
Class NoopJdbcEventLogger
java.lang.Object
org.apache.cayenne.log.NoopJdbcEventLogger
- All Implemented Interfaces:
JdbcEventLogger
Noop implementation of JdbcEventLogger
- Since:
- 3.1
-
Method Summary
Modifier and TypeMethodDescriptionstatic NoopJdbcEventLoggerbooleanReturns true if current thread default log level is high enough to generate output.voidLogs an arbitrary message.voidlogBeginTransaction(String transactionLabel) voidlogCommitTransaction(String transactionLabel) voidlogGeneratedKey(DbAttribute attribute, Object value) voidlogQuery(String sql, ParameterBinding[] bindings) voidvoidlogQueryParameters(String label, ParameterBinding[] bindings) voidlogRollbackTransaction(String transactionLabel) voidlogSelectCount(int count, long time) voidlogSelectCount(int count, long time, String sql) voidlogUpdateCount(int count)
-
Method Details
-
getInstance
-
log
Description copied from interface:JdbcEventLoggerLogs an arbitrary message.- Specified by:
login interfaceJdbcEventLogger
-
logGeneratedKey
- Specified by:
logGeneratedKeyin interfaceJdbcEventLogger
-
logQuery
- Specified by:
logQueryin interfaceJdbcEventLogger
-
logQueryParameters
- Specified by:
logQueryParametersin interfaceJdbcEventLogger
-
logSelectCount
public void logSelectCount(int count, long time) - Specified by:
logSelectCountin interfaceJdbcEventLogger
-
logSelectCount
- Specified by:
logSelectCountin interfaceJdbcEventLogger- Parameters:
count- of selected rowstime- (milliseconds) time query took to runsql- SQL that was executed, printed when time exceeds timeThreshold
-
logUpdateCount
public void logUpdateCount(int count) - Specified by:
logUpdateCountin interfaceJdbcEventLogger
-
logBeginTransaction
- Specified by:
logBeginTransactionin interfaceJdbcEventLogger
-
logCommitTransaction
- Specified by:
logCommitTransactionin interfaceJdbcEventLogger
-
logRollbackTransaction
- Specified by:
logRollbackTransactionin interfaceJdbcEventLogger
-
logQueryError
- Specified by:
logQueryErrorin interfaceJdbcEventLogger
-
isLoggable
public boolean isLoggable()Description copied from interface:JdbcEventLoggerReturns true if current thread default log level is high enough to generate output.- Specified by:
isLoggablein interfaceJdbcEventLogger
-