org.openxava.converters
Class Date3Converter

java.lang.Object
  extended by 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
Date3Converter()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Date3Converter

public Date3Converter()
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 interface IMultipleConverter
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 interface IMultipleConverter
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)