|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.hibernate.metamodel.relational.AbstractTableSpecification org.hibernate.metamodel.relational.Table
public class Table
Models the concept of a relational TABLE (or VIEW).
Constructor Summary | |
---|---|
Table(Schema database,
Identifier tableName)
|
|
Table(Schema database,
String tableName)
|
Method Summary | |
---|---|
void |
addCheckConstraint(String checkCondition)
|
void |
addComment(String comment)
|
Iterable<CheckConstraint> |
getCheckConstraints()
|
Iterable<String> |
getComments()
|
String |
getExportIdentifier()
Get a unique identifier to make sure we are not exporting the same database structure multiple times. |
Iterable<Index> |
getIndexes()
|
String |
getLoggableValueQualifier()
Get a qualifier which can be used to qualify values belonging to this container in
their logging. |
Index |
getOrCreateIndex(String name)
|
UniqueKey |
getOrCreateUniqueKey(String name)
|
String |
getQualifiedName(Dialect dialect)
|
Schema |
getSchema()
Obtain a reference to the schema to which this table specification belongs. |
Identifier |
getTableName()
|
Iterable<UniqueKey> |
getUniqueKeys()
|
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. |
String |
toLoggableString()
Obtain the string representation of this value usable in log statements. |
String |
toString()
|
Methods inherited from class org.hibernate.metamodel.relational.AbstractTableSpecification |
---|
createForeignKey, createTuple, getForeignKeys, getPrimaryKey, getTableNumber, locateOrCreateColumn, locateOrCreateDerivedValue, values |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Table(Schema database, String tableName)
public Table(Schema database, Identifier tableName)
Method Detail |
---|
public Schema getSchema()
TableSpecification
getSchema
in interface TableSpecification
public Identifier getTableName()
public String getLoggableValueQualifier()
ValueContainer
values
belonging to this container in
their logging.
getLoggableValueQualifier
in interface ValueContainer
public String getExportIdentifier()
Exportable
getExportIdentifier
in interface Exportable
public String toLoggableString()
Loggable
toLoggableString
in interface Loggable
public Iterable<Index> getIndexes()
getIndexes
in interface TableSpecification
public Index getOrCreateIndex(String name)
getOrCreateIndex
in interface TableSpecification
public Iterable<UniqueKey> getUniqueKeys()
getUniqueKeys
in interface TableSpecification
public UniqueKey getOrCreateUniqueKey(String name)
getOrCreateUniqueKey
in interface TableSpecification
public Iterable<CheckConstraint> getCheckConstraints()
getCheckConstraints
in interface TableSpecification
public void addCheckConstraint(String checkCondition)
addCheckConstraint
in interface TableSpecification
public Iterable<String> getComments()
getComments
in interface TableSpecification
public void addComment(String comment)
addComment
in interface TableSpecification
public String getQualifiedName(Dialect dialect)
getQualifiedName
in interface TableSpecification
public String[] sqlCreateStrings(Dialect dialect)
Exportable
sqlCreateStrings
in interface Exportable
dialect
- The dialect for which to generate the SQL creation strings
public String[] sqlDropStrings(Dialect dialect)
Exportable
sqlDropStrings
in interface Exportable
dialect
- The dialect for which to generate the SQL drop strings
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |