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, wait
addCheckConstraint, addComment, getCheckConstraints, getComments, getIndexes, getOrCreateIndex, getOrCreateUniqueKey, getQualifiedName, getSchema, getUniqueKeys
getLoggableValueQualifier
toLoggableString
public int getTableNumber()
TableSpecification
getTableNumber
in interface TableSpecification
public Iterable<SimpleValue> values()
ValueContainer
values
in interface ValueContainer
public Column locateOrCreateColumn(String name)
TableSpecification
Column
associated with this container.locateOrCreateColumn
in interface TableSpecification
name
- The column namepublic DerivedValue locateOrCreateDerivedValue(String fragment)
TableSpecification
DerivedValue
associated with this container.locateOrCreateDerivedValue
in interface TableSpecification
fragment
- The value expressionpublic Tuple createTuple(String name)
TableSpecification
Column
associated with this container.createTuple
in interface TableSpecification
name
- The column namepublic Iterable<ForeignKey> getForeignKeys()
getForeignKeys
in interface TableSpecification
public ForeignKey createForeignKey(TableSpecification targetTable, String name)
createForeignKey
in interface TableSpecification
public PrimaryKey getPrimaryKey()
TableSpecification
getPrimaryKey
in interface TableSpecification
Copyright © 2018 JBoss by Red Hat. All rights reserved.