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, stopclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLoginTimeout, getLogWriter, getParentLogger, setLoginTimeout, setLogWriterpublic DataSource()
public DataSourceProxyFactory createProxyFactory(DatabaseCluster<DataSource,DataSourceDatabase> cluster)
createProxyFactory in interface CommonDataSourceProxyFactoryFactory<DataSource,DataSourceDatabase,DataSourceProxyFactory>public Connection getConnection() throws SQLException
getConnection in interface DataSourceSQLExceptionDataSource.getConnection()public Connection getConnection(String user, String password) throws SQLException
getConnection in interface DataSourceSQLExceptionDataSource.getConnection(java.lang.String, java.lang.String)public boolean isWrapperFor(Class<?> targetClass) throws SQLException
isWrapperFor in interface WrapperSQLExceptionWrapper.isWrapperFor(java.lang.Class)public <T> T unwrap(Class<T> targetClass) throws SQLException
unwrap in interface WrapperSQLExceptionWrapper.unwrap(java.lang.Class)Copyright © 2004–2014 Paul Ferraro. All rights reserved.