public class JdbcUtils extends Object
| Constructor and Description |
|---|
JdbcUtils() |
| Modifier and Type | Method and Description |
|---|---|
static SQLException |
convertToSqlException(Exception e,
String msgForUnknown)
Convert exception to
SQLException. |
static SQLException |
convertToSqlException(Exception e,
String msgForUnknown,
String sqlStateForUnknown)
Convert exception to
SQLException. |
static boolean |
nullable(String name,
String cls)
Determines whether type is nullable.
|
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 int type(String cls)
Types.cls - Java class name.Types.public static String typeName(String cls)
cls - Java class name.public static boolean nullable(String name, String cls)
name - Column name.cls - Java class name.True if nullable.public static SQLException convertToSqlException(Exception e, String msgForUnknown)
SQLException.e - Converted Exception.msgForUnknown - Message non-convertable exception.SQLException.IgniteQueryErrorCodepublic static SQLException convertToSqlException(Exception e, String msgForUnknown, String sqlStateForUnknown)
SQLException.e - Converted Exception.msgForUnknown - Message for non-convertable exception.sqlStateForUnknown - SQLSTATE for non-convertable exception.SQLException.IgniteQueryErrorCode
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.5 Release Date : June 4 2019