Class JdbcTypeMapping


  • public final class JdbcTypeMapping
    extends Object
    • Method Detail

      • toJdbcType

        public static int toJdbcType​(Class<?> javaClass)
        Gets corresponding JDBC type for the given Java class.
        Parameters:
        javaClass - non-null Java class
        Returns:
        JDBC type
      • toJdbcType

        public static int toJdbcType​(Map<String,​Class<?>> typeMap,
                                     ClickHouseColumn column)
        Gets corresponding JDBC type for the given column.
        Parameters:
        column - non-null column definition
        Returns:
        JDBC type
      • fromJdbcType

        public static ClickHouseColumn fromJdbcType​(int jdbcType,
                                                    int scaleOrLength)