June 2001
Intermediate to advanced
688 pages
19h 18m
English
import com.sleepycat.db.*; public Dbc dup(int flags) throws DbException;
The Dbc.dup method creates a new cursor that uses the same transaction and locker ID as the original cursor. This is useful when an application is using locking and requires two or more cursors in the same thread of control.
The flags value must be set to 0 or by bitwise inclusively OR’ing together one or more of the following values.
Db.DB_POSITION The newly created cursor is initialized to reference the same position in the database as the original cursor and hold the same locks. If the Db.DB_POSITION flag is not specified, the created cursor is uninitialized and will behave like a cursor newly created using Db.cursor.
When using the Berkeley DB ...