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