public final class Utils
extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
private static byte[][] |
tenRadixArr |
Constructor | Description |
---|---|
Utils() |
Modifier and Type | Method | Description |
---|---|---|
static java.sql.SQLException |
accumulateSQLException(java.sql.SQLException latestException,
java.sql.SQLException accumulatedExceptions) |
|
static SqlException |
accumulateSQLException(SqlException latestException,
SqlException accumulatedExceptions) |
|
private static int |
byteArrayCmp(byte[] arg1,
byte[] arg2) |
|
static int |
computeBigDecimalPrecision(java.math.BigDecimal decimal) |
|
(package private) static int |
getNonNullableSqlType(int sqlType) |
|
static int |
getSqlcodeFromSqlca(Sqlca sqlca) |
|
(package private) static java.lang.String |
getStringFromBytes(byte[] bytes) |
|
(package private) static java.lang.String |
getStringFromInts(int[] ints) |
|
static boolean |
isSqlTypeNullable(int sqlType) |
|
(package private) static java.lang.String |
quoteSqlIdentifier(java.lang.String identifier) |
Quote an SQL identifier by enclosing it in double-quote characters
and escaping any double-quote characters with an extra double-quote
character.
|
static int[] |
squashLongs(long[] longs) |
Squash an array of longs into an array of ints
|
static java.lang.String quoteSqlIdentifier(java.lang.String identifier)
identifier
- the identifier to quotestatic java.lang.String getStringFromBytes(byte[] bytes)
static java.lang.String getStringFromInts(int[] ints)
public static int computeBigDecimalPrecision(java.math.BigDecimal decimal)
private static int byteArrayCmp(byte[] arg1, byte[] arg2)
public static int getSqlcodeFromSqlca(Sqlca sqlca)
public static int[] squashLongs(long[] longs)
public static java.sql.SQLException accumulateSQLException(java.sql.SQLException latestException, java.sql.SQLException accumulatedExceptions)
public static SqlException accumulateSQLException(SqlException latestException, SqlException accumulatedExceptions)
public static boolean isSqlTypeNullable(int sqlType)
static int getNonNullableSqlType(int sqlType)
Apache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.