public abstract class AbstractManageableDataSource extends Object implements ManageableDataSource
ManageableDataSource
, you just have to
subclass and create a close methodModifier 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, wait
close
protected DataSource wrapped
public AbstractManageableDataSource(DataSource wrapped)
public Connection getConnection() throws SQLException
getConnection
in interface DataSource
SQLException
public Connection getConnection(String username, String password) throws SQLException
getConnection
in interface DataSource
SQLException
public int getLoginTimeout() throws SQLException
getLoginTimeout
in interface CommonDataSource
SQLException
public PrintWriter getLogWriter() throws SQLException
getLogWriter
in interface CommonDataSource
SQLException
public void setLoginTimeout(int seconds) throws SQLException
setLoginTimeout
in interface CommonDataSource
SQLException
public void setLogWriter(PrintWriter out) throws SQLException
setLogWriter
in interface CommonDataSource
SQLException
public boolean isWrapperFor(Class c) throws SQLException
isWrapperFor
in interface Wrapper
SQLException
public Object unwrap(Class arg0) throws SQLException
unwrap
in interface Wrapper
SQLException
public Logger getParentLogger() throws SQLFeatureNotSupportedException
getParentLogger
in interface CommonDataSource
SQLFeatureNotSupportedException
Copyright © 1996–2019 Geotools. All rights reserved.