autoIncrement abstract method

int autoIncrement()

Fetch the next auto increment id for this collection.

After an app restart the auto increment counter will be set to the largest id in the collection. If the collection is empty, the counter will be set to 1.

Implementation

int autoIncrement();