org.geotools.data.jdbc.datasource
Class DBCPDataSource

Object
  extended by AbstractManageableDataSource
      extended by DBCPDataSource
All Implemented Interfaces:
Wrapper, CommonDataSource, DataSource, ManageableDataSource

public class DBCPDataSource
extends AbstractManageableDataSource

A closeable wrapper around BasicDataSource

Author:
Administrator

Field Summary
 
Fields inherited from class AbstractManageableDataSource
wrapped
 
Constructor Summary
DBCPDataSource(BasicDataSource wrapped)
           
 
Method Summary
 void close()
          Closes up the datasource, frees all of its resources.
 DataSource getWrapped()
           
 boolean isWrapperFor(Class c)
           
 Object unwrap(Class c)
           
 
Methods inherited from class AbstractManageableDataSource
getConnection, getConnection, getLoginTimeout, getLogWriter, getParentLogger, setLoginTimeout, setLogWriter
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DBCPDataSource

public DBCPDataSource(BasicDataSource wrapped)
Method Detail

getWrapped

public DataSource getWrapped()

close

public void close()
           throws SQLException
Description copied from interface: ManageableDataSource
Closes up the datasource, frees all of its resources. No other connection can be gathered from this DataSource once close() has been called

Throws:
SQLException

isWrapperFor

public boolean isWrapperFor(Class c)
                     throws SQLException
Specified by:
isWrapperFor in interface Wrapper
Overrides:
isWrapperFor in class AbstractManageableDataSource
Throws:
SQLException

unwrap

public Object unwrap(Class c)
              throws SQLException
Specified by:
unwrap in interface Wrapper
Overrides:
unwrap in class AbstractManageableDataSource
Throws:
SQLException


Copyright © 1996-2014 Geotools. All Rights Reserved.