public class BigDecimalHandler
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private static int[] |
bdConvertibleTypes |
static int |
BIGDECIMAL_REPRESENTATION |
static int |
representation |
static int |
STRING_REPRESENTATION |
| Constructor and Description |
|---|
BigDecimalHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected static boolean |
canConvertToDecimal(int type)
This method checks that the SQL type can be converted to Decimal
|
static java.lang.String |
getBigDecimalString(java.sql.CallableStatement cs,
int parameterIndex,
int parameterType)
This method is a wrapper for the CallableStatement method getBigDecimal(int parameterIndex).
|
static java.lang.String |
getBigDecimalString(java.sql.ResultSet rs,
int columnIndex)
This method is a wrapper for the ResultSet method getBigDecimal(int columnIndex).
|
static java.lang.String |
getBigDecimalString(java.sql.ResultSet rs,
java.lang.String columnName,
int columnIndex)
This method is a wrapper for ResultSet method getBigDecimal(String columnName).
|
static java.lang.String |
getObjectString(java.sql.ResultSet rs,
int columnIndex)
This method is a wrapper for ResultSet method getObject(int columnIndex)
|
static java.lang.String |
getObjectString(java.sql.ResultSet rs,
java.lang.String columnName,
int columnIndex)
This method is a wrapper for ResultSet method getObject(String columnName)
|
static void |
setBigDecimalString(java.sql.PreparedStatement ps,
int parameterIndex,
java.lang.String bdString)
This method is a wrapper for the PreparedStatement method setBigDecimal(int parameterIndex,BigDecimal x)
|
static void |
setObjectString(java.sql.PreparedStatement ps,
int parameterIndex,
java.lang.String objectString)
This method is a wrapper for the PreparedStatement method setObject(int parameterIndex, Object x)
|
static void |
updateBigDecimalString(java.sql.ResultSet rs,
int columnIndex,
java.lang.String bdString)
This method is a wrapper for ResultSet method
updateBigDecimal(int columnIndex, BigDecimal x)
|
static void |
updateBigDecimalString(java.sql.ResultSet rs,
java.lang.String columnName,
java.lang.String bdString)
This method is a wrapper for ResultSet method
updateBigDecimal(String columnName, BigDecimal x)
|
public static int representation
public static final int STRING_REPRESENTATION
public static final int BIGDECIMAL_REPRESENTATION
private static final int[] bdConvertibleTypes
public static java.lang.String getBigDecimalString(java.sql.ResultSet rs,
int columnIndex)
throws java.sql.SQLException
rs - ResultSetcolumnIndex - Column Indexjava.sql.SQLExceptionpublic static java.lang.String getBigDecimalString(java.sql.ResultSet rs,
java.lang.String columnName,
int columnIndex)
throws java.sql.SQLException
rs - ResultSetcolumnName - Column NamecolumnIndex - Coulumn Indexjava.sql.SQLExceptionpublic static java.lang.String getObjectString(java.sql.ResultSet rs,
int columnIndex)
throws java.sql.SQLException
rs - ResultSetcolumnIndex - ColumnIndexjava.sql.SQLExceptionpublic static java.lang.String getObjectString(java.sql.ResultSet rs,
java.lang.String columnName,
int columnIndex)
throws java.sql.SQLException
rs - ResultSetcolumnName - Column NamecolumnIndex - Column Indexjava.sql.SQLExceptionpublic static void updateBigDecimalString(java.sql.ResultSet rs,
int columnIndex,
java.lang.String bdString)
throws java.sql.SQLException
rs - ResultSetcolumnIndex - Column IndexbdString - String to be used in updateXXX methodjava.sql.SQLExceptionpublic static void updateBigDecimalString(java.sql.ResultSet rs,
java.lang.String columnName,
java.lang.String bdString)
throws java.sql.SQLException
rs - ResultSetcolumnName - Column NamebdString - String to be used in updateXXX methodjava.sql.SQLExceptionpublic static java.lang.String getBigDecimalString(java.sql.CallableStatement cs,
int parameterIndex,
int parameterType)
throws java.sql.SQLException
cs - CallableStatementparameterIndex - Parameter IndexparameterType - Parameter Typejava.sql.SQLExceptionpublic static void setBigDecimalString(java.sql.PreparedStatement ps,
int parameterIndex,
java.lang.String bdString)
throws java.sql.SQLException
ps - PreparedStatementparameterIndex - Parameter IndexbdString - String to be used in setXXX methodjava.sql.SQLExceptionpublic static void setObjectString(java.sql.PreparedStatement ps,
int parameterIndex,
java.lang.String objectString)
throws java.sql.SQLException
ps - PreparedStatementparameterIndex - Parameter IndexobjectString - String to be used in setObject methodjava.sql.SQLExceptionprotected static boolean canConvertToDecimal(int type)
throws java.sql.SQLException
type - the SQL type to checkjava.sql.SQLExceptionApache Derby V10.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.