Package org.hibernate.metamodel.mapping
Interface SelectableMappings
- All Known Subinterfaces:
AggregatedIdentifierMapping,AttributeMapping,BasicEntityIdentifierMapping,BasicValuedModelPart,CollectionIdentifierDescriptor,CollectionPart,CompositeIdentifierMapping,DiscriminatorMapping,EmbeddableDiscriminatorMapping,EmbeddableMappingType,EmbeddableValuedFetchable,EmbeddableValuedModelPart,EntityCollectionPart,EntityDiscriminatorMapping,EntityIdentifierMapping,EntityRowIdMapping,EntityVersionMapping,ForeignKeyDescriptor,NonAggregatedIdentifierMapping,NonAggregatedIdentifierMapping.IdentifierValueMapper,OwnedValuedModelPart,PluralAttributeMapping,SingleAttributeIdentifierMapping,SingularAttributeMapping,ValuedModelPart
- All Known Implementing Classes:
AbstractAttributeMapping,AbstractCompositeIdentifierMapping,AbstractDiscriminatorMapping,AbstractEmbeddableMapping,AbstractEntityCollectionPart,AbstractSingularAttributeMapping,AbstractStateArrayContributorMapping,AnonymousTupleBasicEntityIdentifierMapping,AnonymousTupleBasicValuedModelPart,AnonymousTupleEmbeddableValuedModelPart,AnonymousTupleEmbeddedEntityIdentifierMapping,AnonymousTupleEntityValuedModelPart,AnonymousTupleNonAggregatedEntityIdentifierMapping,AnyDiscriminatorPart,AnyKeyPart,BasicAttributeMapping,BasicEntityIdentifierMappingImpl,BasicValuedCollectionPart,CaseStatementDiscriminatorMappingImpl,CollectionIdentifierDescriptorImpl,DiscriminatedAssociationAttributeMapping,DiscriminatedCollectionPart,EmbeddableMappingTypeImpl,EmbeddedAttributeMapping,EmbeddedCollectionPart,EmbeddedForeignKeyDescriptor,EmbeddedIdentifierMappingImpl,EntityRowIdMappingImpl,EntityTableMapping.KeyMapping,EntityVersionMappingImpl,ExplicitColumnDiscriminatorMappingImpl,IdClassEmbeddable,InverseNonAggregatedIdentifierMapping,ManyToManyCollectionPart,NonAggregatedIdentifierMappingImpl,OneToManyCollectionPart,PluralAttributeMappingImpl,SelectableMappingsImpl,SimpleForeignKeyDescriptor,ToOneAttributeMapping,VirtualEmbeddedAttributeMapping,VirtualIdEmbeddable
public interface SelectableMappings
A container for multiple selectable (column, formula) mappings.
-
Method Summary
Modifier and TypeMethodDescriptionintforEachSelectable(int offset, SelectableConsumer consumer) Visit each contained selectable mapping.default intforEachSelectable(SelectableConsumer consumer) Same asforEachSelectable(int, SelectableConsumer), with an implicit offset of `0`intThe 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`
-