Package org.hibernate.metamodel.mapping
Interface ValueMapping
-
- All Superinterfaces:
Bindable,JavaTypedExpressible,JdbcMappingContainer,MappingModelExpressible
- All Known Subinterfaces:
AdjustableBasicType<J>,AttributeMapping,BasicEntityIdentifierMapping,BasicPluralType<C,E>,BasicType<T>,BasicValuedMapping,BasicValuedModelPart,CollectionIdentifierDescriptor,CompositeIdentifierMapping,ConvertedBasicType<J>,EntityDiscriminatorMapping,EntityIdentifierMapping,EntityVersionMapping,ForeignKeyDescriptor,NonAggregatedIdentifierMapping,PluralAttributeMapping,SingleAttributeIdentifierMapping,SingularAttributeMapping
- All Known Implementing Classes:
AbstractAttributeMapping,AbstractCompositeIdentifierMapping,AbstractDiscriminatorMapping,AbstractSingleColumnStandardBasicType,AbstractSingularAttributeMapping,AbstractStandardBasicType,AbstractStateArrayContributorMapping,AnonymousTupleBasicEntityIdentifierMapping,AnonymousTupleBasicValuedModelPart,AnonymousTupleEmbeddedEntityIdentifierMapping,AnonymousTupleNonAggregatedEntityIdentifierMapping,AnyDiscriminatorPart,AnyKeyPart,BasicArrayType,BasicAttributeMapping,BasicCollectionType,BasicEntityIdentifierMappingImpl,BasicTypeImpl,BasicValuedCollectionPart,CaseStatementDiscriminatorMappingImpl,CollectionIdentifierDescriptorImpl,ConvertedBasicTypeImpl,CustomMutabilityConvertedBasicTypeImpl,CustomType,DbTimestampType,DiscriminatedAssociationAttributeMapping,DiscriminatorType,EmbeddedAttributeMapping,EmbeddedForeignKeyDescriptor,EmbeddedIdentifierMappingImpl,EntityVersionMappingImpl,ExplicitColumnDiscriminatorMappingImpl,ImmutableNamedBasicTypeImpl,InverseNonAggregatedIdentifierMapping,JavaObjectType,NamedBasicTypeImpl,NonAggregatedIdentifierMappingImpl,NullType,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 - e.g. an attribute, an entity identifier, collection elements, etc NOTE : this does not include EntityPersister, which however is a ValueMappingContainer Used in generation of SQL AST
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.hibernate.metamodel.mapping.Bindable
Bindable.JdbcValuesConsumer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default JavaType<?>getExpressibleJavaType()MappingTypegetMappedType()Descriptor for the type of this mappingdefault <X> XtreatAs(Class<X> targetType)return null; Treat operation.-
Methods inherited from interface org.hibernate.metamodel.mapping.Bindable
disassemble, forEachDisassembledJdbcValue, forEachDisassembledJdbcValue, forEachJdbcType, forEachJdbcValue, forEachJdbcValue, getJdbcMappings, getJdbcTypeCount
-
Methods inherited from interface org.hibernate.metamodel.mapping.JdbcMappingContainer
forEachJdbcType
-
-
-
-
Method Detail
-
getMappedType
MappingType getMappedType()
Descriptor for the type of this mapping
-
getExpressibleJavaType
default JavaType<?> getExpressibleJavaType()
- Specified by:
getExpressibleJavaTypein interfaceJavaTypedExpressible
-
treatAs
default <X> X treatAs(Class<X> targetType)
return null; Treat operation. Asks the ValueMapping to treat itself as the given `targetType`, if it can.
-
-