public class JpaAttributeConverterImpl<O,R> extends Object implements JpaAttributeConverter<O,R>
Constructor and Description |
---|
JpaAttributeConverterImpl(ManagedBean<AttributeConverter<O,R>> attributeConverterBean,
JavaTypeDescriptor<AttributeConverter<O,R>> converterJavaTypeDescriptor,
JavaTypeDescriptor<O> domainJavaTypeDescriptor,
JavaTypeDescriptor<R> relationalJavaTypeDescriptor) |
Modifier and Type | Method and Description |
---|---|
ManagedBean<AttributeConverter<O,R>> |
getConverterBean() |
JavaTypeDescriptor<AttributeConverter<O,R>> |
getConverterJavaTypeDescriptor() |
BasicJavaDescriptor<O> |
getDomainJavaTypeDescriptor() |
BasicJavaDescriptor<R> |
getRelationalJavaTypeDescriptor() |
O |
toDomainValue(R relationalForm)
Convert the relational form just retrieved from JDBC ResultSet into
the domain form.
|
R |
toRelationalValue(O domainForm)
Convert the domain form into the relational form in preparation for
storage into JDBC
|
public JpaAttributeConverterImpl(ManagedBean<AttributeConverter<O,R>> attributeConverterBean, JavaTypeDescriptor<AttributeConverter<O,R>> converterJavaTypeDescriptor, JavaTypeDescriptor<O> domainJavaTypeDescriptor, JavaTypeDescriptor<R> relationalJavaTypeDescriptor)
public ManagedBean<AttributeConverter<O,R>> getConverterBean()
getConverterBean
in interface JpaAttributeConverter<O,R>
public O toDomainValue(R relationalForm)
BasicValueConverter
toDomainValue
in interface BasicValueConverter<O,R>
public R toRelationalValue(O domainForm)
BasicValueConverter
toRelationalValue
in interface BasicValueConverter<O,R>
public JavaTypeDescriptor<AttributeConverter<O,R>> getConverterJavaTypeDescriptor()
getConverterJavaTypeDescriptor
in interface JpaAttributeConverter<O,R>
public BasicJavaDescriptor<O> getDomainJavaTypeDescriptor()
getDomainJavaTypeDescriptor
in interface JpaAttributeConverter<O,R>
public BasicJavaDescriptor<R> getRelationalJavaTypeDescriptor()
getRelationalJavaTypeDescriptor
in interface JpaAttributeConverter<O,R>
Copyright © 2019 JBoss by Red Hat. All rights reserved.