public class Table extends AbstractTableSpecification implements Exportable
| Constructor and Description |
|---|
Table(Schema database,
Identifier tableName) |
Table(Schema database,
String tableName) |
| Modifier and Type | Method and Description |
|---|---|
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() |
createForeignKey, createTuple, getForeignKeys, getPrimaryKey, getTableNumber, locateOrCreateColumn, locateOrCreateDerivedValue, valuespublic Table(Schema database, Identifier tableName)
public Schema getSchema()
TableSpecificationgetSchema in interface TableSpecificationpublic Identifier getTableName()
public String getLoggableValueQualifier()
ValueContainervalues belonging to this container in
their logging.getLoggableValueQualifier in interface ValueContainerpublic String getExportIdentifier()
ExportablegetExportIdentifier in interface Exportablepublic String toLoggableString()
LoggabletoLoggableString 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)
ExportablesqlCreateStrings in interface Exportabledialect - The dialect for which to generate the SQL creation stringspublic String[] sqlDropStrings(Dialect dialect)
ExportablesqlDropStrings in interface Exportabledialect - The dialect for which to generate the SQL drop stringsCopyright © 2001-2015 Red Hat, Inc. All Rights Reserved.