Class JdbcConnection
- java.lang.Object
-
- org.apache.arrow.adbc.driver.jdbc.JdbcConnection
-
- All Implemented Interfaces:
AutoCloseable,AdbcConnection,AdbcOptions
public class JdbcConnection extends Object implements AdbcConnection
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.arrow.adbc.core.AdbcConnection
AdbcConnection.GetObjectsDepth
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AdbcStatementbulkIngest(String targetTableName, BulkIngestMode mode)voidclose()voidcommit()AdbcStatementcreateStatement()booleangetAutoCommit()StringgetCurrentCatalog()StringgetCurrentDbSchema()org.apache.arrow.vector.ipc.ArrowReadergetInfo(int @Nullable [] infoCodes)IsolationLevelgetIsolationLevel()org.apache.arrow.vector.ipc.ArrowReadergetObjects(AdbcConnection.GetObjectsDepth depth, String catalogPattern, String dbSchemaPattern, String tableNamePattern, String[] tableTypes, String columnNamePattern)booleangetReadOnly()org.apache.arrow.vector.ipc.ArrowReadergetStatisticNames()org.apache.arrow.vector.ipc.ArrowReadergetStatistics(String catalogPattern, String dbSchemaPattern, String tableNamePattern, boolean approximate)org.apache.arrow.vector.types.pojo.SchemagetTableSchema(String catalog, String dbSchema, String tableName)org.apache.arrow.vector.ipc.ArrowReadergetTableTypes()voidrollback()voidsetAutoCommit(boolean enableAutoCommit)voidsetCurrentCatalog(String catalog)voidsetCurrentDbSchema(String dbSchema)voidsetIsolationLevel(IsolationLevel level)voidsetReadOnly(boolean isReadOnly)StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.arrow.adbc.core.AdbcConnection
cancel, getInfo, getInfo, readPartition
-
Methods inherited from interface org.apache.arrow.adbc.core.AdbcOptions
getOption, setOption
-
-
-
-
Method Detail
-
commit
public void commit() throws AdbcException- Specified by:
commitin interfaceAdbcConnection- Throws:
AdbcException
-
createStatement
public AdbcStatement createStatement() throws AdbcException
- Specified by:
createStatementin interfaceAdbcConnection- Throws:
AdbcException
-
bulkIngest
public AdbcStatement bulkIngest(String targetTableName, BulkIngestMode mode) throws AdbcException
- Specified by:
bulkIngestin interfaceAdbcConnection- Throws:
AdbcException
-
getInfo
public org.apache.arrow.vector.ipc.ArrowReader getInfo(int @Nullable [] infoCodes) throws AdbcException- Specified by:
getInfoin interfaceAdbcConnection- Throws:
AdbcException
-
getObjects
public org.apache.arrow.vector.ipc.ArrowReader getObjects(AdbcConnection.GetObjectsDepth depth, String catalogPattern, String dbSchemaPattern, String tableNamePattern, String[] tableTypes, String columnNamePattern) throws AdbcException
- Specified by:
getObjectsin interfaceAdbcConnection- Throws:
AdbcException
-
getStatistics
public org.apache.arrow.vector.ipc.ArrowReader getStatistics(String catalogPattern, String dbSchemaPattern, String tableNamePattern, boolean approximate) throws AdbcException
- Specified by:
getStatisticsin interfaceAdbcConnection- Throws:
AdbcException
-
getStatisticNames
public org.apache.arrow.vector.ipc.ArrowReader getStatisticNames() throws AdbcException- Specified by:
getStatisticNamesin interfaceAdbcConnection- Throws:
AdbcException
-
getTableSchema
public org.apache.arrow.vector.types.pojo.Schema getTableSchema(String catalog, String dbSchema, String tableName) throws AdbcException
- Specified by:
getTableSchemain interfaceAdbcConnection- Throws:
AdbcException
-
getTableTypes
public org.apache.arrow.vector.ipc.ArrowReader getTableTypes() throws AdbcException- Specified by:
getTableTypesin interfaceAdbcConnection- Throws:
AdbcException
-
rollback
public void rollback() throws AdbcException- Specified by:
rollbackin interfaceAdbcConnection- Throws:
AdbcException
-
getAutoCommit
public boolean getAutoCommit() throws AdbcException- Specified by:
getAutoCommitin interfaceAdbcConnection- Throws:
AdbcException
-
setAutoCommit
public void setAutoCommit(boolean enableAutoCommit) throws AdbcException- Specified by:
setAutoCommitin interfaceAdbcConnection- Throws:
AdbcException
-
getCurrentCatalog
public String getCurrentCatalog() throws AdbcException
- Specified by:
getCurrentCatalogin interfaceAdbcConnection- Throws:
AdbcException
-
setCurrentCatalog
public void setCurrentCatalog(String catalog) throws AdbcException
- Specified by:
setCurrentCatalogin interfaceAdbcConnection- Throws:
AdbcException
-
getCurrentDbSchema
public String getCurrentDbSchema() throws AdbcException
- Specified by:
getCurrentDbSchemain interfaceAdbcConnection- Throws:
AdbcException
-
setCurrentDbSchema
public void setCurrentDbSchema(String dbSchema) throws AdbcException
- Specified by:
setCurrentDbSchemain interfaceAdbcConnection- Throws:
AdbcException
-
getReadOnly
public boolean getReadOnly() throws AdbcException- Specified by:
getReadOnlyin interfaceAdbcConnection- Throws:
AdbcException
-
setReadOnly
public void setReadOnly(boolean isReadOnly) throws AdbcException- Specified by:
setReadOnlyin interfaceAdbcConnection- Throws:
AdbcException
-
getIsolationLevel
public IsolationLevel getIsolationLevel() throws AdbcException
- Specified by:
getIsolationLevelin interfaceAdbcConnection- Throws:
AdbcException
-
setIsolationLevel
public void setIsolationLevel(IsolationLevel level) throws AdbcException
- Specified by:
setIsolationLevelin interfaceAdbcConnection- Throws:
AdbcException
-
close
public void close() throws Exception- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-
-