|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 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 name
public DerivedValue locateOrCreateDerivedValue(String fragment)
TableSpecification
DerivedValue
associated with this container.
locateOrCreateDerivedValue
in interface TableSpecification
fragment
- The value expression
public Tuple createTuple(String name)
TableSpecification
Column
associated with this container.
createTuple
in interface TableSpecification
name
- The column name
public 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |