程序包 org.apache.iotdb.jdbc

## 类 IoTDBConnection

- java.lang.Object
- - org.apache.iotdb.jdbc.IoTDBConnection

所有已实现的接口:
  `java.lang.AutoCloseable`, `java.sql.Connection`, `java.sql.Wrapper`

    public class IoTDBConnection
    extends java.lang.Object
    implements java.sql.Connection

### 字段概要

字段
`org.apache.iotdb.service.rpc.thrift.TSIService.Iface` `client`
`org.apache.iotdb.service.rpc.thrift.TS_SessionHandle` `sessionHandle`

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

`TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE`

### 构造器概要

构造器
`IoTDBConnection()`
`IoTDBConnection​(java.lang.String url, java.util.Properties info)`

### 方法概要

所有方法 静态方法 实例方法 具体方法
`void` `abort​(java.util.concurrent.Executor arg0)`
`void` `clearWarnings()`
`void` `close()`
`void` `commit()`
`java.sql.Array` `createArrayOf​(java.lang.String arg0, java.lang.Object[] arg1)`
`java.sql.Blob` `createBlob()`
`java.sql.Clob` `createClob()`
`java.sql.NClob` `createNClob()`
`java.sql.SQLXML` `createSQLXML()`
`java.sql.Statement` `createStatement()`
`java.sql.Statement` `createStatement​(int resultSetType, int resultSetConcurrency)`
`java.sql.Statement` `createStatement​(int arg0, int arg1, int arg2)`
`java.sql.Struct` `createStruct​(java.lang.String arg0, java.lang.Object[] arg1)`
`boolean` `getAutoCommit()`
`java.lang.String` `getCatalog()`
`java.util.Properties` `getClientInfo()`
`java.lang.String` `getClientInfo​(java.lang.String arg0)`
`int` `getHoldability()`
`java.sql.DatabaseMetaData` `getMetaData()`
`int` `getNetworkTimeout()`
`org.apache.iotdb.service.rpc.thrift.TSProtocolVersion` `getProtocol()`
`java.lang.String` `getSchema()`
`org.apache.iotdb.service.rpc.thrift.ServerProperties` `getServerProperties()`
`java.lang.String` `getTimeZone()`
`int` `getTransactionIsolation()`
`java.util.Map<java.lang.String,​java.lang.Class<?>>` `getTypeMap()`
`java.sql.SQLWarning` `getWarnings()`
`boolean` `isClosed()`
`boolean` `isReadOnly()`
`boolean` `isValid​(int arg0)`
`boolean` `isWrapperFor​(java.lang.Class<?> arg0)`
`java.lang.String` `nativeSQL​(java.lang.String arg0)`
`static org.apache.iotdb.service.rpc.thrift.TSIService.Iface` `newSynchronizedClient​(org.apache.iotdb.service.rpc.thrift.TSIService.Iface client)`
`java.sql.CallableStatement` `prepareCall​(java.lang.String arg0)`
`java.sql.CallableStatement` `prepareCall​(java.lang.String arg0, int arg1, int arg2)`
`java.sql.CallableStatement` `prepareCall​(java.lang.String arg0, int arg1, int arg2, int arg3)`
`java.sql.PreparedStatement` `prepareStatement​(java.lang.String sql)`
`java.sql.PreparedStatement` `prepareStatement​(java.lang.String sql, int autoGeneratedKeys)`
`java.sql.PreparedStatement` `prepareStatement​(java.lang.String sql, int[] columnIndexes)`
`java.sql.PreparedStatement` `prepareStatement​(java.lang.String sql, int resultSetType, int resultSetConcurrency)`
`java.sql.PreparedStatement` `prepareStatement​(java.lang.String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability)`
`java.sql.PreparedStatement` `prepareStatement​(java.lang.String sql, java.lang.String[] columnNames)`
`boolean` `reconnect()`
`void` `releaseSavepoint​(java.sql.Savepoint arg0)`
`void` `rollback()`
`void` `rollback​(java.sql.Savepoint arg0)`
`void` `setAutoCommit​(boolean arg0)`
`void` `setCatalog​(java.lang.String arg0)`
`void` `setClientInfo​(java.lang.String arg0, java.lang.String arg1)`
`void` `setClientInfo​(java.util.Properties arg0)`
`void` `setHoldability​(int arg0)`
`void` `setNetworkTimeout​(java.util.concurrent.Executor arg0, int arg1)`
`void` `setProtocol​(org.apache.iotdb.service.rpc.thrift.TSProtocolVersion protocol)`
`void` `setReadOnly​(boolean arg0)`
`java.sql.Savepoint` `setSavepoint()`
`java.sql.Savepoint` `setSavepoint​(java.lang.String arg0)`
`void` `setSchema​(java.lang.String arg0)`
`void` `setTimeZone​(java.lang.String zoneId)`
`void` `setTransactionIsolation​(int arg0)`
`void` `setTypeMap​(java.util.Map<java.lang.String,​java.lang.Class<?>> arg0)`
`<T> T` `unwrap​(java.lang.Class<T> arg0)`

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

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

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

`beginRequest, endRequest, setShardingKey, setShardingKey, setShardingKeyIfValid, setShardingKeyIfValid`

### 字段详细资料

#### client

    public org.apache.iotdb.service.rpc.thrift.TSIService.Iface client

#### sessionHandle

    public org.apache.iotdb.service.rpc.thrift.TS_SessionHandle sessionHandle

### 构造器详细资料

#### IoTDBConnection

    public IoTDBConnection()

#### IoTDBConnection

    public IoTDBConnection​(java.lang.String url,
                           java.util.Properties info)
                    throws java.sql.SQLException,
                           org.apache.thrift.transport.TTransportException

抛出:
  `java.sql.SQLException`
  `org.apache.thrift.transport.TTransportException`

### 方法详细资料

#### newSynchronizedClient

    public static org.apache.iotdb.service.rpc.thrift.TSIService.Iface newSynchronizedClient​(org.apache.iotdb.service.rpc.thrift.TSIService.Iface client)

#### isWrapperFor

    public boolean isWrapperFor​(java.lang.Class<?> arg0)
                         throws java.sql.SQLException

指定者:
  `isWrapperFor` 在接口中 `java.sql.Wrapper`
抛出:
  `java.sql.SQLException`

#### unwrap

    public <T> T unwrap​(java.lang.Class<T> arg0)
                 throws java.sql.SQLException

指定者:
  `unwrap` 在接口中 `java.sql.Wrapper`
抛出:
  `java.sql.SQLException`

#### abort

    public void abort​(java.util.concurrent.Executor arg0)
               throws java.sql.SQLException

指定者:
  `abort` 在接口中 `java.sql.Connection`
抛出:
  `java.sql.SQLException`

#### clearWarnings

    public void clearWarnings()
                       throws java.sql.SQLException

指定者:
  `clearWarnings` 在接口中 `java.sql.Connection`
抛出:
  `java.sql.SQLException`

#### close

    public void close()
               throws java.sql.SQLException

指定者:
  `close` 在接口中 `java.lang.AutoCloseable`
指定者:
  `close` 在接口中 `java.sql.Connection`
抛出:
  `java.sql.SQLException`

#### commit

    public void commit()
                throws java.sql.SQLException

指定者:
  `commit` 在接口中 `java.sql.Connection`
抛出:
  `java.sql.SQLException`

#### createArrayOf

    public java.sql.Array createArrayOf​(java.lang.String arg0,
                                        java.lang.Object[] arg1)
                                 throws java.sql.SQLException

指定者:
  `createArrayOf` 在接口中 `java.sql.Connection`
抛出:
  `java.sql.SQLException`

#### createBlob

    public java.sql.Blob createBlob()
                             throws java.sql.SQLException

指定者:
  `createBlob` 在接口中 `java.sql.Connection`
抛出:
  `java.sql.SQLException`

#### createClob

    public java.sql.Clob createClob()
                             throws java.sql.SQLException

指定者:
  `createClob` 在接口中 `java.sql.Connection`
抛出:
  `java.sql.SQLException`

#### createNClob

    public java.sql.NClob createNClob()
                               throws java.sql.SQLException

指定者:
  `createNClob` 在接口中 `java.sql.Connection`
抛出:
  `java.sql.SQLException`

#### createSQLXML

    public java.sql.SQLXML createSQLXML()
                                 throws java.sql.SQLException

指定者:
  `createSQLXML` 在接口中 `java.sql.Connection`
抛出:
  `java.sql.SQLException`

#### createStatement

    public java.sql.Statement createStatement()
                                       throws java.sql.SQLException

指定者:
  `createStatement` 在接口中 `java.sql.Connection`
抛出:
  `java.sql.SQLException`

#### createStatement

    public java.sql.Statement createStatement​(int resultSetType,
                                              int resultSetConcurrency)
                                       throws java.sql.SQLException

指定者:
  `createStatement` 在接口中 `java.sql.Connection`
抛出:
  `java.sql.SQLException`

#### createStatement

    public java.sql.Statement createStatement​(int arg0,
                                              int arg1,
                                              int arg2)
                                       throws java.sql.SQLException

指定者:
  `createStatement` 在接口中 `java.sql.Connection`
抛出:
  `java.sql.SQLException`

#### createStruct

    public java.sql.Struct createStruct​(java.lang.String arg0,
                                        java.lang.Object[] arg1)
                                 throws java.sql.SQLException

指定者:
  `createStruct` 在接口中 `java.sql.Connection`
抛出:
  `java.sql.SQLException`

#### getAutoCommit

    public boolean getAutoCommit()
                          throws java.sql.SQLException

指定者:
  `getAutoCommit` 在接口中 `java.sql.Connection`
抛出:
  `java.sql.SQLException`

#### setAutoCommit

    public void setAutoCommit​(boolean arg0)
                       throws java.sql.SQLException

指定者:
  `setAutoCommit` 在接口中 `java.sql.Connection`
抛出:
  `java.sql.SQLException`

#### getCatalog

    public java.lang.String getCatalog()
                                throws java.sql.SQLException

指定者:
  `getCatalog` 在接口中 `java.sql.Connection`
抛出:
  `java.sql.SQLException`

#### setCatalog

    public void setCatalog​(java.lang.String arg0)
                    throws java.sql.SQLException

指定者:
  `setCatalog` 在接口中 `java.sql.Connection`
抛出:
  `java.sql.SQLException`

#### getClientInfo

    public java.util.Properties getClientInfo()
                                       throws java.sql.SQLException

指定者:
  `getClientInfo` 在接口中 `java.sql.Connection`
抛出:
  `java.sql.SQLException`

#### setClientInfo

    public void setClientInfo​(java.util.Properties arg0)
                       throws java.sql.SQLClientInfoException

指定者:
  `setClientInfo` 在接口中 `java.sql.Connection`
抛出:
  `java.sql.SQLClientInfoException`

#### getClientInfo

    public java.lang.String getClientInfo​(java.lang.String arg0)
                                   throws java.sql.SQLException

指定者:
  `getClientInfo` 在接口中 `java.sql.Connection`
抛出:
  `java.sql.SQLException`

#### getHoldability

    public int getHoldability()
                       throws java.sql.SQLException

指定者:
  `getHoldability` 在接口中 `java.sql.Connection`
抛出:
  `java.sql.SQLException`

#### setHoldability

    public void setHoldability​(int arg0)
                        throws java.sql.SQLException

指定者:
  `setHoldability` 在接口中 `java.sql.Connection`
抛出:
  `java.sql.SQLException`

#### getMetaData

    public java.sql.DatabaseMetaData getMetaData()
                                          throws java.sql.SQLException

指定者:
  `getMetaData` 在接口中 `java.sql.Connection`
抛出:
  `java.sql.SQLException`

#### getNetworkTimeout

    public int getNetworkTimeout()
                          throws java.sql.SQLException

指定者:
  `getNetworkTimeout` 在接口中 `java.sql.Connection`
抛出:
  `java.sql.SQLException`

#### getSchema

    public java.lang.String getSchema()
                               throws java.sql.SQLException

指定者:
  `getSchema` 在接口中 `java.sql.Connection`
抛出:
  `java.sql.SQLException`

#### setSchema

    public void setSchema​(java.lang.String arg0)
                   throws java.sql.SQLException

指定者:
  `setSchema` 在接口中 `java.sql.Connection`
抛出:
  `java.sql.SQLException`

#### getTransactionIsolation

    public int getTransactionIsolation()
                                throws java.sql.SQLException

指定者:
  `getTransactionIsolation` 在接口中 `java.sql.Connection`
抛出:
  `java.sql.SQLException`

#### setTransactionIsolation

    public void setTransactionIsolation​(int arg0)
                                 throws java.sql.SQLException

指定者:
  `setTransactionIsolation` 在接口中 `java.sql.Connection`
抛出:
  `java.sql.SQLException`

#### getTypeMap

    public java.util.Map<java.lang.String,​java.lang.Class<?>> getTypeMap()
                                                                        throws java.sql.SQLException

指定者:
  `getTypeMap` 在接口中 `java.sql.Connection`
抛出:
  `java.sql.SQLException`

#### setTypeMap

    public void setTypeMap​(java.util.Map<java.lang.String,​java.lang.Class<?>> arg0)
                    throws java.sql.SQLException

指定者:
  `setTypeMap` 在接口中 `java.sql.Connection`
抛出:
  `java.sql.SQLException`

#### getWarnings

    public java.sql.SQLWarning getWarnings()
                                    throws java.sql.SQLException

指定者:
  `getWarnings` 在接口中 `java.sql.Connection`
抛出:
  `java.sql.SQLException`

#### isClosed

    public boolean isClosed()
                     throws java.sql.SQLException

指定者:
  `isClosed` 在接口中 `java.sql.Connection`
抛出:
  `java.sql.SQLException`

#### isReadOnly

    public boolean isReadOnly()
                       throws java.sql.SQLException

指定者:
  `isReadOnly` 在接口中 `java.sql.Connection`
抛出:
  `java.sql.SQLException`

#### setReadOnly

    public void setReadOnly​(boolean arg0)
                     throws java.sql.SQLException

指定者:
  `setReadOnly` 在接口中 `java.sql.Connection`
抛出:
  `java.sql.SQLException`

#### isValid

    public boolean isValid​(int arg0)
                    throws java.sql.SQLException

指定者:
  `isValid` 在接口中 `java.sql.Connection`
抛出:
  `java.sql.SQLException`

#### nativeSQL

    public java.lang.String nativeSQL​(java.lang.String arg0)
                               throws java.sql.SQLException

指定者:
  `nativeSQL` 在接口中 `java.sql.Connection`
抛出:
  `java.sql.SQLException`

#### prepareCall

    public java.sql.CallableStatement prepareCall​(java.lang.String arg0)
                                           throws java.sql.SQLException

指定者:
  `prepareCall` 在接口中 `java.sql.Connection`
抛出:
  `java.sql.SQLException`

#### prepareCall

    public java.sql.CallableStatement prepareCall​(java.lang.String arg0,
                                                  int arg1,
                                                  int arg2)
                                           throws java.sql.SQLException

指定者:
  `prepareCall` 在接口中 `java.sql.Connection`
抛出:
  `java.sql.SQLException`

#### prepareCall

    public java.sql.CallableStatement prepareCall​(java.lang.String arg0,
                                                  int arg1,
                                                  int arg2,
                                                  int arg3)
                                           throws java.sql.SQLException

指定者:
  `prepareCall` 在接口中 `java.sql.Connection`
抛出:
  `java.sql.SQLException`

#### prepareStatement

    public java.sql.PreparedStatement prepareStatement​(java.lang.String sql)
                                                throws java.sql.SQLException

指定者:
  `prepareStatement` 在接口中 `java.sql.Connection`
抛出:
  `java.sql.SQLException`

#### prepareStatement

    public java.sql.PreparedStatement prepareStatement​(java.lang.String sql,
                                                       int autoGeneratedKeys)
                                                throws java.sql.SQLException

指定者:
  `prepareStatement` 在接口中 `java.sql.Connection`
抛出:
  `java.sql.SQLException`

#### prepareStatement

    public java.sql.PreparedStatement prepareStatement​(java.lang.String sql,
                                                       int[] columnIndexes)
                                                throws java.sql.SQLException

指定者:
  `prepareStatement` 在接口中 `java.sql.Connection`
抛出:
  `java.sql.SQLException`

#### prepareStatement

    public java.sql.PreparedStatement prepareStatement​(java.lang.String sql,
                                                       java.lang.String[] columnNames)
                                                throws java.sql.SQLException

指定者:
  `prepareStatement` 在接口中 `java.sql.Connection`
抛出:
  `java.sql.SQLException`

#### prepareStatement

    public java.sql.PreparedStatement prepareStatement​(java.lang.String sql,
                                                       int resultSetType,
                                                       int resultSetConcurrency)
                                                throws java.sql.SQLException

指定者:
  `prepareStatement` 在接口中 `java.sql.Connection`
抛出:
  `java.sql.SQLException`

#### prepareStatement

    public java.sql.PreparedStatement prepareStatement​(java.lang.String sql,
                                                       int resultSetType,
                                                       int resultSetConcurrency,
                                                       int resultSetHoldability)
                                                throws java.sql.SQLException

指定者:
  `prepareStatement` 在接口中 `java.sql.Connection`
抛出:
  `java.sql.SQLException`

#### releaseSavepoint

    public void releaseSavepoint​(java.sql.Savepoint arg0)
                          throws java.sql.SQLException

指定者:
  `releaseSavepoint` 在接口中 `java.sql.Connection`
抛出:
  `java.sql.SQLException`

#### rollback

    public void rollback()
                  throws java.sql.SQLException

指定者:
  `rollback` 在接口中 `java.sql.Connection`
抛出:
  `java.sql.SQLException`

#### rollback

    public void rollback​(java.sql.Savepoint arg0)
                  throws java.sql.SQLException

指定者:
  `rollback` 在接口中 `java.sql.Connection`
抛出:
  `java.sql.SQLException`

#### setClientInfo

    public void setClientInfo​(java.lang.String arg0,
                              java.lang.String arg1)
                       throws java.sql.SQLClientInfoException

指定者:
  `setClientInfo` 在接口中 `java.sql.Connection`
抛出:
  `java.sql.SQLClientInfoException`

#### setNetworkTimeout

    public void setNetworkTimeout​(java.util.concurrent.Executor arg0,
                                  int arg1)
                           throws java.sql.SQLException

指定者:
  `setNetworkTimeout` 在接口中 `java.sql.Connection`
抛出:
  `java.sql.SQLException`

#### setSavepoint

    public java.sql.Savepoint setSavepoint()
                                    throws java.sql.SQLException

指定者:
  `setSavepoint` 在接口中 `java.sql.Connection`
抛出:
  `java.sql.SQLException`

#### setSavepoint

    public java.sql.Savepoint setSavepoint​(java.lang.String arg0)
                                    throws java.sql.SQLException

指定者:
  `setSavepoint` 在接口中 `java.sql.Connection`
抛出:
  `java.sql.SQLException`

#### reconnect

    public boolean reconnect()

#### getTimeZone

    public java.lang.String getTimeZone()
                                 throws org.apache.thrift.TException,
                                        IoTDBSQLException

抛出:
  `org.apache.thrift.TException`
  `IoTDBSQLException`

#### setTimeZone

    public void setTimeZone​(java.lang.String zoneId)
                     throws org.apache.thrift.TException,
                            IoTDBSQLException

抛出:
  `org.apache.thrift.TException`
  `IoTDBSQLException`

#### getServerProperties

    public org.apache.iotdb.service.rpc.thrift.ServerProperties getServerProperties()
                                                                             throws org.apache.thrift.TException

抛出:
  `org.apache.thrift.TException`

#### getProtocol

    public org.apache.iotdb.service.rpc.thrift.TSProtocolVersion getProtocol()

#### setProtocol

    public void setProtocol​(org.apache.iotdb.service.rpc.thrift.TSProtocolVersion protocol)