Class ArrayConverter<X,Y>
- java.lang.Object
-
- org.hibernate.type.descriptor.converter.internal.ArrayConverter<X,Y>
-
- All Implemented Interfaces:
BasicValueConverter<X,Y>
public class ArrayConverter<X,Y> extends Object implements BasicValueConverter<X,Y>
Handles conversion to/from an array of a converted element type.
-
-
Constructor Summary
Constructors Constructor Description ArrayConverter(BasicValueConverter<Object,Object> elementConverter, JavaType<X> domainJavaType, JavaType<Y> relationalJavaType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JavaType<X>
getDomainJavaType()
Descriptor for the Java type for the domain portion of this converterJavaType<Y>
getRelationalJavaType()
Descriptor for the Java type for the relational portion of this converterX
toDomainValue(Y relationalForm)
Convert the relational form just retrieved from JDBC ResultSet into the domain form.Y
toRelationalValue(X domainForm)
Convert the domain form into the relational form in preparation for storage into JDBC-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.type.descriptor.converter.spi.BasicValueConverter
getCheckCondition, getSpecializedTypeDeclaration
-
-
-
-
Method Detail
-
toDomainValue
public X toDomainValue(Y relationalForm)
Description copied from interface:BasicValueConverter
Convert the relational form just retrieved from JDBC ResultSet into the domain form.- Specified by:
toDomainValue
in interfaceBasicValueConverter<X,Y>
-
toRelationalValue
public Y toRelationalValue(X domainForm)
Description copied from interface:BasicValueConverter
Convert the domain form into the relational form in preparation for storage into JDBC- Specified by:
toRelationalValue
in interfaceBasicValueConverter<X,Y>
-
getDomainJavaType
public JavaType<X> getDomainJavaType()
Description copied from interface:BasicValueConverter
Descriptor for the Java type for the domain portion of this converter- Specified by:
getDomainJavaType
in interfaceBasicValueConverter<X,Y>
-
getRelationalJavaType
public JavaType<Y> getRelationalJavaType()
Description copied from interface:BasicValueConverter
Descriptor for the Java type for the relational portion of this converter- Specified by:
getRelationalJavaType
in interfaceBasicValueConverter<X,Y>
-
-