Package org.openxava.converters
Class Date3Converter
java.lang.Object
org.openxava.converters.Date3Converter
- All Implemented Interfaces:
Serializable,IMultipleConverter
In java a java.util.Date and in database 3 columns of
integer type.
- Author:
- Javier Paniza
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetDay()intgetMonth()intgetYear()voidsetDay(int i) voidsetMonth(int i) voidsetYear(int i) 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.
-
Constructor Details
-
Date3Converter
public Date3Converter()
-
-
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
-
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)
-