|
||||||||||
| 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(Class<?> fromType,
Class<?> toType)
Construct a Converter between given fromType an toType. |
|
| Method Summary | |
|---|---|
void |
configure(AbstractProperties properties)
Configure the converter with given 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"). |
| 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(Class<?> fromType,
Class<?> toType)
fromType - The type being converted from.toType - The type being converted to.| Method Detail |
|---|
protected static final SimpleDateFormat getDefaultDateFormat()
protected static String getFullDatePattern(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 | |||||||||