com.alibaba.druid.util.jdbc
类 StatementBase

java.lang.Object
  继承者 com.alibaba.druid.util.jdbc.StatementBase
所有已实现的接口:
Statement, Wrapper
直接已知子类:
MockStatement, PreparedStatementBase

public abstract class StatementBase
extends Object
implements Statement


字段摘要
 
从接口 java.sql.Statement 继承的字段
CLOSE_ALL_RESULTS, CLOSE_CURRENT_RESULT, EXECUTE_FAILED, KEEP_CURRENT_RESULT, NO_GENERATED_KEYS, RETURN_GENERATED_KEYS, SUCCESS_NO_INFO
 
构造方法摘要
StatementBase(Connection connection)
           
 
方法摘要
 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()
           
 String getCursorName()
           
 int getFetchDirection()
           
 int getFetchSize()
           
 ResultSet getGeneratedKeys()
           
 int getMaxFieldSize()
           
 int getMaxRows()
           
 boolean getMoreResults()
           
 boolean getMoreResults(int current)
           
 int getQueryTimeout()
           
 ResultSet getResultSet()
           
 int getResultSetConcurrency()
           
 int getResultSetHoldability()
           
 int getResultSetType()
           
 int getUpdateCount()
           
 SQLWarning getWarnings()
           
 boolean isClosed()
           
 boolean isCloseOnCompletion()
           
 boolean isEscapeProcessing()
           
 boolean isPoolable()
           
 boolean isWrapperFor(Class<?> iface)
           
 void setConnection(Connection connection)
           
 void setCursorName(String name)
           
 void setEscapeProcessing(boolean enable)
           
 void setFetchDirection(int direction)
           
 void setFetchSize(int rows)
           
 void setGeneratedKeys(ResultSet generatedKeys)
           
 void setMaxFieldSize(int max)
           
 void setMaxRows(int max)
           
 void setPoolable(boolean poolable)
           
 void setQueryTimeout(int seconds)
           
 void setResultSet(ResultSet resultSet)
           
 void setResultSetConcurrency(int resultSetConcurrency)
           
 void setResultSetHoldability(int resultSetHoldability)
           
 void setResultSetType(int resultType)
           
 void setUpdateCount(int updateCount)
           
 void setWarning(SQLWarning warning)
           
 void setWarnings(SQLWarning warnings)
           
<T> T
unwrap(Class<T> iface)
           
 
从类 java.lang.Object 继承的方法
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

StatementBase

public StatementBase(Connection connection)
方法详细信息

getConnection

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

setConnection

public void setConnection(Connection connection)

setFetchDirection

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

getFetchDirection

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

setFetchSize

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

getFetchSize

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

getResultSetType

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

setResultSetType

public void setResultSetType(int resultType)

setResultSetConcurrency

public void setResultSetConcurrency(int resultSetConcurrency)

getResultSetConcurrency

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

getResultSetHoldability

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

setResultSetHoldability

public void setResultSetHoldability(int resultSetHoldability)

getMaxFieldSize

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

setMaxFieldSize

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

getMaxRows

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

setMaxRows

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

setEscapeProcessing

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

isEscapeProcessing

public boolean isEscapeProcessing()

getQueryTimeout

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

setQueryTimeout

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

setCursorName

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

getCursorName

public String getCursorName()

getWarnings

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

clearWarnings

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

setWarning

public void setWarning(SQLWarning warning)

getUpdateCount

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

setUpdateCount

public void setUpdateCount(int updateCount)

close

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

unwrap

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

isWrapperFor

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

isPoolable

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

setPoolable

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

closeOnCompletion

public void closeOnCompletion()
                       throws SQLException
抛出:
SQLException

isCloseOnCompletion

public boolean isCloseOnCompletion()
                            throws SQLException
抛出:
SQLException

isClosed

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

getMoreResults

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

addBatch

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

clearBatch

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

getGeneratedKeys

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

setGeneratedKeys

public void setGeneratedKeys(ResultSet generatedKeys)

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

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

getResultSet

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

executeBatch

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

getMoreResults

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

setWarnings

public void setWarnings(SQLWarning warnings)

setResultSet

public void setResultSet(ResultSet resultSet)

execute

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

executeQuery

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

executeUpdate

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

cancel

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


Copyright © 2013-2014 Alibaba Group. All Rights Reserved.