Top Description Methods
org.hibernate.metamodel.mapping

public Interface SelectableMappings

Known Direct Subinterfaces
org.hibernate.metamodel.mapping.ValuedModelPart, org.hibernate.metamodel.mapping.EmbeddableMappingType
Known Direct Implementers
org.hibernate.metamodel.mapping.internal.EmbeddableMappingTypeImpl, org.hibernate.metamodel.mapping.internal.SelectableMappingsImpl, org.hibernate.persister.entity.mutation.EntityTableMapping.KeyMapping

A container for multiple selectable (column, formula) mappings.
Author
Christian Beikov

Method Summary

Modifier and TypeMethod and Description
public int
forEachSelectable(int offset, SelectableConsumer consumer)

Visit each contained selectable mapping.

public default int
forEachSelectable(SelectableConsumer consumer)

Same as forEachSelectable(int, SelectableConsumer), with an implicit offset of `0`

public int
getJdbcTypeCount()

The number of selectables

public SelectableMapping
getSelectable(int columnIndex)

Get the selectable at the given position

Method Detail

forEachSelectableback to summary
public int forEachSelectable(int offset, SelectableConsumer consumer)

Visit each contained selectable mapping. As the selectables are iterated, we call `SelectionConsumer` passing along `offset` + our current iteration index. The return is the number of selectables we directly contain

See Also
SelectableConsumer#accept(int, SelectableMapping)
forEachSelectableback to summary
public default int forEachSelectable(SelectableConsumer consumer)

Same as forEachSelectable(int, SelectableConsumer), with an implicit offset of `0`

getJdbcTypeCountback to summary
public int getJdbcTypeCount()

The number of selectables

getSelectableback to summary
public SelectableMapping getSelectable(int columnIndex)

Get the selectable at the given position