public static class TabularDataBasedConfig.CustomSQLDataSource extends Object implements DataSource
Modifier and Type | Class and Description |
---|---|
class |
TabularDataBasedConfig.CustomSQLDataSource.SQLParserCustomDataSourceAdapter
Adapter class to bridge the functionality between the data services custom data source
and the SQL parser custom data source.
|
Constructor and Description |
---|
CustomSQLDataSource(TabularDataBasedDS dataSource) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
Connection |
getConnection() |
Connection |
getConnection(String username,
String password) |
int |
getLoginTimeout() |
PrintWriter |
getLogWriter() |
Logger |
getParentLogger() |
boolean |
isWrapperFor(Class<?> arg0) |
void |
setLoginTimeout(int loginTimeout) |
void |
setLogWriter(PrintWriter logWriter) |
<T> T |
unwrap(Class<T> arg0) |
public CustomSQLDataSource(TabularDataBasedDS dataSource)
public PrintWriter getLogWriter() throws SQLException
getLogWriter
in interface CommonDataSource
SQLException
public int getLoginTimeout() throws SQLException
getLoginTimeout
in interface CommonDataSource
SQLException
public Logger getParentLogger() throws SQLFeatureNotSupportedException
getParentLogger
in interface CommonDataSource
SQLFeatureNotSupportedException
public void setLogWriter(PrintWriter logWriter) throws SQLException
setLogWriter
in interface CommonDataSource
SQLException
public void setLoginTimeout(int loginTimeout) throws SQLException
setLoginTimeout
in interface CommonDataSource
SQLException
public boolean isWrapperFor(Class<?> arg0) throws SQLException
isWrapperFor
in interface Wrapper
SQLException
public <T> T unwrap(Class<T> arg0) throws SQLException
unwrap
in interface Wrapper
SQLException
public Connection getConnection() throws SQLException
getConnection
in interface DataSource
SQLException
public Connection getConnection(String username, String password) throws SQLException
getConnection
in interface DataSource
SQLException
public void close()
Copyright © 2019 WSO2. All rights reserved.