Class Sequence
java.lang.Object
org.hibernate.boot.model.relational.Sequence
- All Implemented Interfaces:
ContributableDatabaseObject
,Exportable
,Contributable
Models a database
SEQUENCE
.-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionSequence
(String contributor, Identifier catalogName, Identifier schemaName, Identifier sequenceName) Sequence
(String contributor, Identifier catalogName, Identifier schemaName, Identifier sequenceName, int initialValue, int incrementSize) -
Method Summary
-
Constructor Details
-
Sequence
public Sequence(String contributor, Identifier catalogName, Identifier schemaName, Identifier sequenceName) -
Sequence
public Sequence(String contributor, Identifier catalogName, Identifier schemaName, Identifier sequenceName, int initialValue, int incrementSize)
-
-
Method Details
-
getName
-
getExportIdentifier
Description copied from interface:Exportable
Get a unique identifier to make sure we are not exporting the same database structure multiple times.- Specified by:
getExportIdentifier
in interfaceExportable
- Returns:
- The exporting identifier.
-
getContributor
Description copied from interface:Contributable
The name of the contributor which contributed this- Specified by:
getContributor
in interfaceContributable
-
getInitialValue
public int getInitialValue() -
getIncrementSize
public int getIncrementSize() -
validate
public void validate(int initialValue, int incrementSize)
-