Class ArrayConverter<T,S,E,F>
- java.lang.Object
-
- org.hibernate.type.descriptor.converter.internal.ArrayConverter<T,S,E,F>
-
- Type Parameters:
E- the unconverted element typeF- the converted element typeT- the unconverted array typeS- the converted array type
- All Implemented Interfaces:
BasicValueConverter<T,S>
public class ArrayConverter<T,S,E,F> extends Object implements BasicValueConverter<T,S>
Given aBasicValueConverterfor array elements, handles conversion to and from an array of the converted element type.
-
-
Constructor Summary
Constructors Constructor Description ArrayConverter(BasicValueConverter<E,F> elementConverter, JavaType<T> domainJavaType, JavaType<S> relationalJavaType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JavaType<T>getDomainJavaType()Descriptor for the Java type for the domain portion of this converterJavaType<S>getRelationalJavaType()Descriptor for the Java type for the relational portion of this converterTtoDomainValue(S relationalForm)Convert the relational form just retrieved from JDBC ResultSet into the domain form.StoRelationalValue(T domainForm)Convert the domain form into the relational form in preparation for storage into JDBC
-
-
-
Method Detail
-
toDomainValue
public T toDomainValue(S relationalForm)
Description copied from interface:BasicValueConverterConvert the relational form just retrieved from JDBC ResultSet into the domain form.- Specified by:
toDomainValuein interfaceBasicValueConverter<T,S>
-
toRelationalValue
public S toRelationalValue(T domainForm)
Description copied from interface:BasicValueConverterConvert the domain form into the relational form in preparation for storage into JDBC- Specified by:
toRelationalValuein interfaceBasicValueConverter<T,S>
-
getDomainJavaType
public JavaType<T> getDomainJavaType()
Description copied from interface:BasicValueConverterDescriptor for the Java type for the domain portion of this converter- Specified by:
getDomainJavaTypein interfaceBasicValueConverter<T,S>
-
getRelationalJavaType
public JavaType<S> getRelationalJavaType()
Description copied from interface:BasicValueConverterDescriptor for the Java type for the relational portion of this converter- Specified by:
getRelationalJavaTypein interfaceBasicValueConverter<T,S>
-
-