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