Package org.apache.calcite.sql.type
Class JavaToSqlTypeConversionRules
java.lang.Object
org.apache.calcite.sql.type.JavaToSqlTypeConversionRules
JavaToSqlTypeConversionRules defines mappings from common Java types to
corresponding SQL types.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic JavaToSqlTypeConversionRules
instance()
Returns thesingleton
instance.@Nullable SqlTypeName
Returns a correspondingSqlTypeName
for a given Java class.
-
Constructor Details
-
JavaToSqlTypeConversionRules
public JavaToSqlTypeConversionRules()
-
-
Method Details
-
instance
Returns thesingleton
instance. -
lookup
Returns a correspondingSqlTypeName
for a given Java class.- Parameters:
javaClass
- the Java class to lookup- Returns:
- a corresponding SqlTypeName if found, otherwise null is returned
-