net.sf.hloader.converter
Class TimestampConverter

java.lang.Object
  extended bynet.sf.hloader.converter.TimestampConverter
All Implemented Interfaces:
org.apache.commons.beanutils.Converter

public class TimestampConverter
extends java.lang.Object
implements org.apache.commons.beanutils.Converter

Version:
$Id: TimestampConverter.java,v 1.2 2004/03/11 11:40:10 bdargan Exp $
Author:
Brett Dargan

Constructor Summary
TimestampConverter()
           
 
Method Summary
 java.lang.Object convert(java.lang.Class targetClass, java.lang.Object object)
          Converts from long value time in julianMilliseconds
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimestampConverter

public TimestampConverter()
Method Detail

convert

public java.lang.Object convert(java.lang.Class targetClass,
                                java.lang.Object object)
Converts from long value time in julianMilliseconds

otherwise it will attempt to convert it using the supported String sql.Timestamp format to Date.

Specified by:
convert in interface org.apache.commons.beanutils.Converter