org.geotools.data.jdbc.datasource
Class DBCPUnWrapper

Object
  extended by DBCPUnWrapper
All Implemented Interfaces:
UnWrapper

public class DBCPUnWrapper
extends Object
implements UnWrapper

Unwraps DBCP managed connections

Author:
Andrea Aime - TOPP
Module:
modules/library/jdbc (gt-jdbc.jar)

Constructor Summary
DBCPUnWrapper()
           
 
Method Summary
 boolean canUnwrap(Connection conn)
          Returns true if this unwrapper knows how to unwrap the specified connection
 boolean canUnwrap(Statement st)
          Returns tru if this unwrapper knows how to unwrap the specified statement
 Connection unwrap(Connection conn)
          Returns the unwrapped connection, of throws IllegalArgumentException if the passed Connection is not supported (UnWrapper.canUnwrap(Connection) returns false}.
 Statement unwrap(Statement statement)
          Returns the unwrapped statement, of throws IllegalArgumentException if the passed Statement is not supported (UnWrapper.canUnwrap(Statement) returns false}.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DBCPUnWrapper

public DBCPUnWrapper()
Method Detail

canUnwrap

public boolean canUnwrap(Connection conn)
Description copied from interface: UnWrapper
Returns true if this unwrapper knows how to unwrap the specified connection

Specified by:
canUnwrap in interface UnWrapper
Returns:

unwrap

public Connection unwrap(Connection conn)
Description copied from interface: UnWrapper
Returns the unwrapped connection, of throws IllegalArgumentException if the passed Connection is not supported (UnWrapper.canUnwrap(Connection) returns false}.

Specified by:
unwrap in interface UnWrapper
Returns:

canUnwrap

public boolean canUnwrap(Statement st)
Description copied from interface: UnWrapper
Returns tru if this unwrapper knows how to unwrap the specified statement

Specified by:
canUnwrap in interface UnWrapper
Returns:

unwrap

public Statement unwrap(Statement statement)
Description copied from interface: UnWrapper
Returns the unwrapped statement, of throws IllegalArgumentException if the passed Statement is not supported (UnWrapper.canUnwrap(Statement) returns false}.

Specified by:
unwrap in interface UnWrapper
Returns:


Copyright © 1996-2010 Geotools. All Rights Reserved.