org.eigenbase.sql.type
Class JavaToSqlTypeConversionRules
java.lang.Object
org.eigenbase.sql.type.JavaToSqlTypeConversionRules
public class JavaToSqlTypeConversionRules
- extends Object
JavaToSqlTypeConversionRules defines mappings from common Java types to
corresponding SQL types.
- Version:
- $Id: //open/dev/farrago/src/org/eigenbase/sql/type/JavaToSqlTypeConversionRules.java#15 $
- Author:
- John V. Sichi
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
instance
private static final JavaToSqlTypeConversionRules instance
rules
private final Map<Class<?>,SqlTypeName> rules
JavaToSqlTypeConversionRules
private JavaToSqlTypeConversionRules()
instance
public static JavaToSqlTypeConversionRules instance()
- Returns the
singleton
instance.
lookup
public SqlTypeName lookup(Class javaClass)
- Returns a corresponding
SqlTypeName
for a given Java class.
- Parameters:
javaClass
- the Java class to lookup
- Returns:
- a corresponding SqlTypeName if found, otherwise null is returned