Class Utils

java.lang.Object
org.apache.derby.client.am.Utils

public final class Utils extends Object
  • Field Details

    • tenRadixArr

      private static byte[][] tenRadixArr
  • Constructor Details

    • Utils

      public Utils()
  • Method Details

    • quoteSqlIdentifier

      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.
      Parameters:
      identifier - the identifier to quote
      Returns:
      the quoted identifier
    • getStringFromBytes

      static String getStringFromBytes(byte[] bytes)
    • getStringFromInts

      static String getStringFromInts(int[] ints)
    • computeBigDecimalPrecision

      public static int computeBigDecimalPrecision(BigDecimal decimal)
    • byteArrayCmp

      private static int byteArrayCmp(byte[] arg1, byte[] arg2)
    • getSqlcodeFromSqlca

      public static int getSqlcodeFromSqlca(Sqlca sqlca)
    • 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)