Package org.apache.iotdb.jdbc
Class IoTDBConnection
java.lang.Object
org.apache.iotdb.jdbc.IoTDBConnection
- All Implemented Interfaces:
AutoCloseable,Connection,Wrapper
-
Field Summary
Fields inherited from interface java.sql.Connection
TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected voidchangeDefaultDatabase(String database) voidvoidclose()voidcommit()createArrayOf(String arg0, Object[] arg1) createStatement(int resultSetType, int resultSetConcurrency) createStatement(int arg0, int arg1, int arg2) createStruct(String arg0, Object[] arg1) booleangetClientInfo(String arg0) intintintlongintintgetUrl()booleanisClosed()booleanbooleanisValid(int arg0) booleanisWrapperFor(Class<?> arg0) prepareCall(String arg0) prepareCall(String arg0, int arg1, int arg2) prepareCall(String arg0, int arg1, int arg2, int arg3) prepareStatement(String sql) prepareStatement(String sql, int autoGeneratedKeys) prepareStatement(String sql, int[] columnIndexes) prepareStatement(String sql, int resultSetType, int resultSetConcurrency) prepareStatement(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) prepareStatement(String sql, String[] columnNames) voidreleaseSavepoint(Savepoint arg0) voidrollback()voidvoidsetAutoCommit(boolean arg0) voidsetCatalog(String arg0) voidsetClient(IClientRPCService.Iface client) voidsetClientInfo(String name, String value) voidsetClientInfo(Properties arg0) voidsetHoldability(int arg0) voidsetNetworkTimeout(Executor arg0, int arg1) voidsetQueryTimeout(int seconds) voidsetReadOnly(boolean readonly) setSavepoint(String arg0) voidvoidsetTimeZone(String timeZone) voidsetTransactionIsolation(int arg0) voidsetTypeMap(Map<String, Class<?>> arg0) <T> T
-
Constructor Details
-
IoTDBConnection
public IoTDBConnection() -
IoTDBConnection
public IoTDBConnection(String url, Properties info) throws SQLException, org.apache.thrift.transport.TTransportException - Throws:
SQLExceptionorg.apache.thrift.transport.TTransportException
-
-
Method Details
-
getUserName
-
getSqlDialect
-
getUrl
-
getParams
-
isWrapperFor
- Specified by:
isWrapperForin interfaceWrapper- Throws:
SQLException
-
unwrap
- Specified by:
unwrapin interfaceWrapper- Throws:
SQLException
-
abort
- Specified by:
abortin interfaceConnection- Throws:
SQLException
-
clearWarnings
public void clearWarnings()- Specified by:
clearWarningsin interfaceConnection
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceConnection- Throws:
SQLException
-
commit
- Specified by:
commitin interfaceConnection- Throws:
SQLException
-
createArrayOf
- Specified by:
createArrayOfin interfaceConnection- Throws:
SQLException
-
createBlob
- Specified by:
createBlobin interfaceConnection- Throws:
SQLException
-
createClob
- Specified by:
createClobin interfaceConnection- Throws:
SQLException
-
createNClob
- Specified by:
createNClobin interfaceConnection- Throws:
SQLException
-
createSQLXML
- Specified by:
createSQLXMLin interfaceConnection- Throws:
SQLException
-
createStatement
- Specified by:
createStatementin interfaceConnection- Throws:
SQLException
-
createStatement
- Specified by:
createStatementin interfaceConnection- Throws:
SQLException
-
createStatement
- Specified by:
createStatementin interfaceConnection- Throws:
SQLException
-
createStruct
- Specified by:
createStructin interfaceConnection- Throws:
SQLException
-
getAutoCommit
public boolean getAutoCommit()- Specified by:
getAutoCommitin interfaceConnection
-
setAutoCommit
public void setAutoCommit(boolean arg0) - Specified by:
setAutoCommitin interfaceConnection
-
getCatalog
- Specified by:
getCatalogin interfaceConnection
-
setCatalog
- Specified by:
setCatalogin interfaceConnection- Throws:
SQLException
-
getClientInfo
- Specified by:
getClientInfoin interfaceConnection- Throws:
SQLException
-
setClientInfo
- Specified by:
setClientInfoin interfaceConnection- Throws:
SQLClientInfoException
-
getClientInfo
- Specified by:
getClientInfoin interfaceConnection- Throws:
SQLException
-
getHoldability
public int getHoldability()- Specified by:
getHoldabilityin interfaceConnection
-
setHoldability
- Specified by:
setHoldabilityin interfaceConnection- Throws:
SQLException
-
getMetaData
- Specified by:
getMetaDatain interfaceConnection- Throws:
SQLException
-
getNetworkTimeout
public int getNetworkTimeout()- Specified by:
getNetworkTimeoutin interfaceConnection
-
getSchema
- Specified by:
getSchemain interfaceConnection- Throws:
SQLException
-
setSchema
- Specified by:
setSchemain interfaceConnection- Throws:
SQLException
-
getTransactionIsolation
public int getTransactionIsolation()- Specified by:
getTransactionIsolationin interfaceConnection
-
setTransactionIsolation
- Specified by:
setTransactionIsolationin interfaceConnection- Throws:
SQLException
-
getTypeMap
- Specified by:
getTypeMapin interfaceConnection- Throws:
SQLException
-
setTypeMap
- Specified by:
setTypeMapin interfaceConnection- Throws:
SQLException
-
getWarnings
- Specified by:
getWarningsin interfaceConnection
-
isClosed
public boolean isClosed()- Specified by:
isClosedin interfaceConnection
-
isReadOnly
public boolean isReadOnly()- Specified by:
isReadOnlyin interfaceConnection
-
setReadOnly
- Specified by:
setReadOnlyin interfaceConnection- Throws:
SQLException
-
isValid
public boolean isValid(int arg0) - Specified by:
isValidin interfaceConnection
-
nativeSQL
- Specified by:
nativeSQLin interfaceConnection- Throws:
SQLException
-
prepareCall
- Specified by:
prepareCallin interfaceConnection- Throws:
SQLException
-
prepareCall
- Specified by:
prepareCallin interfaceConnection- Throws:
SQLException
-
prepareCall
- Specified by:
prepareCallin interfaceConnection- Throws:
SQLException
-
prepareStatement
- Specified by:
prepareStatementin interfaceConnection- Throws:
SQLException
-
prepareStatement
- Specified by:
prepareStatementin interfaceConnection- Throws:
SQLException
-
prepareStatement
- Specified by:
prepareStatementin interfaceConnection- Throws:
SQLException
-
prepareStatement
- Specified by:
prepareStatementin interfaceConnection- Throws:
SQLException
-
prepareStatement
public PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency) throws SQLException - Specified by:
prepareStatementin interfaceConnection- Throws:
SQLException
-
prepareStatement
public PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException - Specified by:
prepareStatementin interfaceConnection- Throws:
SQLException
-
releaseSavepoint
- Specified by:
releaseSavepointin interfaceConnection- Throws:
SQLException
-
rollback
public void rollback()- Specified by:
rollbackin interfaceConnection
-
rollback
- Specified by:
rollbackin interfaceConnection
-
setClientInfo
- Specified by:
setClientInfoin interfaceConnection- Throws:
SQLClientInfoException
-
setNetworkTimeout
- Specified by:
setNetworkTimeoutin interfaceConnection- Throws:
SQLException
-
getQueryTimeout
public int getQueryTimeout() -
setQueryTimeout
- Throws:
SQLException
-
setSavepoint
- Specified by:
setSavepointin interfaceConnection- Throws:
SQLException
-
setSavepoint
- Specified by:
setSavepointin interfaceConnection- Throws:
SQLException
-
getClient
-
getSessionId
public long getSessionId() -
setClient
-
getTimeZone
-
setTimeZone
- Throws:
org.apache.thrift.TExceptionIoTDBSQLException
-
getServerProperties
- Throws:
org.apache.thrift.TException
-
changeDefaultDatabase
-
getTimeFactor
public int getTimeFactor()
-