다음을 통해 공유


deletesAreDetected Method (SQLServerDatabaseMetaData)

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

public boolean deletesAreDetected(int type)

매개 변수

type

An int 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

반환 값

true if a hole replaces the deleted row. false if the deleted row is removed.

When using the Microsoft SQL Server 2005 JDBC Driver with a database, this method returns true for TYPE_SS_SCROLL_KEYSET cursors and false for all other result set types.

예외

SQLServerException

주의

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

참고

SQL Server detects deleted rows for all updatable cursor types, although the detection is transient for forward and dynamic cursors.

참고 항목

참조

SQLServerDatabaseMetaData Class

개념

SQLServerDatabaseMetaData Methods
SQLServerDatabaseMetaData Members