|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.castor.cpa.persistence.convertor.AbstractTypeConvertor
org.castor.cpa.persistence.convertor.AbstractDateTypeConvertor
public abstract class AbstractDateTypeConvertor
Abstract base class to convert from one type to another without any configuration or parameters.
Constructor Summary | |
---|---|
AbstractDateTypeConvertor(java.lang.Class<?> fromType,
java.lang.Class<?> toType)
Construct a Converter between given fromType an toType. |
Method Summary | |
---|---|
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"). |
Methods inherited from class org.castor.cpa.persistence.convertor.AbstractTypeConvertor |
---|
clone, fromType, toString, toType |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.castor.cpa.persistence.convertor.TypeConvertor |
---|
convert, parameterize |
Constructor Detail |
---|
public AbstractDateTypeConvertor(java.lang.Class<?> fromType, java.lang.Class<?> toType)
fromType
- The type being converted from.toType
- The type being converted to.Method Detail |
---|
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.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |