unwrap Method (SQLServerStatement)
Returns an object that implements the specified interface to allow access to the Microsoft JDBC Driver for SQL Server-specific methods.
Syntax
public <T> T unwrap(Class<T> iface)
Parameters
iface
A class of type T defining an interface.
Return Value
An object that implements the specified interface.
Exceptions
Remarks
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 JDBC Driver for SQL Server. 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 SQLServerStatement class.
For example code, see Updating Large Data Sample, or unwrap Method (SQLServerCallableStatement).
For more information, see Wrappers and Interfaces.
See Also
isWrapperFor Method (SQLServerStatement)
SQLServerStatement Members
SQLServerStatement Class
Geri Bildirim
https://aka.ms/ContentUserFeedback.
Çok yakında: 2024 boyunca, içerik için geri bildirim mekanizması olarak GitHub Sorunları’nı kullanımdan kaldıracak ve yeni bir geri bildirim sistemiyle değiştireceğiz. Daha fazla bilgi için bkz.Gönderin ve geri bildirimi görüntüleyin