com.alibaba.druid.wall
类 WallFilter

java.lang.Object
  继承者 javax.management.NotificationBroadcasterSupport
      继承者 com.alibaba.druid.filter.FilterAdapter
          继承者 com.alibaba.druid.wall.WallFilter
所有已实现的接口:
Filter, WallFilterMBean, Wrapper, NotificationBroadcaster, NotificationEmitter

public class WallFilter
extends FilterAdapter
implements WallFilterMBean


字段摘要
static String ATTR_SQL_STAT
           
 
构造方法摘要
WallFilter()
           
 
方法摘要
 String check(String sql)
           
 boolean checkValid(String sql)
           
 void clearProviderCache()
           
 void clearWhiteList()
           
 void configFromProperties(Properties properties)
           
 DatabaseMetaData connection_getMetaData(FilterChain chain, ConnectionProxy connection)
           
 CallableStatementProxy connection_prepareCall(FilterChain chain, ConnectionProxy connection, String sql)
           
 CallableStatementProxy connection_prepareCall(FilterChain chain, ConnectionProxy connection, String sql, int resultSetType, int resultSetConcurrency)
           
 CallableStatementProxy connection_prepareCall(FilterChain chain, ConnectionProxy connection, String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability)
           
 PreparedStatementProxy connection_prepareStatement(FilterChain chain, ConnectionProxy connection, String sql)
           
 PreparedStatementProxy connection_prepareStatement(FilterChain chain, ConnectionProxy connection, String sql, int autoGeneratedKeys)
           
 PreparedStatementProxy connection_prepareStatement(FilterChain chain, ConnectionProxy connection, String sql, int[] columnIndexes)
           
 PreparedStatementProxy connection_prepareStatement(FilterChain chain, ConnectionProxy connection, String sql, int resultSetType, int resultSetConcurrency)
           
 PreparedStatementProxy connection_prepareStatement(FilterChain chain, ConnectionProxy connection, String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability)
           
 PreparedStatementProxy connection_prepareStatement(FilterChain chain, ConnectionProxy connection, String sql, String[] columnNames)
           
 WallConfig getConfig()
           
 String getDbType()
           
 String getDbType(StatementProxy statement)
           
 WallProvider getProvider()
           
 Set<String> getProviderWhiteList()
           
 long getViolationCount()
           
 void incrementExecuteErrorCount()
           
 void incrementExecuteErrorCount(PreparedStatementProxy statement)
           
 void init(DataSourceProxy dataSource)
           
 boolean isInited()
           
 boolean isLogViolation()
           
 boolean isThrowException()
           
 boolean isWrapperFor(FilterChain chain, Wrapper wrapper, Class<?> iface)
           
 void preparedStatement_addBatch(FilterChain chain, PreparedStatementProxy statement)
           
 boolean preparedStatement_execute(FilterChain chain, PreparedStatementProxy statement)
           
 ResultSetProxy preparedStatement_executeQuery(FilterChain chain, PreparedStatementProxy statement)
           
 int preparedStatement_executeUpdate(FilterChain chain, PreparedStatementProxy statement)
           
 void resetViolationCount()
           
 void resultSet_close(FilterChain chain, ResultSetProxy resultSet)
           
 void setConfig(WallConfig config)
           
 void setDbType(String dbType)
           
 void setLogViolation(boolean logViolation)
           
 void setSqlStatAttribute(StatementProxy stmt)
           
 void setThrowException(boolean throwException)
           
 void statement_addBatch(FilterChain chain, StatementProxy statement, String sql)
           
 boolean statement_execute(FilterChain chain, StatementProxy statement, String sql)
           
 boolean statement_execute(FilterChain chain, StatementProxy statement, String sql, int autoGeneratedKeys)
           
 boolean statement_execute(FilterChain chain, StatementProxy statement, String sql, int[] columnIndexes)
           
 boolean statement_execute(FilterChain chain, StatementProxy statement, String sql, String[] columnNames)
           
 int[] statement_executeBatch(FilterChain chain, StatementProxy statement)
           
 ResultSetProxy statement_executeQuery(FilterChain chain, StatementProxy statement, String sql)
           
 int statement_executeUpdate(FilterChain chain, StatementProxy statement, String sql)
           
 int statement_executeUpdate(FilterChain chain, StatementProxy statement, String sql, int autoGeneratedKeys)
           
 int statement_executeUpdate(FilterChain chain, StatementProxy statement, String sql, int[] columnIndexes)
           
 int statement_executeUpdate(FilterChain chain, StatementProxy statement, String sql, String[] columnNames)
           
 void statExecuteUpdate(int updateCount)
           
<T> T
unwrap(FilterChain chain, Wrapper wrapper, Class<T> iface)
           
 
从类 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_getObject, callableStatement_getObject, callableStatement_getObject, callableStatement_getObject, 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_clearWarnings, connection_close, connection_commit, connection_connect, connection_createArrayOf, connection_createBlob, connection_createClob, connection_createNClob, connection_createSQLXML, connection_createStatement, connection_createStatement, connection_createStatement, connection_createStruct, connection_getAutoCommit, connection_getCatalog, connection_getClientInfo, connection_getClientInfo, connection_getHoldability, connection_getTransactionIsolation, connection_getTypeMap, connection_getWarnings, connection_isClosed, connection_isReadOnly, connection_isValid, connection_nativeSQL, connection_releaseSavepoint, connection_rollback, connection_rollback, connection_setAutoCommit, connection_setCatalog, connection_setClientInfo, connection_setClientInfo, connection_setHoldability, connection_setReadOnly, connection_setSavepoint, connection_setSavepoint, connection_setTransactionIsolation, connection_setTypeMap, dataSource_getConnection, dataSource_releaseConnection, destory, isWrapperFor, preparedStatement_clearParameters, 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_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_next, 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, statement_cancel, statement_clearBatch, statement_clearWarnings, statement_close, statement_getConnection, statement_getFetchDirection, statement_getFetchSize, statement_getGeneratedKeys, statement_getMaxFieldSize, statement_getMaxRows, statement_getMoreResults, statement_getMoreResults, statement_getQueryTimeout, statement_getResultSet, 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
 
从类 javax.management.NotificationBroadcasterSupport 继承的方法
addNotificationListener, getNotificationInfo, removeNotificationListener, removeNotificationListener, sendNotification
 
从类 java.lang.Object 继承的方法
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

ATTR_SQL_STAT

public static final String ATTR_SQL_STAT
另请参见:
常量字段值
构造方法详细信息

WallFilter

public WallFilter()
方法详细信息

configFromProperties

public void configFromProperties(Properties properties)
指定者:
接口 Filter 中的 configFromProperties
覆盖:
FilterAdapter 中的 configFromProperties

init

public void init(DataSourceProxy dataSource)
指定者:
接口 Filter 中的 init
覆盖:
FilterAdapter 中的 init

getDbType

public String getDbType()
指定者:
接口 WallFilterMBean 中的 getDbType

setDbType

public void setDbType(String dbType)

isLogViolation

public boolean isLogViolation()
指定者:
接口 WallFilterMBean 中的 isLogViolation

setLogViolation

public void setLogViolation(boolean logViolation)
指定者:
接口 WallFilterMBean 中的 setLogViolation

isThrowException

public boolean isThrowException()
指定者:
接口 WallFilterMBean 中的 isThrowException

setThrowException

public void setThrowException(boolean throwException)
指定者:
接口 WallFilterMBean 中的 setThrowException

clearProviderCache

public void clearProviderCache()
指定者:
接口 WallFilterMBean 中的 clearProviderCache

getProviderWhiteList

public Set<String> getProviderWhiteList()
指定者:
接口 WallFilterMBean 中的 getProviderWhiteList

getProvider

public WallProvider getProvider()

getConfig

public WallConfig getConfig()

setConfig

public void setConfig(WallConfig config)

isInited

public boolean isInited()
指定者:
接口 WallFilterMBean 中的 isInited

statement_addBatch

public void statement_addBatch(FilterChain chain,
                               StatementProxy statement,
                               String sql)
                        throws SQLException
指定者:
接口 Filter 中的 statement_addBatch
覆盖:
FilterAdapter 中的 statement_addBatch
抛出:
SQLException

preparedStatement_addBatch

public void preparedStatement_addBatch(FilterChain chain,
                                       PreparedStatementProxy statement)
                                throws SQLException
指定者:
接口 Filter 中的 preparedStatement_addBatch
覆盖:
FilterAdapter 中的 preparedStatement_addBatch
抛出:
SQLException

connection_prepareStatement

public PreparedStatementProxy connection_prepareStatement(FilterChain chain,
                                                          ConnectionProxy connection,
                                                          String sql)
                                                   throws SQLException
指定者:
接口 Filter 中的 connection_prepareStatement
覆盖:
FilterAdapter 中的 connection_prepareStatement
抛出:
SQLException

connection_prepareStatement

public PreparedStatementProxy connection_prepareStatement(FilterChain chain,
                                                          ConnectionProxy connection,
                                                          String sql,
                                                          int autoGeneratedKeys)
                                                   throws SQLException
指定者:
接口 Filter 中的 connection_prepareStatement
覆盖:
FilterAdapter 中的 connection_prepareStatement
抛出:
SQLException

connection_prepareStatement

public PreparedStatementProxy connection_prepareStatement(FilterChain chain,
                                                          ConnectionProxy connection,
                                                          String sql,
                                                          int resultSetType,
                                                          int resultSetConcurrency)
                                                   throws SQLException
指定者:
接口 Filter 中的 connection_prepareStatement
覆盖:
FilterAdapter 中的 connection_prepareStatement
抛出:
SQLException

connection_prepareStatement

public PreparedStatementProxy connection_prepareStatement(FilterChain chain,
                                                          ConnectionProxy connection,
                                                          String sql,
                                                          int resultSetType,
                                                          int resultSetConcurrency,
                                                          int resultSetHoldability)
                                                   throws SQLException
指定者:
接口 Filter 中的 connection_prepareStatement
覆盖:
FilterAdapter 中的 connection_prepareStatement
抛出:
SQLException

connection_prepareStatement

public PreparedStatementProxy connection_prepareStatement(FilterChain chain,
                                                          ConnectionProxy connection,
                                                          String sql,
                                                          int[] columnIndexes)
                                                   throws SQLException
指定者:
接口 Filter 中的 connection_prepareStatement
覆盖:
FilterAdapter 中的 connection_prepareStatement
抛出:
SQLException

connection_prepareStatement

public PreparedStatementProxy connection_prepareStatement(FilterChain chain,
                                                          ConnectionProxy connection,
                                                          String sql,
                                                          String[] columnNames)
                                                   throws SQLException
指定者:
接口 Filter 中的 connection_prepareStatement
覆盖:
FilterAdapter 中的 connection_prepareStatement
抛出:
SQLException

connection_prepareCall

public CallableStatementProxy connection_prepareCall(FilterChain chain,
                                                     ConnectionProxy connection,
                                                     String sql)
                                              throws SQLException
指定者:
接口 Filter 中的 connection_prepareCall
覆盖:
FilterAdapter 中的 connection_prepareCall
抛出:
SQLException

connection_prepareCall

public CallableStatementProxy connection_prepareCall(FilterChain chain,
                                                     ConnectionProxy connection,
                                                     String sql,
                                                     int resultSetType,
                                                     int resultSetConcurrency)
                                              throws SQLException
指定者:
接口 Filter 中的 connection_prepareCall
覆盖:
FilterAdapter 中的 connection_prepareCall
抛出:
SQLException

connection_prepareCall

public CallableStatementProxy connection_prepareCall(FilterChain chain,
                                                     ConnectionProxy connection,
                                                     String sql,
                                                     int resultSetType,
                                                     int resultSetConcurrency,
                                                     int resultSetHoldability)
                                              throws SQLException
指定者:
接口 Filter 中的 connection_prepareCall
覆盖:
FilterAdapter 中的 connection_prepareCall
抛出:
SQLException

statement_execute

public boolean statement_execute(FilterChain chain,
                                 StatementProxy statement,
                                 String sql)
                          throws SQLException
指定者:
接口 Filter 中的 statement_execute
覆盖:
FilterAdapter 中的 statement_execute
抛出:
SQLException

statement_execute

public boolean statement_execute(FilterChain chain,
                                 StatementProxy statement,
                                 String sql,
                                 int autoGeneratedKeys)
                          throws SQLException
指定者:
接口 Filter 中的 statement_execute
覆盖:
FilterAdapter 中的 statement_execute
抛出:
SQLException

statement_execute

public boolean statement_execute(FilterChain chain,
                                 StatementProxy statement,
                                 String sql,
                                 int[] columnIndexes)
                          throws SQLException
指定者:
接口 Filter 中的 statement_execute
覆盖:
FilterAdapter 中的 statement_execute
抛出:
SQLException

statement_execute

public boolean statement_execute(FilterChain chain,
                                 StatementProxy statement,
                                 String sql,
                                 String[] columnNames)
                          throws SQLException
指定者:
接口 Filter 中的 statement_execute
覆盖:
FilterAdapter 中的 statement_execute
抛出:
SQLException

statement_executeBatch

public int[] statement_executeBatch(FilterChain chain,
                                    StatementProxy statement)
                             throws SQLException
指定者:
接口 Filter 中的 statement_executeBatch
覆盖:
FilterAdapter 中的 statement_executeBatch
抛出:
SQLException

statement_executeQuery

public ResultSetProxy statement_executeQuery(FilterChain chain,
                                             StatementProxy statement,
                                             String sql)
                                      throws SQLException
指定者:
接口 Filter 中的 statement_executeQuery
覆盖:
FilterAdapter 中的 statement_executeQuery
抛出:
SQLException

statement_executeUpdate

public int statement_executeUpdate(FilterChain chain,
                                   StatementProxy statement,
                                   String sql)
                            throws SQLException
指定者:
接口 Filter 中的 statement_executeUpdate
覆盖:
FilterAdapter 中的 statement_executeUpdate
抛出:
SQLException

statement_executeUpdate

public int statement_executeUpdate(FilterChain chain,
                                   StatementProxy statement,
                                   String sql,
                                   int autoGeneratedKeys)
                            throws SQLException
指定者:
接口 Filter 中的 statement_executeUpdate
覆盖:
FilterAdapter 中的 statement_executeUpdate
抛出:
SQLException

statement_executeUpdate

public int statement_executeUpdate(FilterChain chain,
                                   StatementProxy statement,
                                   String sql,
                                   int[] columnIndexes)
                            throws SQLException
指定者:
接口 Filter 中的 statement_executeUpdate
覆盖:
FilterAdapter 中的 statement_executeUpdate
抛出:
SQLException

getDbType

public String getDbType(StatementProxy statement)

statement_executeUpdate

public int statement_executeUpdate(FilterChain chain,
                                   StatementProxy statement,
                                   String sql,
                                   String[] columnNames)
                            throws SQLException
指定者:
接口 Filter 中的 statement_executeUpdate
覆盖:
FilterAdapter 中的 statement_executeUpdate
抛出:
SQLException

preparedStatement_execute

public boolean preparedStatement_execute(FilterChain chain,
                                         PreparedStatementProxy statement)
                                  throws SQLException
指定者:
接口 Filter 中的 preparedStatement_execute
覆盖:
FilterAdapter 中的 preparedStatement_execute
抛出:
SQLException

preparedStatement_executeQuery

public ResultSetProxy preparedStatement_executeQuery(FilterChain chain,
                                                     PreparedStatementProxy statement)
                                              throws SQLException
指定者:
接口 Filter 中的 preparedStatement_executeQuery
覆盖:
FilterAdapter 中的 preparedStatement_executeQuery
抛出:
SQLException

preparedStatement_executeUpdate

public int preparedStatement_executeUpdate(FilterChain chain,
                                           PreparedStatementProxy statement)
                                    throws SQLException
指定者:
接口 Filter 中的 preparedStatement_executeUpdate
覆盖:
FilterAdapter 中的 preparedStatement_executeUpdate
抛出:
SQLException

setSqlStatAttribute

public void setSqlStatAttribute(StatementProxy stmt)

statExecuteUpdate

public void statExecuteUpdate(int updateCount)

incrementExecuteErrorCount

public void incrementExecuteErrorCount(PreparedStatementProxy statement)

incrementExecuteErrorCount

public void incrementExecuteErrorCount()

check

public String check(String sql)
             throws SQLException
指定者:
接口 WallFilterMBean 中的 check
抛出:
SQLException

isWrapperFor

public boolean isWrapperFor(FilterChain chain,
                            Wrapper wrapper,
                            Class<?> iface)
                     throws SQLException
指定者:
接口 Filter 中的 isWrapperFor
覆盖:
FilterAdapter 中的 isWrapperFor
抛出:
SQLException

unwrap

public <T> T unwrap(FilterChain chain,
                    Wrapper wrapper,
                    Class<T> iface)
         throws SQLException
指定者:
接口 Filter 中的 unwrap
覆盖:
FilterAdapter 中的 unwrap
抛出:
SQLException

connection_getMetaData

public DatabaseMetaData connection_getMetaData(FilterChain chain,
                                               ConnectionProxy connection)
                                        throws SQLException
指定者:
接口 Filter 中的 connection_getMetaData
覆盖:
FilterAdapter 中的 connection_getMetaData
抛出:
SQLException

resultSet_close

public void resultSet_close(FilterChain chain,
                            ResultSetProxy resultSet)
                     throws SQLException
指定者:
接口 Filter 中的 resultSet_close
覆盖:
FilterAdapter 中的 resultSet_close
抛出:
SQLException

getViolationCount

public long getViolationCount()
指定者:
接口 WallFilterMBean 中的 getViolationCount

resetViolationCount

public void resetViolationCount()
指定者:
接口 WallFilterMBean 中的 resetViolationCount

clearWhiteList

public void clearWhiteList()
指定者:
接口 WallFilterMBean 中的 clearWhiteList

checkValid

public boolean checkValid(String sql)
指定者:
接口 WallFilterMBean 中的 checkValid


Copyright © 2013 Alibaba Group. All Rights Reserved.