| java.lang.Object org.springframework.jdbc.core.StatementCreatorUtils
Method Summary | |
public static void | cleanupParameters(Object[] paramValues) Clean up all resources held by parameter values which were passed to an
execute method. | public static void | cleanupParameters(Collection paramValues) Clean up all resources held by parameter values which were passed to an
execute method. | public static void | setParameterValue(PreparedStatement ps, int paramIndex, SqlParameter param, Object inValue) Set the value for a parameter. | public static void | setParameterValue(PreparedStatement ps, int paramIndex, int sqlType, Object inValue) Set the value for a parameter. | public static void | setParameterValue(PreparedStatement ps, int paramIndex, int sqlType, String typeName, Object inValue) Set the value for a parameter. |
setParameterValue | public static void setParameterValue(PreparedStatement ps, int paramIndex, SqlParameter param, Object inValue) throws SQLException(Code) | | 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.
Parameters: ps - the prepared statement or callable statement Parameters: paramIndex - index of the parameter we are setting Parameters: param - the parameter as it is declared including type Parameters: inValue - the value to set throws: SQLException - if thrown by PreparedStatement methods |
setParameterValue | public static void setParameterValue(PreparedStatement ps, int paramIndex, int sqlType, Object inValue) throws SQLException(Code) | | 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.
Parameters: ps - the prepared statement or callable statement Parameters: paramIndex - index of the parameter we are setting Parameters: sqlType - the SQL type of the parameter Parameters: inValue - the value to set (plain value or a SqlTypeValue) throws: SQLException - if thrown by PreparedStatement methods See Also: SqlTypeValue |
setParameterValue | public static void setParameterValue(PreparedStatement ps, int paramIndex, int sqlType, String typeName, Object inValue) throws SQLException(Code) | | 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.
Parameters: ps - the prepared statement or callable statement Parameters: paramIndex - index of the parameter we are setting Parameters: sqlType - the SQL type of the parameter Parameters: typeName - the type name of the parameter(optional, only used for SQL NULL and SqlTypeValue) Parameters: inValue - the value to set (plain value or a SqlTypeValue) throws: SQLException - if thrown by PreparedStatement methods See Also: SqlTypeValue |
|
|