public interface Wrapper
| Modifier and Type | Method and Description |
|---|---|
boolean |
isWrapperFor(Class<?> iface)
If the caller is a wrapper of the class or implements the given
interface, the methods return false and vice versa.
|
<T> T |
unwrap(Class<T> iface)
Returns an object that implements the given interface.
|
<T> T unwrap(Class<T> iface) throws SQLException
iface - -
the class that defines the interfaceSQLException - -
if there is no object implementing the specific interfaceboolean isWrapperFor(Class<?> iface) throws SQLException
iface - -
the class that defines the interfaceSQLException - -
when an error occurs when judges the object