Class Sequence
- java.lang.Object
-
- org.hibernate.boot.model.relational.Sequence
-
- All Implemented Interfaces:
Exportable
public class Sequence extends java.lang.Object implements Exportable
Models a databaseSEQUENCE.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSequence.Name
-
Constructor Summary
Constructors Constructor Description Sequence(Identifier catalogName, Identifier schemaName, Identifier sequenceName)Sequence(Identifier catalogName, Identifier schemaName, Identifier sequenceName, int initialValue, int incrementSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetExportIdentifier()Get a unique identifier to make sure we are not exporting the same database structure multiple times.intgetIncrementSize()intgetInitialValue()QualifiedSequenceNamegetName()voidvalidate(int initialValue, int incrementSize)
-
-
-
Constructor Detail
-
Sequence
public Sequence(Identifier catalogName, Identifier schemaName, Identifier sequenceName)
-
Sequence
public Sequence(Identifier catalogName, Identifier schemaName, Identifier sequenceName, int initialValue, int incrementSize)
-
-
Method Detail
-
getName
public QualifiedSequenceName getName()
-
getExportIdentifier
public java.lang.String getExportIdentifier()
Description copied from interface:ExportableGet a unique identifier to make sure we are not exporting the same database structure multiple times.- Specified by:
getExportIdentifierin interfaceExportable- Returns:
- The exporting identifier.
-
getInitialValue
public int getInitialValue()
-
getIncrementSize
public int getIncrementSize()
-
validate
public void validate(int initialValue, int incrementSize)
-
-