org.apache.iotdb.jdbc

## 类 IoTDBPreparedStatement

- java.lang.Object
- - org.apache.iotdb.jdbc.IoTDBStatement
  - - org.apache.iotdb.jdbc.IoTDBPreparedStatement

所有已实现的接口:
  AutoCloseable, PreparedStatement, Statement, Wrapper

直接已知子类:
  IoTDBPreparedInsertionStatement

    public class IoTDBPreparedStatement
    extends IoTDBStatement
    implements PreparedStatement

### 字段概要

### 从类继承的字段 org.apache.iotdb.jdbc.IoTDBStatement

`client, stmtId`

### 从接口继承的字段 java.sql.Statement

`CLOSE_ALL_RESULTS, CLOSE_CURRENT_RESULT, EXECUTE_FAILED, KEEP_CURRENT_RESULT, NO_GENERATED_KEYS, RETURN_GENERATED_KEYS, SUCCESS_NO_INFO`

### 构造器概要

构造器
构造器和说明
`IoTDBPreparedStatement(IoTDBConnection connection, org.apache.iotdb.service.rpc.thrift.TSIService.Iface client, org.apache.iotdb.service.rpc.thrift.TS_SessionHandle sessionHandle, String sql, ZoneId zoneId)`
`IoTDBPreparedStatement(IoTDBConnection connection, org.apache.iotdb.service.rpc.thrift.TSIService.Iface client, org.apache.iotdb.service.rpc.thrift.TS_SessionHandle sessionHandle, ZoneId zoneId)`

### 方法概要

所有方法 实例方法 具体方法
`void` `addBatch()`
`void` `clearParameters()`
`boolean` `execute()`
`ResultSet` `executeQuery()`
`int` `executeUpdate()`
`ResultSetMetaData` `getMetaData()`
`ParameterMetaData` `getParameterMetaData()`
`void` `setArray(int parameterIndex, Array x)`
`void` `setAsciiStream(int parameterIndex, InputStream x)`
`void` `setAsciiStream(int parameterIndex, InputStream x, int length)`
`void` `setAsciiStream(int parameterIndex, InputStream x, long length)`
`void` `setBigDecimal(int parameterIndex, BigDecimal x)`
`void` `setBinaryStream(int parameterIndex, InputStream x)`
`void` `setBinaryStream(int parameterIndex, InputStream x, int length)`
`void` `setBinaryStream(int parameterIndex, InputStream x, long length)`
`void` `setBlob(int parameterIndex, Blob x)`
`void` `setBlob(int parameterIndex, InputStream inputStream)`
`void` `setBlob(int parameterIndex, InputStream inputStream, long length)`
`void` `setBoolean(int parameterIndex, boolean x)`
`void` `setByte(int parameterIndex, byte x)`
`void` `setBytes(int parameterIndex, byte[] x)`
`void` `setCharacterStream(int parameterIndex, Reader reader)`
`void` `setCharacterStream(int parameterIndex, Reader reader, int length)`
`void` `setCharacterStream(int parameterIndex, Reader reader, long length)`
`void` `setClob(int parameterIndex, Clob x)`
`void` `setClob(int parameterIndex, Reader reader)`
`void` `setClob(int parameterIndex, Reader reader, long length)`
`void` `setDate(int parameterIndex, Date x)`
`void` `setDate(int parameterIndex, Date x, Calendar cal)`
`void` `setDouble(int parameterIndex, double x)`
`void` `setFloat(int parameterIndex, float x)`
`void` `setInt(int parameterIndex, int x)`
`void` `setLong(int parameterIndex, long x)`
`void` `setNCharacterStream(int parameterIndex, Reader value)`
`void` `setNCharacterStream(int parameterIndex, Reader value, long length)`
`void` `setNClob(int parameterIndex, NClob value)`
`void` `setNClob(int parameterIndex, Reader reader)`
`void` `setNClob(int parameterIndex, Reader reader, long length)`
`void` `setNString(int parameterIndex, String value)`
`void` `setNull(int parameterIndex, int sqlType)`
`void` `setNull(int parameterIndex, int sqlType, String typeName)`
`void` `setObject(int parameterIndex, Object x)`
`void` `setObject(int parameterIndex, Object x, int targetSqlType)`
`void` `setObject(int parameterIndex, Object x, int targetSqlType, int scaleOrLength)`
`void` `setRef(int parameterIndex, Ref x)`
`void` `setRowId(int parameterIndex, RowId x)`
`void` `setShort(int parameterIndex, short x)`
`void` `setSQLXML(int parameterIndex, SQLXML xmlObject)`
`void` `setString(int parameterIndex, String x)`
`void` `setTime(int parameterIndex, Time x)`
`void` `setTime(int parameterIndex, Time x, Calendar cal)`
`void` `setTimestamp(int parameterIndex, Timestamp x)`
`void` `setTimestamp(int parameterIndex, Timestamp x, Calendar cal)`
`void` `setUnicodeStream(int parameterIndex, InputStream x, int length)`
`void` `setURL(int parameterIndex, URL x)`

### 从类继承的方法 org.apache.iotdb.jdbc.IoTDBStatement

`addBatch, cancel, clearBatch, clearWarnings, close, closeOnCompletion, execute, execute, execute, execute, executeBatch, executeQuery, executeUpdate, executeUpdate, executeUpdate, executeUpdate, getConnection, getFetchDirection, getFetchSize, getGeneratedKeys, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getQueryTimeout, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getUpdateCount, getWarnings, isClosed, isCloseOnCompletion, isPoolable, isWrapperFor, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setMaxFieldSize, setMaxRows, setPoolable, setQueryTimeout, unwrap`

### 从类继承的方法 java.lang.Object

`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

### 从接口继承的方法 java.sql.PreparedStatement

`executeLargeUpdate, setObject, setObject`

### 从接口继承的方法 java.sql.Statement

`addBatch, cancel, clearBatch, clearWarnings, close, closeOnCompletion, execute, execute, execute, execute, executeBatch, executeLargeBatch, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeQuery, executeUpdate, executeUpdate, executeUpdate, executeUpdate, getConnection, getFetchDirection, getFetchSize, getGeneratedKeys, getLargeMaxRows, getLargeUpdateCount, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getQueryTimeout, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getUpdateCount, getWarnings, isClosed, isCloseOnCompletion, isPoolable, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setLargeMaxRows, setMaxFieldSize, setMaxRows, setPoolable, setQueryTimeout`

### 从接口继承的方法 java.sql.Wrapper

`isWrapperFor, unwrap`

### 构造器详细资料

#### IoTDBPreparedStatement

    public IoTDBPreparedStatement(IoTDBConnection connection,
                                  org.apache.iotdb.service.rpc.thrift.TSIService.Iface client,
                                  org.apache.iotdb.service.rpc.thrift.TS_SessionHandle sessionHandle,
                                  ZoneId zoneId)
                           throws SQLException

抛出:
  `SQLException`

#### IoTDBPreparedStatement

    public IoTDBPreparedStatement(IoTDBConnection connection,
                                  org.apache.iotdb.service.rpc.thrift.TSIService.Iface client,
                                  org.apache.iotdb.service.rpc.thrift.TS_SessionHandle sessionHandle,
                                  String sql,
                                  ZoneId zoneId)

### 方法详细资料

#### addBatch

    public void addBatch()
                  throws SQLException

指定者:
  `addBatch` 在接口中 `PreparedStatement`
抛出:
  `SQLException`

#### clearParameters

    public void clearParameters()
                         throws SQLException

指定者:
  `clearParameters` 在接口中 `PreparedStatement`
抛出:
  `SQLException`

#### execute

    public boolean execute()
                    throws SQLException

指定者:
  `execute` 在接口中 `PreparedStatement`
抛出:
  `SQLException`

#### executeQuery

    public ResultSet executeQuery()
                           throws SQLException

指定者:
  `executeQuery` 在接口中 `PreparedStatement`
抛出:
  `SQLException`

#### executeUpdate

    public int executeUpdate()
                      throws SQLException

指定者:
  `executeUpdate` 在接口中 `PreparedStatement`
抛出:
  `SQLException`

#### getMetaData

    public ResultSetMetaData getMetaData()
                                  throws SQLException

指定者:
  `getMetaData` 在接口中 `PreparedStatement`
抛出:
  `SQLException`

#### getParameterMetaData

    public ParameterMetaData getParameterMetaData()
                                           throws SQLException

指定者:
  `getParameterMetaData` 在接口中 `PreparedStatement`
抛出:
  `SQLException`

#### setArray

    public void setArray(int parameterIndex,
                         Array x)
                  throws SQLException

指定者:
  `setArray` 在接口中 `PreparedStatement`
抛出:
  `SQLException`

#### setAsciiStream

    public void setAsciiStream(int parameterIndex,
                               InputStream x)
                        throws SQLException

指定者:
  `setAsciiStream` 在接口中 `PreparedStatement`
抛出:
  `SQLException`

#### setAsciiStream

    public void setAsciiStream(int parameterIndex,
                               InputStream x,
                               int length)
                        throws SQLException

指定者:
  `setAsciiStream` 在接口中 `PreparedStatement`
抛出:
  `SQLException`

#### setAsciiStream

    public void setAsciiStream(int parameterIndex,
                               InputStream x,
                               long length)
                        throws SQLException

指定者:
  `setAsciiStream` 在接口中 `PreparedStatement`
抛出:
  `SQLException`

#### setBigDecimal

    public void setBigDecimal(int parameterIndex,
                              BigDecimal x)
                       throws SQLException

指定者:
  `setBigDecimal` 在接口中 `PreparedStatement`
抛出:
  `SQLException`

#### setBinaryStream

    public void setBinaryStream(int parameterIndex,
                                InputStream x)
                         throws SQLException

指定者:
  `setBinaryStream` 在接口中 `PreparedStatement`
抛出:
  `SQLException`

#### setBinaryStream

    public void setBinaryStream(int parameterIndex,
                                InputStream x,
                                int length)
                         throws SQLException

指定者:
  `setBinaryStream` 在接口中 `PreparedStatement`
抛出:
  `SQLException`

#### setBinaryStream

    public void setBinaryStream(int parameterIndex,
                                InputStream x,
                                long length)
                         throws SQLException

指定者:
  `setBinaryStream` 在接口中 `PreparedStatement`
抛出:
  `SQLException`

#### setBlob

    public void setBlob(int parameterIndex,
                        Blob x)
                 throws SQLException

指定者:
  `setBlob` 在接口中 `PreparedStatement`
抛出:
  `SQLException`

#### setBlob

    public void setBlob(int parameterIndex,
                        InputStream inputStream)
                 throws SQLException

指定者:
  `setBlob` 在接口中 `PreparedStatement`
抛出:
  `SQLException`

#### setBlob

    public void setBlob(int parameterIndex,
                        InputStream inputStream,
                        long length)
                 throws SQLException

指定者:
  `setBlob` 在接口中 `PreparedStatement`
抛出:
  `SQLException`

#### setBoolean

    public void setBoolean(int parameterIndex,
                           boolean x)
                    throws SQLException

指定者:
  `setBoolean` 在接口中 `PreparedStatement`
抛出:
  `SQLException`

#### setByte

    public void setByte(int parameterIndex,
                        byte x)
                 throws SQLException

指定者:
  `setByte` 在接口中 `PreparedStatement`
抛出:
  `SQLException`

#### setBytes

    public void setBytes(int parameterIndex,
                         byte[] x)
                  throws SQLException

指定者:
  `setBytes` 在接口中 `PreparedStatement`
抛出:
  `SQLException`

#### setCharacterStream

    public void setCharacterStream(int parameterIndex,
                                   Reader reader)
                            throws SQLException

指定者:
  `setCharacterStream` 在接口中 `PreparedStatement`
抛出:
  `SQLException`

#### setCharacterStream

    public void setCharacterStream(int parameterIndex,
                                   Reader reader,
                                   int length)
                            throws SQLException

指定者:
  `setCharacterStream` 在接口中 `PreparedStatement`
抛出:
  `SQLException`

#### setCharacterStream

    public void setCharacterStream(int parameterIndex,
                                   Reader reader,
                                   long length)
                            throws SQLException

指定者:
  `setCharacterStream` 在接口中 `PreparedStatement`
抛出:
  `SQLException`

#### setClob

    public void setClob(int parameterIndex,
                        Clob x)
                 throws SQLException

指定者:
  `setClob` 在接口中 `PreparedStatement`
抛出:
  `SQLException`

#### setClob

    public void setClob(int parameterIndex,
                        Reader reader)
                 throws SQLException

指定者:
  `setClob` 在接口中 `PreparedStatement`
抛出:
  `SQLException`

#### setClob

    public void setClob(int parameterIndex,
                        Reader reader,
                        long length)
                 throws SQLException

指定者:
  `setClob` 在接口中 `PreparedStatement`
抛出:
  `SQLException`

#### setDate

    public void setDate(int parameterIndex,
                        Date x)
                 throws SQLException

指定者:
  `setDate` 在接口中 `PreparedStatement`
抛出:
  `SQLException`

#### setDate

    public void setDate(int parameterIndex,
                        Date x,
                        Calendar cal)
                 throws SQLException

指定者:
  `setDate` 在接口中 `PreparedStatement`
抛出:
  `SQLException`

#### setDouble

    public void setDouble(int parameterIndex,
                          double x)
                   throws SQLException

指定者:
  `setDouble` 在接口中 `PreparedStatement`
抛出:
  `SQLException`

#### setFloat

    public void setFloat(int parameterIndex,
                         float x)
                  throws SQLException

指定者:
  `setFloat` 在接口中 `PreparedStatement`
抛出:
  `SQLException`

#### setInt

    public void setInt(int parameterIndex,
                       int x)
                throws SQLException

指定者:
  `setInt` 在接口中 `PreparedStatement`
抛出:
  `SQLException`

#### setLong

    public void setLong(int parameterIndex,
                        long x)
                 throws SQLException

指定者:
  `setLong` 在接口中 `PreparedStatement`
抛出:
  `SQLException`

#### setNCharacterStream

    public void setNCharacterStream(int parameterIndex,
                                    Reader value)
                             throws SQLException

指定者:
  `setNCharacterStream` 在接口中 `PreparedStatement`
抛出:
  `SQLException`

#### setNCharacterStream

    public void setNCharacterStream(int parameterIndex,
                                    Reader value,
                                    long length)
                             throws SQLException

指定者:
  `setNCharacterStream` 在接口中 `PreparedStatement`
抛出:
  `SQLException`

#### setNClob

    public void setNClob(int parameterIndex,
                         NClob value)
                  throws SQLException

指定者:
  `setNClob` 在接口中 `PreparedStatement`
抛出:
  `SQLException`

#### setNClob

    public void setNClob(int parameterIndex,
                         Reader reader)
                  throws SQLException

指定者:
  `setNClob` 在接口中 `PreparedStatement`
抛出:
  `SQLException`

#### setNClob

    public void setNClob(int parameterIndex,
                         Reader reader,
                         long length)
                  throws SQLException

指定者:
  `setNClob` 在接口中 `PreparedStatement`
抛出:
  `SQLException`

#### setNString

    public void setNString(int parameterIndex,
                           String value)
                    throws SQLException

指定者:
  `setNString` 在接口中 `PreparedStatement`
抛出:
  `SQLException`

#### setNull

    public void setNull(int parameterIndex,
                        int sqlType)
                 throws SQLException

指定者:
  `setNull` 在接口中 `PreparedStatement`
抛出:
  `SQLException`

#### setNull

    public void setNull(int parameterIndex,
                        int sqlType,
                        String typeName)
                 throws SQLException

指定者:
  `setNull` 在接口中 `PreparedStatement`
抛出:
  `SQLException`

#### setObject

    public void setObject(int parameterIndex,
                          Object x)
                   throws SQLException

指定者:
  `setObject` 在接口中 `PreparedStatement`
抛出:
  `SQLException`

#### setObject

    public void setObject(int parameterIndex,
                          Object x,
                          int targetSqlType)
                   throws SQLException

指定者:
  `setObject` 在接口中 `PreparedStatement`
抛出:
  `SQLException`

#### setObject

    public void setObject(int parameterIndex,
                          Object x,
                          int targetSqlType,
                          int scaleOrLength)
                   throws SQLException

指定者:
  `setObject` 在接口中 `PreparedStatement`
抛出:
  `SQLException`

#### setRef

    public void setRef(int parameterIndex,
                       Ref x)
                throws SQLException

指定者:
  `setRef` 在接口中 `PreparedStatement`
抛出:
  `SQLException`

#### setRowId

    public void setRowId(int parameterIndex,
                         RowId x)
                  throws SQLException

指定者:
  `setRowId` 在接口中 `PreparedStatement`
抛出:
  `SQLException`

#### setSQLXML

    public void setSQLXML(int parameterIndex,
                          SQLXML xmlObject)
                   throws SQLException

指定者:
  `setSQLXML` 在接口中 `PreparedStatement`
抛出:
  `SQLException`

#### setShort

    public void setShort(int parameterIndex,
                         short x)
                  throws SQLException

指定者:
  `setShort` 在接口中 `PreparedStatement`
抛出:
  `SQLException`

#### setString

    public void setString(int parameterIndex,
                          String x)
                   throws SQLException

指定者:
  `setString` 在接口中 `PreparedStatement`
抛出:
  `SQLException`

#### setTime

    public void setTime(int parameterIndex,
                        Time x)
                 throws SQLException

指定者:
  `setTime` 在接口中 `PreparedStatement`
抛出:
  `SQLException`

#### setTime

    public void setTime(int parameterIndex,
                        Time x,
                        Calendar cal)
                 throws SQLException

指定者:
  `setTime` 在接口中 `PreparedStatement`
抛出:
  `SQLException`

#### setTimestamp

    public void setTimestamp(int parameterIndex,
                             Timestamp x)
                      throws SQLException

指定者:
  `setTimestamp` 在接口中 `PreparedStatement`
抛出:
  `SQLException`

#### setTimestamp

    public void setTimestamp(int parameterIndex,
                             Timestamp x,
                             Calendar cal)
                      throws SQLException

指定者:
  `setTimestamp` 在接口中 `PreparedStatement`
抛出:
  `SQLException`

#### setURL

    public void setURL(int parameterIndex,
                       URL x)
                throws SQLException

指定者:
  `setURL` 在接口中 `PreparedStatement`
抛出:
  `SQLException`

#### setUnicodeStream

    public void setUnicodeStream(int parameterIndex,
                                 InputStream x,
                                 int length)
                          throws SQLException

指定者:
  `setUnicodeStream` 在接口中 `PreparedStatement`
抛出:
  `SQLException`