Microsoft SDK for Java

AdoEnums.CursorType Class Fields

The CursorType class contains the fields shown in the following table.

Constant Value Description
UNSPECIFIED -1 Does not specify the type of cursor.
FORWARDONLY 0 Default. Uses a forward-only cursor. Identical to a static cursor, except that you can only scroll forward through records. This improves performance in situations when you need to make only a single pass through a Recordset.
KEYSET 1 Uses a keyset cursor. Like a dynamic cursor, except that you can't see records that other users add, although records that other users delete are inaccessible from your recordset. Data changes by other users are still visible.
DYNAMIC 2 Uses a dynamic cursor. Additions, changes, and deletions by other users are visible, and all types of movement through the recordset are allowed, except for bookmarks, if the provider doesn't support them.
STATIC 3 Uses a static cursor. A static copy of a set of records that you can use to find data or generate reports. Additions, changes, or deletions by other users are not visible.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.