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 DataSourceSQLExceptionpublic ArrowFlightConnection getConnection(String username, String password) throws SQLException
getConnection in interface DataSourceSQLExceptionpublic <T> T unwrap(Class<T> aClass) throws SQLException
unwrap in interface WrapperSQLExceptionpublic boolean isWrapperFor(Class<?> aClass)
isWrapperFor in interface Wrapperpublic PrintWriter getLogWriter()
getLogWriter in interface CommonDataSourcepublic void setLogWriter(PrintWriter logWriter)
setLogWriter in interface CommonDataSourcepublic void setLoginTimeout(int timeout)
throws SQLException
setLoginTimeout in interface CommonDataSourceSQLExceptionpublic int getLoginTimeout()
getLoginTimeout in interface CommonDataSourcepublic Logger getParentLogger()
getParentLogger in interface CommonDataSourceCopyright © 2024 The Apache Software Foundation. All rights reserved.