public interface UnWrapper
Connection
unwrapper. A user can test if the unwrapper is able to unwrap a
certain connection, on positive answer he can call unwrap(Connection)
to get the native
connectionModifier and Type | Method and 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 (canUnwrap(Connection) returns false}. |
Statement |
unwrap(Statement statement)
Returns the unwrapped statement, of throws
IllegalArgumentException if the passed
Statement is not supported (canUnwrap(Statement) returns false}. |
boolean canUnwrap(Connection conn)
conn
- boolean canUnwrap(Statement st)
st
- Connection unwrap(Connection conn)
IllegalArgumentException
if the passed
Connection
is not supported (canUnwrap(Connection)
returns false}.conn
- Statement unwrap(Statement statement)
IllegalArgumentException
if the passed
Statement
is not supported (canUnwrap(Statement)
returns false}.statement
- Copyright © 1996–2019 Geotools. All rights reserved.