|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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
Method Summary | |
---|---|
boolean |
canUnwrap(java.sql.Connection conn)
Returns true if this unwrapper knows how to unwrap the specified connection |
boolean |
canUnwrap(java.sql.Statement st)
Returns tru if this unwrapper knows how to unwrap the specified statement |
java.sql.Connection |
unwrap(java.sql.Connection conn)
Returns the unwrapped connection, of throws IllegalArgumentException if the passed
Connection is not supported (canUnwrap(Connection) returns false}. |
java.sql.Statement |
unwrap(java.sql.Statement statement)
Returns the unwrapped statement, of throws IllegalArgumentException if the passed
Statement is not supported (canUnwrap(Statement) returns false}. |
Method Detail |
---|
boolean canUnwrap(java.sql.Connection conn)
conn
-
boolean canUnwrap(java.sql.Statement st)
st
-
java.sql.Connection unwrap(java.sql.Connection conn)
IllegalArgumentException
if the passed
Connection
is not supported (canUnwrap(Connection)
returns false}.
conn
-
java.sql.Statement unwrap(java.sql.Statement statement)
IllegalArgumentException
if the passed
Statement
is not supported (canUnwrap(Statement)
returns false}.
statement
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |