public class ArrowFlightJdbcDataSource extends Object implements DataSource
DataSource
implementation for Arrow Flight JDBC Driver.Modifier | Constructor and Description |
---|---|
protected |
ArrowFlightJdbcDataSource(Properties properties,
ArrowFlightConnectionConfigImpl config)
Instantiates a new DataSource.
|
Modifier and Type | Method and Description |
---|---|
static ArrowFlightJdbcDataSource |
createNewDataSource(Properties properties)
Creates a new
ArrowFlightJdbcDataSource . |
protected ArrowFlightConnectionConfigImpl |
getConfig()
Gets the
config for this ArrowFlightJdbcDataSource . |
ArrowFlightConnection |
getConnection() |
ArrowFlightConnection |
getConnection(String username,
String password) |
int |
getLoginTimeout() |
PrintWriter |
getLogWriter() |
Logger |
getParentLogger() |
protected Properties |
getProperties(String username,
String password)
Gets a copy of the
properties for this ArrowFlightJdbcDataSource with
the provided username and password . |
boolean |
isWrapperFor(Class<?> aClass) |
void |
setLoginTimeout(int timeout) |
void |
setLogWriter(PrintWriter logWriter) |
<T> T |
unwrap(Class<T> aClass) |
protected ArrowFlightJdbcDataSource(Properties properties, ArrowFlightConnectionConfigImpl config)
protected final ArrowFlightConnectionConfigImpl getConfig()
config
for this ArrowFlightJdbcDataSource
.ArrowFlightConnectionConfigImpl
.protected final Properties getProperties(String username, String password)
properties
for this ArrowFlightJdbcDataSource
with
the provided username
and password
.Properties
for this data source.public static ArrowFlightJdbcDataSource createNewDataSource(Properties properties)
ArrowFlightJdbcDataSource
.properties
- the properties.public ArrowFlightConnection getConnection() throws SQLException
getConnection
in interface DataSource
SQLException
public ArrowFlightConnection getConnection(String username, String password) throws SQLException
getConnection
in interface DataSource
SQLException
public <T> T unwrap(Class<T> aClass) throws SQLException
unwrap
in interface Wrapper
SQLException
public boolean isWrapperFor(Class<?> aClass)
isWrapperFor
in interface Wrapper
public PrintWriter getLogWriter()
getLogWriter
in interface CommonDataSource
public void setLogWriter(PrintWriter logWriter)
setLogWriter
in interface CommonDataSource
public void setLoginTimeout(int timeout) throws SQLException
setLoginTimeout
in interface CommonDataSource
SQLException
public int getLoginTimeout()
getLoginTimeout
in interface CommonDataSource
public Logger getParentLogger()
getParentLogger
in interface CommonDataSource
Copyright © 2023 The Apache Software Foundation. All rights reserved.