Package org.apache.iotdb.itbase.runtime
Class ClusterTestStatement
java.lang.Object
org.apache.iotdb.itbase.runtime.ClusterTestStatement
- All Implemented Interfaces:
AutoCloseable,Statement,Wrapper
The implementation of
ClusterTestStatement in cluster test.-
Field Summary
Fields inherited from interface java.sql.Statement
CLOSE_ALL_RESULTS, CLOSE_CURRENT_RESULT, EXECUTE_FAILED, KEEP_CURRENT_RESULT, NO_GENERATED_KEYS, RETURN_GENERATED_KEYS, SUCCESS_NO_INFO -
Constructor Summary
ConstructorsConstructorDescriptionClusterTestStatement(NodeConnection writeConnection, List<NodeConnection> readConnections) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidcancel()voidvoidvoidclose()voidbooleanbooleanbooleanbooleanint[]executeQuery(String sql) intexecuteUpdate(String sql) intexecuteUpdate(String sql, int autoGeneratedKeys) intexecuteUpdate(String sql, int[] columnIndexes) intexecuteUpdate(String sql, String[] columnNames) intintintintbooleanbooleangetMoreResults(int current) intintintintintbooleanisClosed()booleanbooleanbooleanisWrapperFor(Class<?> iface) voidsetCursorName(String name) voidsetEscapeProcessing(boolean enable) voidsetFetchDirection(int direction) voidsetFetchSize(int rows) voidsetMaxFieldSize(int max) voidsetMaxRows(int max) voidsetPoolable(boolean poolable) voidsetQueryTimeout(int seconds) <T> TMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.sql.Statement
executeLargeBatch, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, getLargeMaxRows, getLargeUpdateCount, setLargeMaxRows
-
Constructor Details
-
ClusterTestStatement
-
-
Method Details
-
executeQuery
- Specified by:
executeQueryin interfaceStatement- Throws:
SQLException
-
executeUpdate
- Specified by:
executeUpdatein interfaceStatement- Throws:
SQLException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceStatement- Throws:
SQLException
-
getMaxFieldSize
- Specified by:
getMaxFieldSizein interfaceStatement- Throws:
SQLException
-
setMaxFieldSize
- Specified by:
setMaxFieldSizein interfaceStatement- Throws:
SQLException
-
getMaxRows
public int getMaxRows()- Specified by:
getMaxRowsin interfaceStatement
-
setMaxRows
- Specified by:
setMaxRowsin interfaceStatement- Throws:
SQLException
-
setEscapeProcessing
- Specified by:
setEscapeProcessingin interfaceStatement- Throws:
SQLException
-
getQueryTimeout
public int getQueryTimeout()- Specified by:
getQueryTimeoutin interfaceStatement
-
setQueryTimeout
- Specified by:
setQueryTimeoutin interfaceStatement- Throws:
SQLException
-
cancel
public void cancel() -
getWarnings
- Specified by:
getWarningsin interfaceStatement
-
clearWarnings
public void clearWarnings()- Specified by:
clearWarningsin interfaceStatement
-
setCursorName
- Specified by:
setCursorNamein interfaceStatement
-
execute
- Specified by:
executein interfaceStatement- Throws:
SQLException
-
getResultSet
- Specified by:
getResultSetin interfaceStatement
-
getUpdateCount
- Specified by:
getUpdateCountin interfaceStatement- Throws:
SQLException
-
getMoreResults
public boolean getMoreResults()- Specified by:
getMoreResultsin interfaceStatement
-
setFetchDirection
public void setFetchDirection(int direction) - Specified by:
setFetchDirectionin interfaceStatement
-
getFetchDirection
public int getFetchDirection()- Specified by:
getFetchDirectionin interfaceStatement
-
setFetchSize
- Specified by:
setFetchSizein interfaceStatement- Throws:
SQLException
-
getFetchSize
public int getFetchSize()- Specified by:
getFetchSizein interfaceStatement
-
getResultSetConcurrency
public int getResultSetConcurrency()- Specified by:
getResultSetConcurrencyin interfaceStatement
-
getResultSetType
public int getResultSetType()- Specified by:
getResultSetTypein interfaceStatement
-
addBatch
- Specified by:
addBatchin interfaceStatement- Throws:
SQLException
-
clearBatch
- Specified by:
clearBatchin interfaceStatement- Throws:
SQLException
-
executeBatch
- Specified by:
executeBatchin interfaceStatement- Throws:
SQLException
-
getConnection
- Specified by:
getConnectionin interfaceStatement
-
getMoreResults
public boolean getMoreResults(int current) - Specified by:
getMoreResultsin interfaceStatement
-
getGeneratedKeys
- Specified by:
getGeneratedKeysin interfaceStatement
-
executeUpdate
- Specified by:
executeUpdatein interfaceStatement
-
executeUpdate
- Specified by:
executeUpdatein interfaceStatement
-
executeUpdate
- Specified by:
executeUpdatein interfaceStatement
-
execute
-
execute
-
execute
-
getResultSetHoldability
public int getResultSetHoldability()- Specified by:
getResultSetHoldabilityin interfaceStatement
-
isClosed
public boolean isClosed() -
setPoolable
public void setPoolable(boolean poolable) - Specified by:
setPoolablein interfaceStatement
-
isPoolable
public boolean isPoolable()- Specified by:
isPoolablein interfaceStatement
-
closeOnCompletion
public void closeOnCompletion()- Specified by:
closeOnCompletionin interfaceStatement
-
isCloseOnCompletion
public boolean isCloseOnCompletion()- Specified by:
isCloseOnCompletionin interfaceStatement
-
unwrap
-
isWrapperFor
- Specified by:
isWrapperForin interfaceWrapper
-