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()
Exportable
getExportIdentifier
in interface Exportable
public int getInitialValue()
public int getIncrementSize()
public String[] sqlCreateStrings(Dialect dialect) throws MappingException
Exportable
sqlCreateStrings
in interface Exportable
dialect
- The dialect for which to generate the SQL creation stringsMappingException
public String[] sqlDropStrings(Dialect dialect) throws MappingException
Exportable
sqlDropStrings
in interface Exportable
dialect
- The dialect for which to generate the SQL drop stringsMappingException
Copyright © 2001-2015 Red Hat, Inc. All Rights Reserved.