Skip to content

Latest commit

 

History

History
75 lines (54 loc) · 2.31 KB

File metadata and controls

75 lines (54 loc) · 2.31 KB
title insertsAreDetected Method (SQLServerDatabaseMetaData) | Microsoft Docs
ms.custom
ms.date 01/19/2017
ms.prod sql
ms.prod_service connectivity
ms.reviewer
ms.suite sql
ms.technology connectivity
ms.tgt_pltfrm
ms.topic conceptual
apiname
SQLServerDatabaseMetaData.insertsAreDetected
apilocation
sqljdbc.jar
apitype Assembly
ms.assetid f296cc42-9d26-48c3-a360-bcf51c31f7fb
caps.latest.revision 10
author MightyPen
ms.author genemi
manager craigg

insertsAreDetected Method (SQLServerDatabaseMetaData)

[!INCLUDEDriver_JDBC_Download]

Retrieves whether or not a visible row insert can be detected by calling the method rowInserted method of the SQLServerResultSet class.

Syntax

  
public boolean insertsAreDetected(int type)  

Parameters

type

An integer that indicates the result set type, which can be one of the following values as defined in java.sql.ResultSet or SQLServerResultSet:

java.sql.ResultSet Types

TYPE_FORWARD_ONLY

TYPE_SCROLL_SENSITIVE

TYPE_SCROLL_INSENSITIVE

SQLServerResultSet Types

TYPE_SS_SCROLL_STATIC

TYPE_SS_SCROLL_KEYSET

TYPE_SS_DIRECT_FORWARD_ONLY

TYPE_SS_SERVER_CURSOR_FORWARD_ONLY

TYPE_SS_SCROLL_DYNAMIC

Return Value

true if the row insert can be detected. Otherwise, false.

Exceptions

SQLServerException

Remarks

This insertsAreDetected method is specified by the insertsAreDetected method in the java.sql.DatabaseMetaData interface.

Note

[!INCLUDEssNoVersion] does not detect inserted rows for any cursor type.

See Also

SQLServerDatabaseMetaData Methods
SQLServerDatabaseMetaData Members
SQLServerDatabaseMetaData Class