org.geotools.data.jdbc.datasource
Class DBCPDataSource

Object
  extended by AbstractManageableDataSource
      extended by DBCPDataSource
All Implemented Interfaces:
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.
 boolean isWrapperFor(Class type)
           
 Object unwrap(Class type)
           
 
Methods inherited from class AbstractManageableDataSource
getConnection, getConnection, getLoginTimeout, getLogWriter, 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

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 type)
                     throws SQLException
Overrides:
isWrapperFor in class AbstractManageableDataSource
Throws:
SQLException

unwrap

public Object unwrap(Class type)
              throws SQLException
Overrides:
unwrap in class AbstractManageableDataSource
Throws:
SQLException


Copyright © 1996-2009 Geotools. All Rights Reserved.