Package org.hibernate.metamodel.mapping
Interface SelectableMappings
-
- All Known Subinterfaces:
AggregatedIdentifierMapping,AttributeMapping,BasicEntityIdentifierMapping,BasicValuedModelPart,CollectionIdentifierDescriptor,CollectionPart,CompositeIdentifierMapping,DiscriminatorMapping,EmbeddableMappingType,EmbeddableValuedFetchable,EmbeddableValuedModelPart,EntityCollectionPart,EntityDiscriminatorMapping,EntityIdentifierMapping,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,EntityTableMapping.KeyMapping,EntityVersionMappingImpl,ExplicitColumnDiscriminatorMappingImpl,IdClassEmbeddable,InverseNonAggregatedIdentifierMapping,ManyToManyCollectionPart,NonAggregatedIdentifierMappingImpl,OneToManyCollectionPart,PluralAttributeMappingImpl,SelectableMappingsImpl,SimpleForeignKeyDescriptor,ToOneAttributeMapping,VirtualEmbeddedAttributeMapping,VirtualIdEmbeddable
public interface SelectableMappingsA container for multiple selectable (column, formula) mappings.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description intforEachSelectable(int offset, SelectableConsumer consumer)Visit each contained selectable mapping.default intforEachSelectable(SelectableConsumer consumer)Same asforEachSelectable(int, SelectableConsumer), with an implicit offset of `0`default List<JdbcMapping>getJdbcMappings()Deprecated, for removal: This API element is subject to removal in a future version.intgetJdbcTypeCount()The number of selectablesSelectableMappinggetSelectable(int columnIndex)Get the selectable at the given position
-
-
-
Method Detail
-
getJdbcTypeCount
int getJdbcTypeCount()
The number of selectables
-
getSelectable
SelectableMapping getSelectable(int columnIndex)
Get the selectable at the given position
-
forEachSelectable
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
-
forEachSelectable
default int forEachSelectable(SelectableConsumer consumer)
Same asforEachSelectable(int, SelectableConsumer), with an implicit offset of `0`
-
getJdbcMappings
@Deprecated(forRemoval=true) default List<JdbcMapping> getJdbcMappings()
Deprecated, for removal: This API element is subject to removal in a future version.Obtain the JdbcMappings for the underlying selectable mappings- See Also:
SqlTypedMapping.getJdbcMapping()
-
-