org.castor.jdo.engine
public final class SQLTypeConverters extends Object
Since: 1.0
Version: $Revision: 5951 $ $Date: 2006-04-25 15:08:23 -0600 (Tue, 25 Apr 2006) $
Nested Class Summary | |
---|---|
abstract static class | SQLTypeConverters.Convertor
Abstract class to convert from one type to another. |
Method Summary | |
---|---|
static TypeConvertor | getConvertor(Class fromType, Class toType)
Returns a type convertor. |
static String | getFullDatePattern(String pattern)
Transforms short date format pattern into full format pattern
for SimpleDateFormat (e.g., "YMD" to "yyyyMMdd").
|
Parameters: fromType The Java type to convert from. toType The Java type to convert to.
Returns: The TypeConverter to convert fromType into toType.
Throws: MappingException No suitable convertor was found.
Parameters: pattern The short pattern.
Returns: The full pattern.