org.jopendocument.util.convertor
Class DateTSConvertor

java.lang.Object
  extended by org.jopendocument.util.convertor.DateTSConvertor
All Implemented Interfaces:
ValueConvertor<Date,Timestamp>

public class DateTSConvertor
extends Object


Constructor Summary
DateTSConvertor()
           
 
Method Summary
 U convert(T o)
           
protected  Timestamp convertNonNull(Date o)
           
 T unconvert(U o)
           
protected  Date unconvertNonNull(Timestamp o)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateTSConvertor

public DateTSConvertor()
Method Detail

convertNonNull

protected Timestamp convertNonNull(Date o)

unconvertNonNull

protected Date unconvertNonNull(Timestamp o)

convert

public final U convert(T o)
Specified by:
convert in interface ValueConvertor<T,U>

unconvert

public final T unconvert(U o)
Specified by:
unconvert in interface ValueConvertor<T,U>


Copyright © 2010 jOpenDocument All Rights Reserved.