Class Utils
java.lang.Object
org.apache.derby.client.am.Utils
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SQLExceptionaccumulateSQLException(SQLException latestException, SQLException accumulatedExceptions) static SqlExceptionaccumulateSQLException(SqlException latestException, SqlException accumulatedExceptions) private static intbyteArrayCmp(byte[] arg1, byte[] arg2) static intcomputeBigDecimalPrecision(BigDecimal decimal) (package private) static intgetNonNullableSqlType(int sqlType) static intgetSqlcodeFromSqlca(Sqlca sqlca) (package private) static StringgetStringFromBytes(byte[] bytes) (package private) static StringgetStringFromInts(int[] ints) static booleanisSqlTypeNullable(int sqlType) (package private) static StringquoteSqlIdentifier(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
-
Field Details
-
tenRadixArr
private static byte[][] tenRadixArr
-
-
Constructor Details
-
Utils
public Utils()
-
-
Method Details
-
quoteSqlIdentifier
-
getStringFromBytes
-
getStringFromInts
-
computeBigDecimalPrecision
-
byteArrayCmp
private static int byteArrayCmp(byte[] arg1, byte[] arg2) -
getSqlcodeFromSqlca
-
squashLongs
public static int[] squashLongs(long[] longs) Squash an array of longs into an array of ints -
accumulateSQLException
public static SQLException accumulateSQLException(SQLException latestException, SQLException accumulatedExceptions) -
accumulateSQLException
public static SqlException accumulateSQLException(SqlException latestException, SqlException accumulatedExceptions) -
isSqlTypeNullable
public static boolean isSqlTypeNullable(int sqlType) -
getNonNullableSqlType
static int getNonNullableSqlType(int sqlType)
-