public class SqlUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
SQLCHARSET_ISO88591 |
static String |
SQLCHARSET_UNICODE |
static int |
SQLCHARSETCODE_ISO88591 |
static int |
SQLCHARSETCODE_SJIS |
static int |
SQLCHARSETCODE_UNICODE |
static int |
SQLCHARSETCODE_UTF8 |
Modifier and Type | Method and Description |
---|---|
static BigDecimal |
convertSQLBigNumToBigDecimal(ByteBuffer sourceData,
int len,
int scale,
boolean isUnSigned) |
static byte[] |
formatSqlT4Output(Descriptor2 dsc,
byte[] sqlarray,
long curOutPos,
byte[] outValues,
ByteOrder bo) |
static BigDecimal |
getBigDecimalValue(Object paramValue) |
static String |
getCharsetName(int charset) |
static int |
getCharsetValue(String charset) |
static String |
getComponentId(int componentId) |
static String |
getDataType(int dataType) |
static String |
getSqlAttrType(int code) |
static String |
getSqlCharsetName(int code) |
static String |
getSqlDataType(int code) |
static String |
getSqlError(int retcode) |
static String |
getSqlQueryStatementType(int stmtType) |
static String |
getSqlStatementType(short stmtType) |
static int |
getSqlStmtType(int stmtType) |
static short |
getSqlStmtType(String str) |
public static final int SQLCHARSETCODE_ISO88591
public static final String SQLCHARSET_ISO88591
public static final int SQLCHARSETCODE_UNICODE
public static final String SQLCHARSET_UNICODE
public static final int SQLCHARSETCODE_SJIS
public static final int SQLCHARSETCODE_UTF8
public static String getCharsetName(int charset)
public static int getCharsetValue(String charset)
public static String getComponentId(int componentId)
public static int getSqlStmtType(int stmtType)
public static short getSqlStmtType(String str)
public static String getSqlCharsetName(int code)
public static String getSqlError(int retcode)
public static String getSqlStatementType(short stmtType)
public static String getSqlQueryStatementType(int stmtType)
public static String getSqlAttrType(int code)
public static String getSqlDataType(int code)
public static String getDataType(int dataType)
public static BigDecimal getBigDecimalValue(Object paramValue) throws SQLException
SQLException
public static BigDecimal convertSQLBigNumToBigDecimal(ByteBuffer sourceData, int len, int scale, boolean isUnSigned)
public static byte[] formatSqlT4Output(Descriptor2 dsc, byte[] sqlarray, long curOutPos, byte[] outValues, ByteOrder bo) throws UnsupportedEncodingException
UnsupportedEncodingException
Copyright © 2020. All rights reserved.