Class CollectionConverter<X extends Collection<Object>,Y>
java.lang.Object
org.hibernate.type.descriptor.converter.internal.CollectionConverter<X,Y>
- All Implemented Interfaces:
BasicValueConverter<X,Y>
public class CollectionConverter<X extends Collection<Object>,Y>
extends Object
implements BasicValueConverter<X,Y>
Handles conversion to/from a collection of a converted element type.
-
Constructor Summary
ConstructorsConstructorDescriptionCollectionConverter(BasicValueConverter<Object, Object> elementConverter, BasicCollectionJavaType<X, ?> domainJavaType, JavaType<Y> relationalJavaType) -
Method Summary
Modifier and TypeMethodDescriptionDescriptor for the Java type for the domain portion of this converterDescriptor for the Java type for the relational portion of this convertertoDomainValue(Y relationalForm) Convert the relational form just retrieved from JDBC ResultSet into the domain form.toRelationalValue(X domainForm) Convert the domain form into the relational form in preparation for storage into JDBC
-
Constructor Details
-
CollectionConverter
public CollectionConverter(BasicValueConverter<Object, Object> elementConverter, BasicCollectionJavaType<X, ?> domainJavaType, JavaType<Y> relationalJavaType)
-
-
Method Details
-
toDomainValue
Description copied from interface:BasicValueConverterConvert the relational form just retrieved from JDBC ResultSet into the domain form.- Specified by:
toDomainValuein interfaceBasicValueConverter<X extends Collection<Object>,Y>
-
toRelationalValue
Description copied from interface:BasicValueConverterConvert the domain form into the relational form in preparation for storage into JDBC- Specified by:
toRelationalValuein interfaceBasicValueConverter<X extends Collection<Object>,Y>
-
getDomainJavaType
Description copied from interface:BasicValueConverterDescriptor for the Java type for the domain portion of this converter- Specified by:
getDomainJavaTypein interfaceBasicValueConverter<X extends Collection<Object>,Y>
-
getRelationalJavaType
Description copied from interface:BasicValueConverterDescriptor for the Java type for the relational portion of this converter- Specified by:
getRelationalJavaTypein interfaceBasicValueConverter<X extends Collection<Object>,Y>
-