Class JavaToSqlTypeConversionRules

java.lang.Object
org.apache.calcite.sql.type.JavaToSqlTypeConversionRules

public class JavaToSqlTypeConversionRules extends Object
JavaToSqlTypeConversionRules defines mappings from common Java types to corresponding SQL types.
  • Constructor Details

    • JavaToSqlTypeConversionRules

      public JavaToSqlTypeConversionRules()
  • Method Details

    • instance

      public static JavaToSqlTypeConversionRules instance()
      Returns the singleton instance.
    • lookup

      public @Nullable 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