|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 TableSpecificationpublic Identifier getTableName()
public String getLoggableValueQualifier()
ValueContainervalues belonging to this container in
their logging.
getLoggableValueQualifier in interface ValueContainerpublic String getExportIdentifier()
Exportable
getExportIdentifier in interface Exportablepublic String toLoggableString()
Loggable
toLoggableString in interface Loggablepublic Iterable<Index> getIndexes()
getIndexes in interface TableSpecificationpublic Index getOrCreateIndex(String name)
getOrCreateIndex in interface TableSpecificationpublic Iterable<UniqueKey> getUniqueKeys()
getUniqueKeys in interface TableSpecificationpublic UniqueKey getOrCreateUniqueKey(String name)
getOrCreateUniqueKey in interface TableSpecificationpublic Iterable<CheckConstraint> getCheckConstraints()
getCheckConstraints in interface TableSpecificationpublic void addCheckConstraint(String checkCondition)
addCheckConstraint in interface TableSpecificationpublic Iterable<String> getComments()
getComments in interface TableSpecificationpublic void addComment(String comment)
addComment in interface TableSpecificationpublic String getQualifiedName(Dialect dialect)
getQualifiedName in interface TableSpecificationpublic String[] sqlCreateStrings(Dialect dialect)
Exportable
sqlCreateStrings in interface Exportabledialect - The dialect for which to generate the SQL creation strings
public String[] sqlDropStrings(Dialect dialect)
Exportable
sqlDropStrings in interface Exportabledialect - 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 | |||||||||