Package org.apache.iotdb.jdbc
Class IoTDBStatement
java.lang.Object
org.apache.iotdb.jdbc.IoTDBStatement
- All Implemented Interfaces:
AutoCloseable,Statement,Wrapper
- Direct Known Subclasses:
IoTDBPreparedStatement
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Charsetprotected IClientRPCService.Ifaceprotected final ZoneIdFields 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 -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidcancel()voidvoidvoidclose()voidbooleanexecute(byte[] sql) Execute a SQL encoded in bytes withcharset.booleanbooleanbooleanbooleanint[]executeQuery(String sql) executeQuery(String sql, long timeoutInMS) intexecuteUpdate(String sql) intexecuteUpdate(String arg0, int arg1) intexecuteUpdate(String arg0, int[] arg1) intexecuteUpdate(String arg0, String[] arg1) intintintintlonggetMilliSecond(long time) booleanbooleangetMoreResults(int arg0) intgetNanoSecond(long time) intintintintlonglongintintbooleanisClosed()booleanbooleanbooleanisWrapperFor(Class<?> iface) voidsetCursorName(String arg0) voidsetEscapeProcessing(boolean enable) voidsetFetchDirection(int direction) voidsetFetchSize(int fetchSize) voidsetMaxFieldSize(int arg0) voidsetMaxRows(int num) voidsetPoolable(boolean arg0) 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
-
Field Details
-
zoneId
-
charset
-
client
-
-
Method Details
-
isWrapperFor
- Specified by:
isWrapperForin interfaceWrapper
-
unwrap
- Specified by:
unwrapin interfaceWrapper- Throws:
SQLException
-
addBatch
-
cancel
- Specified by:
cancelin interfaceStatement- Throws:
SQLException
-
clearBatch
public void clearBatch()- Specified by:
clearBatchin interfaceStatement
-
clearWarnings
public void clearWarnings()- Specified by:
clearWarningsin interfaceStatement
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceStatement- Throws:
SQLException
-
closeOnCompletion
- Specified by:
closeOnCompletionin interfaceStatement- Throws:
SQLException
-
execute
Execute a SQL encoded in bytes withcharset.- Parameters:
sql- raw sql in bytes encoded withcharset- Returns:
- true if the first result is a
ResultSetobject; false if the first result is an update count or there is no result - Throws:
SQLException- if a database access error occurs
-
execute
- Specified by:
executein interfaceStatement- Throws:
SQLException
-
execute
- Specified by:
executein interfaceStatement- Throws:
SQLException
-
execute
- Specified by:
executein interfaceStatement- Throws:
SQLException
-
execute
- Specified by:
executein interfaceStatement- Throws:
SQLException
-
executeBatch
- Specified by:
executeBatchin interfaceStatement- Throws:
SQLException
-
executeQuery
- Specified by:
executeQueryin interfaceStatement- Throws:
SQLException
-
executeQuery
- Throws:
SQLException
-
executeUpdate
- Specified by:
executeUpdatein interfaceStatement- Throws:
SQLException
-
executeUpdate
- Specified by:
executeUpdatein interfaceStatement- Throws:
SQLException
-
executeUpdate
- Specified by:
executeUpdatein interfaceStatement- Throws:
SQLException
-
executeUpdate
- Specified by:
executeUpdatein interfaceStatement- Throws:
SQLException
-
getConnection
- Specified by:
getConnectionin interfaceStatement
-
getFetchDirection
- Specified by:
getFetchDirectionin interfaceStatement- Throws:
SQLException
-
setFetchDirection
- Specified by:
setFetchDirectionin interfaceStatement- Throws:
SQLException
-
getFetchSize
- Specified by:
getFetchSizein interfaceStatement- Throws:
SQLException
-
setFetchSize
- Specified by:
setFetchSizein interfaceStatement- Throws:
SQLException
-
getGeneratedKeys
- Specified by:
getGeneratedKeysin interfaceStatement- Throws:
SQLException
-
getMaxFieldSize
- Specified by:
getMaxFieldSizein interfaceStatement- Throws:
SQLException
-
setMaxFieldSize
- Specified by:
setMaxFieldSizein interfaceStatement- Throws:
SQLException
-
getMaxRows
- Specified by:
getMaxRowsin interfaceStatement- Throws:
SQLException
-
setMaxRows
- Specified by:
setMaxRowsin interfaceStatement- Throws:
SQLException
-
getMoreResults
- Specified by:
getMoreResultsin interfaceStatement- Throws:
SQLException
-
getMoreResults
- Specified by:
getMoreResultsin interfaceStatement- Throws:
SQLException
-
getQueryTimeout
public int getQueryTimeout()- Specified by:
getQueryTimeoutin interfaceStatement
-
setQueryTimeout
- Specified by:
setQueryTimeoutin interfaceStatement- Throws:
SQLException
-
getResultSet
- Specified by:
getResultSetin interfaceStatement- Throws:
SQLException
-
getResultSetConcurrency
- Specified by:
getResultSetConcurrencyin interfaceStatement- Throws:
SQLException
-
getResultSetHoldability
- Specified by:
getResultSetHoldabilityin interfaceStatement- Throws:
SQLException
-
getResultSetType
- Specified by:
getResultSetTypein interfaceStatement- Throws:
SQLException
-
getUpdateCount
public int getUpdateCount()- Specified by:
getUpdateCountin interfaceStatement
-
getWarnings
- Specified by:
getWarningsin interfaceStatement
-
isCloseOnCompletion
- Specified by:
isCloseOnCompletionin interfaceStatement- Throws:
SQLException
-
isClosed
public boolean isClosed() -
isPoolable
- Specified by:
isPoolablein interfaceStatement- Throws:
SQLException
-
setPoolable
- Specified by:
setPoolablein interfaceStatement- Throws:
SQLException
-
setCursorName
- Specified by:
setCursorNamein interfaceStatement- Throws:
SQLException
-
setEscapeProcessing
- Specified by:
setEscapeProcessingin interfaceStatement- Throws:
SQLException
-
getSessionId
public long getSessionId() -
getStmtId
public long getStmtId() -
getMilliSecond
public long getMilliSecond(long time) -
getNanoSecond
public int getNanoSecond(long time) -
getTimeFactor
public int getTimeFactor() -
getSqlDialect
-