Class DBCPUnWrapper

  • All Implemented Interfaces:
    UnWrapper

    public class DBCPUnWrapper
    extends Object
    implements UnWrapper
    Unwraps DBCP managed connections
    Author:
    Andrea Aime - TOPP
    • Constructor Summary

      Constructors 
      Constructor Description
      DBCPUnWrapper()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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
      • 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
      • 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
      • 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