Top Fields Constructors Methods
org.apache.derby.client.am

public final Class Utils

extends Object
Class Inheritance
Imports
java.math.BigDecimal, java.sql.SQLException, org.apache.derby.shared.common.reference.MessageId

Field Summary

Modifier and TypeField and Description
private static byte[][]

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static SQLException
accumulateSQLException(SQLException latestException, SQLException accumulatedExceptions)

public static SqlException
accumulateSQLException(SqlException latestException, SqlException accumulatedExceptions)

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

public static int
pack-priv static int
getNonNullableSqlType(int sqlType)

public static int
pack-priv static String
getStringFromBytes(byte[] bytes)

pack-priv static String
getStringFromInts(int[] ints)

public static boolean
isSqlTypeNullable(int sqlType)

pack-priv static String

Returns:

the quoted identifier
quoteSqlIdentifier
(String
the identifier to quote
identifier
)

Quote an SQL identifier by enclosing it in double-quote characters and escaping any double-quote characters with an extra double-quote character.

public static int[]

Returns:

a corresponding array of ints
squashLongs
(long[]
The array of longs to squash
longs
)

Squash an array of longs into an array of ints

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

tenRadixArrback to summary
private static byte[][] tenRadixArr

Constructor Detail

Utilsback to summary
public Utils()

Method Detail

accumulateSQLExceptionback to summary
public static SQLException accumulateSQLException(SQLException latestException, SQLException accumulatedExceptions)
accumulateSQLExceptionback to summary
public static SqlException accumulateSQLException(SqlException latestException, SqlException accumulatedExceptions)
byteArrayCmpback to summary
private static int byteArrayCmp(byte[] arg1, byte[] arg2)
computeBigDecimalPrecisionback to summary
public static int computeBigDecimalPrecision(BigDecimal decimal)
getNonNullableSqlTypeback to summary
pack-priv static int getNonNullableSqlType(int sqlType)
getSqlcodeFromSqlcaback to summary
public static int getSqlcodeFromSqlca(Sqlca sqlca)
getStringFromBytesback to summary
pack-priv static String getStringFromBytes(byte[] bytes)
getStringFromIntsback to summary
pack-priv static String getStringFromInts(int[] ints)
isSqlTypeNullableback to summary
public static boolean isSqlTypeNullable(int sqlType)
quoteSqlIdentifierback to summary
pack-priv 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:String

the identifier to quote

Returns:String

the quoted identifier

squashLongsback to summary
public static int[] squashLongs(long[] longs)

Squash an array of longs into an array of ints

Parameters
longs:long[]

The array of longs to squash

Returns:int[]

a corresponding array of ints