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 modelJdbcMapping
getJdbcMapping()
JdbcType
getJdbcType()
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 representationsString
toString()
-
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.Resolution
The BasicType resolved using the pre-6.0 rules. This is temporarily needed because of the split in extracting / binding- Specified by:
getLegacyResolvedBasicType
in interfaceBasicValue.Resolution<J>
-
getDomainJavaType
public JavaType<J> getDomainJavaType()
Description copied from interface:BasicValue.Resolution
The JavaType for the value as part of the domain model- Specified by:
getDomainJavaType
in interfaceBasicValue.Resolution<J>
-
getRelationalJavaType
public JavaType<?> getRelationalJavaType()
Description copied from interface:BasicValue.Resolution
The JavaType for the relational value as part of the relational model (its JDBC representation)- Specified by:
getRelationalJavaType
in interfaceBasicValue.Resolution<J>
-
getJdbcType
public JdbcType getJdbcType()
Description copied from interface:BasicValue.Resolution
The JavaType for the relational value as part of the relational model (its JDBC representation)- Specified by:
getJdbcType
in interfaceBasicValue.Resolution<J>
-
getJdbcMapping
public JdbcMapping getJdbcMapping()
- Specified by:
getJdbcMapping
in interfaceBasicValue.Resolution<J>
-
getValueConverter
public JpaAttributeConverter<J,?> getValueConverter()
Description copied from interface:BasicValue.Resolution
Converter, if any, to convert values between the domain and relational JavaType representations- Specified by:
getValueConverter
in interfaceBasicValue.Resolution<J>
-
getMutabilityPlan
public MutabilityPlan<J> getMutabilityPlan()
Description copied from interface:BasicValue.Resolution
The resolved MutabilityPlan- Specified by:
getMutabilityPlan
in interfaceBasicValue.Resolution<J>
-
-