| title | unwrap Method (SQLServerPreparedStatement) |
|---|---|
| description | unwrap Method (SQLServerPreparedStatement) |
| author | David-Engel |
| ms.author | davidengel |
| ms.date | 01/19/2017 |
| ms.service | sql |
| ms.subservice | connectivity |
| ms.topic | reference |
[!INCLUDEDriver_JDBC_Download]
Returns an object that implements the specified interface to allow access to the [!INCLUDEjdbcNoVersion]-specific methods.
public <T> T unwrap(Class<T> iface)
iface
A class of type T defining an interface.
An object that implements the specified interface.
The unwrap method is defined by the java.sql.Wrapper interface, which is introduced in the JDBC 4.0 Spec.
Applications might need to access extensions to the JDBC API that are specific to the [!INCLUDEjdbcNoVersion]. The unwrap method supports unwrapping to public classes that this object extends, if the classes expose vendor extensions.
When this method is called, the object unwraps to the following classes: SQLServerStatement and SQLServerPreparedStatement.
For example code, see unwrap Method (SQLServerCallableStatement).
For more information, see Wrappers and Interfaces.
isWrapperFor Method (SQLServerPreparedStatement)
SQLServerPreparedStatement Members
SQLServerPreparedStatement Class