public interface TableSpecification extends ValueContainer, Loggable
Modifier and Type | Method and Description |
---|---|
void |
addCheckConstraint(String checkCondition) |
void |
addComment(String comment) |
ForeignKey |
createForeignKey(TableSpecification targetTable,
String name) |
Tuple |
createTuple(String name)
Factory method for creating a
Column associated with this container. |
Iterable<CheckConstraint> |
getCheckConstraints() |
Iterable<String> |
getComments() |
Iterable<ForeignKey> |
getForeignKeys() |
Iterable<Index> |
getIndexes() |
Index |
getOrCreateIndex(String name) |
UniqueKey |
getOrCreateUniqueKey(String name) |
PrimaryKey |
getPrimaryKey()
Get the primary key definition for this table spec.
|
String |
getQualifiedName(Dialect dialect) |
Schema |
getSchema()
Obtain a reference to the schema to which this table specification belongs.
|
int |
getTableNumber()
Get the table number.
|
Iterable<UniqueKey> |
getUniqueKeys() |
Column |
locateOrCreateColumn(String name)
Factory method for creating a
Column associated with this container. |
DerivedValue |
locateOrCreateDerivedValue(String fragment)
Factory method for creating a
DerivedValue associated with this container. |
getLoggableValueQualifier, values
toLoggableString
Schema getSchema()
int getTableNumber()
PrimaryKey getPrimaryKey()
Column locateOrCreateColumn(String name)
Column
associated with this container.name
- The column nameTuple createTuple(String name)
Column
associated with this container.name
- The column nameDerivedValue locateOrCreateDerivedValue(String fragment)
DerivedValue
associated with this container.fragment
- The value expressionIterable<ForeignKey> getForeignKeys()
ForeignKey createForeignKey(TableSpecification targetTable, String name)
Iterable<CheckConstraint> getCheckConstraints()
void addCheckConstraint(String checkCondition)
void addComment(String comment)
Copyright © 2001-2015 Red Hat, Inc. All Rights Reserved.