Skip Headers

# Default Sequencing

Previous

Next

The platform owned by a login is responsible for providing a default sequence instance appropriate for the platform type. For example, by default, a `DatabasePlatform` provides a table sequence using the default table and column names (see "Table Sequencing").

You can access this default sequence directly using `DatasourceLogin` method `getDefaultSequence`, or indirectly by using the `DefaultSequence` class, a wrapper for the platform default sequence.

If you associate a descriptor with a nonexistent sequence, the TopLink runtime will create an instance of `DefaultSequence` to provide sequencing for that descriptor. For more information, see "Configuring the Platform Default Sequence".

The main purpose of the `DefaultSequence` is to allow a sequence to use a different pre-allocation size than the project default.

Currently, you can only make use of default sequencing in Java (for more information, see "Using the Platform Default Sequence").