import com.sleepycat.db.*; public void set_flags(int flags) throws DbException;
Calling Db.set_flags is additive, there is no way to clear flags.
The flags value must be set to 0 or by bitwise inclusively OR’ing together one or more of the following values.
The following flags may be specified for the Btree access method:
Db.DB_DUP Permit duplicate data items in the tree; that is, insertion when the key of the key/data pair being inserted already exists in the tree will be successful. The ordering of duplicates in the tree is determined by the order of insertion, unless the ordering is otherwise specified by use of a cursor operation. It is an error to specify both Db.DB_DUP and Db.DB_RECNUM.