org.castor.cpa.persistence.convertor
Class AbstractDateTypeConvertor
- Cloneable, TypeConvertor, TypeConvertor
public abstract class AbstractDateTypeConvertor
Abstract base class to convert from one type to another without any configuration
or parameters.
$Revision: 7134 $ $Date: 2006-04-25 15:08:23 -0600 (Tue, 25 Apr 2006) $
void | configure(Configuration configuration) -
|
protected static SimpleDateFormat | getDefaultDateFormat() - Use this accessor to access the DEFAULT_DATE_FORMAT.
|
protected static String | getFullDatePattern(String pattern) - Transforms short date format pattern into full format pattern for SimpleDateFormat
(e.g., "YMD" to "yyyyMMdd").
|
AbstractDateTypeConvertor
public AbstractDateTypeConvertor(Class fromType,
Class toType)
Construct a Converter between given fromType an toType.
fromType
- The type being converted from.toType
- The type being converted to.
getDefaultDateFormat
protected static final SimpleDateFormat getDefaultDateFormat()
Use this accessor to access the DEFAULT_DATE_FORMAT.
- A clone of DEFAULT_DATE_FORMAT.
getFullDatePattern
protected static String getFullDatePattern(String pattern)
Transforms short date format pattern into full format pattern for SimpleDateFormat
(e.g., "YMD" to "yyyyMMdd").
pattern
- The short pattern.
Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com