Package org.apache.iotdb.jdbc
Class IoTDBConnection
- java.lang.Object
-
- org.apache.iotdb.jdbc.IoTDBConnection
-
- All Implemented Interfaces:
AutoCloseable,Connection,Wrapper
public class IoTDBConnection extends Object implements Connection
-
-
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 Constructor Description IoTDBConnection()IoTDBConnection(String url, Properties info)
-
Method Summary
-
-
-
Constructor Detail
-
IoTDBConnection
public IoTDBConnection()
-
IoTDBConnection
public IoTDBConnection(String url, Properties info) throws SQLException, org.apache.thrift.transport.TTransportException
- Throws:
SQLExceptionorg.apache.thrift.transport.TTransportException
-
-
Method Detail
-
getUserName
public String getUserName()
-
getUrl
public String getUrl()
-
isWrapperFor
public boolean isWrapperFor(Class<?> arg0) throws SQLException
- Specified by:
isWrapperForin interfaceWrapper- Throws:
SQLException
-
unwrap
public <T> T unwrap(Class<T> arg0) throws SQLException
- Specified by:
unwrapin interfaceWrapper- Throws:
SQLException
-
abort
public void abort(Executor arg0) throws SQLException
- Specified by:
abortin interfaceConnection- Throws:
SQLException
-
clearWarnings
public void clearWarnings()
- Specified by:
clearWarningsin interfaceConnection
-
close
public void close() throws SQLException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceConnection- Throws:
SQLException
-
commit
public void commit() throws SQLException- Specified by:
commitin interfaceConnection- Throws:
SQLException
-
createArrayOf
public Array createArrayOf(String arg0, Object[] arg1) throws SQLException
- Specified by:
createArrayOfin interfaceConnection- Throws:
SQLException
-
createBlob
public Blob createBlob() throws SQLException
- Specified by:
createBlobin interfaceConnection- Throws:
SQLException
-
createClob
public Clob createClob() throws SQLException
- Specified by:
createClobin interfaceConnection- Throws:
SQLException
-
createNClob
public NClob createNClob() throws SQLException
- Specified by:
createNClobin interfaceConnection- Throws:
SQLException
-
createSQLXML
public SQLXML createSQLXML() throws SQLException
- Specified by:
createSQLXMLin interfaceConnection- Throws:
SQLException
-
createStatement
public Statement createStatement() throws SQLException
- Specified by:
createStatementin interfaceConnection- Throws:
SQLException
-
createStatement
public Statement createStatement(int resultSetType, int resultSetConcurrency) throws SQLException
- Specified by:
createStatementin interfaceConnection- Throws:
SQLException
-
createStatement
public Statement createStatement(int arg0, int arg1, int arg2) throws SQLException
- Specified by:
createStatementin interfaceConnection- Throws:
SQLException
-
createStruct
public Struct createStruct(String arg0, Object[] arg1) throws SQLException
- 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
public String getCatalog()
- Specified by:
getCatalogin interfaceConnection
-
setCatalog
public void setCatalog(String arg0) throws SQLException
- Specified by:
setCatalogin interfaceConnection- Throws:
SQLException
-
getClientInfo
public Properties getClientInfo() throws SQLException
- Specified by:
getClientInfoin interfaceConnection- Throws:
SQLException
-
setClientInfo
public void setClientInfo(Properties arg0) throws SQLClientInfoException
- Specified by:
setClientInfoin interfaceConnection- Throws:
SQLClientInfoException
-
getClientInfo
public String getClientInfo(String arg0) throws SQLException
- Specified by:
getClientInfoin interfaceConnection- Throws:
SQLException
-
getHoldability
public int getHoldability()
- Specified by:
getHoldabilityin interfaceConnection
-
setHoldability
public void setHoldability(int arg0) throws SQLException- Specified by:
setHoldabilityin interfaceConnection- Throws:
SQLException
-
getMetaData
public DatabaseMetaData getMetaData() throws SQLException
- Specified by:
getMetaDatain interfaceConnection- Throws:
SQLException
-
getNetworkTimeout
public int getNetworkTimeout()
- Specified by:
getNetworkTimeoutin interfaceConnection
-
getSchema
public String getSchema() throws SQLException
- Specified by:
getSchemain interfaceConnection- Throws:
SQLException
-
setSchema
public void setSchema(String arg0) throws SQLException
- Specified by:
setSchemain interfaceConnection- Throws:
SQLException
-
getTransactionIsolation
public int getTransactionIsolation()
- Specified by:
getTransactionIsolationin interfaceConnection
-
setTransactionIsolation
public void setTransactionIsolation(int arg0) throws SQLException- Specified by:
setTransactionIsolationin interfaceConnection- Throws:
SQLException
-
getTypeMap
public Map<String,Class<?>> getTypeMap() throws SQLException
- Specified by:
getTypeMapin interfaceConnection- Throws:
SQLException
-
setTypeMap
public void setTypeMap(Map<String,Class<?>> arg0) throws SQLException
- Specified by:
setTypeMapin interfaceConnection- Throws:
SQLException
-
getWarnings
public SQLWarning getWarnings()
- Specified by:
getWarningsin interfaceConnection
-
isClosed
public boolean isClosed()
- Specified by:
isClosedin interfaceConnection
-
isReadOnly
public boolean isReadOnly()
- Specified by:
isReadOnlyin interfaceConnection
-
setReadOnly
public void setReadOnly(boolean readonly) throws SQLException- Specified by:
setReadOnlyin interfaceConnection- Throws:
SQLException
-
isValid
public boolean isValid(int arg0)
- Specified by:
isValidin interfaceConnection
-
nativeSQL
public String nativeSQL(String arg0) throws SQLException
- Specified by:
nativeSQLin interfaceConnection- Throws:
SQLException
-
prepareCall
public CallableStatement prepareCall(String arg0) throws SQLException
- Specified by:
prepareCallin interfaceConnection- Throws:
SQLException
-
prepareCall
public CallableStatement prepareCall(String arg0, int arg1, int arg2) throws SQLException
- Specified by:
prepareCallin interfaceConnection- Throws:
SQLException
-
prepareCall
public CallableStatement prepareCall(String arg0, int arg1, int arg2, int arg3) throws SQLException
- Specified by:
prepareCallin interfaceConnection- Throws:
SQLException
-
prepareStatement
public PreparedStatement prepareStatement(String sql) throws SQLException
- Specified by:
prepareStatementin interfaceConnection- Throws:
SQLException
-
prepareStatement
public PreparedStatement prepareStatement(String sql, int autoGeneratedKeys) throws SQLException
- Specified by:
prepareStatementin interfaceConnection- Throws:
SQLException
-
prepareStatement
public PreparedStatement prepareStatement(String sql, int[] columnIndexes) throws SQLException
- Specified by:
prepareStatementin interfaceConnection- Throws:
SQLException
-
prepareStatement
public PreparedStatement prepareStatement(String sql, String[] columnNames) throws SQLException
- 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
public void releaseSavepoint(Savepoint arg0) throws SQLException
- Specified by:
releaseSavepointin interfaceConnection- Throws:
SQLException
-
rollback
public void rollback()
- Specified by:
rollbackin interfaceConnection
-
rollback
public void rollback(Savepoint arg0)
- Specified by:
rollbackin interfaceConnection
-
setClientInfo
public void setClientInfo(String name, String value) throws SQLClientInfoException
- Specified by:
setClientInfoin interfaceConnection- Throws:
SQLClientInfoException
-
setNetworkTimeout
public void setNetworkTimeout(Executor arg0, int arg1) throws SQLException
- Specified by:
setNetworkTimeoutin interfaceConnection- Throws:
SQLException
-
getQueryTimeout
public int getQueryTimeout()
-
setQueryTimeout
public void setQueryTimeout(int seconds) throws SQLException- Throws:
SQLException
-
setSavepoint
public Savepoint setSavepoint() throws SQLException
- Specified by:
setSavepointin interfaceConnection- Throws:
SQLException
-
setSavepoint
public Savepoint setSavepoint(String arg0) throws SQLException
- Specified by:
setSavepointin interfaceConnection- Throws:
SQLException
-
getClient
public IClientRPCService.Iface getClient()
-
getSessionId
public long getSessionId()
-
setClient
public void setClient(IClientRPCService.Iface client)
-
getTimeZone
public String getTimeZone()
-
setTimeZone
public void setTimeZone(String timeZone) throws org.apache.thrift.TException, IoTDBSQLException
- Throws:
org.apache.thrift.TExceptionIoTDBSQLException
-
getServerProperties
public ServerProperties getServerProperties() throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
-
-