|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.hibernate.metamodel.relational.Sequence
public class Sequence
Models a database SEQUENCE
.
Constructor Summary | |
---|---|
Sequence(Schema schema,
String name)
|
|
Sequence(Schema schema,
String name,
int initialValue,
int incrementSize)
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Sequence(Schema schema, String name)
public Sequence(Schema schema, String name, int initialValue, int incrementSize)
Method Detail |
---|
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 strings
MappingException
public String[] sqlDropStrings(Dialect dialect) throws MappingException
Exportable
sqlDropStrings
in interface Exportable
dialect
- The dialect for which to generate the SQL drop strings
MappingException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |