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:BasicValueConverter
Convert the relational form just retrieved from JDBC ResultSet into the domain form.- Specified by:
toDomainValue
in interfaceBasicValueConverter<X extends Collection<Object>,
Y>
-
toRelationalValue
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 extends Collection<Object>,
Y>
-
getDomainJavaType
Description copied from interface:BasicValueConverter
Descriptor for the Java type for the domain portion of this converter- Specified by:
getDomainJavaType
in interfaceBasicValueConverter<X extends Collection<Object>,
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 extends Collection<Object>,
Y>
-