Package org.openxava.converters
Class Date3Converter
- java.lang.Object
-
- org.openxava.converters.Date3Converter
-
- All Implemented Interfaces:
java.io.Serializable
,IMultipleConverter
public class Date3Converter extends java.lang.Object implements IMultipleConverter
In java a java.util.Date and in database 3 columns of integer type.- Author:
- Javier Paniza
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Date3Converter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getDay()
int
getMonth()
int
getYear()
void
setDay(int i)
void
setMonth(int i)
void
setYear(int i)
void
toDB(java.lang.Object objetoJava)
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.
-
-
-
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 objetoJava) 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
-
getYear
public int getYear()
-
getDay
public int getDay()
-
getMonth
public int getMonth()
-
setYear
public void setYear(int i)
-
setDay
public void setDay(int i)
-
setMonth
public void setMonth(int i)
-
-