Java 类org.springframework.jdbc.core.ParameterMapper 实例源码

项目:lams    文件:StoredProcedure.java   
/**
 * Execute the stored procedure. Subclasses should define a strongly typed
 * execute method (with a meaningful name) that invokes this method, passing in
 * a ParameterMapper that will populate the input map.  This allows mapping database
 * specific features since the ParameterMapper has access to the Connection object.
 * The execute method is also responsible for extracting typed values from the output map.
 * Subclass execute methods will often take domain objects as arguments and return values.
 * Alternatively, they can return void.
 * @param inParamMapper map of input parameters, keyed by name as in parameter
 * declarations. Output parameters need not (but can) be included in this map.
 * It is legal for map entries to be {@code null}, and this will produce the correct
 * behavior using a NULL argument to the stored procedure.
 * @return map of output params, keyed by name as in parameter declarations.
 * Output parameters will appear here, with their values after the
 * stored procedure has been called.
 */
public Map<String, Object> execute(ParameterMapper inParamMapper) throws DataAccessException {
    checkCompiled();
    return getJdbcTemplate().call(newCallableStatementCreator(inParamMapper), getDeclaredParameters());
}
项目:lams    文件:SqlCall.java   
/**
 * Return a CallableStatementCreator to perform an operation
 * with the parameters returned from this ParameterMapper.
 * @param inParamMapper parametermapper. May not be {@code null}.
 */
protected CallableStatementCreator newCallableStatementCreator(ParameterMapper inParamMapper) {
    return this.callableStatementFactory.newCallableStatementCreator(inParamMapper);
}
项目:spring4-understanding    文件:StoredProcedure.java   
/**
 * Execute the stored procedure. Subclasses should define a strongly typed
 * execute method (with a meaningful name) that invokes this method, passing in
 * a ParameterMapper that will populate the input map.  This allows mapping database
 * specific features since the ParameterMapper has access to the Connection object.
 * The execute method is also responsible for extracting typed values from the output map.
 * Subclass execute methods will often take domain objects as arguments and return values.
 * Alternatively, they can return void.
 * @param inParamMapper map of input parameters, keyed by name as in parameter
 * declarations. Output parameters need not (but can) be included in this map.
 * It is legal for map entries to be {@code null}, and this will produce the correct
 * behavior using a NULL argument to the stored procedure.
 * @return map of output params, keyed by name as in parameter declarations.
 * Output parameters will appear here, with their values after the
 * stored procedure has been called.
 */
public Map<String, Object> execute(ParameterMapper inParamMapper) throws DataAccessException {
    checkCompiled();
    return getJdbcTemplate().call(newCallableStatementCreator(inParamMapper), getDeclaredParameters());
}
项目:spring4-understanding    文件:SqlCall.java   
/**
 * Return a CallableStatementCreator to perform an operation
 * with the parameters returned from this ParameterMapper.
 * @param inParamMapper parametermapper. May not be {@code null}.
 */
protected CallableStatementCreator newCallableStatementCreator(ParameterMapper inParamMapper) {
    return this.callableStatementFactory.newCallableStatementCreator(inParamMapper);
}
项目:class-guard    文件:StoredProcedure.java   
/**
 * Execute the stored procedure. Subclasses should define a strongly typed
 * execute method (with a meaningful name) that invokes this method, passing in
 * a ParameterMapper that will populate the input map.  This allows mapping database
 * specific features since the ParameterMapper has access to the Connection object.
 * The execute method is also responsible for extracting typed values from the output map.
 * Subclass execute methods will often take domain objects as arguments and return values.
 * Alternatively, they can return void.
 * @param inParamMapper map of input parameters, keyed by name as in parameter
 * declarations. Output parameters need not (but can) be included in this map.
 * It is legal for map entries to be {@code null}, and this will produce the correct
 * behavior using a NULL argument to the stored procedure.
 * @return map of output params, keyed by name as in parameter declarations.
 * Output parameters will appear here, with their values after the
 * stored procedure has been called.
 */
public Map<String, Object> execute(ParameterMapper inParamMapper) throws DataAccessException {
    checkCompiled();
    return getJdbcTemplate().call(newCallableStatementCreator(inParamMapper), getDeclaredParameters());
}
项目:class-guard    文件:SqlCall.java   
/**
 * Return a CallableStatementCreator to perform an operation
 * with the parameters returned from this ParameterMapper.
 * @param inParamMapper parametermapper. May not be {@code null}.
 */
protected CallableStatementCreator newCallableStatementCreator(ParameterMapper inParamMapper) {
    return this.callableStatementFactory.newCallableStatementCreator(inParamMapper);
}