Class HibernateCompositeTypeConverter
×News: XavaPro 7.7 released - March 11 · Read more
java.lang.Object
org.openxava.converters.typeadapters.HibernateTypeBaseConverter
org.openxava.converters.typeadapters.HibernateCompositeTypeConverter
- All Implemented Interfaces:
Serializable, IMultipleConverter
public class HibernateCompositeTypeConverter
extends HibernateTypeBaseConverter
implements IMultipleConverter
Adapter for using Hibernate composite types as converters in OpenXava.
It works with org.hibernate.usertype.CompositeUserType.
- Author:
- Javier Paniza
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidsetValuesCount(int count) voidFirst call to this method sending to it the java object that you wish to split, and after you can obtain the splited object acceding to properties.toJava()First it's required to set value for properties (with data in DB format), and after call to toJava to obtain a Java object created from this proprerties.Methods inherited from class HibernateTypeBaseConverter
getHibernateType, getType, setParameters, setType
-
Constructor Details
-
HibernateCompositeTypeConverter
public HibernateCompositeTypeConverter()
-
-
Method Details
-
toJava
Description copied from interface:IMultipleConverterFirst it's required to set value for properties (with data in DB format), and after call to toJava to obtain a Java object created from this proprerties.- Specified by:
toJavain interfaceIMultipleConverter- Throws:
ConversionException
-
toDB
Description copied from interface:IMultipleConverterFirst call to this method sending to it the java object that you wish to split, and after you can obtain the splited object acceding to properties.- Specified by:
toDBin interfaceIMultipleConverter- Throws:
ConversionException
-
setValuesCount
public void setValuesCount(int count) -
setValue0
-
setValue1
-
setValue2
-
setValue3
-
setValue4
-
setValue5
-
setValue6
-
setValue7
-
setValue8
-
setValue9
-