Class JpaAttributeConverterImpl<O,R>
java.lang.Object
org.hibernate.type.descriptor.converter.internal.JpaAttributeConverterImpl<O,R>
- All Implemented Interfaces:
BasicValueConverter<O,,R> JpaAttributeConverter<O,R>
Standard implementation of
JpaAttributeConverter.- Author:
- Steve Ebersole
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionJpaAttributeConverterImpl(ManagedBean<? extends AttributeConverter<O, R>> attributeConverterBean, JavaType<? extends AttributeConverter<O, R>> converterJtd, Class<O> domainJavaType, Class<R> jdbcJavaType, JpaAttributeConverterCreationContext context) JpaAttributeConverterImpl(ManagedBean<? extends AttributeConverter<O, R>> attributeConverterBean, JavaType<? extends AttributeConverter<O, R>> converterJtd, JavaType<O> domainJtd, JavaType<R> jdbcJtd) -
Method Summary
Modifier and TypeMethodDescriptionbooleanManagedBean<? extends AttributeConverter<O,R>> JavaType<? extends AttributeConverter<O,R>> Descriptor for the Java type for the domain portion of this converterDescriptor for the Java type for the relational portion of this converterinthashCode()toDomainValue(R relationalForm) Convert the relational form just retrieved from JDBC ResultSet into the domain form.toRelationalValue(O domainForm) Convert the domain form into the relational form in preparation for storage into JDBC
-
Constructor Details
-
JpaAttributeConverterImpl
public JpaAttributeConverterImpl(ManagedBean<? extends AttributeConverter<O, R>> attributeConverterBean, JavaType<? extends AttributeConverter<O, R>> converterJtd, JavaType<O> domainJtd, JavaType<R> jdbcJtd) -
JpaAttributeConverterImpl
public JpaAttributeConverterImpl(ManagedBean<? extends AttributeConverter<O, R>> attributeConverterBean, JavaType<? extends AttributeConverter<O, R>> converterJtd, Class<O> domainJavaType, Class<R> jdbcJavaType, JpaAttributeConverterCreationContext context)
-
-
Method Details
-
getConverterBean
- Specified by:
getConverterBeanin interfaceJpaAttributeConverter<O,R>
-
toDomainValue
Description copied from interface:BasicValueConverterConvert the relational form just retrieved from JDBC ResultSet into the domain form.- Specified by:
toDomainValuein interfaceBasicValueConverter<O,R>
-
toRelationalValue
Description copied from interface:BasicValueConverterConvert the domain form into the relational form in preparation for storage into JDBC- Specified by:
toRelationalValuein interfaceBasicValueConverter<O,R>
-
getConverterJavaType
- Specified by:
getConverterJavaTypein interfaceJpaAttributeConverter<O,R>
-
getDomainJavaType
Description copied from interface:BasicValueConverterDescriptor for the Java type for the domain portion of this converter- Specified by:
getDomainJavaTypein interfaceBasicValueConverter<O,R>
-
getRelationalJavaType
Description copied from interface:BasicValueConverterDescriptor for the Java type for the relational portion of this converter- Specified by:
getRelationalJavaTypein interfaceBasicValueConverter<O,R>
-
equals
-
hashCode
public int hashCode()
-