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 SummaryModifier 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
- 
logDescription copied from interface:JdbcEventLoggerLogs an arbitrary message.- Specified by:
- login interface- JdbcEventLogger
 
- 
logGeneratedKey- Specified by:
- logGeneratedKeyin interface- JdbcEventLogger
 
- 
logQuery- Specified by:
- logQueryin interface- JdbcEventLogger
 
- 
logQueryParameters- Specified by:
- logQueryParametersin interface- JdbcEventLogger
 
- 
logSelectCountpublic void logSelectCount(int count, long time) - Specified by:
- logSelectCountin interface- JdbcEventLogger
 
- 
logSelectCount- Specified by:
- logSelectCountin interface- JdbcEventLogger
- Parameters:
- count- of selected rows
- time- (milliseconds) time query took to run
- sql- SQL that was executed, printed when time exceeds timeThreshold
 
- 
logUpdateCountpublic void logUpdateCount(int count) - Specified by:
- logUpdateCountin interface- JdbcEventLogger
 
- 
logBeginTransaction- Specified by:
- logBeginTransactionin interface- JdbcEventLogger
 
- 
logCommitTransaction- Specified by:
- logCommitTransactionin interface- JdbcEventLogger
 
- 
logRollbackTransaction- Specified by:
- logRollbackTransactionin interface- JdbcEventLogger
 
- 
logQueryError- Specified by:
- logQueryErrorin interface- JdbcEventLogger
 
- 
isLoggablepublic boolean isLoggable()Description copied from interface:JdbcEventLoggerReturns true if current thread default log level is high enough to generate output.- Specified by:
- isLoggablein interface- JdbcEventLogger
 
 
-