java.lang.Cloneable
, TypeConvertor
, TypeConvertor
BigDecimalToDate
, DateToBigDecimal
, DateToDouble
, DateToInteger
, DateToString
, DoubleToDate
, IntegerToDate
, SqlTimestampToString
, StringToDate
, StringToSqlTimestamp
public abstract class AbstractDateTypeConvertor extends AbstractTypeConvertor
Constructor | Description |
---|---|
AbstractDateTypeConvertor(java.lang.Class<?> fromType,
java.lang.Class<?> toType) |
Construct a Converter between given fromType an toType.
|
Modifier and Type | Method | Description |
---|---|---|
void |
configure(AbstractProperties properties) |
Configure the converter with given configuration.
|
protected static java.text.SimpleDateFormat |
getDefaultDateFormat() |
Use this accessor to access the DEFAULT_DATE_FORMAT.
|
protected static java.lang.String |
getFullDatePattern(java.lang.String pattern) |
Transforms short date format pattern into full format pattern for SimpleDateFormat
(e.g., "YMD" to "yyyyMMdd").
|
clone, fromType, toString, toType
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
convert, parameterize
public AbstractDateTypeConvertor(java.lang.Class<?> fromType, java.lang.Class<?> toType)
fromType
- The type being converted from.toType
- The type being converted to.protected static final java.text.SimpleDateFormat getDefaultDateFormat()
protected static java.lang.String getFullDatePattern(java.lang.String pattern)
pattern
- The short pattern.public final void configure(AbstractProperties properties)
properties
- Properties to use.Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com