Top Fields Constructors Methods
org.hibernate.boot.model.process.internal

public Class NamedConverterResolution<J>

extends Object
implements BasicValue.Resolution<J>
Class Inheritance
All Implemented Interfaces
org.hibernate.mapping.BasicValue.Resolution
Imports
java.util.Collection, .Map, java.util.function.Function, org.hibernate.annotations.Immutable, org.hibernate.boot.model.convert.internal.ClassBasedConverterDescriptor, org.hibernate.boot.model.convert.spi.ConverterDescriptor, .JpaAttributeConverterCreationContext, org.hibernate.boot.registry.classloading.spi.ClassLoaderService, org.hibernate.boot.spi.MetadataBuildingContext, org.hibernate.mapping.BasicValue, org.hibernate.metamodel.mapping.JdbcMapping, org.hibernate.type.BasicType, org.hibernate.type.descriptor.converter.internal.AttributeConverterMutabilityPlanImpl, org.hibernate.type.descriptor.converter.spi.JpaAttributeConverter, org.hibernate.type.descriptor.java.BasicJavaType, .ImmutableMutabilityPlan, .JavaType, .MutabilityPlan, org.hibernate.type.descriptor.jdbc.JdbcType, .JdbcTypeIndicators, org.hibernate.type.internal.CustomMutabilityConvertedBasicTypeImpl, org.hibernate.type.spi.TypeConfiguration

Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private final JavaType<J>
private final JdbcMapping
private final JdbcType
private final BasicType<J>
private final MutabilityPlan<J>
private final JavaType<?>
private final JpaAttributeConverter<J, ?>

Constructor Summary

AccessConstructor and Description
public
NamedConverterResolution(JavaType<J> domainJtd, JavaType<?> relationalJtd, JdbcType jdbcType, JpaAttributeConverter<J, ?> valueConverter, MutabilityPlan<J> mutabilityPlan, TypeConfiguration typeConfiguration)

Method Summary

Modifier and TypeMethod and Description
private static <T> JpaAttributeConverter<T, ?>
converter(JpaAttributeConverterCreationContext converterCreationContext, ConverterDescriptor converterDescriptor)

private static <T> MutabilityPlan<T>
determineMutabilityPlan(Function<TypeConfiguration, MutabilityPlan<T>> explicitMutabilityPlanAccess, TypeConfiguration typeConfiguration, JpaAttributeConverter<T, ?> converter, JavaType<T> domainJtd)

public static <T> NamedConverterResolution<T>
from(ConverterDescriptor converterDescriptor, Function<TypeConfiguration, BasicJavaType<T>> explicitJtdAccess, Function<TypeConfiguration, JdbcType> explicitStdAccess, Function<TypeConfiguration, MutabilityPlan<T>> explicitMutabilityPlanAccess, JdbcTypeIndicators sqlTypeIndicators, JpaAttributeConverterCreationContext converterCreationContext, MetadataBuildingContext context)

public static <T> NamedConverterResolution<T>
from(String name, Function<TypeConfiguration, BasicJavaType<T>> explicitJtdAccess, Function<TypeConfiguration, JdbcType> explicitStdAccess, Function<TypeConfiguration, MutabilityPlan<T>> explicitMutabilityPlanAccess, JdbcTypeIndicators sqlTypeIndicators, JpaAttributeConverterCreationContext converterCreationContext, MetadataBuildingContext context)

private static <T> NamedConverterResolution<T>
fromInternal(Function<TypeConfiguration, BasicJavaType<T>> explicitJtdAccess, Function<TypeConfiguration, JdbcType> explicitStdAccess, Function<TypeConfiguration, MutabilityPlan<T>> explicitMutabilityPlanAccess, JpaAttributeConverter<T, ?> converter, JdbcTypeIndicators sqlTypeIndicators, MetadataBuildingContext context)

public JavaType<J>
getDomainJavaType()

Implements org.hibernate.mapping.BasicValue.Resolution.getDomainJavaType.

The JavaType for the value as part of the domain model
public JdbcMapping
public JdbcType
getJdbcType()

Implements org.hibernate.mapping.BasicValue.Resolution.getJdbcType.

The JavaType for the relational value as part of the relational model (its JDBC representation)
public BasicType<J>
public MutabilityPlan<J>
public JavaType<?>
getRelationalJavaType()

Implements org.hibernate.mapping.BasicValue.Resolution.getRelationalJavaType.

The JavaType for the relational value as part of the relational model (its JDBC representation)
public JpaAttributeConverter<J, ?>
getValueConverter()

Implements org.hibernate.mapping.BasicValue.Resolution.getValueConverter.

Converter, if any, to convert values between the domain and relational JavaType representations
private static boolean
isCollection(Class<?> javaType)

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

domainJtdback to summary
private final JavaType<J> domainJtd
jdbcMappingback to summary
private final JdbcMapping jdbcMapping
jdbcTypeback to summary
private final JdbcType jdbcType
legacyResolvedTypeback to summary
private final BasicType<J> legacyResolvedType
mutabilityPlanback to summary
private final MutabilityPlan<J> mutabilityPlan
relationalJtdback to summary
private final JavaType<?> relationalJtd
valueConverterback to summary
private final JpaAttributeConverter<J, ?> valueConverter

Constructor Detail

NamedConverterResolutionback to summary
public NamedConverterResolution(JavaType<J> domainJtd, JavaType<?> relationalJtd, JdbcType jdbcType, JpaAttributeConverter<J, ?> valueConverter, MutabilityPlan<J> mutabilityPlan, TypeConfiguration typeConfiguration)

Method Detail

converterback to summary
private static <T> JpaAttributeConverter<T, ?> converter(JpaAttributeConverterCreationContext converterCreationContext, ConverterDescriptor converterDescriptor)
determineMutabilityPlanback to summary
private static <T> MutabilityPlan<T> determineMutabilityPlan(Function<TypeConfiguration, MutabilityPlan<T>> explicitMutabilityPlanAccess, TypeConfiguration typeConfiguration, JpaAttributeConverter<T, ?> converter, JavaType<T> domainJtd)
fromback to summary
public static <T> NamedConverterResolution<T> from(ConverterDescriptor converterDescriptor, Function<TypeConfiguration, BasicJavaType<T>> explicitJtdAccess, Function<TypeConfiguration, JdbcType> explicitStdAccess, Function<TypeConfiguration, MutabilityPlan<T>> explicitMutabilityPlanAccess, JdbcTypeIndicators sqlTypeIndicators, JpaAttributeConverterCreationContext converterCreationContext, MetadataBuildingContext context)
fromback to summary
public static <T> NamedConverterResolution<T> from(String name, Function<TypeConfiguration, BasicJavaType<T>> explicitJtdAccess, Function<TypeConfiguration, JdbcType> explicitStdAccess, Function<TypeConfiguration, MutabilityPlan<T>> explicitMutabilityPlanAccess, JdbcTypeIndicators sqlTypeIndicators, JpaAttributeConverterCreationContext converterCreationContext, MetadataBuildingContext context)
fromInternalback to summary
private static <T> NamedConverterResolution<T> fromInternal(Function<TypeConfiguration, BasicJavaType<T>> explicitJtdAccess, Function<TypeConfiguration, JdbcType> explicitStdAccess, Function<TypeConfiguration, MutabilityPlan<T>> explicitMutabilityPlanAccess, JpaAttributeConverter<T, ?> converter, JdbcTypeIndicators sqlTypeIndicators, MetadataBuildingContext context)
getDomainJavaTypeback to summary
public JavaType<J> getDomainJavaType()

Implements org.hibernate.mapping.BasicValue.Resolution.getDomainJavaType.

Doc from org.hibernate.mapping.BasicValue.Resolution.getDomainJavaType.

The JavaType for the value as part of the domain model

Annotations
@Override
getJdbcMappingback to summary
public JdbcMapping getJdbcMapping()

Implements org.hibernate.mapping.BasicValue.Resolution.getJdbcMapping.

Annotations
@Override
getJdbcTypeback to summary
public JdbcType getJdbcType()

Implements org.hibernate.mapping.BasicValue.Resolution.getJdbcType.

Doc from org.hibernate.mapping.BasicValue.Resolution.getJdbcType.

The JavaType for the relational value as part of the relational model (its JDBC representation)

Annotations
@Override
getLegacyResolvedBasicTypeback to summary
public BasicType<J> getLegacyResolvedBasicType()

Implements org.hibernate.mapping.BasicValue.Resolution.getLegacyResolvedBasicType.

Doc from org.hibernate.mapping.BasicValue.Resolution.getLegacyResolvedBasicType.

The BasicType resolved using the pre-6.0 rules. This is temporarily needed because of the split in extracting / binding

Annotations
@Override
getMutabilityPlanback to summary
public MutabilityPlan<J> getMutabilityPlan()

Implements org.hibernate.mapping.BasicValue.Resolution.getMutabilityPlan.

Doc from org.hibernate.mapping.BasicValue.Resolution.getMutabilityPlan.

The resolved MutabilityPlan

Annotations
@Override
getRelationalJavaTypeback to summary
public JavaType<?> getRelationalJavaType()

Implements org.hibernate.mapping.BasicValue.Resolution.getRelationalJavaType.

Doc from org.hibernate.mapping.BasicValue.Resolution.getRelationalJavaType.

The JavaType for the relational value as part of the relational model (its JDBC representation)

Annotations
@Override
getValueConverterback to summary
public JpaAttributeConverter<J, ?> getValueConverter()

Implements org.hibernate.mapping.BasicValue.Resolution.getValueConverter.

Doc from org.hibernate.mapping.BasicValue.Resolution.getValueConverter.

Converter, if any, to convert values between the domain and relational JavaType representations

Annotations
@Override
isCollectionback to summary
private static boolean isCollection(Class<?> javaType)
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override