public class Sequence extends Object implements Exportable
SEQUENCE.| Constructor and Description |
|---|
Sequence(Schema schema,
String name) |
Sequence(Schema schema,
String name,
int initialValue,
int incrementSize) |
| Modifier and Type | Method and Description |
|---|---|
String |
getExportIdentifier()
Get a unique identifier to make sure we are not exporting the same database structure multiple times.
|
int |
getIncrementSize() |
int |
getInitialValue() |
String |
getName() |
Schema |
getSchema() |
String[] |
sqlCreateStrings(Dialect dialect)
Gets the SQL strings for creating the database object.
|
String[] |
sqlDropStrings(Dialect dialect)
Gets the SQL strings for dropping the database object.
|
public Schema getSchema()
public String getName()
public String getExportIdentifier()
ExportablegetExportIdentifier in interface Exportablepublic int getInitialValue()
public int getIncrementSize()
public String[] sqlCreateStrings(Dialect dialect) throws MappingException
ExportablesqlCreateStrings in interface Exportabledialect - The dialect for which to generate the SQL creation stringsMappingExceptionpublic String[] sqlDropStrings(Dialect dialect) throws MappingException
ExportablesqlDropStrings in interface Exportabledialect - The dialect for which to generate the SQL drop stringsMappingExceptionCopyright © 2018 JBoss by Red Hat. All rights reserved.