Class EnumeratedValueConverter<E extends Enum<E>,R>
java.lang.Object
org.hibernate.boot.model.process.internal.EnumeratedValueConverter<E,R>
- All Implemented Interfaces:
BasicValueConverter<E,
R>
public class EnumeratedValueConverter<E extends Enum<E>,R>
extends Object
implements BasicValueConverter<E,R>
-
Constructor Summary
ConstructorsConstructorDescriptionEnumeratedValueConverter
(EnumJavaType<E> enumJavaType, JavaType<R> relationalJavaType, Field valueField) -
Method Summary
Modifier and TypeMethodDescriptionDescriptor for the Java type for the domain portion of this converterDescriptor for the Java type for the relational portion of this converter@Nullable E
toDomainValue
(@Nullable R relationalForm) Convert the relational form just retrieved from JDBC ResultSet into the domain form.@Nullable R
toRelationalValue
(@Nullable E domainForm) Convert the domain form into the relational form in preparation for storage into JDBC
-
Constructor Details
-
EnumeratedValueConverter
public EnumeratedValueConverter(EnumJavaType<E> enumJavaType, JavaType<R> relationalJavaType, Field valueField)
-
-
Method Details
-
getRelationalValueSet
-
toDomainValue
Description copied from interface:BasicValueConverter
Convert the relational form just retrieved from JDBC ResultSet into the domain form.- Specified by:
toDomainValue
in interfaceBasicValueConverter<E extends Enum<E>,
R>
-
toRelationalValue
Description copied from interface:BasicValueConverter
Convert the domain form into the relational form in preparation for storage into JDBC- Specified by:
toRelationalValue
in interfaceBasicValueConverter<E extends Enum<E>,
R>
-
getDomainJavaType
Description copied from interface:BasicValueConverter
Descriptor for the Java type for the domain portion of this converter- Specified by:
getDomainJavaType
in interfaceBasicValueConverter<E extends Enum<E>,
R>
-
getRelationalJavaType
Description copied from interface:BasicValueConverter
Descriptor for the Java type for the relational portion of this converter- Specified by:
getRelationalJavaType
in interfaceBasicValueConverter<E extends Enum<E>,
R>
-