public interface JdbcLogger
The implementation instance must be thread safe.
The implementation methods must not throw any exceptions.
| Modifier and Type | Method and Description |
|---|---|
void |
logAutoCommitEnablingFailure(java.lang.String callerClassName,
java.lang.String callerMethodName,
java.sql.SQLException e)
Logs a failure of an auto commit enabling.
|
void |
logConnectionClosingFailure(java.lang.String callerClassName,
java.lang.String callerMethodName,
java.sql.SQLException e)
Logs a failure of a connection close.
|
void |
logDaoMethodEntering(java.lang.String callerClassName,
java.lang.String callerMethodName,
java.lang.Object... args)
Logs the start of a DAO method.
|
void |
logDaoMethodExiting(java.lang.String callerClassName,
java.lang.String callerMethodName,
java.lang.Object result)
Logs the normal end of a DAO method.
|
void |
logDaoMethodThrowing(java.lang.String callerClassName,
java.lang.String callerMethodName,
java.lang.RuntimeException e)
Logs the abnormal end of a DAO method.
|
void |
logResultSetClosingFailure(java.lang.String callerClassName,
java.lang.String callerMethodName,
java.sql.SQLException e)
Logs a failure of a result set close.
|
void |
logSql(java.lang.String callerClassName,
java.lang.String callerMethodName,
Sql<?> sql)
Logs an SQL statement.
|
void |
logSqlExecutionSkipping(java.lang.String callerClassName,
java.lang.String callerMethodName,
SqlExecutionSkipCause cause)
Logs a skip of an SQL execution.
|
void |
logStatementClosingFailure(java.lang.String callerClassName,
java.lang.String callerMethodName,
java.sql.SQLException e)
Logs a failure of a statement close.
|
void |
logTransactionBegun(java.lang.String callerClassName,
java.lang.String callerMethodName,
java.lang.String transactionId)
Logs a beginning of a transaction.
|
void |
logTransactionCommitted(java.lang.String callerClassName,
java.lang.String callerMethodName,
java.lang.String transactionId)
Logs a commit of a transaction.
|
void |
logTransactionEnded(java.lang.String callerClassName,
java.lang.String callerMethodName,
java.lang.String transactionId)
Logs an end of a transaction.
|
void |
logTransactionIsolationSettingFailure(java.lang.String callerClassName,
java.lang.String callerMethodName,
int transactionIsolationLevel,
java.sql.SQLException e)
Logs a failure of a transaction isolation setting.
|
void |
logTransactionRollbackFailure(java.lang.String callerClassName,
java.lang.String callerMethodName,
java.lang.String transactionId,
java.sql.SQLException e)
Logs a failure of a transaction rollback.
|
void |
logTransactionRolledback(java.lang.String callerClassName,
java.lang.String callerMethodName,
java.lang.String transactionId)
Logs a rollback of a transaction.
|
void |
logTransactionSavepointCreated(java.lang.String callerClassName,
java.lang.String callerMethodName,
java.lang.String transactionId,
java.lang.String savepointName)
Logs a creation of a save point.
|
default void |
logTransactionSavepointReleased(java.lang.String callerClassName,
java.lang.String callerMethodName,
java.lang.String transactionId,
java.lang.String savepointName)
Logs a release of a save point.
|
void |
logTransactionSavepointRolledback(java.lang.String callerClassName,
java.lang.String callerMethodName,
java.lang.String transactionId,
java.lang.String savepointName)
Logs a rollback of a save point.
|
void logDaoMethodEntering(java.lang.String callerClassName,
java.lang.String callerMethodName,
java.lang.Object... args)
callerClassName - the name of the DAO classcallerMethodName - the name of the DAO methodargs - the arguments of the DAO methodvoid logDaoMethodExiting(java.lang.String callerClassName,
java.lang.String callerMethodName,
java.lang.Object result)
At the end of the DAO method, either this method or logDaoMethodThrowing(String,
String, RuntimeException) must be invoked.
callerClassName - the name of the DAO classcallerMethodName - the name of the DAO methodresult - the method result or null if the method return type is voidvoid logDaoMethodThrowing(java.lang.String callerClassName,
java.lang.String callerMethodName,
java.lang.RuntimeException e)
At the end of the DAO method, either this method or logDaoMethodExiting(String,
String, Object) must be invoked.
callerClassName - the name of the DAO classcallerMethodName - the name of the DAO methode - the runtime exceptionvoid logSqlExecutionSkipping(java.lang.String callerClassName,
java.lang.String callerMethodName,
SqlExecutionSkipCause cause)
callerClassName - the caller class namecallerMethodName - the caller method namecause - the cause of the skipvoid logSql(java.lang.String callerClassName,
java.lang.String callerMethodName,
Sql<?> sql)
callerClassName - the caller class namecallerMethodName - the caller method namesql - SQLvoid logTransactionBegun(java.lang.String callerClassName,
java.lang.String callerMethodName,
java.lang.String transactionId)
callerClassName - the caller class namecallerMethodName - the caller method nametransactionId - the transaction idvoid logTransactionEnded(java.lang.String callerClassName,
java.lang.String callerMethodName,
java.lang.String transactionId)
callerClassName - the caller class namecallerMethodName - the caller method nametransactionId - the transaction idvoid logTransactionCommitted(java.lang.String callerClassName,
java.lang.String callerMethodName,
java.lang.String transactionId)
callerClassName - the caller class namecallerMethodName - the caller method nametransactionId - the transaction idvoid logTransactionSavepointCreated(java.lang.String callerClassName,
java.lang.String callerMethodName,
java.lang.String transactionId,
java.lang.String savepointName)
callerClassName - the caller class namecallerMethodName - the caller method nametransactionId - the transaction idsavepointName - the save point namevoid logTransactionRolledback(java.lang.String callerClassName,
java.lang.String callerMethodName,
java.lang.String transactionId)
callerClassName - the caller class namecallerMethodName - the caller method nametransactionId - the transaction idvoid logTransactionSavepointRolledback(java.lang.String callerClassName,
java.lang.String callerMethodName,
java.lang.String transactionId,
java.lang.String savepointName)
callerClassName - the caller class namecallerMethodName - the caller method nametransactionId - the transaction idsavepointName - the save point namedefault void logTransactionSavepointReleased(java.lang.String callerClassName,
java.lang.String callerMethodName,
java.lang.String transactionId,
java.lang.String savepointName)
callerClassName - the caller class namecallerMethodName - the caller method nametransactionId - the transaction idsavepointName - the save point namevoid logTransactionRollbackFailure(java.lang.String callerClassName,
java.lang.String callerMethodName,
java.lang.String transactionId,
java.sql.SQLException e)
callerClassName - the caller class namecallerMethodName - the caller method nametransactionId - the transaction ide - the cause of the failurevoid logAutoCommitEnablingFailure(java.lang.String callerClassName,
java.lang.String callerMethodName,
java.sql.SQLException e)
callerClassName - the caller class namecallerMethodName - the caller method namee - the cause of the failureConnection.setAutoCommit(boolean)void logTransactionIsolationSettingFailure(java.lang.String callerClassName,
java.lang.String callerMethodName,
int transactionIsolationLevel,
java.sql.SQLException e)
callerClassName - the caller class namecallerMethodName - the caller method nametransactionIsolationLevel - the transaction isolation levele - the cause of the failureConnection.setTransactionIsolation(int)void logConnectionClosingFailure(java.lang.String callerClassName,
java.lang.String callerMethodName,
java.sql.SQLException e)
callerClassName - the caller class namecallerMethodName - the caller method namee - the cause of the failureConnection.close()void logStatementClosingFailure(java.lang.String callerClassName,
java.lang.String callerMethodName,
java.sql.SQLException e)
callerClassName - the caller class namecallerMethodName - the caller method namee - the cause of the failureStatement.close()void logResultSetClosingFailure(java.lang.String callerClassName,
java.lang.String callerMethodName,
java.sql.SQLException e)
callerClassName - the caller class namecallerMethodName - the caller method namee - the cause of the failureResultSet.close()