# BDBDatabaseConfig

## Abstract

This class is used to hand-off a configuration to diverse operations.

## Methods

`-init`
  constructor
`-setAllocSortedDuplicates:`
  allow duplicates to be inserted using an automatic sorting mechanism
`-setAllowCreate:`
`-setAllowDuplicates:`
  Configure the database to support duplicate data items.
`-setBTreeRecordNumbering:`
  Configure the Btree to support retrieval by record number.
`-setDatabaseType:`
`-setRecordRenumbering:`
  Set record numbers being mutable

### init

constructor

>     - init;

### setAllocSortedDuplicates:

allow duplicates to be inserted using an automatic sorting mechanism

>     - setAllocSortedDuplicates: (BOOL) allow;

##### Parameter Descriptions

> `allow`
>   enables or disables this feature

method result
  self

##### Discussion

The ordering of duplicates in the database is determined by the duplicate comparison function.

### setAllowCreate:

>     - (id) setAllowCreate: (BOOL) enable;

##### Discussion

Create database if not existent

### setAllowDuplicates:

Configure the database to support duplicate data items.

>     - setAllowDuplicates: (BOOL) duplicatesAllowed;

##### Parameter Descriptions

> `sortedDuplicates`
>   If true, configure the database to support duplicate data items. A value of false is illegal to this method, that is, once set, the configuration cannot be cleared.

method result
  self

### setBTreeRecordNumbering:

Configure the Btree to support retrieval by record number.

>     - setBTreeRecordNumbering: (BOOL) recordNumbering;

##### Parameter Descriptions

> `recordNumbering`
>   enables or disables this feature

method result
  self

### setDatabaseType:

See:

> BDBDatabaseType

>     - (id) setDatabaseType: (BDBDatabaseType) type;

##### Discussion

Specify the database type (btree, hash, recno, queue) to be used.

### setRecordRenumbering:

Set record numbers being mutable

>     - setRecordRenumbering: (BOOL) renumber;

##### Parameter Descriptions

> `renumber`
>   specify to activate/deactivate renumbering

##### Discussion

This flag is defind for `` only. It causes logical record numbers to be mutable.

(Last Updated August 27, 2006)