--- title: "isWrapperFor Method (SQLServerPreparedStatement) | 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: b0e591b1-73e2-4f90-967f-5555eadfc3f1 author: David-Engel ms.author: v-daenge --- # isWrapperFor Method (SQLServerPreparedStatement) [!INCLUDE[Driver_JDBC_Download](../../../includes/driver_jdbc_download.md)] 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](../../../connect/jdbc/reference/sqlserverexception-class.md) ## Remarks The [isWrapperFor](../../../connect/jdbc/reference/iswrapperfor-method-sqlserverpreparedstatement.md) method and the [unwrap](../../../connect/jdbc/reference/unwrap-method-sqlserverpreparedstatement.md) method are defined by the java.sql.Wrapper interface, which is introduced in the JDBC 4.0 Spec. If this method returns true, calling [unwrap](../../../connect/jdbc/reference/unwrap-method-sqlserverpreparedstatement.md) with the same argument will succeed. For more information, see [Wrappers and Interfaces](../../../connect/jdbc/wrappers-and-interfaces.md). ## See Also [unwrap Method (SQLServerPreparedStatement)](../../../connect/jdbc/reference/unwrap-method-sqlserverpreparedstatement.md) [SQLServerPreparedStatement Members](../../../connect/jdbc/reference/sqlserverpreparedstatement-members.md) [SQLServerPreparedStatement Class](../../../connect/jdbc/reference/sqlserverpreparedstatement-class.md)