org.enableit.db
Class DateConverter

java.lang.Object
  |
  +--org.enableit.db.DateConverter
All Implemented Interfaces:
org.apache.commons.beanutils.Converter

Deprecated. This is a desperate (and temporary) hack.

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

A converter that goes thru a long list of potential date formats in the hope of finding one that allows an unknown date string to be parsed.

Obviously the order that the formats are tried reflects the likely format within my own limited usage so this is really not very generic (or satisfactory).

Author:
TS

Field Summary
static java.lang.String ABOUT
          Deprecated. CVS info about this class and its current version
protected static org.apache.log4j.Category logger
          Deprecated. The Log4J Category doing the logging.
 
Constructor Summary
DateConverter()
          Deprecated. Default Constructor
 
Method Summary
 java.lang.Object convert(java.lang.Class clazz, java.lang.Object oValue)
          Deprecated. Method signature required by Converter interface.
protected static java.lang.Object convert(java.lang.String value)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static org.apache.log4j.Category logger
Deprecated. 
The Log4J Category doing the logging.


ABOUT

public static final java.lang.String ABOUT
Deprecated. 
CVS info about this class and its current version

See Also:
Constant Field Values
Constructor Detail

DateConverter

public DateConverter()
Deprecated. 
Default Constructor

Method Detail

convert

protected static java.lang.Object convert(java.lang.String value)
Deprecated. 

convert

public java.lang.Object convert(java.lang.Class clazz,
                                java.lang.Object oValue)
Deprecated. 
Method signature required by Converter interface.

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


Copyright © 1999-2004 enableIT.org. All Rights Reserved.