org.jdbcdslog
Class StatementLoggingHandler
java.lang.Object
org.jdbcdslog.LoggingHandlerSupport<T>
org.jdbcdslog.StatementLoggingHandlerTemplate<Statement>
org.jdbcdslog.StatementLoggingHandler
- All Implemented Interfaces:
- InvocationHandler
public class StatementLoggingHandler
- extends StatementLoggingHandlerTemplate<Statement>
|
Method Summary |
protected void |
appendBatchStatements(StringBuilder sb)
|
protected void |
appendStatement(StringBuilder sb,
Object proxy,
Method method,
Object[] args)
|
protected void |
doAddBatch(Object proxy,
Method method,
Object[] args)
|
protected Object |
doAfterInvoke(Object proxy,
Method method,
Object[] args,
Object result)
|
protected void |
handleException(Throwable t,
Object proxy,
Method method,
Object[] args)
|
protected boolean |
needsLogging(Object proxy,
Method method,
Object[] args)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EXECUTE_METHODS
protected static final Set<String> EXECUTE_METHODS
batchStatements
protected StringBuilder batchStatements
logMetaData
protected LogMetaData logMetaData
StatementLoggingHandler
public StatementLoggingHandler(LogMetaData logMetaData,
Statement statement)
needsLogging
protected boolean needsLogging(Object proxy,
Method method,
Object[] args)
- Overrides:
needsLogging in class StatementLoggingHandlerTemplate<Statement>
appendStatement
protected void appendStatement(StringBuilder sb,
Object proxy,
Method method,
Object[] args)
- Specified by:
appendStatement in class StatementLoggingHandlerTemplate<Statement>
doAddBatch
protected void doAddBatch(Object proxy,
Method method,
Object[] args)
- Specified by:
doAddBatch in class StatementLoggingHandlerTemplate<Statement>
appendBatchStatements
protected void appendBatchStatements(StringBuilder sb)
- Specified by:
appendBatchStatements in class StatementLoggingHandlerTemplate<Statement>
doAfterInvoke
protected Object doAfterInvoke(Object proxy,
Method method,
Object[] args,
Object result)
- Overrides:
doAfterInvoke in class StatementLoggingHandlerTemplate<Statement>
handleException
protected void handleException(Throwable t,
Object proxy,
Method method,
Object[] args)
throws Throwable
- Overrides:
handleException in class StatementLoggingHandlerTemplate<Statement>
- Throws:
Throwable
Copyright © 2015. All rights reserved.