Package com.alibaba.druid.filter.logging
Class LogFilter
- java.lang.Object
-
- javax.management.NotificationBroadcasterSupport
-
- com.alibaba.druid.filter.FilterAdapter
-
- com.alibaba.druid.filter.FilterEventAdapter
-
- com.alibaba.druid.filter.logging.LogFilter
-
- All Implemented Interfaces:
Filter,LogFilterMBean,Wrapper,NotificationBroadcaster,NotificationEmitter
- Direct Known Subclasses:
CommonsLogFilter,Log4j2Filter,Log4jFilter,Slf4jLogFilter
public abstract class LogFilter extends FilterEventAdapter implements LogFilterMBean
- Author:
- wenshao [szujobs@hotmail.com]
-
-
Field Summary
Fields Modifier and Type Field Description protected StringconnectionLoggerNameprotected DataSourceProxydataSourceprotected StringdataSourceLoggerNameprotected StringresultSetLoggerNameprotected StringstatementLoggerName
-
Constructor Summary
Constructors Constructor Description LogFilter()LogFilter(Properties properties)
-
Method Summary
-
Methods inherited from class com.alibaba.druid.filter.FilterEventAdapter
connection_connect, connection_connectBefore, connection_createStatement, connection_createStatement, connection_createStatement, connection_prepareCall, connection_prepareCall, connection_prepareCall, connection_prepareStatement, connection_prepareStatement, connection_prepareStatement, connection_prepareStatement, connection_prepareStatement, connection_prepareStatement, preparedStatement_execute, preparedStatement_executeQuery, preparedStatement_executeUpdate, statement_execute, statement_execute, statement_execute, statement_execute, statement_executeBatch, statement_executeQuery, statement_executeUpdate, statement_executeUpdate, statement_executeUpdate, statement_executeUpdate, statement_getGeneratedKeys, statement_getResultSet
-
Methods inherited from class com.alibaba.druid.filter.FilterAdapter
callableStatement_getArray, callableStatement_getArray, callableStatement_getBigDecimal, callableStatement_getBigDecimal, callableStatement_getBigDecimal, callableStatement_getBlob, callableStatement_getBlob, callableStatement_getBoolean, callableStatement_getBoolean, callableStatement_getByte, callableStatement_getByte, callableStatement_getBytes, callableStatement_getBytes, callableStatement_getCharacterStream, callableStatement_getCharacterStream, callableStatement_getClob, callableStatement_getClob, callableStatement_getDate, callableStatement_getDate, callableStatement_getDate, callableStatement_getDate, callableStatement_getDouble, callableStatement_getDouble, callableStatement_getFloat, callableStatement_getFloat, callableStatement_getInt, callableStatement_getInt, callableStatement_getLong, callableStatement_getLong, callableStatement_getNCharacterStream, callableStatement_getNCharacterStream, callableStatement_getNClob, callableStatement_getNClob, callableStatement_getNString, callableStatement_getNString, callableStatement_getRef, callableStatement_getRef, callableStatement_getRowId, callableStatement_getRowId, callableStatement_getShort, callableStatement_getShort, callableStatement_getSQLXML, callableStatement_getSQLXML, callableStatement_getString, callableStatement_getString, callableStatement_getTime, callableStatement_getTime, callableStatement_getTime, callableStatement_getTime, callableStatement_getTimestamp, callableStatement_getTimestamp, callableStatement_getTimestamp, callableStatement_getTimestamp, callableStatement_getURL, callableStatement_getURL, callableStatement_registerOutParameter, callableStatement_registerOutParameter, callableStatement_registerOutParameter, callableStatement_registerOutParameter, callableStatement_registerOutParameter, callableStatement_registerOutParameter, callableStatement_setAsciiStream, callableStatement_setAsciiStream, callableStatement_setAsciiStream, callableStatement_setBigDecimal, callableStatement_setBinaryStream, callableStatement_setBinaryStream, callableStatement_setBinaryStream, callableStatement_setBlob, callableStatement_setBlob, callableStatement_setBlob, callableStatement_setBoolean, callableStatement_setByte, callableStatement_setBytes, callableStatement_setCharacterStream, callableStatement_setCharacterStream, callableStatement_setCharacterStream, callableStatement_setClob, callableStatement_setClob, callableStatement_setClob, callableStatement_setDate, callableStatement_setDate, callableStatement_setDouble, callableStatement_setFloat, callableStatement_setInt, callableStatement_setLong, callableStatement_setNCharacterStream, callableStatement_setNCharacterStream, callableStatement_setNClob, callableStatement_setNClob, callableStatement_setNClob, callableStatement_setNString, callableStatement_setNull, callableStatement_setNull, callableStatement_setObject, callableStatement_setObject, callableStatement_setObject, callableStatement_setRowId, callableStatement_setShort, callableStatement_setSQLXML, callableStatement_setString, callableStatement_setTime, callableStatement_setTime, callableStatement_setTimestamp, callableStatement_setTimestamp, callableStatement_setURL, callableStatement_wasNull, clob_free, clob_getAsciiStream, clob_getCharacterStream, clob_getCharacterStream, clob_getSubString, clob_length, clob_position, clob_position, clob_setAsciiStream, clob_setCharacterStream, clob_setString, clob_setString, clob_truncate, connection_abort, connection_clearWarnings, connection_createArrayOf, connection_createBlob, connection_createClob, connection_createNClob, connection_createSQLXML, connection_createStruct, connection_getAutoCommit, connection_getCatalog, connection_getClientInfo, connection_getClientInfo, connection_getHoldability, connection_getMetaData, connection_getNetworkTimeout, connection_getSchema, connection_getTransactionIsolation, connection_getTypeMap, connection_getWarnings, connection_isClosed, connection_isReadOnly, connection_isValid, connection_nativeSQL, connection_releaseSavepoint, connection_setCatalog, connection_setClientInfo, connection_setClientInfo, connection_setHoldability, connection_setNetworkTimeout, connection_setReadOnly, connection_setSchema, connection_setTransactionIsolation, connection_setTypeMap, destroy, isWrapperFor, preparedStatement_addBatch, preparedStatement_getMetaData, preparedStatement_getParameterMetaData, preparedStatement_setArray, preparedStatement_setAsciiStream, preparedStatement_setAsciiStream, preparedStatement_setAsciiStream, preparedStatement_setBigDecimal, preparedStatement_setBinaryStream, preparedStatement_setBinaryStream, preparedStatement_setBinaryStream, preparedStatement_setBlob, preparedStatement_setBlob, preparedStatement_setBlob, preparedStatement_setBoolean, preparedStatement_setByte, preparedStatement_setBytes, preparedStatement_setCharacterStream, preparedStatement_setCharacterStream, preparedStatement_setCharacterStream, preparedStatement_setClob, preparedStatement_setClob, preparedStatement_setClob, preparedStatement_setDate, preparedStatement_setDate, preparedStatement_setDouble, preparedStatement_setFloat, preparedStatement_setInt, preparedStatement_setLong, preparedStatement_setNCharacterStream, preparedStatement_setNCharacterStream, preparedStatement_setNClob, preparedStatement_setNClob, preparedStatement_setNClob, preparedStatement_setNString, preparedStatement_setNull, preparedStatement_setNull, preparedStatement_setObject, preparedStatement_setObject, preparedStatement_setObject, preparedStatement_setRef, preparedStatement_setRowId, preparedStatement_setShort, preparedStatement_setSQLXML, preparedStatement_setString, preparedStatement_setTime, preparedStatement_setTime, preparedStatement_setTimestamp, preparedStatement_setTimestamp, preparedStatement_setUnicodeStream, preparedStatement_setURL, resultSet_absolute, resultSet_afterLast, resultSet_beforeFirst, resultSet_cancelRowUpdates, resultSet_clearWarnings, resultSet_deleteRow, resultSet_findColumn, resultSet_first, resultSet_getArray, resultSet_getArray, resultSet_getAsciiStream, resultSet_getAsciiStream, resultSet_getBigDecimal, resultSet_getBigDecimal, resultSet_getBigDecimal, resultSet_getBigDecimal, resultSet_getBinaryStream, resultSet_getBinaryStream, resultSet_getBlob, resultSet_getBlob, resultSet_getBoolean, resultSet_getBoolean, resultSet_getByte, resultSet_getByte, resultSet_getBytes, resultSet_getBytes, resultSet_getCharacterStream, resultSet_getCharacterStream, resultSet_getClob, resultSet_getClob, resultSet_getConcurrency, resultSet_getCursorName, resultSet_getDate, resultSet_getDate, resultSet_getDate, resultSet_getDate, resultSet_getDouble, resultSet_getDouble, resultSet_getFetchDirection, resultSet_getFetchSize, resultSet_getFloat, resultSet_getFloat, resultSet_getHoldability, resultSet_getInt, resultSet_getInt, resultSet_getLong, resultSet_getLong, resultSet_getMetaData, resultSet_getNCharacterStream, resultSet_getNCharacterStream, resultSet_getNClob, resultSet_getNClob, resultSet_getNString, resultSet_getNString, resultSet_getObject, resultSet_getObject, resultSet_getObject, resultSet_getObject, resultSet_getObject, resultSet_getObject, resultSet_getRef, resultSet_getRef, resultSet_getRow, resultSet_getRowId, resultSet_getRowId, resultSet_getShort, resultSet_getShort, resultSet_getSQLXML, resultSet_getSQLXML, resultSet_getStatement, resultSet_getString, resultSet_getString, resultSet_getTime, resultSet_getTime, resultSet_getTime, resultSet_getTime, resultSet_getTimestamp, resultSet_getTimestamp, resultSet_getTimestamp, resultSet_getTimestamp, resultSet_getType, resultSet_getUnicodeStream, resultSet_getUnicodeStream, resultSet_getURL, resultSet_getURL, resultSet_getWarnings, resultSet_insertRow, resultSet_isAfterLast, resultSet_isBeforeFirst, resultSet_isClosed, resultSet_isFirst, resultSet_isLast, resultSet_last, resultSet_moveToCurrentRow, resultSet_moveToInsertRow, resultSet_previous, resultSet_refreshRow, resultSet_relative, resultSet_rowDeleted, resultSet_rowInserted, resultSet_rowUpdated, resultSet_setFetchDirection, resultSet_setFetchSize, resultSet_updateArray, resultSet_updateArray, resultSet_updateAsciiStream, resultSet_updateAsciiStream, resultSet_updateAsciiStream, resultSet_updateAsciiStream, resultSet_updateAsciiStream, resultSet_updateAsciiStream, resultSet_updateBigDecimal, resultSet_updateBigDecimal, resultSet_updateBinaryStream, resultSet_updateBinaryStream, resultSet_updateBinaryStream, resultSet_updateBinaryStream, resultSet_updateBinaryStream, resultSet_updateBinaryStream, resultSet_updateBlob, resultSet_updateBlob, resultSet_updateBlob, resultSet_updateBlob, resultSet_updateBlob, resultSet_updateBlob, resultSet_updateBoolean, resultSet_updateBoolean, resultSet_updateByte, resultSet_updateByte, resultSet_updateBytes, resultSet_updateBytes, resultSet_updateCharacterStream, resultSet_updateCharacterStream, resultSet_updateCharacterStream, resultSet_updateCharacterStream, resultSet_updateCharacterStream, resultSet_updateCharacterStream, resultSet_updateClob, resultSet_updateClob, resultSet_updateClob, resultSet_updateClob, resultSet_updateClob, resultSet_updateClob, resultSet_updateDate, resultSet_updateDate, resultSet_updateDouble, resultSet_updateDouble, resultSet_updateFloat, resultSet_updateFloat, resultSet_updateInt, resultSet_updateInt, resultSet_updateLong, resultSet_updateLong, resultSet_updateNCharacterStream, resultSet_updateNCharacterStream, resultSet_updateNCharacterStream, resultSet_updateNCharacterStream, resultSet_updateNClob, resultSet_updateNClob, resultSet_updateNClob, resultSet_updateNClob, resultSet_updateNClob, resultSet_updateNClob, resultSet_updateNString, resultSet_updateNString, resultSet_updateNull, resultSet_updateNull, resultSet_updateObject, resultSet_updateObject, resultSet_updateObject, resultSet_updateObject, resultSet_updateRef, resultSet_updateRef, resultSet_updateRow, resultSet_updateRowId, resultSet_updateRowId, resultSet_updateShort, resultSet_updateShort, resultSet_updateSQLXML, resultSet_updateSQLXML, resultSet_updateString, resultSet_updateString, resultSet_updateTime, resultSet_updateTime, resultSet_updateTimestamp, resultSet_updateTimestamp, resultSet_wasNull, resultSetMetaData_getCatalogName, resultSetMetaData_getColumnClassName, resultSetMetaData_getColumnCount, resultSetMetaData_getColumnDisplaySize, resultSetMetaData_getColumnLabel, resultSetMetaData_getColumnName, resultSetMetaData_getColumnType, resultSetMetaData_getColumnTypeName, resultSetMetaData_getPrecision, resultSetMetaData_getScale, resultSetMetaData_getSchemaName, resultSetMetaData_getTableName, resultSetMetaData_isAutoIncrement, resultSetMetaData_isCaseSensitive, resultSetMetaData_isCurrency, resultSetMetaData_isDefinitelyWritable, resultSetMetaData_isNullable, resultSetMetaData_isReadOnly, resultSetMetaData_isSearchable, resultSetMetaData_isSigned, resultSetMetaData_isWritable, statement_addBatch, statement_cancel, statement_clearWarnings, statement_getConnection, statement_getFetchDirection, statement_getFetchSize, statement_getMaxFieldSize, statement_getMaxRows, statement_getMoreResults, statement_getMoreResults, statement_getQueryTimeout, statement_getResultSetConcurrency, statement_getResultSetHoldability, statement_getResultSetType, statement_getUpdateCount, statement_getWarnings, statement_isClosed, statement_isPoolable, statement_setCursorName, statement_setEscapeProcessing, statement_setFetchDirection, statement_setFetchSize, statement_setMaxFieldSize, statement_setMaxRows, statement_setPoolable, statement_setQueryTimeout, unwrap
-
Methods inherited from class javax.management.NotificationBroadcasterSupport
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.alibaba.druid.filter.logging.LogFilterMBean
getConnectionLoggerName, getDataSourceLoggerName, getResultSetLoggerName, getStatementLoggerName, setConnectionLoggerName, setDataSourceLoggerName, setResultSetLoggerName, setStatementLoggerName
-
-
-
-
Field Detail
-
dataSourceLoggerName
protected String dataSourceLoggerName
-
connectionLoggerName
protected String connectionLoggerName
-
statementLoggerName
protected String statementLoggerName
-
resultSetLoggerName
protected String resultSetLoggerName
-
dataSource
protected DataSourceProxy dataSource
-
-
Constructor Detail
-
LogFilter
public LogFilter()
-
LogFilter
public LogFilter(Properties properties)
-
-
Method Detail
-
configFromProperties
public void configFromProperties(Properties properties)
- Specified by:
configFromPropertiesin interfaceFilter- Overrides:
configFromPropertiesin classFilterAdapter
-
init
public void init(DataSourceProxy dataSource)
- Specified by:
initin interfaceFilter- Overrides:
initin classFilterAdapter
-
isConnectionLogErrorEnabled
public boolean isConnectionLogErrorEnabled()
- Specified by:
isConnectionLogErrorEnabledin interfaceLogFilterMBean
-
isResultSetCloseAfterLogEnabled
public boolean isResultSetCloseAfterLogEnabled()
- Specified by:
isResultSetCloseAfterLogEnabledin interfaceLogFilterMBean
-
setResultSetCloseAfterLogEnabled
public void setResultSetCloseAfterLogEnabled(boolean resultSetCloseAfterLogEnable)
- Specified by:
setResultSetCloseAfterLogEnabledin interfaceLogFilterMBean
-
setConnectionLogErrorEnabled
public void setConnectionLogErrorEnabled(boolean connectionLogErrorEnabled)
- Specified by:
setConnectionLogErrorEnabledin interfaceLogFilterMBean
-
isResultSetLogErrorEnabled
public boolean isResultSetLogErrorEnabled()
- Specified by:
isResultSetLogErrorEnabledin interfaceLogFilterMBean
-
setResultSetLogErrorEnabled
public void setResultSetLogErrorEnabled(boolean resultSetLogErrorEnabled)
- Specified by:
setResultSetLogErrorEnabledin interfaceLogFilterMBean
-
isConnectionConnectBeforeLogEnabled
public boolean isConnectionConnectBeforeLogEnabled()
- Specified by:
isConnectionConnectBeforeLogEnabledin interfaceLogFilterMBean
-
setConnectionConnectBeforeLogEnabled
public void setConnectionConnectBeforeLogEnabled(boolean beforeConnectionConnectLogEnable)
- Specified by:
setConnectionConnectBeforeLogEnabledin interfaceLogFilterMBean
-
isConnectionCloseAfterLogEnabled
public boolean isConnectionCloseAfterLogEnabled()
- Specified by:
isConnectionCloseAfterLogEnabledin interfaceLogFilterMBean
-
isConnectionRollbackAfterLogEnabled
public boolean isConnectionRollbackAfterLogEnabled()
-
setConnectionRollbackAfterLogEnabled
public void setConnectionRollbackAfterLogEnabled(boolean connectionRollbackAfterLogEnable)
-
setConnectionCloseAfterLogEnabled
public void setConnectionCloseAfterLogEnabled(boolean afterConnectionCloseLogEnable)
- Specified by:
setConnectionCloseAfterLogEnabledin interfaceLogFilterMBean
-
isConnectionCommitAfterLogEnabled
public boolean isConnectionCommitAfterLogEnabled()
- Specified by:
isConnectionCommitAfterLogEnabledin interfaceLogFilterMBean
-
setConnectionCommitAfterLogEnabled
public void setConnectionCommitAfterLogEnabled(boolean afterConnectionCommitLogEnable)
- Specified by:
setConnectionCommitAfterLogEnabledin interfaceLogFilterMBean
-
isConnectionConnectAfterLogEnabled
public boolean isConnectionConnectAfterLogEnabled()
- Specified by:
isConnectionConnectAfterLogEnabledin interfaceLogFilterMBean
-
setConnectionConnectAfterLogEnabled
public void setConnectionConnectAfterLogEnabled(boolean afterConnectionConnectLogEnable)
- Specified by:
setConnectionConnectAfterLogEnabledin interfaceLogFilterMBean
-
isResultSetNextAfterLogEnabled
public boolean isResultSetNextAfterLogEnabled()
- Specified by:
isResultSetNextAfterLogEnabledin interfaceLogFilterMBean
-
setResultSetNextAfterLogEnabled
public void setResultSetNextAfterLogEnabled(boolean afterResultSetNextLogEnable)
- Specified by:
setResultSetNextAfterLogEnabledin interfaceLogFilterMBean
-
isResultSetOpenAfterLogEnabled
public boolean isResultSetOpenAfterLogEnabled()
- Specified by:
isResultSetOpenAfterLogEnabledin interfaceLogFilterMBean
-
setResultSetOpenAfterLogEnabled
public void setResultSetOpenAfterLogEnabled(boolean afterResultSetOpenLogEnable)
- Specified by:
setResultSetOpenAfterLogEnabledin interfaceLogFilterMBean
-
isStatementCloseAfterLogEnabled
public boolean isStatementCloseAfterLogEnabled()
- Specified by:
isStatementCloseAfterLogEnabledin interfaceLogFilterMBean
-
setStatementCloseAfterLogEnabled
public void setStatementCloseAfterLogEnabled(boolean afterStatementCloseLogEnable)
- Specified by:
setStatementCloseAfterLogEnabledin interfaceLogFilterMBean
-
isStatementCreateAfterLogEnabled
public boolean isStatementCreateAfterLogEnabled()
- Specified by:
isStatementCreateAfterLogEnabledin interfaceLogFilterMBean
-
setStatementCreateAfterLogEnabled
public void setStatementCreateAfterLogEnabled(boolean afterStatementCreateLogEnable)
- Specified by:
setStatementCreateAfterLogEnabledin interfaceLogFilterMBean
-
isStatementExecuteBatchAfterLogEnabled
public boolean isStatementExecuteBatchAfterLogEnabled()
- Specified by:
isStatementExecuteBatchAfterLogEnabledin interfaceLogFilterMBean
-
setStatementExecuteBatchAfterLogEnabled
public void setStatementExecuteBatchAfterLogEnabled(boolean afterStatementExecuteBatchLogEnable)
- Specified by:
setStatementExecuteBatchAfterLogEnabledin interfaceLogFilterMBean
-
isStatementExecuteAfterLogEnabled
public boolean isStatementExecuteAfterLogEnabled()
- Specified by:
isStatementExecuteAfterLogEnabledin interfaceLogFilterMBean
-
setStatementExecuteAfterLogEnabled
public void setStatementExecuteAfterLogEnabled(boolean afterStatementExecuteLogEnable)
- Specified by:
setStatementExecuteAfterLogEnabledin interfaceLogFilterMBean
-
isStatementExecuteQueryAfterLogEnabled
public boolean isStatementExecuteQueryAfterLogEnabled()
- Specified by:
isStatementExecuteQueryAfterLogEnabledin interfaceLogFilterMBean
-
setStatementExecuteQueryAfterLogEnabled
public void setStatementExecuteQueryAfterLogEnabled(boolean afterStatementExecuteQueryLogEnable)
- Specified by:
setStatementExecuteQueryAfterLogEnabledin interfaceLogFilterMBean
-
isStatementExecuteUpdateAfterLogEnabled
public boolean isStatementExecuteUpdateAfterLogEnabled()
- Specified by:
isStatementExecuteUpdateAfterLogEnabledin interfaceLogFilterMBean
-
setStatementExecuteUpdateAfterLogEnabled
public void setStatementExecuteUpdateAfterLogEnabled(boolean afterStatementExecuteUpdateLogEnable)
- Specified by:
setStatementExecuteUpdateAfterLogEnabledin interfaceLogFilterMBean
-
isStatementExecutableSqlLogEnable
public boolean isStatementExecutableSqlLogEnable()
-
setStatementExecutableSqlLogEnable
public void setStatementExecutableSqlLogEnable(boolean statementExecutableSqlLogEnable)
-
isStatementPrepareCallAfterLogEnabled
public boolean isStatementPrepareCallAfterLogEnabled()
- Specified by:
isStatementPrepareCallAfterLogEnabledin interfaceLogFilterMBean
-
setStatementPrepareCallAfterLogEnabled
public void setStatementPrepareCallAfterLogEnabled(boolean afterStatementPrepareCallLogEnable)
- Specified by:
setStatementPrepareCallAfterLogEnabledin interfaceLogFilterMBean
-
isStatementPrepareAfterLogEnabled
public boolean isStatementPrepareAfterLogEnabled()
- Specified by:
isStatementPrepareAfterLogEnabledin interfaceLogFilterMBean
-
setStatementPrepareAfterLogEnabled
public void setStatementPrepareAfterLogEnabled(boolean afterStatementPrepareLogEnable)
- Specified by:
setStatementPrepareAfterLogEnabledin interfaceLogFilterMBean
-
isDataSourceLogEnabled
public boolean isDataSourceLogEnabled()
- Specified by:
isDataSourceLogEnabledin interfaceLogFilterMBean
-
setDataSourceLogEnabled
public void setDataSourceLogEnabled(boolean dataSourceLogEnabled)
- Specified by:
setDataSourceLogEnabledin interfaceLogFilterMBean
-
isConnectionLogEnabled
public boolean isConnectionLogEnabled()
- Specified by:
isConnectionLogEnabledin interfaceLogFilterMBean
-
setConnectionLogEnabled
public void setConnectionLogEnabled(boolean connectionLogEnabled)
- Specified by:
setConnectionLogEnabledin interfaceLogFilterMBean
-
isStatementLogEnabled
public boolean isStatementLogEnabled()
- Specified by:
isStatementLogEnabledin interfaceLogFilterMBean
-
setStatementLogEnabled
public void setStatementLogEnabled(boolean statementLogEnabled)
- Specified by:
setStatementLogEnabledin interfaceLogFilterMBean
-
isStatementLogErrorEnabled
public boolean isStatementLogErrorEnabled()
- Specified by:
isStatementLogErrorEnabledin interfaceLogFilterMBean
-
setStatementLogErrorEnabled
public void setStatementLogErrorEnabled(boolean statementLogErrorEnabled)
- Specified by:
setStatementLogErrorEnabledin interfaceLogFilterMBean
-
isResultSetLogEnabled
public boolean isResultSetLogEnabled()
- Specified by:
isResultSetLogEnabledin interfaceLogFilterMBean
-
setResultSetLogEnabled
public void setResultSetLogEnabled(boolean resultSetLogEnabled)
- Specified by:
setResultSetLogEnabledin interfaceLogFilterMBean
-
isStatementParameterSetLogEnabled
public boolean isStatementParameterSetLogEnabled()
- Specified by:
isStatementParameterSetLogEnabledin interfaceLogFilterMBean
-
setStatementParameterSetLogEnabled
public void setStatementParameterSetLogEnabled(boolean statementParameterSetLogEnable)
- Specified by:
setStatementParameterSetLogEnabledin interfaceLogFilterMBean
-
isStatementParameterClearLogEnable
public boolean isStatementParameterClearLogEnable()
-
setStatementParameterClearLogEnable
public void setStatementParameterClearLogEnable(boolean statementParameterClearLogEnable)
-
getStatementSqlFormatOption
public SQLUtils.FormatOption getStatementSqlFormatOption()
- Specified by:
getStatementSqlFormatOptionin interfaceLogFilterMBean
-
setStatementSqlFormatOption
public void setStatementSqlFormatOption(SQLUtils.FormatOption formatOption)
- Specified by:
setStatementSqlFormatOptionin interfaceLogFilterMBean
-
isStatementSqlPrettyFormat
public boolean isStatementSqlPrettyFormat()
- Specified by:
isStatementSqlPrettyFormatin interfaceLogFilterMBean
-
setStatementSqlPrettyFormat
public void setStatementSqlPrettyFormat(boolean statementSqlPrettyFormat)
- Specified by:
setStatementSqlPrettyFormatin interfaceLogFilterMBean
-
connectionLog
protected abstract void connectionLog(String message)
-
statementLog
protected abstract void statementLog(String message)
-
resultSetLog
protected abstract void resultSetLog(String message)
-
connection_connectAfter
public void connection_connectAfter(ConnectionProxy connection)
- Overrides:
connection_connectAfterin classFilterEventAdapter
-
connection_setSavepoint
public Savepoint connection_setSavepoint(FilterChain chain, ConnectionProxy connection) throws SQLException
- Specified by:
connection_setSavepointin interfaceFilter- Overrides:
connection_setSavepointin classFilterAdapter- Throws:
SQLException
-
connection_setSavepoint
public Savepoint connection_setSavepoint(FilterChain chain, ConnectionProxy connection, String name) throws SQLException
- Specified by:
connection_setSavepointin interfaceFilter- Overrides:
connection_setSavepointin classFilterAdapter- Throws:
SQLException
-
connection_rollback
public void connection_rollback(FilterChain chain, ConnectionProxy connection) throws SQLException
- Specified by:
connection_rollbackin interfaceFilter- Overrides:
connection_rollbackin classFilterAdapter- Throws:
SQLException
-
connection_rollback
public void connection_rollback(FilterChain chain, ConnectionProxy connection, Savepoint savePoint) throws SQLException
- Specified by:
connection_rollbackin interfaceFilter- Overrides:
connection_rollbackin classFilterAdapter- Throws:
SQLException
-
connection_commit
public void connection_commit(FilterChain chain, ConnectionProxy connection) throws SQLException
- Specified by:
connection_commitin interfaceFilter- Overrides:
connection_commitin classFilterAdapter- Throws:
SQLException
-
connection_setAutoCommit
public void connection_setAutoCommit(FilterChain chain, ConnectionProxy connection, boolean autoCommit) throws SQLException
- Specified by:
connection_setAutoCommitin interfaceFilter- Overrides:
connection_setAutoCommitin classFilterAdapter- Throws:
SQLException
-
connection_close
public void connection_close(FilterChain chain, ConnectionProxy connection) throws SQLException
- Specified by:
connection_closein interfaceFilter- Overrides:
connection_closein classFilterAdapter- Throws:
SQLException
-
statement_close
public void statement_close(FilterChain chain, StatementProxy statement) throws SQLException
- Specified by:
statement_closein interfaceFilter- Overrides:
statement_closein classFilterAdapter- Throws:
SQLException
-
statementExecuteBefore
protected void statementExecuteBefore(StatementProxy statement, String sql)
- Overrides:
statementExecuteBeforein classFilterEventAdapter
-
statementExecuteAfter
protected void statementExecuteAfter(StatementProxy statement, String sql, boolean firstResult)
- Overrides:
statementExecuteAfterin classFilterEventAdapter
-
statementExecuteBatchBefore
protected void statementExecuteBatchBefore(StatementProxy statement)
- Overrides:
statementExecuteBatchBeforein classFilterEventAdapter
-
statementExecuteBatchAfter
protected void statementExecuteBatchAfter(StatementProxy statement, int[] result)
- Overrides:
statementExecuteBatchAfterin classFilterEventAdapter
-
statementExecuteQueryBefore
protected void statementExecuteQueryBefore(StatementProxy statement, String sql)
- Overrides:
statementExecuteQueryBeforein classFilterEventAdapter
-
statementExecuteQueryAfter
protected void statementExecuteQueryAfter(StatementProxy statement, String sql, ResultSetProxy resultSet)
- Overrides:
statementExecuteQueryAfterin classFilterEventAdapter
-
statementExecuteUpdateBefore
protected void statementExecuteUpdateBefore(StatementProxy statement, String sql)
- Overrides:
statementExecuteUpdateBeforein classFilterEventAdapter
-
statementExecuteUpdateAfter
protected void statementExecuteUpdateAfter(StatementProxy statement, String sql, int updateCount)
- Overrides:
statementExecuteUpdateAfterin classFilterEventAdapter
-
resultSet_close
public void resultSet_close(FilterChain chain, ResultSetProxy resultSet) throws SQLException
- Specified by:
resultSet_closein interfaceFilter- Overrides:
resultSet_closein classFilterAdapter- Throws:
SQLException
-
resultSet_next
public boolean resultSet_next(FilterChain chain, ResultSetProxy resultSet) throws SQLException
- Specified by:
resultSet_nextin interfaceFilter- Overrides:
resultSet_nextin classFilterAdapter- Throws:
SQLException
-
callableStatement_getObject
public Object callableStatement_getObject(FilterChain chain, CallableStatementProxy statement, int parameterIndex) throws SQLException
- Specified by:
callableStatement_getObjectin interfaceFilter- Overrides:
callableStatement_getObjectin classFilterAdapter- Throws:
SQLException
-
callableStatement_getObject
public Object callableStatement_getObject(FilterChain chain, CallableStatementProxy statement, int parameterIndex, Map<String,Class<?>> map) throws SQLException
- Specified by:
callableStatement_getObjectin interfaceFilter- Overrides:
callableStatement_getObjectin classFilterAdapter- Throws:
SQLException
-
callableStatement_getObject
public Object callableStatement_getObject(FilterChain chain, CallableStatementProxy statement, String parameterName) throws SQLException
- Specified by:
callableStatement_getObjectin interfaceFilter- Overrides:
callableStatement_getObjectin classFilterAdapter- Throws:
SQLException
-
callableStatement_getObject
public Object callableStatement_getObject(FilterChain chain, CallableStatementProxy statement, String parameterName, Map<String,Class<?>> map) throws SQLException
- Specified by:
callableStatement_getObjectin interfaceFilter- Overrides:
callableStatement_getObjectin classFilterAdapter- Throws:
SQLException
-
resultSetOpenAfter
protected void resultSetOpenAfter(ResultSetProxy resultSet)
- Overrides:
resultSetOpenAfterin classFilterEventAdapter
-
statementCreateAfter
protected void statementCreateAfter(StatementProxy statement)
- Overrides:
statementCreateAfterin classFilterEventAdapter
-
statementPrepareAfter
protected void statementPrepareAfter(PreparedStatementProxy statement)
- Overrides:
statementPrepareAfterin classFilterEventAdapter
-
statementPrepareCallAfter
protected void statementPrepareCallAfter(CallableStatementProxy statement)
- Overrides:
statementPrepareCallAfterin classFilterEventAdapter
-
statement_executeErrorAfter
protected void statement_executeErrorAfter(StatementProxy statement, String sql, Throwable error)
- Overrides:
statement_executeErrorAfterin classFilterEventAdapter
-
logParameter
protected void logParameter(PreparedStatementProxy statement)
-
dataSource_releaseConnection
public void dataSource_releaseConnection(FilterChain chain, DruidPooledConnection conn) throws SQLException
- Specified by:
dataSource_releaseConnectionin interfaceFilter- Overrides:
dataSource_releaseConnectionin classFilterAdapter- Throws:
SQLException
-
dataSource_getConnection
public DruidPooledConnection dataSource_getConnection(FilterChain chain, DruidDataSource dataSource, long maxWaitMillis) throws SQLException
- Specified by:
dataSource_getConnectionin interfaceFilter- Overrides:
dataSource_getConnectionin classFilterAdapter- Throws:
SQLException
-
preparedStatement_clearParameters
public void preparedStatement_clearParameters(FilterChain chain, PreparedStatementProxy statement) throws SQLException
- Specified by:
preparedStatement_clearParametersin interfaceFilter- Overrides:
preparedStatement_clearParametersin classFilterAdapter- Throws:
SQLException
-
statement_clearBatch
public void statement_clearBatch(FilterChain chain, StatementProxy statement) throws SQLException
- Specified by:
statement_clearBatchin interfaceFilter- Overrides:
statement_clearBatchin classFilterAdapter- Throws:
SQLException
-
isWrapperFor
public boolean isWrapperFor(Class<?> iface)
- Specified by:
isWrapperForin interfaceFilter- Specified by:
isWrapperForin interfaceWrapper- Overrides:
isWrapperForin classFilterAdapter
-
unwrap
public <T> T unwrap(Class<T> iface)
-
-