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,org.hibernate.metamodel.mapping.internal.SingleAttributeIdentifierMapping,SingularAttributeMapping
- All Known Implementing Classes:
AbstractSingleColumnStandardBasicType,AbstractStandardBasicType,AnonymousTupleBasicEntityIdentifierMapping,AnonymousTupleBasicValuedModelPart,AnonymousTupleEmbeddedEntityIdentifierMapping,AnonymousTupleNonAggregatedEntityIdentifierMapping,BasicArrayType,BasicCollectionType,CustomType,DbTimestampType,DiscriminatorType,JavaObjectType,NullType,SerializableToBlobType,SerializableType,StandardBasicTypeTemplate
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.- "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.
-
-