org.eigenbase.sql.type
Class JavaToSqlTypeConversionRules

java.lang.Object
  extended by 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

Field Summary
private static JavaToSqlTypeConversionRules instance
           
private  Map<Class<?>,SqlTypeName> rules
           
 
Constructor Summary
private JavaToSqlTypeConversionRules()
           
 
Method Summary
static JavaToSqlTypeConversionRules instance()
          Returns the singleton instance.
 SqlTypeName lookup(Class javaClass)
          Returns a corresponding SqlTypeName for a given Java class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instance

private static final JavaToSqlTypeConversionRules instance

rules

private final Map<Class<?>,SqlTypeName> rules
Constructor Detail

JavaToSqlTypeConversionRules

private JavaToSqlTypeConversionRules()
Method Detail

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