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 aBasicValueConverter
for 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 converterT
toDomainValue(S relationalForm)
Convert the relational form just retrieved from JDBC ResultSet into the domain form.S
toRelationalValue(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:BasicValueConverter
Convert the relational form just retrieved from JDBC ResultSet into the domain form.- Specified by:
toDomainValue
in interfaceBasicValueConverter<T,S>
-
toRelationalValue
public S toRelationalValue(T 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<T,S>
-
getDomainJavaType
public JavaType<T> getDomainJavaType()
Description copied from interface:BasicValueConverter
Descriptor for the Java type for the domain portion of this converter- Specified by:
getDomainJavaType
in interfaceBasicValueConverter<T,S>
-
getRelationalJavaType
public JavaType<S> getRelationalJavaType()
Description copied from interface:BasicValueConverter
Descriptor for the Java type for the relational portion of this converter- Specified by:
getRelationalJavaType
in interfaceBasicValueConverter<T,S>
-
-