- 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 SummaryModifier 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 org.jooq.NamedgetComment, getCommentPart, getName, getQualifiedName, getUnqualifiedNameMethods inherited from interface org.jooq.QualifiedgetCatalog, getSchemaMethods inherited from interface org.jooq.TypedgetBinding, getConverter, getDataType, getDataType, getType
- 
Method Details- 
getStartWithGet the start value for this sequence ornull, if no such value is specified.
- 
getIncrementByGet the increment for this sequence ornull, if no such value is specified.
- 
getMinvalueGet the minimum value for this sequence ornull, if no such value is specified.
- 
getMaxvalueGet the maximum value for this sequence ornull, if no such value is specified.
- 
getCycleboolean getCycle()
- 
getCacheGet the number of sequence values to cache for this sequence ornull, if no such value is specified.
- 
currval@NotNull @Support({AURORA_POSTGRES,COCKROACHDB,CUBRID,DB2,FIREBIRD,H2,HANA,HSQLDB,INFORMIX,INGRES,MARIADB_10_3,ORACLE,POSTGRES,SQLSERVER2012,SYBASE,VERTICA}) @NotNull Field<T> currval()An expression to get the current value of this sequence.
- 
nextval@NotNull @Support({AURORA_POSTGRES,COCKROACHDB,CUBRID,DB2,DERBY,FIREBIRD,H2,HANA,HSQLDB,INFORMIX,INGRES,MARIADB_10_3,ORACLE,POSTGRES,SNOWFLAKE,SQLSERVER2012,SYBASE,VERTICA}) @NotNull Field<T> nextval()An expression to increment the sequence and get the next value.
- 
nextvals@NotNull @Support({AURORA_POSTGRES,COCKROACHDB,CUBRID,DB2,DERBY,FIREBIRD,H2,HANA,HSQLDB,INFORMIX,INGRES,MARIADB_10_3,ORACLE,POSTGRES,SNOWFLAKE,SQLSERVER2012,SYBASE,VERTICA}) @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).
 
-