public final class Utils extends Object
| Constructor and Description |
|---|
Utils() |
| Modifier and Type | Method and Description |
|---|---|
static SqlException |
accumulateSQLException(SqlException latestException,
SqlException accumulatedExceptions) |
static SQLException |
accumulateSQLException(SQLException latestException,
SQLException accumulatedExceptions) |
static SqlWarning |
accumulateSQLWarning(SqlWarning latestException,
SqlWarning accumulatedExceptions) |
static void |
checkForNegativePositiveSqlcard(Sqlca sqlca,
ResultSet resultSet) |
static void |
checkForNegativePositiveSqlcard(Sqlca sqlca,
Statement statement) |
static int |
computeBigDecimalPrecision(BigDecimal decimal) |
static int |
getNonNullableSqlType(int sqlType) |
static int |
getSqlcodeFromSqlca(Sqlca sqlca) |
static int |
getUpdateCountFromSqlcard(Sqlca sqlca) |
static boolean |
isSqlTypeNullable(int sqlType) |
static int |
max(int i,
int j) |
static int |
min(int i,
int j) |
static String |
padOrTruncate(String s,
int fixedLength) |
public static int computeBigDecimalPrecision(BigDecimal decimal)
public static void checkForNegativePositiveSqlcard(Sqlca sqlca, Statement statement) throws SqlException
SqlExceptionpublic static void checkForNegativePositiveSqlcard(Sqlca sqlca, ResultSet resultSet) throws SqlException
SqlExceptionpublic static int getSqlcodeFromSqlca(Sqlca sqlca)
public static int getUpdateCountFromSqlcard(Sqlca sqlca)
public static int min(int i,
int j)
public static int max(int i,
int j)
public static SQLException accumulateSQLException(SQLException latestException, SQLException accumulatedExceptions)
public static SqlException accumulateSQLException(SqlException latestException, SqlException accumulatedExceptions)
public static SqlWarning accumulateSQLWarning(SqlWarning latestException, SqlWarning accumulatedExceptions)
public static boolean isSqlTypeNullable(int sqlType)
public static int getNonNullableSqlType(int sqlType)
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.