com.alibaba.druid.pool
类 DruidPooledStatement

java.lang.Object
  继承者 com.alibaba.druid.pool.PoolableWrapper
      继承者 com.alibaba.druid.pool.DruidPooledStatement
所有已实现的接口:
Statement, Wrapper
直接已知子类:
DruidPooledPreparedStatement

public class DruidPooledStatement
extends PoolableWrapper
implements Statement

作者:
wenshao

字段摘要
 
从接口 java.sql.Statement 继承的字段
CLOSE_ALL_RESULTS, CLOSE_CURRENT_RESULT, EXECUTE_FAILED, KEEP_CURRENT_RESULT, NO_GENERATED_KEYS, RETURN_GENERATED_KEYS, SUCCESS_NO_INFO
 
构造方法摘要
DruidPooledStatement(DruidPooledConnection conn, Statement stmt)
           
 
方法摘要
 void addBatch(String sql)
           
 void cancel()
           
 void clearBatch()
           
 void clearWarnings()
           
 void close()
           
 void closeOnCompletion()
           
 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)
           
 Connection getConnection()
           
 int getFetchDirection()
           
 int getFetchRowPeak()
           
 int getFetchSize()
           
 ResultSet getGeneratedKeys()
           
 int getMaxFieldSize()
           
 int getMaxRows()
           
 boolean getMoreResults()
           
 boolean getMoreResults(int current)
           
 DruidPooledConnection getPoolableConnection()
           
 int getQueryTimeout()
           
 ResultSet getResultSet()
           
 int getResultSetConcurrency()
           
 int getResultSetHoldability()
           
 int getResultSetType()
           
 Statement getStatement()
           
 int getUpdateCount()
           
 SQLWarning getWarnings()
           
 void incrementExecuteCount()
           
 boolean isClosed()
           
 boolean isCloseOnCompletion()
           
 boolean isPoolable()
           
 void setCursorName(String name)
           
 void setEscapeProcessing(boolean enable)
           
 void setFetchDirection(int direction)
           
 void setFetchSize(int rows)
           
 void setMaxFieldSize(int max)
           
 void setMaxRows(int max)
           
 void setPoolable(boolean poolable)
           
 void setQueryTimeout(int seconds)
           
 String toString()
           
 
从类 com.alibaba.druid.pool.PoolableWrapper 继承的方法
isWrapperFor, unwrap
 
从类 java.lang.Object 继承的方法
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
从接口 java.sql.Wrapper 继承的方法
isWrapperFor, unwrap
 

构造方法详细信息

DruidPooledStatement

public DruidPooledStatement(DruidPooledConnection conn,
                            Statement stmt)
方法详细信息

getFetchRowPeak

public int getFetchRowPeak()

getPoolableConnection

public DruidPooledConnection getPoolableConnection()

getStatement

public Statement getStatement()

incrementExecuteCount

public void incrementExecuteCount()

executeQuery

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

executeUpdate

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

executeUpdate

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

executeUpdate

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

executeUpdate

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

execute

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

execute

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

execute

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

getMaxFieldSize

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

close

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

setMaxFieldSize

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

getMaxRows

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

setMaxRows

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

setEscapeProcessing

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

getQueryTimeout

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

setQueryTimeout

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

cancel

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

getWarnings

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

clearWarnings

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

setCursorName

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

execute

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

getResultSet

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

getUpdateCount

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

getMoreResults

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

setFetchDirection

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

getFetchDirection

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

setFetchSize

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

getFetchSize

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

getResultSetConcurrency

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

getResultSetType

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

addBatch

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

clearBatch

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

executeBatch

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

getConnection

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

getMoreResults

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

getGeneratedKeys

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

getResultSetHoldability

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

isClosed

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

setPoolable

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

isPoolable

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

toString

public String toString()
覆盖:
Object 中的 toString

closeOnCompletion

public void closeOnCompletion()
                       throws SQLException
抛出:
SQLException

isCloseOnCompletion

public boolean isCloseOnCompletion()
                            throws SQLException
抛出:
SQLException


Copyright © 2013 Alibaba Group. All Rights Reserved.