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
Constructors Constructor Description CollectionConverter(BasicValueConverter<Object,Object> elementConverter, BasicCollectionJavaType<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
-
-
-
-
Constructor Detail
-
CollectionConverter
public CollectionConverter(BasicValueConverter<Object,Object> elementConverter, BasicCollectionJavaType<X,?> domainJavaType, JavaType<Y> relationalJavaType)
-
-
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 extends Collection<Object>,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 extends Collection<Object>,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 extends Collection<Object>,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 extends Collection<Object>,Y>
-
-