Android Reference
Wrapper
java.sql
Interface Wrapper
-
-
Method Summary
Methods
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.
|
-
-
Method Detail
-
unwrap
<T> T unwrap(Class<T> iface)
throws SQLException
Returns an object that implements the given interface. If the caller is
not a wrapper, a SQLException will be thrown.
- Parameters:
iface
- -
the class that defines the interface
- Returns:
- - an object that implements the interface
- Throws:
SQLException
- -
if there is no object implementing the specific interface
-
isWrapperFor
boolean isWrapperFor(Class<?> iface)
throws SQLException
If the caller is a wrapper of the class or implements the given
interface, the methods return false and vice versa.
- Parameters:
iface
- -
the class that defines the interface
- Returns:
- - true if the instance implements the interface
- Throws:
SQLException
- -
when an error occurs when judges the object
Content
License.
All information of this service is derived from the free sources and is provided solely in the form of quotations.
This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 299 / 159525442. Delta: 0.03278 с