Save This Page
Home » spring-framework-2.5.6-with-dependencies » org.springframework » jdbc » core » [javadoc | source]
org.springframework.jdbc.core
abstract public class: StatementCreatorUtils [javadoc | source]
java.lang.Object
   org.springframework.jdbc.core.StatementCreatorUtils
Utility methods for PreparedStatementSetter/Creator and CallableStatementCreator implementations, providing sophisticated parameter management (including support for LOB values).

Used by PreparedStatementCreatorFactory and CallableStatementCreatorFactory, but also available for direct use in custom setter/creator implementations.

Method from org.springframework.jdbc.core.StatementCreatorUtils Summary:
cleanupParameters,   cleanupParameters,   javaTypeToSqlParameterType,   setParameterValue,   setParameterValue,   setParameterValue
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.springframework.jdbc.core.StatementCreatorUtils Detail:
 public static  void cleanupParameters(Object[] paramValues) 
    Clean up all resources held by parameter values which were passed to an execute method. This is for example important for closing LOB values.
 public static  void cleanupParameters(Collection paramValues) 
    Clean up all resources held by parameter values which were passed to an execute method. This is for example important for closing LOB values.
 public static int javaTypeToSqlParameterType(Class javaType) 
    Derive a default SQL type from the given Java type.
 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.
 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.
 public static  void setParameterValue(PreparedStatement ps,
    int paramIndex,
    int sqlType,
    String typeName,
    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.