org.geotools.jdbc
Class LifecycleConnectionUnWrapper

Object
  extended by LifecycleConnectionUnWrapper
All Implemented Interfaces:
UnWrapper

public class LifecycleConnectionUnWrapper
extends Object
implements UnWrapper

Un-wraps the LifecycleConnection instances

Author:
Andrea Aime - GeoSolutions

Constructor Summary
LifecycleConnectionUnWrapper()
           
 
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

LifecycleConnectionUnWrapper

public LifecycleConnectionUnWrapper()
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:

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 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:

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-2014 Geotools. All Rights Reserved.