类 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
-
-
构造器概要
构造器 构造器 说明 TSDBConnection(Properties info, TSDBDatabaseMetaData meta)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidclose()StatementcreateStatement()BooleangetBatchFetch()TSDBJNIConnectorgetConnector()DatabaseMetaDatagetMetaData()booleanisClosed()PreparedStatementprepareStatement(String sql)voidregisterStatement(Statement stmt)TSDBSubscribesubscribe(String topic, String sql, boolean restart)voidunregisterStatement(Statement stmt)-
从类继承的方法 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.Connection
beginRequest, endRequest, setShardingKey, setShardingKey, setShardingKeyIfValid, setShardingKeyIfValid
-
从接口继承的方法 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
-
unregisterStatement
public void unregisterStatement(Statement stmt)
-
registerStatement
public void registerStatement(Statement stmt)
-
isClosed
public boolean isClosed() throws SQLException- 指定者:
isClosed在接口中Connection- 指定者:
isClosed在类中AbstractConnection- 抛出:
SQLException
-
getMetaData
public DatabaseMetaData getMetaData() throws SQLException
- 指定者:
getMetaData在接口中Connection- 指定者:
getMetaData在类中AbstractConnection- 抛出:
SQLException
-
-