Top Description Methods
org.jooq

public Interface Sequence<T extends java.lang.Number>

extends Qualified, Typed<T extends Number>
Known Direct Implementers
org.jooq.impl.SequenceImpl
Static Imports
org.jooq.SQLDialect.CUBRID, .SQLDialect.DERBY, .SQLDialect.FIREBIRD, .SQLDialect.H2, .SQLDialect.HSQLDB, .SQLDialect.MARIADB, .SQLDialect.POSTGRES, .SQLDialect.YUGABYTEDB

A sequence.

Instances can be created using DSL#sequence(Name) and overloads.

Author
Lukas Eder

Method Summary

Modifier and TypeMethod and Description
public @NotNull Field<T>
currval()

Deprecated as a consequence of Field being deprecated.
An expression to get the current value of this sequence.
public @Nullable Field<T>
getCache()

Deprecated as a consequence of Field being deprecated.
Get the number of sequence values to cache for this sequence or null, if no such value is specified.
public boolean
getCycle()

Returns true if this sequence cycles to getMinvalue() when it reaches getMaxvalue().

public @Nullable Field<T>
getIncrementBy()

Deprecated as a consequence of Field being deprecated.
Get the increment for this sequence or null, if no such value is specified.
public @Nullable Field<T>
getMaxvalue()

Deprecated as a consequence of Field being deprecated.
Get the maximum value for this sequence or null, if no such value is specified.
public @Nullable Field<T>
getMinvalue()

Deprecated as a consequence of Field being deprecated.
Get the minimum value for this sequence or null, if no such value is specified.
public @Nullable Field<T>
getStartWith()

Deprecated as a consequence of Field being deprecated.
Get the start value for this sequence or null, if no such value is specified.
public @NotNull Field<T>
nextval()

Deprecated as a consequence of Field being deprecated.
An expression to increment the sequence and get the next value.
public @NotNull Select<Record1<T>>
nextvals(int size)

An expression to increment the sequence and get the next values.

Inherited from org.jooq.Qualified:
$schemagetCataloggetSchema
Inherited from org.jooq.Typed:
$dataTypegetBindinggetConvertergetDataTypegetDataTypegetType

Method Detail

currvalback to summary
public @NotNull Field<T> currval()

Deprecated

as a consequence of Field being deprecated. See corresponding docs for further information.

An expression to get the current value of this sequence.

Annotations
@NotNull
@Support:CUBRID, FIREBIRD, H2, HSQLDB, MARIADB, POSTGRES, YUGABYTEDB
getCacheback to summary
public @Nullable Field<T> getCache()

Deprecated

as a consequence of Field being deprecated. See corresponding docs for further information.

Get the number of sequence values to cache for this sequence or null, if no such value is specified.

Annotations
@Nullable
getCycleback to summary
public boolean getCycle()

Returns true if this sequence cycles to getMinvalue() when it reaches getMaxvalue().

getIncrementByback to summary
public @Nullable Field<T> getIncrementBy()

Deprecated

as a consequence of Field being deprecated. See corresponding docs for further information.

Get the increment for this sequence or null, if no such value is specified.

Annotations
@Nullable
getMaxvalueback to summary
public @Nullable Field<T> getMaxvalue()

Deprecated

as a consequence of Field being deprecated. See corresponding docs for further information.

Get the maximum value for this sequence or null, if no such value is specified.

Annotations
@Nullable
getMinvalueback to summary
public @Nullable Field<T> getMinvalue()

Deprecated

as a consequence of Field being deprecated. See corresponding docs for further information.

Get the minimum value for this sequence or null, if no such value is specified.

Annotations
@Nullable
getStartWithback to summary
public @Nullable Field<T> getStartWith()

Deprecated

as a consequence of Field being deprecated. See corresponding docs for further information.

Get the start value for this sequence or null, if no such value is specified.

Annotations
@Nullable
nextvalback to summary
public @NotNull Field<T> nextval()

Deprecated

as a consequence of Field being deprecated. See corresponding docs for further information.

An expression to increment the sequence and get the next value.

Annotations
@NotNull
@Support:CUBRID, DERBY, FIREBIRD, H2, HSQLDB, MARIADB, POSTGRES, YUGABYTEDB
nextvalsback to summary
public @NotNull Select<Record1<T>> nextvals(int size)

An expression to increment the sequence and get the next values.

This is done using DSL#generateSeries(int, int).

Annotations
@NotNull
@Support:CUBRID, DERBY, FIREBIRD, H2, HSQLDB, MARIADB, POSTGRES, YUGABYTEDB