Interface UnWrapper
- All Known Implementing Classes:
DBCPUnWrapper
,LifecycleConnectionUnWrapper
public interface UnWrapper
Generic
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 connection- Author:
- Andrea Aime - TOPP
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canUnwrap
(Connection conn) Returns true if this unwrapper knows how to unwrap the specified connectionboolean
Returns tru if this unwrapper knows how to unwrap the specified statementunwrap
(Connection conn) Returns the unwrapped connection, of throwsIllegalArgumentException
if the passedConnection
is not supported (canUnwrap(Connection)
returns false}.Returns the unwrapped statement, of throwsIllegalArgumentException
if the passedStatement
is not supported (canUnwrap(Statement)
returns false}.
-
Method Details
-
canUnwrap
Returns true if this unwrapper knows how to unwrap the specified connection -
canUnwrap
Returns tru if this unwrapper knows how to unwrap the specified statement -
unwrap
Returns the unwrapped connection, of throwsIllegalArgumentException
if the passedConnection
is not supported (canUnwrap(Connection)
returns false}. -
unwrap
Returns the unwrapped statement, of throwsIllegalArgumentException
if the passedStatement
is not supported (canUnwrap(Statement)
returns false}.
-