Class Date3Converter

java.lang.Object
org.openxava.converters.Date3Converter
All Implemented Interfaces:
Serializable, IMultipleConverter

public class Date3Converter extends Object implements IMultipleConverter
In java a java.util.Date and in database 3 columns of integer type.

Author:
Javier Paniza
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     
    int
     
    int
     
    void
    setDay(int i)
     
    void
    setMonth(int i)
     
    void
    setYear(int i)
     
    void
    toDB(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.
    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 Details

    • Date3Converter

      public Date3Converter()
  • Method Details

    • toJava

      public 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(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)