Skip to content

Latest commit

 

History

History
49 lines (34 loc) · 1.81 KB

File metadata and controls

49 lines (34 loc) · 1.81 KB
title isWrapperFor Method (SQLServerStatement)
description isWrapperFor Method (SQLServerStatement)
author dlevy-msft-sql
ms.author dlevy
ms.reviewer davidengel, machavan, sunilbs
ms.date 01/19/2017
ms.service sql
ms.subservice connectivity
ms.topic reference

isWrapperFor Method (SQLServerStatement)

[!INCLUDEDriver_JDBC_Download]

Indicates whether this statement object is a wrapper for the specified interface.

Syntax

  
public boolean isWrapperFor(Class iface)  

Parameters

iface

A class defining an interface.

Return Value

true if this object implements the interface or wraps an object that implements the interface. Otherwise, false.

Exceptions

SQLServerException

Remarks

The isWrapperFor method and the unwrap method are defined by the java.sql.Wrapper interface, which is introduced in JDBC 4.0.

If this method returns true, calling unwrap with the same argument will succeed.

For an example code, see Updating Large Data Sample.

For more information, see Wrappers and Interfaces.

See Also

unwrap Method (SQLServerStatement)
SQLServerStatement Members
SQLServerStatement Class