public abstract class AbstractJdbcDataSource extends AbstractJdbcDataSourceInfo implements DataSource
| Constructor and Description |
|---|
AbstractJdbcDataSource(String dataSourceName) |
AbstractJdbcDataSource(String className,
Properties properties) |
AbstractJdbcDataSource(String className,
SortedMap<String,String> properties) |
| Modifier and Type | Method and Description |
|---|---|
Connection |
getConnection(String userName,
String password) |
int |
getLoginTimeout() |
PrintWriter |
getLogWriter() |
Logger |
getParentLogger() |
boolean |
isWrapperFor(Class<?> iface) |
void |
setLoginTimeout(int seconds) |
void |
setLogWriter(PrintWriter out) |
<T> T |
unwrap(Class<T> iface) |
createDataSource, getDataSource, getDataSourceNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConnectionpublic AbstractJdbcDataSource(String dataSourceName)
public AbstractJdbcDataSource(String className, SortedMap<String,String> properties)
public AbstractJdbcDataSource(String className, Properties properties)
public Connection getConnection(String userName, String password) throws SQLException
getConnection in interface DataSourceSQLExceptionpublic PrintWriter getLogWriter() throws SQLException
getLogWriter in interface CommonDataSourceSQLExceptionpublic void setLogWriter(PrintWriter out) throws SQLException
setLogWriter in interface CommonDataSourceSQLExceptionpublic void setLoginTimeout(int seconds)
throws SQLException
setLoginTimeout in interface CommonDataSourceSQLExceptionpublic int getLoginTimeout()
throws SQLException
getLoginTimeout in interface CommonDataSourceSQLExceptionpublic <T> T unwrap(Class<T> iface) throws SQLException
unwrap in interface WrapperSQLExceptionpublic boolean isWrapperFor(Class<?> iface) throws SQLException
isWrapperFor in interface WrapperSQLExceptionpublic Logger getParentLogger() throws SQLFeatureNotSupportedException
getParentLogger in interface CommonDataSourceSQLFeatureNotSupportedExceptionCopyright © 2014. All Rights Reserved.