com.alibaba.druid.proxy.jdbc
类 StatementProxyImpl

java.lang.Object
  继承者 com.alibaba.druid.proxy.jdbc.WrapperProxyImpl
      继承者 com.alibaba.druid.proxy.jdbc.StatementProxyImpl
所有已实现的接口:
StatementProxy, WrapperProxy, Statement, Wrapper
直接已知子类:
PreparedStatementProxyImpl

public class StatementProxyImpl
extends WrapperProxyImpl
implements StatementProxy

作者:
wenshao

字段摘要
 
从接口 java.sql.Statement 继承的字段
CLOSE_ALL_RESULTS, CLOSE_CURRENT_RESULT, EXECUTE_FAILED, KEEP_CURRENT_RESULT, NO_GENERATED_KEYS, RETURN_GENERATED_KEYS, SUCCESS_NO_INFO
 
构造方法摘要
StatementProxyImpl(ConnectionProxy connection, Statement statement, long id)
           
 
方法摘要
 void addBatch(String sql)
           
 void cancel()
           
 void clearBatch()
           
 void clearWarnings()
           
 void close()
           
 void closeOnCompletion()
           
 FilterChainImpl createChain()
           
 boolean execute(String sql)
           
 boolean execute(String sql, int autoGeneratedKeys)
           
 boolean execute(String sql, int[] columnIndexes)
           
 boolean execute(String sql, String[] columnNames)
           
 int[] executeBatch()
           
 ResultSet executeQuery(String sql)
           
 int executeUpdate(String sql)
           
 int executeUpdate(String sql, int autoGeneratedKeys)
           
 int executeUpdate(String sql, int[] columnIndexes)
           
 int executeUpdate(String sql, String[] columnNames)
           
 String getBatchSql()
           
 List<String> getBatchSqlList()
           
 Connection getConnection()
           
 ConnectionProxy getConnectionProxy()
           
 int getFetchDirection()
           
 int getFetchSize()
           
 ResultSet getGeneratedKeys()
           
 String getLastExecuteSql()
           
 long getLastExecuteStartNano()
           
 long getLastExecuteTimeNano()
           
 StatementExecuteType getLastExecuteType()
           
 int getMaxFieldSize()
           
 int getMaxRows()
           
 boolean getMoreResults()
           
 boolean getMoreResults(int current)
           
 JdbcParameter getParameter(int i)
           
 Map<Integer,JdbcParameter> getParameters()
           
 int getParametersSize()
           
 int getQueryTimeout()
           
 Statement getRawObject()
           
 ResultSet getResultSet()
           
 int getResultSetConcurrency()
           
 int getResultSetHoldability()
           
 int getResultSetType()
           
 JdbcSqlStat getSqlStat()
           
 int getUpdateCount()
           
 SQLWarning getWarnings()
           
 boolean isClosed()
           
 boolean isCloseOnCompletion()
           
 boolean isFirstResultSet()
           
 boolean isPoolable()
           
 boolean isWrapperFor(Class<?> iface)
           
 void recycleFilterChain(FilterChainImpl chain)
           
 void setCursorName(String name)
           
 void setEscapeProcessing(boolean enable)
           
 void setFetchDirection(int direction)
           
 void setFetchSize(int rows)
           
 void setLastExecuteStartNano()
           
 void setLastExecuteStartNano(long lastExecuteStartNano)
           
 void setLastExecuteTimeNano()
           
 void setLastExecuteTimeNano(long lastExecuteTimeNano)
           
 void setMaxFieldSize(int max)
           
 void setMaxRows(int max)
           
 void setPoolable(boolean poolable)
           
 void setQueryTimeout(int seconds)
           
 void setSqlStat(JdbcSqlStat sqlStat)
           
<T> T
unwrap(Class<T> iface)
           
 
从类 com.alibaba.druid.proxy.jdbc.WrapperProxyImpl 继承的方法
clearAttributes, getAttribute, getAttributes, getAttributesSize, getId, putAttribute
 
从类 java.lang.Object 继承的方法
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
从接口 com.alibaba.druid.proxy.jdbc.WrapperProxy 继承的方法
clearAttributes, getAttribute, getAttributes, getAttributesSize, getId, putAttribute
 

构造方法详细信息

StatementProxyImpl

public StatementProxyImpl(ConnectionProxy connection,
                          Statement statement,
                          long id)
方法详细信息

getConnectionProxy

public ConnectionProxy getConnectionProxy()
指定者:
接口 StatementProxy 中的 getConnectionProxy

getRawObject

public Statement getRawObject()
指定者:
接口 StatementProxy 中的 getRawObject
指定者:
接口 WrapperProxy 中的 getRawObject
覆盖:
WrapperProxyImpl 中的 getRawObject

createChain

public FilterChainImpl createChain()
指定者:
WrapperProxyImpl 中的 createChain

recycleFilterChain

public void recycleFilterChain(FilterChainImpl chain)

addBatch

public void addBatch(String sql)
              throws SQLException
指定者:
接口 Statement 中的 addBatch
抛出:
SQLException

cancel

public void cancel()
            throws SQLException
指定者:
接口 Statement 中的 cancel
抛出:
SQLException

clearBatch

public void clearBatch()
                throws SQLException
指定者:
接口 Statement 中的 clearBatch
抛出:
SQLException

clearWarnings

public void clearWarnings()
                   throws SQLException
指定者:
接口 Statement 中的 clearWarnings
抛出:
SQLException

close

public void close()
           throws SQLException
指定者:
接口 Statement 中的 close
抛出:
SQLException

execute

public boolean execute(String sql)
                throws SQLException
指定者:
接口 Statement 中的 execute
抛出:
SQLException

execute

public boolean execute(String sql,
                       int autoGeneratedKeys)
                throws SQLException
指定者:
接口 Statement 中的 execute
抛出:
SQLException

execute

public boolean execute(String sql,
                       int[] columnIndexes)
                throws SQLException
指定者:
接口 Statement 中的 execute
抛出:
SQLException

execute

public boolean execute(String sql,
                       String[] columnNames)
                throws SQLException
指定者:
接口 Statement 中的 execute
抛出:
SQLException

executeBatch

public int[] executeBatch()
                   throws SQLException
指定者:
接口 Statement 中的 executeBatch
抛出:
SQLException

executeQuery

public ResultSet executeQuery(String sql)
                       throws SQLException
指定者:
接口 Statement 中的 executeQuery
抛出:
SQLException

executeUpdate

public int executeUpdate(String sql)
                  throws SQLException
指定者:
接口 Statement 中的 executeUpdate
抛出:
SQLException

executeUpdate

public int executeUpdate(String sql,
                         int autoGeneratedKeys)
                  throws SQLException
指定者:
接口 Statement 中的 executeUpdate
抛出:
SQLException

executeUpdate

public int executeUpdate(String sql,
                         int[] columnIndexes)
                  throws SQLException
指定者:
接口 Statement 中的 executeUpdate
抛出:
SQLException

executeUpdate

public int executeUpdate(String sql,
                         String[] columnNames)
                  throws SQLException
指定者:
接口 Statement 中的 executeUpdate
抛出:
SQLException

getConnection

public Connection getConnection()
                         throws SQLException
指定者:
接口 Statement 中的 getConnection
抛出:
SQLException

getFetchDirection

public int getFetchDirection()
                      throws SQLException
指定者:
接口 Statement 中的 getFetchDirection
抛出:
SQLException

getFetchSize

public int getFetchSize()
                 throws SQLException
指定者:
接口 Statement 中的 getFetchSize
抛出:
SQLException

getGeneratedKeys

public ResultSet getGeneratedKeys()
                           throws SQLException
指定者:
接口 Statement 中的 getGeneratedKeys
抛出:
SQLException

getMaxFieldSize

public int getMaxFieldSize()
                    throws SQLException
指定者:
接口 Statement 中的 getMaxFieldSize
抛出:
SQLException

getMaxRows

public int getMaxRows()
               throws SQLException
指定者:
接口 Statement 中的 getMaxRows
抛出:
SQLException

getMoreResults

public boolean getMoreResults()
                       throws SQLException
指定者:
接口 Statement 中的 getMoreResults
抛出:
SQLException

getMoreResults

public boolean getMoreResults(int current)
                       throws SQLException
指定者:
接口 Statement 中的 getMoreResults
抛出:
SQLException

getQueryTimeout

public int getQueryTimeout()
                    throws SQLException
指定者:
接口 Statement 中的 getQueryTimeout
抛出:
SQLException

getResultSet

public ResultSet getResultSet()
                       throws SQLException
指定者:
接口 Statement 中的 getResultSet
抛出:
SQLException

getResultSetConcurrency

public int getResultSetConcurrency()
                            throws SQLException
指定者:
接口 Statement 中的 getResultSetConcurrency
抛出:
SQLException

getResultSetHoldability

public int getResultSetHoldability()
                            throws SQLException
指定者:
接口 Statement 中的 getResultSetHoldability
抛出:
SQLException

getResultSetType

public int getResultSetType()
                     throws SQLException
指定者:
接口 Statement 中的 getResultSetType
抛出:
SQLException

getUpdateCount

public int getUpdateCount()
                   throws SQLException
指定者:
接口 Statement 中的 getUpdateCount
抛出:
SQLException

getWarnings

public SQLWarning getWarnings()
                       throws SQLException
指定者:
接口 Statement 中的 getWarnings
抛出:
SQLException

isClosed

public boolean isClosed()
                 throws SQLException
指定者:
接口 Statement 中的 isClosed
抛出:
SQLException

isPoolable

public boolean isPoolable()
                   throws SQLException
指定者:
接口 Statement 中的 isPoolable
抛出:
SQLException

setCursorName

public void setCursorName(String name)
                   throws SQLException
指定者:
接口 Statement 中的 setCursorName
抛出:
SQLException

setEscapeProcessing

public void setEscapeProcessing(boolean enable)
                         throws SQLException
指定者:
接口 Statement 中的 setEscapeProcessing
抛出:
SQLException

setFetchDirection

public void setFetchDirection(int direction)
                       throws SQLException
指定者:
接口 Statement 中的 setFetchDirection
抛出:
SQLException

setFetchSize

public void setFetchSize(int rows)
                  throws SQLException
指定者:
接口 Statement 中的 setFetchSize
抛出:
SQLException

setMaxFieldSize

public void setMaxFieldSize(int max)
                     throws SQLException
指定者:
接口 Statement 中的 setMaxFieldSize
抛出:
SQLException

setMaxRows

public void setMaxRows(int max)
                throws SQLException
指定者:
接口 Statement 中的 setMaxRows
抛出:
SQLException

setPoolable

public void setPoolable(boolean poolable)
                 throws SQLException
指定者:
接口 Statement 中的 setPoolable
抛出:
SQLException

setQueryTimeout

public void setQueryTimeout(int seconds)
                     throws SQLException
指定者:
接口 Statement 中的 setQueryTimeout
抛出:
SQLException

getBatchSqlList

public List<String> getBatchSqlList()
指定者:
接口 StatementProxy 中的 getBatchSqlList

getBatchSql

public String getBatchSql()
指定者:
接口 StatementProxy 中的 getBatchSql

getLastExecuteSql

public String getLastExecuteSql()
指定者:
接口 StatementProxy 中的 getLastExecuteSql

closeOnCompletion

public void closeOnCompletion()
                       throws SQLException
抛出:
SQLException

isCloseOnCompletion

public boolean isCloseOnCompletion()
                            throws SQLException
抛出:
SQLException

getParameters

public Map<Integer,JdbcParameter> getParameters()
指定者:
接口 StatementProxy 中的 getParameters

getSqlStat

public JdbcSqlStat getSqlStat()
指定者:
接口 StatementProxy 中的 getSqlStat

setSqlStat

public void setSqlStat(JdbcSqlStat sqlStat)
指定者:
接口 StatementProxy 中的 setSqlStat

getLastExecuteTimeNano

public long getLastExecuteTimeNano()
指定者:
接口 StatementProxy 中的 getLastExecuteTimeNano

setLastExecuteTimeNano

public void setLastExecuteTimeNano(long lastExecuteTimeNano)
指定者:
接口 StatementProxy 中的 setLastExecuteTimeNano

setLastExecuteTimeNano

public void setLastExecuteTimeNano()
指定者:
接口 StatementProxy 中的 setLastExecuteTimeNano

getLastExecuteStartNano

public long getLastExecuteStartNano()
指定者:
接口 StatementProxy 中的 getLastExecuteStartNano

setLastExecuteStartNano

public void setLastExecuteStartNano(long lastExecuteStartNano)
指定者:
接口 StatementProxy 中的 setLastExecuteStartNano

setLastExecuteStartNano

public void setLastExecuteStartNano()
指定者:
接口 StatementProxy 中的 setLastExecuteStartNano

getLastExecuteType

public StatementExecuteType getLastExecuteType()
指定者:
接口 StatementProxy 中的 getLastExecuteType

isFirstResultSet

public boolean isFirstResultSet()
指定者:
接口 StatementProxy 中的 isFirstResultSet

unwrap

public <T> T unwrap(Class<T> iface)
         throws SQLException
指定者:
接口 Wrapper 中的 unwrap
覆盖:
WrapperProxyImpl 中的 unwrap
抛出:
SQLException

isWrapperFor

public boolean isWrapperFor(Class<?> iface)
                     throws SQLException
指定者:
接口 Wrapper 中的 isWrapperFor
覆盖:
WrapperProxyImpl 中的 isWrapperFor
抛出:
SQLException

getParametersSize

public int getParametersSize()
指定者:
接口 StatementProxy 中的 getParametersSize

getParameter

public JdbcParameter getParameter(int i)
指定者:
接口 StatementProxy 中的 getParameter


Copyright © 2013 Alibaba Group. All Rights Reserved.