com.taosdata.jdbc

## 类 TSDBConnection

- java.lang.Object
- - com.taosdata.jdbc.WrapperImpl
  - - com.taosdata.jdbc.AbstractConnection
    - - com.taosdata.jdbc.TSDBConnection

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

    public class TSDBConnection
    extends AbstractConnection

### 字段概要

### 从类继承的字段 com.taosdata.jdbc.AbstractConnection

`catalog, clientInfoProps, isClosed`

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

`TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE`

### 构造器概要

构造器
构造器和说明
`TSDBConnection(Properties info, TSDBDatabaseMetaData meta)`

### 方法概要

所有方法 实例方法 具体方法
`void` `close()`
`Statement` `createStatement()`
`Boolean` `getBatchFetch()`
`TSDBJNIConnector` `getConnector()`
`DatabaseMetaData` `getMetaData()`
`boolean` `isClosed()`
`PreparedStatement` `prepareStatement(String sql)`
`TSDBSubscribe` `subscribe(String topic, String sql, boolean restart)`

### 从类继承的方法 com.taosdata.jdbc.AbstractConnection

`abort, clearWarnings, commit, createArrayOf, createBlob, createClob, createNClob, createSQLXML, createStatement, createStatement, createStruct, getAutoCommit, getCatalog, getClientInfo, getClientInfo, getHoldability, getNetworkTimeout, getSchema, getTransactionIsolation, getTypeMap, getWarnings, isReadOnly, isValid, nativeSQL, prepareCall, prepareCall, prepareCall, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, releaseSavepoint, rollback, rollback, setAutoCommit, setCatalog, setClientInfo, setClientInfo, setHoldability, setNetworkTimeout, setReadOnly, setSavepoint, setSavepoint, setSchema, setTransactionIsolation, setTypeMap`

### 从类继承的方法 com.taosdata.jdbc.WrapperImpl

`isWrapperFor, unwrap`

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

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

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

`isWrapperFor, unwrap`

### 构造器详细资料

#### TSDBConnection

    public TSDBConnection(Properties info,
                          TSDBDatabaseMetaData meta)
                   throws SQLException

抛出:
  `SQLException`

### 方法详细资料

#### getBatchFetch

    public Boolean getBatchFetch()

#### getConnector

    public TSDBJNIConnector getConnector()

#### createStatement

    public Statement createStatement()
                              throws SQLException

指定者:
  `createStatement` 在接口中 `Connection`
指定者:
  `createStatement` 在类中 `AbstractConnection`
抛出:
  `SQLException`

#### subscribe

    public TSDBSubscribe subscribe(String topic,
                                   String sql,
                                   boolean restart)
                            throws SQLException

抛出:
  `SQLException`

#### prepareStatement

    public PreparedStatement prepareStatement(String sql)
                                       throws SQLException

指定者:
  `prepareStatement` 在接口中 `Connection`
指定者:
  `prepareStatement` 在类中 `AbstractConnection`
抛出:
  `SQLException`

#### close

    public void close()
               throws SQLException

指定者:
  `close` 在接口中 `AutoCloseable`
指定者:
  `close` 在接口中 `Connection`
指定者:
  `close` 在类中 `AbstractConnection`
抛出:
  `SQLException`

#### isClosed

    public boolean isClosed()
                     throws SQLException

指定者:
  `isClosed` 在接口中 `Connection`
指定者:
  `isClosed` 在类中 `AbstractConnection`
抛出:
  `SQLException`

#### getMetaData

    public DatabaseMetaData getMetaData()
                                 throws SQLException

指定者:
  `getMetaData` 在接口中 `Connection`
指定者:
  `getMetaData` 在类中 `AbstractConnection`
抛出:
  `SQLException`