public abstract class AbstractDataSourceAdapter extends AbstractUnsupportedOperationDataSource
Datasource
.Constructor and Description |
---|
AbstractDataSourceAdapter(Collection<DataSource> dataSources) |
Modifier and Type | Method and Description |
---|---|
Connection |
getConnection(String username,
String password) |
protected DatabaseType |
getDatabaseType(Collection<DataSource> dataSources) |
PrintWriter |
getLogWriter() |
Logger |
getParentLogger() |
void |
setLogWriter(PrintWriter out) |
getLoginTimeout, setLoginTimeout
isWrapperFor, recordMethodInvocation, replayMethodsInvocation, throwSQLExceptionIfNecessary, unwrap
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConnection
isWrapperFor, unwrap
public AbstractDataSourceAdapter(Collection<DataSource> dataSources) throws SQLException
SQLException
protected DatabaseType getDatabaseType(Collection<DataSource> dataSources) throws SQLException
SQLException
public final PrintWriter getLogWriter()
public final void setLogWriter(PrintWriter out)
public final Logger getParentLogger()
public final Connection getConnection(String username, String password) throws SQLException
SQLException
Copyright © 2018. All rights reserved.