public class TypeUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
NULLABLE_NO |
static String |
NULLABLE_YES |
| Constructor and Description |
|---|
TypeUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getArrayElementTypeName(String clickhouseType) |
static int |
getColumnSize(String type) |
static int |
getDecimalDigits(String type) |
static String |
isTypeNull(String clickHouseType) |
static boolean |
isUnsigned(String clickhouseType) |
static int[] |
supportedTypes() |
static Class |
toClass(int sqlType,
boolean isUnsigned) |
static Class |
toClass(int sqlType,
int elementSqltype,
boolean isUnsigned) |
static int |
toSqlType(String clickhouseType) |
static String |
unwrapNullableIfApplicable(String clickhouseType) |
public static final String NULLABLE_YES
public static final String NULLABLE_NO
public static int toSqlType(String clickhouseType)
public static boolean isUnsigned(String clickhouseType)
public static int[] supportedTypes()
public static Class toClass(int sqlType, boolean isUnsigned) throws SQLException
SQLExceptionpublic static Class toClass(int sqlType, int elementSqltype, boolean isUnsigned) throws SQLException
SQLExceptionpublic static int getColumnSize(String type)
public static int getDecimalDigits(String type)
Copyright © 2019. All rights reserved.