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
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.