Class NamedConverterResolution<J>
- java.lang.Object
-
- org.hibernate.boot.model.process.internal.NamedConverterResolution<J>
-
- All Implemented Interfaces:
BasicValue.Resolution<J>
public class NamedConverterResolution<J> extends Object implements BasicValue.Resolution<J>
-
-
Constructor Summary
Constructors Constructor Description NamedConverterResolution(JavaType<J> domainJtd, JavaType<?> relationalJtd, JdbcType jdbcType, JpaAttributeConverter<J,?> valueConverter, MutabilityPlan<J> mutabilityPlan, TypeConfiguration typeConfiguration)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T> NamedConverterResolution<T>from(String name, Function<TypeConfiguration,BasicJavaType> explicitJtdAccess, Function<TypeConfiguration,JdbcType> explicitStdAccess, Function<TypeConfiguration,MutabilityPlan> explicitMutabilityPlanAccess, JdbcTypeIndicators sqlTypeIndicators, JpaAttributeConverterCreationContext converterCreationContext, MetadataBuildingContext context)static <T> NamedConverterResolution<T>from(ConverterDescriptor converterDescriptor, Function<TypeConfiguration,BasicJavaType> explicitJtdAccess, Function<TypeConfiguration,JdbcType> explicitStdAccess, Function<TypeConfiguration,MutabilityPlan> explicitMutabilityPlanAccess, JdbcTypeIndicators sqlTypeIndicators, JpaAttributeConverterCreationContext converterCreationContext, MetadataBuildingContext context)JavaType<J>getDomainJavaType()The JavaType for the value as part of the domain modelJdbcMappinggetJdbcMapping()JdbcTypegetJdbcType()The JavaType for the relational value as part of the relational model (its JDBC representation)BasicType<J>getLegacyResolvedBasicType()The BasicType resolved using the pre-6.0 rules.MutabilityPlan<J>getMutabilityPlan()The resolved MutabilityPlanJavaType<?>getRelationalJavaType()The JavaType for the relational value as part of the relational model (its JDBC representation)JpaAttributeConverter<J,?>getValueConverter()Converter, if any, to convert values between the domain and relational JavaType representationsStringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.hibernate.mapping.BasicValue.Resolution
getCombinedTypeParameters
-
-
-
-
Constructor Detail
-
NamedConverterResolution
public NamedConverterResolution(JavaType<J> domainJtd, JavaType<?> relationalJtd, JdbcType jdbcType, JpaAttributeConverter<J,?> valueConverter, MutabilityPlan<J> mutabilityPlan, TypeConfiguration typeConfiguration)
-
-
Method Detail
-
from
public static <T> NamedConverterResolution<T> from(ConverterDescriptor converterDescriptor, Function<TypeConfiguration,BasicJavaType> explicitJtdAccess, Function<TypeConfiguration,JdbcType> explicitStdAccess, Function<TypeConfiguration,MutabilityPlan> explicitMutabilityPlanAccess, JdbcTypeIndicators sqlTypeIndicators, JpaAttributeConverterCreationContext converterCreationContext, MetadataBuildingContext context)
-
from
public static <T> NamedConverterResolution<T> from(String name, Function<TypeConfiguration,BasicJavaType> explicitJtdAccess, Function<TypeConfiguration,JdbcType> explicitStdAccess, Function<TypeConfiguration,MutabilityPlan> explicitMutabilityPlanAccess, JdbcTypeIndicators sqlTypeIndicators, JpaAttributeConverterCreationContext converterCreationContext, MetadataBuildingContext context)
-
getLegacyResolvedBasicType
public BasicType<J> getLegacyResolvedBasicType()
Description copied from interface:BasicValue.ResolutionThe BasicType resolved using the pre-6.0 rules. This is temporarily needed because of the split in extracting / binding- Specified by:
getLegacyResolvedBasicTypein interfaceBasicValue.Resolution<J>
-
getDomainJavaType
public JavaType<J> getDomainJavaType()
Description copied from interface:BasicValue.ResolutionThe JavaType for the value as part of the domain model- Specified by:
getDomainJavaTypein interfaceBasicValue.Resolution<J>
-
getRelationalJavaType
public JavaType<?> getRelationalJavaType()
Description copied from interface:BasicValue.ResolutionThe JavaType for the relational value as part of the relational model (its JDBC representation)- Specified by:
getRelationalJavaTypein interfaceBasicValue.Resolution<J>
-
getJdbcType
public JdbcType getJdbcType()
Description copied from interface:BasicValue.ResolutionThe JavaType for the relational value as part of the relational model (its JDBC representation)- Specified by:
getJdbcTypein interfaceBasicValue.Resolution<J>
-
getJdbcMapping
public JdbcMapping getJdbcMapping()
- Specified by:
getJdbcMappingin interfaceBasicValue.Resolution<J>
-
getValueConverter
public JpaAttributeConverter<J,?> getValueConverter()
Description copied from interface:BasicValue.ResolutionConverter, if any, to convert values between the domain and relational JavaType representations- Specified by:
getValueConverterin interfaceBasicValue.Resolution<J>
-
getMutabilityPlan
public MutabilityPlan<J> getMutabilityPlan()
Description copied from interface:BasicValue.ResolutionThe resolved MutabilityPlan- Specified by:
getMutabilityPlanin interfaceBasicValue.Resolution<J>
-
-