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 |
prepareSchema(String schema)
Prepare client's schema for processing.
|
static String |
preprocessPattern(String ptrn)
Pre-process table or column pattern.
|
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 preprocessPattern(String ptrn)
ptrn - Pattern to pre-process.public static String prepareSchema(String schema)
schema - Schema.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 Database and Caching Platform : ver. 2.8.0 Release Date : February 27 2020