Package org.hibernate.metamodel.mapping
Interface ValueMapping
-
- All Superinterfaces:
Bindable
,JavaTypedExpressible
,JdbcMappingContainer
,MappingModelExpressible
- All Known Subinterfaces:
AdjustableBasicType<J>
,AggregatedIdentifierMapping
,AttributeMapping
,BasicEntityIdentifierMapping
,BasicPluralType<C,E>
,BasicType<T>
,BasicValuedMapping
,BasicValuedModelPart
,CollectionIdentifierDescriptor
,CollectionPart
,CompositeIdentifierMapping
,ConvertedBasicType<J>
,DiscriminatorMapping
,DiscriminatorType<O>
,EmbeddableValuedFetchable
,EmbeddableValuedModelPart
,EntityCollectionPart
,EntityDiscriminatorMapping
,EntityIdentifierMapping
,EntityVersionMapping
,ForeignKeyDescriptor
,NonAggregatedIdentifierMapping
,OwnedValuedModelPart
,PluralAttributeMapping
,SingleAttributeIdentifierMapping
,SingularAttributeMapping
,ValuedModelPart
- All Known Implementing Classes:
AbstractAttributeMapping
,AbstractCompositeIdentifierMapping
,AbstractDiscriminatorMapping
,AbstractEntityCollectionPart
,AbstractSingleColumnStandardBasicType
,AbstractSingularAttributeMapping
,AbstractStandardBasicType
,AbstractStateArrayContributorMapping
,AnonymousTupleBasicEntityIdentifierMapping
,AnonymousTupleBasicValuedModelPart
,AnonymousTupleEmbeddableValuedModelPart
,AnonymousTupleEmbeddedEntityIdentifierMapping
,AnonymousTupleEntityValuedModelPart
,AnonymousTupleNonAggregatedEntityIdentifierMapping
,AnyDiscriminatorPart
,AnyKeyPart
,BasicArrayType
,BasicAttributeMapping
,BasicCollectionType
,BasicEntityIdentifierMappingImpl
,BasicTypeImpl
,BasicValuedCollectionPart
,BottomType
,CaseStatementDiscriminatorMappingImpl
,CollectionIdentifierDescriptorImpl
,ConvertedBasicArrayType
,ConvertedBasicCollectionType
,ConvertedBasicTypeImpl
,CustomMutabilityConvertedBasicTypeImpl
,CustomType
,DiscriminatedAssociationAttributeMapping
,DiscriminatedCollectionPart
,DiscriminatorType
,DiscriminatorTypeImpl
,EmbeddedAttributeMapping
,EmbeddedCollectionPart
,EmbeddedForeignKeyDescriptor
,EmbeddedIdentifierMappingImpl
,EntityVersionMappingImpl
,ExplicitColumnDiscriminatorMappingImpl
,ImmutableNamedBasicTypeImpl
,InverseNonAggregatedIdentifierMapping
,JavaObjectType
,ManyToManyCollectionPart
,NamedBasicTypeImpl
,NonAggregatedIdentifierMappingImpl
,NullType
,OneToManyCollectionPart
,PluralAttributeMappingImpl
,SerializableToBlobType
,SerializableType
,SimpleForeignKeyDescriptor
,StandardBasicTypeTemplate
,ToOneAttributeMapping
,VirtualEmbeddedAttributeMapping
public interface ValueMapping extends MappingModelExpressible, JavaTypedExpressible
Describes a mapping related to any part of the app's domain model, for example, an attribute, an entity identifier, collection elements, etc. Used during generation of a SQL AST.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.hibernate.metamodel.mapping.Bindable
Bindable.JdbcValuesBiConsumer<X,Y>, Bindable.JdbcValuesConsumer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default JavaType<?>
getExpressibleJavaType()
MappingType
getMappedType()
Descriptor for the type of this mappingdefault <X> X
treatAs(Class<X> targetType)
Treat operation.-
Methods inherited from interface org.hibernate.metamodel.mapping.Bindable
addToCacheKey, disassemble, forEachDisassembledJdbcValue, forEachDisassembledJdbcValue, forEachDisassembledJdbcValue, forEachDisassembledJdbcValue, forEachJdbcType, forEachJdbcValue, forEachJdbcValue, forEachJdbcValue, forEachJdbcValue, getJdbcTypeCount
-
Methods inherited from interface org.hibernate.type.descriptor.java.JavaTypedExpressible
addToCacheKey
-
Methods inherited from interface org.hibernate.metamodel.mapping.JdbcMappingContainer
forEachJdbcType, getJdbcMapping, getSingleJdbcMapping
-
-
-
-
Method Detail
-
getMappedType
MappingType getMappedType()
Descriptor for the type of this mapping
-
getExpressibleJavaType
default JavaType<?> getExpressibleJavaType()
- Specified by:
getExpressibleJavaType
in interfaceJavaTypedExpressible
-
treatAs
default <X> X treatAs(Class<X> targetType)
Treat operation. Asks the ValueMapping to treat itself as the given `targetType`, if it can.- API Note:
- This is not necessarily limited to things the ValueMapping itself implements.
- Implementation Note:
- This default implementation is however limited to just things the ValueMapping itself implements.
-
-