org.appfuse.util
Class TimestampConverter

java.lang.Object
  extended by org.appfuse.util.DateConverter
      extended by org.appfuse.util.TimestampConverter
All Implemented Interfaces:
org.apache.commons.beanutils.Converter

public class TimestampConverter
extends DateConverter

This class is converts a java.util.Date to a String and a String to a java.util.Date for use as a Timestamp. It is used by BeanUtils when copying properties.

View Source

Author:
Dan Kibler

Field Summary
static String TS_FORMAT
           
 
Constructor Summary
TimestampConverter()
           
 
Method Summary
protected  Object convertToDate(Class type, Object value)
           
protected  Object convertToString(Class type, Object value)
           
 
Methods inherited from class org.appfuse.util.DateConverter
convert, convertToDate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TS_FORMAT

public static final String TS_FORMAT
Constructor Detail

TimestampConverter

public TimestampConverter()
Method Detail

convertToDate

protected Object convertToDate(Class type,
                               Object value)

convertToString

protected Object convertToString(Class type,
                                 Object value)
Overrides:
convertToString in class DateConverter


Copyright � 2002-2006