- java.lang.Object
-
- org.jooq.meta.AbstractDefinition
-
- org.jooq.meta.AbstractTypedElementDefinition<SchemaDefinition>
-
- org.jooq.meta.DefaultSequenceDefinition
-
- All Implemented Interfaces:
Definition,SequenceDefinition,TypedElementDefinition<SchemaDefinition>
public class DefaultSequenceDefinition extends AbstractTypedElementDefinition<SchemaDefinition> implements SequenceDefinition
- Author:
- Lukas Eder
-
-
Constructor Summary
Constructors Constructor Description DefaultSequenceDefinition(SchemaDefinition schema, String name, DataTypeDefinition type)DefaultSequenceDefinition(SchemaDefinition schema, String name, DataTypeDefinition type, String comment)DefaultSequenceDefinition(SchemaDefinition schema, String name, DataTypeDefinition type, String comment, Number startWith, Number incrementBy, Number minValue, Number maxValue, boolean cycle, Number cache)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NumbergetCache()Get the number of sequence values to cache for this sequence ornull, if no such value is specified.booleangetCycle()Returnstrueif this sequence cycles toSequenceDefinition.getMinvalue()when it reachesSequenceDefinition.getMaxvalue().NumbergetIncrementBy()Get the increment for this sequence ornull, if no such value is specified.NumbergetMaxvalue()Get the maximum value for this sequence ornull, if no such value is specified.NumbergetMinvalue()Get the minimum value for this sequence ornull, if no such value is specified.NumbergetStartWith()Get the start value for this sequence ornull, if no such value is specified.-
Methods inherited from class org.jooq.meta.AbstractTypedElementDefinition
customType, getContainer, getDataType, getDefinedType, getDefinitionPath, getDomain, getType, getType, mapDefinedType
-
Methods inherited from class org.jooq.meta.AbstractDefinition
create, create, equals, getCatalog, getComment, getConnection, getDatabase, getDialect, getInputName, getName, getOutputName, getOverload, getPackage, getQualifiedInputName, getQualifiedInputNamePart, getQualifiedName, getQualifiedNamePart, getQualifiedOutputName, getQualifiedOutputNamePart, getSchema, getSource, hashCode, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.jooq.meta.Definition
getCatalog, getComment, getDatabase, getDefinitionPath, getInputName, getName, getOutputName, getOverload, getPackage, getQualifiedInputName, getQualifiedInputNamePart, getQualifiedName, getQualifiedNamePart, getQualifiedOutputName, getQualifiedOutputNamePart, getSchema, getSource
-
Methods inherited from interface org.jooq.meta.TypedElementDefinition
getContainer, getDefinedType, getDomain, getType, getType
-
-
-
-
Constructor Detail
-
DefaultSequenceDefinition
public DefaultSequenceDefinition(SchemaDefinition schema, String name, DataTypeDefinition type)
-
DefaultSequenceDefinition
public DefaultSequenceDefinition(SchemaDefinition schema, String name, DataTypeDefinition type, String comment)
-
DefaultSequenceDefinition
public DefaultSequenceDefinition(SchemaDefinition schema, String name, DataTypeDefinition type, String comment, Number startWith, Number incrementBy, Number minValue, Number maxValue, boolean cycle, Number cache)
-
-
Method Detail
-
getStartWith
public Number getStartWith()
Description copied from interface:SequenceDefinitionGet the start value for this sequence ornull, if no such value is specified.- Specified by:
getStartWithin interfaceSequenceDefinition
-
getIncrementBy
public Number getIncrementBy()
Description copied from interface:SequenceDefinitionGet the increment for this sequence ornull, if no such value is specified.- Specified by:
getIncrementByin interfaceSequenceDefinition
-
getMinvalue
public Number getMinvalue()
Description copied from interface:SequenceDefinitionGet the minimum value for this sequence ornull, if no such value is specified.- Specified by:
getMinvaluein interfaceSequenceDefinition
-
getMaxvalue
public Number getMaxvalue()
Description copied from interface:SequenceDefinitionGet the maximum value for this sequence ornull, if no such value is specified.- Specified by:
getMaxvaluein interfaceSequenceDefinition
-
getCycle
public boolean getCycle()
Description copied from interface:SequenceDefinitionReturnstrueif this sequence cycles toSequenceDefinition.getMinvalue()when it reachesSequenceDefinition.getMaxvalue().- Specified by:
getCyclein interfaceSequenceDefinition
-
getCache
public Number getCache()
Description copied from interface:SequenceDefinitionGet the number of sequence values to cache for this sequence ornull, if no such value is specified.- Specified by:
getCachein interfaceSequenceDefinition
-
-