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