|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hibernate.metamodel.relational.AbstractTableSpecification
public abstract class AbstractTableSpecification
Convenience base class for implementing the ValueContainer contract centralizing commonality
between modeling tables, views and inline views.
| Constructor Summary | |
|---|---|
AbstractTableSpecification()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.hibernate.metamodel.relational.TableSpecification |
|---|
addCheckConstraint, addComment, getCheckConstraints, getComments, getIndexes, getOrCreateIndex, getOrCreateUniqueKey, getQualifiedName, getSchema, getUniqueKeys |
| Methods inherited from interface org.hibernate.metamodel.relational.ValueContainer |
|---|
getLoggableValueQualifier |
| Methods inherited from interface org.hibernate.metamodel.relational.Loggable |
|---|
toLoggableString |
| Constructor Detail |
|---|
public AbstractTableSpecification()
| Method Detail |
|---|
public int getTableNumber()
TableSpecification
getTableNumber in interface TableSpecificationpublic Iterable<SimpleValue> values()
ValueContainer
values in interface ValueContainerpublic Column locateOrCreateColumn(String name)
TableSpecificationColumn associated with this container.
locateOrCreateColumn in interface TableSpecificationname - The column name
public DerivedValue locateOrCreateDerivedValue(String fragment)
TableSpecificationDerivedValue associated with this container.
locateOrCreateDerivedValue in interface TableSpecificationfragment - The value expression
public Tuple createTuple(String name)
TableSpecificationColumn associated with this container.
createTuple in interface TableSpecificationname - The column name
public Iterable<ForeignKey> getForeignKeys()
getForeignKeys in interface TableSpecification
public ForeignKey createForeignKey(TableSpecification targetTable,
String name)
createForeignKey in interface TableSpecificationpublic PrimaryKey getPrimaryKey()
TableSpecification
getPrimaryKey in interface TableSpecification
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||