org.castor.jdo.engine
Class SQLTypeConverters
java.lang.Object
org.castor.jdo.engine.SQLTypeConverters
public final class SQLTypeConverters
extends java.lang.Object
$Revision: 5951 $ $Date: 2006-04-25 15:08:23 -0600 (Tue, 25 Apr 2006) $
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").
|
getConvertor
public static TypeConvertor getConvertor(Class fromType,
Class toType)
throws MappingException
Returns a type convertor. A type convertor can be used to convert
an object from Java type fromType to Java type toType.
fromType
- The Java type to convert from.toType
- The Java type to convert to.
- The TypeConverter to convert fromType into toType.
getFullDatePattern
public 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-2006. All rights reserved http://www.intalio.com