org.apache.derby.client.am
Class Utils
java.lang.Object
org.apache.derby.client.am.Utils
public final class Utils
- extends java.lang.Object
Constructor Summary |
Utils()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
tenRadixArr
private static byte[][] tenRadixArr
Utils
public Utils()
getStringFromBytes
static java.lang.String getStringFromBytes(byte[] bytes)
getStringFromInts
static java.lang.String getStringFromInts(int[] ints)
getStringFromStrings
static java.lang.String getStringFromStrings(java.lang.String[] strings)
computeBigDecimalPrecision
public static int computeBigDecimalPrecision(java.math.BigDecimal decimal)
byteArrayCmp
private static int byteArrayCmp(byte[] arg1,
byte[] arg2)
padOrTruncate
public static java.lang.String padOrTruncate(java.lang.String s,
int fixedLength)
checkForNegativePositiveSqlcard
public static void checkForNegativePositiveSqlcard(Sqlca sqlca,
Statement statement)
throws SqlException
- Throws:
SqlException
checkForNegativePositiveSqlcard
public static void checkForNegativePositiveSqlcard(Sqlca sqlca,
ResultSet resultSet)
throws SqlException
- Throws:
SqlException
getSqlcodeFromSqlca
public static int getSqlcodeFromSqlca(Sqlca sqlca)
getUpdateCountFromSqlcard
public static int getUpdateCountFromSqlcard(Sqlca sqlca)
accumulateSQLException
public static java.sql.SQLException accumulateSQLException(java.sql.SQLException latestException,
java.sql.SQLException accumulatedExceptions)
accumulateSQLException
public static SqlException accumulateSQLException(SqlException latestException,
SqlException accumulatedExceptions)
accumulateSQLWarning
public static SqlWarning accumulateSQLWarning(SqlWarning latestException,
SqlWarning accumulatedExceptions)
getSQLTypeName
static java.lang.String getSQLTypeName(int sqlType)
isSqlTypeNullable
public static boolean isSqlTypeNullable(int sqlType)
getNonNullableSqlType
public static int getNonNullableSqlType(int sqlType)
Apache Derby V10.6 Internals - Copyright © 2004,2007 The Apache Software Foundation. All Rights Reserved.