Class EnumeratedValueResolution<E extends Enum<E>,R>
- java.lang.Object
-
- org.hibernate.boot.model.process.internal.EnumeratedValueResolution<E,R>
-
- All Implemented Interfaces:
BasicValue.Resolution<E>
public class EnumeratedValueResolution<E extends Enum<E>,R> extends Object implements BasicValue.Resolution<E>
Resolution for enum mappings usingEnumerated, either implicitly or explicitly
-
-
Constructor Summary
Constructors Constructor Description EnumeratedValueResolution(JdbcType jdbcType, EnumValueConverter<E,R> valueConverter, MetadataBuildingContext context)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <E extends Enum<E>>
EnumeratedValueResolution<E,?>fromName(String name, JdbcTypeIndicators jdbcTypeIndicators, MetadataBuildingContext context)JavaType<E>getDomainJavaType()The JavaType for the value as part of the domain modelConvertedBasicType<E>getJdbcMapping()JdbcTypegetJdbcType()The JavaType for the relational value as part of the relational model (its JDBC representation)ConvertedBasicType<E>getLegacyResolvedBasicType()The BasicType resolved using the pre-6.0 rules.MutabilityPlan<E>getMutabilityPlan()The resolved MutabilityPlanJavaType<?>getRelationalJavaType()The JavaType for the relational value as part of the relational model (its JDBC representation)EnumValueConverter<E,R>getValueConverter()Converter, if any, to convert values between the domain and relational JavaType representations-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.mapping.BasicValue.Resolution
getCombinedTypeParameters
-
-
-
-
Field Detail
-
PREFIX
public static final String PREFIX
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EnumeratedValueResolution
public EnumeratedValueResolution(JdbcType jdbcType, EnumValueConverter<E,R> valueConverter, MetadataBuildingContext context)
-
-
Method Detail
-
getJdbcMapping
public ConvertedBasicType<E> getJdbcMapping()
- Specified by:
getJdbcMappingin interfaceBasicValue.Resolution<E extends Enum<E>>
-
getLegacyResolvedBasicType
public ConvertedBasicType<E> 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<E extends Enum<E>>
-
getDomainJavaType
public JavaType<E> getDomainJavaType()
Description copied from interface:BasicValue.ResolutionThe JavaType for the value as part of the domain model- Specified by:
getDomainJavaTypein interfaceBasicValue.Resolution<E extends Enum<E>>
-
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<E extends Enum<E>>
-
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<E extends Enum<E>>
-
getValueConverter
public EnumValueConverter<E,R> getValueConverter()
Description copied from interface:BasicValue.ResolutionConverter, if any, to convert values between the domain and relational JavaType representations- Specified by:
getValueConverterin interfaceBasicValue.Resolution<E extends Enum<E>>
-
getMutabilityPlan
public MutabilityPlan<E> getMutabilityPlan()
Description copied from interface:BasicValue.ResolutionThe resolved MutabilityPlan- Specified by:
getMutabilityPlanin interfaceBasicValue.Resolution<E extends Enum<E>>
-
fromName
public static <E extends Enum<E>> EnumeratedValueResolution<E,?> fromName(String name, JdbcTypeIndicators jdbcTypeIndicators, MetadataBuildingContext context)
-
-