public abstract class AbstractManageableDataSource extends Object implements ManageableDataSource
ManageableDataSource, you just have to
subclass and create a close method| Modifier and Type | Field and Description |
|---|---|
protected DataSource |
wrapped |
| Constructor and Description |
|---|
AbstractManageableDataSource(DataSource wrapped) |
| Modifier and Type | Method and Description |
|---|---|
Connection |
getConnection() |
Connection |
getConnection(String username,
String password) |
int |
getLoginTimeout() |
PrintWriter |
getLogWriter() |
Logger |
getParentLogger() |
boolean |
isWrapperFor(Class c) |
void |
setLoginTimeout(int seconds) |
void |
setLogWriter(PrintWriter out) |
Object |
unwrap(Class arg0) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcloseprotected DataSource wrapped
public AbstractManageableDataSource(DataSource wrapped)
public Connection getConnection() throws SQLException
getConnection in interface DataSourceSQLExceptionpublic Connection getConnection(String username, String password) throws SQLException
getConnection in interface DataSourceSQLExceptionpublic int getLoginTimeout()
throws SQLException
getLoginTimeout in interface CommonDataSourceSQLExceptionpublic PrintWriter getLogWriter() throws SQLException
getLogWriter in interface CommonDataSourceSQLExceptionpublic void setLoginTimeout(int seconds)
throws SQLException
setLoginTimeout in interface CommonDataSourceSQLExceptionpublic void setLogWriter(PrintWriter out) throws SQLException
setLogWriter in interface CommonDataSourceSQLExceptionpublic boolean isWrapperFor(Class c) throws SQLException
isWrapperFor in interface WrapperSQLExceptionpublic Object unwrap(Class arg0) throws SQLException
unwrap in interface WrapperSQLExceptionpublic Logger getParentLogger() throws SQLFeatureNotSupportedException
getParentLogger in interface CommonDataSourceSQLFeatureNotSupportedExceptionCopyright © 1996–2019 Geotools. All rights reserved.