Top Description Inners Methods
org.hibernate.metamodel.mapping

public Interface TableDetails

Known Direct Subinterfaces
org.hibernate.sql.model.TableMapping
Imports
java.util.List

Details about a table
Author
Steve Ebersole

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static interface
TableDetails.KeyColumn

Details about a column within the key group

public static interface
public static interface
TableDetails.KeyDetails

Details about the primary key of a table

Method Summary

Modifier and TypeMethod and Description
public TableDetails.KeyDetails
getKeyDetails()

Details about the primary-key of this table

public String
getTableName()

The name of the table

public boolean
isIdentifierTable()

Whether this table is the root for a given ModelPartContainer.

Method Detail

getKeyDetailsback to summary
public TableDetails.KeyDetails getKeyDetails()

Details about the primary-key of this table

getTableNameback to summary
public String getTableName()

The name of the table

isIdentifierTableback to summary
public boolean isIdentifierTable()

Whether this table is the root for a given ModelPartContainer.

Only relevant for entity-mappings where this indicates whether this table holds the entity's identifier.

org.hibernate.metamodel.mapping back to summary

public Interface TableDetails.KeyColumn

extends SelectableMapping
Known Direct Implementers
org.hibernate.persister.entity.mutation.EntityTableMapping.KeyColumn

Details about a column within the key group

Method Summary

Modifier and TypeMethod and Description
public String
getColumnName()

The name of the column

public JdbcMapping
getJdbcMapping()

Redeclares org.hibernate.metamodel.mapping.SqlTypedMapping.getJdbcMapping.

Describes the mapping between object and relational for this column
Inherited from org.hibernate.metamodel.mapping.SelectableMapping:
getContainingTableExpressiongetCustomReadExpressiongetCustomWriteExpressiongetSelectableNamegetSelectablePathgetSelectionExpressiongetWriteExpressionisFormulaisInsertableisNullableisPartitionedisUpdateable

Method Detail

getColumnNameback to summary
public String getColumnName()

The name of the column

getJdbcMappingback to summary
public JdbcMapping getJdbcMapping()

Redeclares org.hibernate.metamodel.mapping.SqlTypedMapping.getJdbcMapping.

Describes the mapping between object and relational for this column

org.hibernate.metamodel.mapping back to summary

public Interface TableDetails.KeyColumnConsumer

Annotations
@FunctionalInterface

Method Summary

Modifier and TypeMethod and Description
public void
consume(int
The position of the column within the key group
position
,
TableDetails.KeyColumn
The column details
column
)

Callback a particular key column

Method Detail

consumeback to summary
public void consume(int position, TableDetails.KeyColumn column)

Callback a particular key column

Parameters
position:int

The position of the column within the key group

column:TableDetails.KeyColumn

The column details

org.hibernate.metamodel.mapping back to summary

public Interface TableDetails.KeyDetails

Known Direct Implementers
org.hibernate.persister.entity.mutation.EntityTableMapping.KeyMapping

Details about the primary key of a table

Method Summary

Modifier and TypeMethod and Description
public void
forEachKeyColumn(TableDetails.KeyColumnConsumer consumer)

Visit each key column

public int
getColumnCount()

Number of columns

public TableDetails.KeyColumn
getKeyColumn(int position)

Get a key column by relative position

public List<? extends TableDetails.KeyColumn>
getKeyColumns()

Group of columns defined on the primary key

Method Detail

forEachKeyColumnback to summary
public void forEachKeyColumn(TableDetails.KeyColumnConsumer consumer)

Visit each key column

getColumnCountback to summary
public int getColumnCount()

Number of columns

getKeyColumnback to summary
public TableDetails.KeyColumn getKeyColumn(int position)

Get a key column by relative position

getKeyColumnsback to summary
public List<? extends TableDetails.KeyColumn> getKeyColumns()

Group of columns defined on the primary key