Class HibernateCompositeTypeConverter
- java.lang.Object
-
- org.openxava.converters.typeadapters.HibernateTypeBaseConverter
-
- org.openxava.converters.typeadapters.HibernateCompositeTypeConverter
-
- All Implemented Interfaces:
java.io.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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description HibernateCompositeTypeConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setValue0(java.lang.Object v)
void
setValue1(java.lang.Object v)
void
setValue2(java.lang.Object v)
void
setValue3(java.lang.Object v)
void
setValue4(java.lang.Object v)
void
setValue5(java.lang.Object v)
void
setValue6(java.lang.Object v)
void
setValue7(java.lang.Object v)
void
setValue8(java.lang.Object v)
void
setValue9(java.lang.Object v)
void
setValuesCount(int count)
void
toDB(java.lang.Object o)
First 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.java.lang.Object
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 org.openxava.converters.typeadapters.HibernateTypeBaseConverter
getHibernateType, getType, setParameters, setType
-
-
-
-
Method Detail
-
toJava
public java.lang.Object toJava() throws ConversionException
Description copied from interface:IMultipleConverter
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.- Specified by:
toJava
in interfaceIMultipleConverter
- Throws:
ConversionException
-
toDB
public void toDB(java.lang.Object o) throws ConversionException
Description copied from interface:IMultipleConverter
First 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:
toDB
in interfaceIMultipleConverter
- Throws:
ConversionException
-
setValuesCount
public void setValuesCount(int count)
-
setValue0
public void setValue0(java.lang.Object v)
-
setValue1
public void setValue1(java.lang.Object v)
-
setValue2
public void setValue2(java.lang.Object v)
-
setValue3
public void setValue3(java.lang.Object v)
-
setValue4
public void setValue4(java.lang.Object v)
-
setValue5
public void setValue5(java.lang.Object v)
-
setValue6
public void setValue6(java.lang.Object v)
-
setValue7
public void setValue7(java.lang.Object v)
-
setValue8
public void setValue8(java.lang.Object v)
-
setValue9
public void setValue9(java.lang.Object v)
-
-