public abstract class AbstractTableSpecification extends Object implements TableSpecification
ValueContainer contract centralizing commonality
between modeling tables, views and inline views.| Constructor and Description |
|---|
AbstractTableSpecification() |
| Modifier and Type | Method and Description |
|---|---|
ForeignKey |
createForeignKey(TableSpecification targetTable,
String name) |
Tuple |
createTuple(String name)
Factory method for creating a
Column associated with this container. |
Iterable<ForeignKey> |
getForeignKeys() |
PrimaryKey |
getPrimaryKey()
Get the primary key definition for this table spec.
|
int |
getTableNumber()
Get the table number.
|
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. |
Iterable<SimpleValue> |
values()
Obtain an iterator over this containers current set of value definitions.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddCheckConstraint, addComment, getCheckConstraints, getComments, getIndexes, getOrCreateIndex, getOrCreateUniqueKey, getQualifiedName, getSchema, getUniqueKeysgetLoggableValueQualifiertoLoggableStringpublic int getTableNumber()
TableSpecificationgetTableNumber in interface TableSpecificationpublic Iterable<SimpleValue> values()
ValueContainervalues in interface ValueContainerpublic Column locateOrCreateColumn(String name)
TableSpecificationColumn associated with this container.locateOrCreateColumn in interface TableSpecificationname - The column namepublic DerivedValue locateOrCreateDerivedValue(String fragment)
TableSpecificationDerivedValue associated with this container.locateOrCreateDerivedValue in interface TableSpecificationfragment - The value expressionpublic Tuple createTuple(String name)
TableSpecificationColumn associated with this container.createTuple in interface TableSpecificationname - The column namepublic Iterable<ForeignKey> getForeignKeys()
getForeignKeys in interface TableSpecificationpublic ForeignKey createForeignKey(TableSpecification targetTable, String name)
createForeignKey in interface TableSpecificationpublic PrimaryKey getPrimaryKey()
TableSpecificationgetPrimaryKey in interface TableSpecificationCopyright © 2001-2015 Red Hat, Inc. All Rights Reserved.