Package org.hibernate.metamodel.mapping
Interface BasicValuedMapping
-
- All Superinterfaces:
Bindable,JavaTypedExpressible,JdbcMappingContainer,MappingModelExpressible,SqlExpressible,ValueMapping
- All Known Subinterfaces:
AdjustableBasicType<J>,BasicEntityIdentifierMapping,BasicPluralType<C,E>,BasicType<T>,BasicValuedModelPart,CollectionIdentifierDescriptor,ConvertedBasicType<J>,DiscriminatorMapping,DiscriminatorType<O>,EntityDiscriminatorMapping,EntityVersionMapping
- All Known Implementing Classes:
AbstractDiscriminatorMapping,AbstractSingleColumnStandardBasicType,AbstractStandardBasicType,AnonymousTupleBasicEntityIdentifierMapping,AnonymousTupleBasicValuedModelPart,AnyDiscriminatorPart,AnyKeyPart,BasicArrayType,BasicAttributeMapping,BasicCollectionType,BasicEntityIdentifierMappingImpl,BasicTypeImpl,BasicValuedCollectionPart,CaseStatementDiscriminatorMappingImpl,CollectionIdentifierDescriptorImpl,ConvertedBasicArrayType,ConvertedBasicCollectionType,ConvertedBasicTypeImpl,CustomMutabilityConvertedBasicTypeImpl,CustomType,DiscriminatorType,DiscriminatorTypeImpl,EntityVersionMappingImpl,ExplicitColumnDiscriminatorMappingImpl,ImmutableNamedBasicTypeImpl,JavaObjectType,NamedBasicTypeImpl,NullType,SerializableToBlobType,SerializableType,SimpleForeignKeyDescriptor,StandardBasicTypeTemplate
public interface BasicValuedMapping extends ValueMapping, SqlExpressible
-
-
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 Deprecated Methods Modifier and Type Method Description default voidaddToCacheKey(MutableCacheKeyBuilder cacheKey, Object value, SharedSessionContractImplementor session)Add to the MutableCacheKey the values obtained disassembling the value and the hasCode generated from the disassembled value.default Objectdisassemble(Object value, SharedSessionContractImplementor session)JdbcMappinggetJdbcMapping()Anything that is expressible at the SQL AST level would be of basic type.default JdbcMappinggetJdbcMapping(int index)default List<JdbcMapping>getJdbcMappings()Deprecated, for removal: This API element is subject to removal in a future version.default intgetJdbcTypeCount()The number of JDBC mappingsdefault JdbcMappinggetSingleJdbcMapping()-
Methods inherited from interface org.hibernate.metamodel.mapping.Bindable
forEachDisassembledJdbcValue, forEachDisassembledJdbcValue, forEachDisassembledJdbcValue, forEachDisassembledJdbcValue, forEachJdbcType, forEachJdbcValue, forEachJdbcValue, forEachJdbcValue, forEachJdbcValue
-
Methods inherited from interface org.hibernate.metamodel.mapping.JdbcMappingContainer
forEachJdbcType
-
Methods inherited from interface org.hibernate.metamodel.mapping.ValueMapping
getExpressibleJavaType, getMappedType, treatAs
-
-
-
-
Method Detail
-
getJdbcTypeCount
default int getJdbcTypeCount()
Description copied from interface:BindableThe number of JDBC mappings- Specified by:
getJdbcTypeCountin interfaceBindable- Specified by:
getJdbcTypeCountin interfaceJdbcMappingContainer
-
getJdbcMappings
@Deprecated(forRemoval=true) default List<JdbcMapping> getJdbcMappings()
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:BindableThe list of JDBC mappings- Specified by:
getJdbcMappingsin interfaceBindable- Specified by:
getJdbcMappingsin interfaceJdbcMappingContainer
-
getJdbcMapping
default JdbcMapping getJdbcMapping(int index)
- Specified by:
getJdbcMappingin interfaceJdbcMappingContainer- Specified by:
getJdbcMappingin interfaceSqlExpressible
-
getSingleJdbcMapping
default JdbcMapping getSingleJdbcMapping()
- Specified by:
getSingleJdbcMappingin interfaceJdbcMappingContainer
-
getJdbcMapping
JdbcMapping getJdbcMapping()
Description copied from interface:SqlExpressibleAnything that is expressible at the SQL AST level would be of basic type.- Specified by:
getJdbcMappingin interfaceSqlExpressible
-
disassemble
default Object disassemble(Object value, SharedSessionContractImplementor session)
- Specified by:
disassemblein interfaceBindable- See Also:
As an example, consider the following domain model: ````
-
addToCacheKey
default void addToCacheKey(MutableCacheKeyBuilder cacheKey, Object value, SharedSessionContractImplementor session)
Description copied from interface:BindableAdd to the MutableCacheKey the values obtained disassembling the value and the hasCode generated from the disassembled value.- Specified by:
addToCacheKeyin interfaceBindable- Specified by:
addToCacheKeyin interfaceJavaTypedExpressible- Parameters:
cacheKey- the MutableCacheKey used to add the disassembled value and the hashCodevalue- the value to disassemblesession- the SharedSessionContractImplementor
-
-