Skip to content

Latest commit

 

History

History
51 lines (36 loc) · 2 KB

File metadata and controls

51 lines (36 loc) · 2 KB
title unwrap Method (SQLServerDataSource) | Microsoft Docs
ms.custom
ms.date 01/19/2017
ms.prod sql
ms.prod_service connectivity
ms.reviewer
ms.technology connectivity
ms.topic conceptual
ms.assetid eb8abe29-f3ec-4752-a590-1d5dc3e48f08
author David-Engel
ms.author v-daenge

unwrap Method (SQLServerDataSource)

[!INCLUDEDriver_JDBC_Download]

Returns an object that implements the specified interface to allow access to the [!INCLUDEjdbcNoVersion]-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

SQLServerException

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 [!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 SQLServerDataSource class.

For more information, see Wrappers and Interfaces.

See Also

isWrapperFor Method (SQLServerDataSource)
SQLServerDataSource Members
SQLServerDataSource Class