public class DataSource extends CommonDataSource<DataSource,DataSourceDatabase,DataSourceProxyFactory> implements DataSource
Constructor and Description |
---|
DataSource()
Constructs a new DataSource
|
Modifier and Type | Method and Description |
---|---|
DataSourceProxyFactory |
createProxyFactory(DatabaseCluster<DataSource,DataSourceDatabase> cluster) |
Connection |
getConnection() |
Connection |
getConnection(String user,
String password) |
boolean |
isWrapperFor(Class<?> targetClass) |
<T> T |
unwrap(Class<T> targetClass) |
create, getCluster, getConfig, getConfigurationFactory, getFactory, getLoginTimeout, getLogWriter, getParentLogger, getPassword, getProxy, getReference, getTimeout, getUser, setCluster, setConfig, setConfigurationFactory, setFactory, setLoginTimeout, setLogWriter, setPassword, setTimeout, setUser, stop
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getLoginTimeout, getLogWriter, getParentLogger, setLoginTimeout, setLogWriter
public DataSource()
public DataSourceProxyFactory createProxyFactory(DatabaseCluster<DataSource,DataSourceDatabase> cluster)
createProxyFactory
in interface CommonDataSourceProxyFactoryFactory<DataSource,DataSourceDatabase,DataSourceProxyFactory>
public Connection getConnection() throws SQLException
getConnection
in interface DataSource
SQLException
DataSource.getConnection()
public Connection getConnection(String user, String password) throws SQLException
getConnection
in interface DataSource
SQLException
DataSource.getConnection(java.lang.String, java.lang.String)
public boolean isWrapperFor(Class<?> targetClass) throws SQLException
isWrapperFor
in interface Wrapper
SQLException
Wrapper.isWrapperFor(java.lang.Class)
public <T> T unwrap(Class<T> targetClass) throws SQLException
unwrap
in interface Wrapper
SQLException
Wrapper.unwrap(java.lang.Class)
Copyright © 2004–2014 Paul Ferraro. All rights reserved.