Sequence

constructor(name: String, startWith: Long? = null, incrementBy: Long? = null, minValue: Long? = null, maxValue: Long? = null, cycle: Boolean? = null, cache: Long? = null)

Parameters

name

Name of the sequence.

startWith

Beginning of the sequence.

incrementBy

Value to be added to the current sequence value when creating a new value.

minValue

Minimum value a sequence can generate.

maxValue

Maximum value for the sequence.

cycle

Allows the sequence to wrap around when the maxValue or minValue has been reached by an ascending or descending sequence respectively.

cache

Specifies how many sequence numbers are to be pre-allocated and stored in memory for faster access.