Used by PreparedStatementCreatorFactory and CallableStatementCreatorFactory, but also available for direct use in custom setter/creator implementations.
PreparedStatementSetter, SqlParameter
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private static boolean | isDateValue(Object inValue)
Check whether the given value is a |
| private static boolean | |
| public static void | setParameterValue(PreparedStatement
the prepared statement or callable statement ps, int index of the parameter we are setting paramIndex, SqlParameter the parameter as it is declared including type param, Object the value to set inValue)Set the value for a parameter. |
| public static void | setParameterValue(PreparedStatement
the prepared statement or callable statement ps, int index of the parameter we are setting paramIndex, int the SQL type of the parameter sqlType, Object the value to set (plain value or a SqlTypeValue) inValue)Set the value for a parameter. |
| private static void | setParameterValueInternal(PreparedStatement
the prepared statement or callable statement ps, int index of the parameter we are setting paramIndex, int the SQL type of the parameter sqlType, String the type name of the parameter
(optional, only used for SQL NULL and SqlTypeValue) typeName, Integer the number of digits after the decimal point
(for DECIMAL and NUMERIC types) scale, Object the value to set (plain value or a SqlTypeValue) inValue)Set the value for a parameter. |
| StatementCreatorUtils | back to summary |
|---|---|
| pack-priv StatementCreatorUtils() | |
| isDateValue | back to summary |
|---|---|
| private static boolean isDateValue(Object inValue) Check whether the given value is a | |
| isStringValue | back to summary |
|---|---|
| private static boolean isStringValue(Object inValue) Check whether the given value can be treated as a String value. | |
| setParameterValue | back to summary |
|---|---|
| public static void setParameterValue(PreparedStatement ps, int paramIndex, SqlParameter param, Object inValue) throws SQLException Set the value for a parameter. The method used is based on the SQL type of the parameter and we can handle complex types like arrays and LOBs.
| |
| setParameterValue | back to summary |
|---|---|
| public static void setParameterValue(PreparedStatement ps, int paramIndex, int sqlType, Object inValue) throws SQLException Set the value for a parameter. The method used is based on the SQL type of the parameter and we can handle complex types like arrays and LOBs.
| |
| setParameterValueInternal | back to summary |
|---|---|
| private static void setParameterValueInternal(PreparedStatement ps, int paramIndex, int sqlType, String typeName, Integer scale, Object inValue) throws SQLException Set the value for a parameter. The method used is based on the SQL type of the parameter and we can handle complex types like arrays and LOBs.
| |