Package org.apache.derby.client.am
Class Utils
java.lang.Object
org.apache.derby.client.am.Utils
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SQLException
accumulateSQLException
(SQLException latestException, SQLException accumulatedExceptions) static SqlException
accumulateSQLException
(SqlException latestException, SqlException accumulatedExceptions) private static int
byteArrayCmp
(byte[] arg1, byte[] arg2) static int
computeBigDecimalPrecision
(BigDecimal decimal) (package private) static int
getNonNullableSqlType
(int sqlType) static int
getSqlcodeFromSqlca
(Sqlca sqlca) (package private) static String
getStringFromBytes
(byte[] bytes) (package private) static String
getStringFromInts
(int[] ints) static boolean
isSqlTypeNullable
(int sqlType) (package private) static String
quoteSqlIdentifier
(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
Quote an SQL identifier by enclosing it in double-quote characters and escaping any double-quote characters with an extra double-quote character.- Parameters:
identifier
- the identifier to quote- Returns:
- the quoted identifier
-
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)
-