Package org.hibernate.metamodel.mapping
Interface SelectableMappings
- All Known Subinterfaces:
AggregatedIdentifierMapping
,AttributeMapping
,BasicEntityIdentifierMapping
,BasicValuedModelPart
,CollectionIdentifierDescriptor
,CollectionPart
,CompositeIdentifierMapping
,DiscriminatorMapping
,EmbeddableDiscriminatorMapping
,EmbeddableMappingType
,EmbeddableValuedFetchable
,EmbeddableValuedModelPart
,EntityDiscriminatorMapping
,EntityIdentifierMapping
,EntityRowIdMapping
,EntityTableMapping.KeyMapping
,EntityVersionMapping
,ForeignKeyDescriptor
,NonAggregatedIdentifierMapping
,NonAggregatedIdentifierMapping.IdentifierValueMapper
,OwnedValuedModelPart
,PluralAttributeMapping
,org.hibernate.metamodel.mapping.internal.SingleAttributeIdentifierMapping
,SingularAttributeMapping
,TableDetails.KeyDetails
,ValuedModelPart
- All Known Implementing Classes:
EntityTableMapping.AbstractKeyMapping
,EntityTableMapping.CompositeKeyMapping
,EntityTableMapping.SimpleKeyMapping
public interface SelectableMappings
A container for multiple selectable (column, formula) mappings.
-
Method Summary
Modifier and TypeMethodDescriptionint
forEachSelectable
(int offset, SelectableConsumer consumer) Visit each contained selectable mapping.default int
forEachSelectable
(SelectableConsumer consumer) Same asforEachSelectable(int, SelectableConsumer)
, with an implicit offset of `0`int
The number of selectablesgetSelectable
(int columnIndex) Get the selectable at the given position
-
Method Details
-
getJdbcTypeCount
int getJdbcTypeCount()The number of selectables -
getSelectable
Get the selectable at the given position -
forEachSelectable
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:
-
forEachSelectable
Same asforEachSelectable(int, SelectableConsumer)
, with an implicit offset of `0`
-