다음을 통해 공유


unwrap Method (SQLServerStatement)

Returns an object that implements the specified interface to allow access to the Microsoft SQL Server JDBC Driver-specific methods.

참고

This feature is introduced starting with the Microsoft SQL Server JDBC Driver version 2.0.

public <T> T unwrap(Class<T> iface)

매개 변수

iface

A class of type T defining an interface.

반환 값

An object that implements the specified interface.

예외

SQLServerException

주의

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.

When this method is called, the object unwraps to the SQLServerStatement class.

For example code, see 큰 데이터 업데이트 샘플, or unwrap Method (SQLServerCallableStatement).

참고

참조

isWrapperFor Method (SQLServerStatement)
SQLServerStatement Class

개념

SQLServerStatement Methods
SQLServerStatement Members