Package com.clickhouse.jdbc
Class JdbcTypeMapping
java.lang.Object
com.clickhouse.jdbc.JdbcTypeMapping
Deprecated.
This class defines mappings among
Types, JDBCType,
ClickHouseDataType, ClickHouseColumn, and Class. It
does not impact serialization and deserialization, which is handled
separately by ClickHouseDataProcessor.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic JdbcTypeMappingDeprecated.Gets ANSI type mapping.protected Class<?>getCustomJavaClass(ClickHouseColumn column, Map<String, Class<?>> typeMap) Deprecated.Gets custom Java class for the given column.protected ClickHouseDataTypegetDataType(int sqlType) Deprecated.Gets correspondingClickHouseDataTypeof the givenTypes.static JdbcTypeMappingDeprecated.Gets default type mapping.protected intgetSqlType(Class<?> javaClass) Deprecated.Gets correspondingTypesfor the given Java class.toColumn(int sqlType, int scaleOrLength) Deprecated.ConvertsTypesto ClickHouse column.Deprecated.ConvertsJDBCTypeto ClickHouse column.Class<?>toJavaClass(ClickHouseColumn column, Map<String, Class<?>> typeMap) Deprecated.ConvertsClickHouseColumntoClass.toNativeType(ClickHouseColumn column) Deprecated.ConvertsClickHouseColumnto native type.inttoSqlType(ClickHouseColumn column, Map<String, Class<?>> typeMap) Deprecated.ConvertsClickHouseColumnto generic SQL type defined in JDBC.
-
Constructor Details
-
JdbcTypeMapping
public JdbcTypeMapping()Deprecated.
-
-
Method Details
-
getDefaultMapping
Deprecated.Gets default type mapping.- Returns:
- non-null type mapping
-
getAnsiMapping
Deprecated.Gets ANSI type mapping.- Returns:
- non-null type mapping
-
getCustomJavaClass
Deprecated.Gets custom Java class for the given column.- Parameters:
column- non-null column definitiontypeMap- column type to Java class map, could be null- Returns:
- custom Java class which may or may not be null
-
getDataType
Deprecated.Gets correspondingClickHouseDataTypeof the givenTypes.- Parameters:
sqlType- generic SQL types defined in JDBC- Returns:
- non-null ClickHouse data type
-
getSqlType
Deprecated.Gets correspondingTypesfor the given Java class.- Parameters:
javaClass- non-null Java class- Returns:
- generic SQL type defined in JDBC
-
toColumn
Deprecated.ConvertsJDBCTypeto ClickHouse column.- Parameters:
jdbcType- JDBC typescaleOrLength- scale or length- Returns:
- non-null ClickHouse column
-
toColumn
Deprecated.ConvertsTypesto ClickHouse column.- Parameters:
sqlType- generic SQL types defined in JDBCscaleOrLength- scale or length- Returns:
- non-null ClickHouse column
-
toJavaClass
Deprecated.ConvertsClickHouseColumntoClass.- Parameters:
column- non-null column definitiontypeMap- optional custom type mapping- Returns:
- non-null Java class
-
toNativeType
Deprecated.ConvertsClickHouseColumnto native type.- Parameters:
column- non-null column definition- Returns:
- non-null native type
-
toSqlType
Deprecated.ConvertsClickHouseColumnto generic SQL type defined in JDBC.- Parameters:
column- non-null column definitiontypeMap- optional custom mapping- Returns:
- generic SQL type defined in JDBC
-