Interface Sequence<T extends Number>
- All Superinterfaces:
Named, Qualified, QueryPart, Serializable, Typed<T>
- All Known Implementing Classes:
SequenceImpl
A sequence.
Instances can be created using DSL.sequence(Name) and overloads.
- Author:
- Lukas Eder
-
Method Summary
Modifier and TypeMethodDescriptioncurrval()An expression to get the current value of this sequence.getCache()Get the number of sequence values to cache for this sequence ornull, if no such value is specified.booleangetCycle()Get the increment for this sequence ornull, if no such value is specified.Get the maximum value for this sequence ornull, if no such value is specified.Get the minimum value for this sequence ornull, if no such value is specified.Get the start value for this sequence ornull, if no such value is specified.nextval()An expression to increment the sequence and get the next value.nextvals(int size) An expression to increment the sequence and get the next values.Methods inherited from interface Named
$name, getComment, getCommentPart, getName, getQualifiedName, getUnqualifiedNameMethods inherited from interface Qualified
$schema, getCatalog, getSchemaMethods inherited from interface QueryPart
$replace, $replace, $traverse, $traverse, equals, hashCode, toStringMethods inherited from interface Typed
$dataType, getBinding, getConverter, getDataType, getDataType, getType
-
Method Details
-
getStartWith
-
getIncrementBy
-
getMinvalue
-
getMaxvalue
-
getCycle
boolean getCycle() -
getCache
-
currval
@NotNull @Support({AURORA_POSTGRES,COCKROACHDB,CUBRID,DB2,DUCKDB,FIREBIRD,H2,HANA,HSQLDB,INFORMIX,INGRES,MARIADB_10_3,ORACLE,POSTGRES,SQLSERVER2012,SYBASE,VERTICA,YUGABYTEDB}) @NotNull Field<T> currval()An expression to get the current value of this sequence. -
nextval
@NotNull @Support({AURORA_POSTGRES,COCKROACHDB,CUBRID,DB2,DERBY,DUCKDB,FIREBIRD,H2,HANA,HSQLDB,INFORMIX,INGRES,MARIADB_10_3,ORACLE,POSTGRES,SNOWFLAKE,SPANNER,SQLSERVER2012,SYBASE,VERTICA,YUGABYTEDB}) @NotNull Field<T> nextval()An expression to increment the sequence and get the next value. -
nextvals
@NotNull @Support({AURORA_POSTGRES,COCKROACHDB,CUBRID,DB2,DUCKDB,FIREBIRD,H2,HANA,HSQLDB,INFORMIX,INGRES,MARIADB_10_3,ORACLE,POSTGRES,SNOWFLAKE,SPANNER,SQLSERVER2012,SYBASE,VERTICA,YUGABYTEDB}) @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).
-