类 AbstractStatement
- java.lang.Object
-
- com.taosdata.jdbc.WrapperImpl
-
- com.taosdata.jdbc.AbstractStatement
-
- 所有已实现的接口:
AutoCloseable,Statement,Wrapper
- 直接已知子类:
RestfulStatement,TSDBStatement,WSStatement
public abstract class AbstractStatement extends WrapperImpl implements Statement
-
-
字段概要
字段 修饰符和类型 字段 说明 protected intaffectedRowsprotected List<String>batchedArgs
-
构造器概要
构造器 构造器 说明 AbstractStatement()
-
方法概要
所有方法 实例方法 抽象方法 具体方法 修饰符和类型 方法 说明 voidaddBatch(String sql)voidcancel()voidclearBatch()voidclearWarnings()abstract voidclose()voidcloseOnCompletion()abstract booleanexecute(String sql)booleanexecute(String sql, int autoGeneratedKeys)booleanexecute(String sql, int[] columnIndexes)booleanexecute(String sql, String[] columnNames)int[]executeBatch()abstract ResultSetexecuteQuery(String sql)abstract intexecuteUpdate(String sql)intexecuteUpdate(String sql, int autoGeneratedKeys)intexecuteUpdate(String sql, int[] columnIndexes)intexecuteUpdate(String sql, String[] columnNames)abstract ConnectiongetConnection()intgetFetchDirection()intgetFetchSize()ResultSetgetGeneratedKeys()intgetMaxFieldSize()intgetMaxRows()booleangetMoreResults()booleangetMoreResults(int current)intgetQueryTimeout()abstract ResultSetgetResultSet()intgetResultSetConcurrency()intgetResultSetHoldability()intgetResultSetType()abstract intgetUpdateCount()SQLWarninggetWarnings()abstract booleanisClosed()booleanisCloseOnCompletion()booleanisPoolable()voidsetCursorName(String name)voidsetEscapeProcessing(boolean enable)voidsetFetchDirection(int direction)voidsetFetchSize(int rows)voidsetMaxFieldSize(int max)voidsetMaxRows(int max)voidsetPoolable(boolean poolable)voidsetQueryTimeout(int seconds)-
从类继承的方法 com.taosdata.jdbc.WrapperImpl
isWrapperFor, unwrap
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 java.sql.Statement
enquoteIdentifier, enquoteLiteral, enquoteNCharLiteral, executeLargeBatch, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, getLargeMaxRows, getLargeUpdateCount, isSimpleIdentifier, setLargeMaxRows
-
从接口继承的方法 java.sql.Wrapper
isWrapperFor, unwrap
-
-
-
-
方法详细资料
-
executeQuery
public abstract ResultSet executeQuery(String sql) throws SQLException
- 指定者:
executeQuery在接口中Statement- 抛出:
SQLException
-
executeUpdate
public abstract int executeUpdate(String sql) throws SQLException
- 指定者:
executeUpdate在接口中Statement- 抛出:
SQLException
-
close
public abstract void close() throws SQLException- 指定者:
close在接口中AutoCloseable- 指定者:
close在接口中Statement- 抛出:
SQLException
-
getMaxFieldSize
public int getMaxFieldSize() throws SQLException- 指定者:
getMaxFieldSize在接口中Statement- 抛出:
SQLException
-
setMaxFieldSize
public void setMaxFieldSize(int max) throws SQLException- 指定者:
setMaxFieldSize在接口中Statement- 抛出:
SQLException
-
getMaxRows
public int getMaxRows() throws SQLException- 指定者:
getMaxRows在接口中Statement- 抛出:
SQLException
-
setMaxRows
public void setMaxRows(int max) throws SQLException- 指定者:
setMaxRows在接口中Statement- 抛出:
SQLException
-
setEscapeProcessing
public void setEscapeProcessing(boolean enable) throws SQLException- 指定者:
setEscapeProcessing在接口中Statement- 抛出:
SQLException
-
getQueryTimeout
public int getQueryTimeout() throws SQLException- 指定者:
getQueryTimeout在接口中Statement- 抛出:
SQLException
-
setQueryTimeout
public void setQueryTimeout(int seconds) throws SQLException- 指定者:
setQueryTimeout在接口中Statement- 抛出:
SQLException
-
cancel
public void cancel() throws SQLException- 指定者:
cancel在接口中Statement- 抛出:
SQLException
-
getWarnings
public SQLWarning getWarnings() throws SQLException
- 指定者:
getWarnings在接口中Statement- 抛出:
SQLException
-
clearWarnings
public void clearWarnings() throws SQLException- 指定者:
clearWarnings在接口中Statement- 抛出:
SQLException
-
setCursorName
public void setCursorName(String name) throws SQLException
- 指定者:
setCursorName在接口中Statement- 抛出:
SQLException
-
execute
public abstract boolean execute(String sql) throws SQLException
- 指定者:
execute在接口中Statement- 抛出:
SQLException
-
getResultSet
public abstract ResultSet getResultSet() throws SQLException
- 指定者:
getResultSet在接口中Statement- 抛出:
SQLException
-
getUpdateCount
public abstract int getUpdateCount() throws SQLException- 指定者:
getUpdateCount在接口中Statement- 抛出:
SQLException
-
getMoreResults
public boolean getMoreResults() throws SQLException- 指定者:
getMoreResults在接口中Statement- 抛出:
SQLException
-
setFetchDirection
public void setFetchDirection(int direction) throws SQLException- 指定者:
setFetchDirection在接口中Statement- 抛出:
SQLException
-
getFetchDirection
public int getFetchDirection() throws SQLException- 指定者:
getFetchDirection在接口中Statement- 抛出:
SQLException
-
setFetchSize
public void setFetchSize(int rows) throws SQLException- 指定者:
setFetchSize在接口中Statement- 抛出:
SQLException
-
getFetchSize
public int getFetchSize() throws SQLException- 指定者:
getFetchSize在接口中Statement- 抛出:
SQLException
-
getResultSetConcurrency
public int getResultSetConcurrency() throws SQLException- 指定者:
getResultSetConcurrency在接口中Statement- 抛出:
SQLException
-
getResultSetType
public int getResultSetType() throws SQLException- 指定者:
getResultSetType在接口中Statement- 抛出:
SQLException
-
addBatch
public void addBatch(String sql) throws SQLException
- 指定者:
addBatch在接口中Statement- 抛出:
SQLException
-
clearBatch
public void clearBatch() throws SQLException- 指定者:
clearBatch在接口中Statement- 抛出:
SQLException
-
executeBatch
public int[] executeBatch() throws SQLException- 指定者:
executeBatch在接口中Statement- 抛出:
SQLException
-
getConnection
public abstract Connection getConnection() throws SQLException
- 指定者:
getConnection在接口中Statement- 抛出:
SQLException
-
getMoreResults
public boolean getMoreResults(int current) throws SQLException- 指定者:
getMoreResults在接口中Statement- 抛出:
SQLException
-
getGeneratedKeys
public ResultSet getGeneratedKeys() throws SQLException
- 指定者:
getGeneratedKeys在接口中Statement- 抛出:
SQLException
-
executeUpdate
public int executeUpdate(String sql, int autoGeneratedKeys) throws SQLException
- 指定者:
executeUpdate在接口中Statement- 抛出:
SQLException
-
executeUpdate
public int executeUpdate(String sql, int[] columnIndexes) throws SQLException
- 指定者:
executeUpdate在接口中Statement- 抛出:
SQLException
-
executeUpdate
public int executeUpdate(String sql, String[] columnNames) throws SQLException
- 指定者:
executeUpdate在接口中Statement- 抛出:
SQLException
-
execute
public boolean execute(String sql, int autoGeneratedKeys) throws SQLException
- 指定者:
execute在接口中Statement- 抛出:
SQLException
-
execute
public boolean execute(String sql, int[] columnIndexes) throws SQLException
- 指定者:
execute在接口中Statement- 抛出:
SQLException
-
execute
public boolean execute(String sql, String[] columnNames) throws SQLException
- 指定者:
execute在接口中Statement- 抛出:
SQLException
-
getResultSetHoldability
public int getResultSetHoldability() throws SQLException- 指定者:
getResultSetHoldability在接口中Statement- 抛出:
SQLException
-
isClosed
public abstract boolean isClosed() throws SQLException- 指定者:
isClosed在接口中Statement- 抛出:
SQLException
-
setPoolable
public void setPoolable(boolean poolable) throws SQLException- 指定者:
setPoolable在接口中Statement- 抛出:
SQLException
-
isPoolable
public boolean isPoolable() throws SQLException- 指定者:
isPoolable在接口中Statement- 抛出:
SQLException
-
closeOnCompletion
public void closeOnCompletion() throws SQLException- 指定者:
closeOnCompletion在接口中Statement- 抛出:
SQLException
-
isCloseOnCompletion
public boolean isCloseOnCompletion() throws SQLException- 指定者:
isCloseOnCompletion在接口中Statement- 抛出:
SQLException
-
-