unwrap Method (SQLServerPreparedStatement)
Returns an object that implements the specified interface to allow access to the Microsoft SQL Server JDBC Driver-specific methods.
Nota
This feature is introduced starting with the Microsoft SQL Server JDBC Driver version 2.0.
public <T> T unwrap(Class<T> iface)
Parámetros
iface
A class of type T defining an interface.
Valor devuelto
An object that implements the specified interface.
Excepciones
Observaciones
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 Microsoft SQL Server JDBC Driver. The unwrap method supports unwrapping to public classes that this object extends, if the classes expose vendor extensions.
The SQLServerPreparedStatement class extends the SQLServerStatement class. When this method is called, the object unwraps to the following classes: SQLServerStatement and SQLServerPreparedStatement.
For example code, see unwrap Method (SQLServerCallableStatement).
Vea también
Referencia
isWrapperFor Method (SQLServerPreparedStatement)
SQLServerPreparedStatement Class
Conceptos
SQLServerPreparedStatement Methods
SQLServerPreparedStatement Members