public class OdbcUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
addQuotationMarksIfNeeded(String str)
Add quotation marks at the beginning and end of the string.
|
static String |
getIgniteTypeFromOdbcType(String odbcDataType)
Lookup Ignite data type corresponding to specific ODBC data type
|
static String |
removeQuotationMarksIfNeeded(String str)
Remove quotation marks at the beginning and end of the string if present.
|
static long |
rowsAffected(QueryCursor<List<?>> qryCur)
Get affected rows for statement.
|
static String |
tryRetrieveH2ErrorMessage(Throwable err)
Tries to retrieve H2 engine error message from exception.
|
static int |
tryRetrieveSqlErrorCode(Throwable err)
Tries to retrieve SQL error code of the exception.
|
public static String addQuotationMarksIfNeeded(String str)
str - Input string.public static String removeQuotationMarksIfNeeded(String str)
str - Input string.public static String getIgniteTypeFromOdbcType(String odbcDataType)
odbcDataType - ODBC data type identifierpublic static int tryRetrieveSqlErrorCode(Throwable err)
IgniteSQLException returns
IgniteQueryErrorCode.UNKNOWN.err - Error to retrieve code from.public static String tryRetrieveH2ErrorMessage(Throwable err)
err - Exception.public static long rowsAffected(QueryCursor<List<?>> qryCur)
qryCur - Cursor.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.6.0 Release Date : July 10 2018