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 TypeMethodDescriptionbooleancanUnwrap(Connection conn) Returns true if this unwrapper knows how to unwrap the specified connectionbooleanReturns tru if this unwrapper knows how to unwrap the specified statementunwrap(Connection conn) Returns the unwrapped connection, of throwsIllegalArgumentExceptionif the passedConnectionis not supported (canUnwrap(Connection)returns false}.Returns the unwrapped statement, of throwsIllegalArgumentExceptionif the passedStatementis 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 throwsIllegalArgumentExceptionif the passedConnectionis not supported (canUnwrap(Connection)returns false}. -
unwrap
Returns the unwrapped statement, of throwsIllegalArgumentExceptionif the passedStatementis not supported (canUnwrap(Statement)returns false}.
-