public class JdbcThinUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
PROP_HOST
Hostname property name.
|
static String |
PROP_PORT
Port number property name.
|
static String |
URL_PREFIX
URL prefix.
|
Constructor and Description |
---|
JdbcThinUtils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isPlainJdbcType(int type) |
static boolean |
nullable(String name,
String cls)
Determines whether type is nullable.
|
static @Nullable Boolean |
nullableBooleanFromByte(byte raw)
Converts raw byte value to the nullable Boolean.
|
static byte |
nullableBooleanToByte(@Nullable Boolean val)
Converts nullable Boolean to the raw byte.
|
static int |
type(String cls)
Converts Java class name to type from
Types . |
static String |
typeName(String cls)
Converts Java class name to SQL type name.
|
public static final String URL_PREFIX
public static final String PROP_PORT
public static final String PROP_HOST
public static int type(String cls)
Types
.cls
- Java class name.Types
.public static String typeName(String cls)
cls
- Java class name.public static boolean isPlainJdbcType(int type)
type
- a value from java.sql.Types
.true
if type is plain and supported by thin JDBC driver.public static boolean nullable(String name, String cls)
name
- Column name.cls
- Java class name.True
if nullable.@Nullable public static @Nullable Boolean nullableBooleanFromByte(byte raw)
raw
- byte value to convert to Boolean.public static byte nullableBooleanToByte(@Nullable @Nullable Boolean val)
val
- value to convert.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.10.0 Release Date : March 10 2021