/** * Save a StepExecution. A unique id will be generated by the * stepExecutionIncrementer, and then set in the StepExecution. All values * will then be stored via an INSERT statement. * * @see StepExecutionDao#saveStepExecution(StepExecution) */ @Override public void saveStepExecution(StepExecution stepExecution) { List<Object[]> parameters = buildStepExecutionParameters(stepExecution); Object[] parameterValues = parameters.get(0); //Template expects an int array fails with Integer int[] parameterTypes = new int[parameters.get(1).length]; for (int i = 0; i < parameterTypes.length; i++) { parameterTypes[i] = (Integer)parameters.get(1)[i]; } getJdbcTemplate().update(getQuery(SAVE_STEP_EXECUTION), parameterValues, parameterTypes); }
/** * Save a StepExecution. A unique id will be generated by the * stepExecutionIncrementer, and then set in the StepExecution. All values * will then be stored via an INSERT statement. * * @see StepExecutionDao#saveStepExecution(StepExecution) */ @Override public void saveStepExecution(StepExecution stepExecution) { List<Object[]> parameters = buildStepExecutionParameters(stepExecution); Object[] parameterValues = parameters.get(0); //Template expects an int array fails with Integer int[] parameterTypes = new int[parameters.get(1).length]; for (int i = 0; i < parameterTypes.length; i++) { parameterTypes[i] = (Integer)parameters.get(1)[i]; } getJdbcTemplate().update(getQuery(SAVE_STEP_EXECUTION), parameterValues, parameterTypes); }
/** * Save a StepExecution. A unique id will be generated by the * stepExecutionIncrementer, and then set in the StepExecution. All values * will then be stored via an INSERT statement. * * @see StepExecutionDao#saveStepExecution(StepExecution) */ @Override public void saveStepExecution(StepExecution stepExecution) { List<Object[]> parameters = buildStepExecutionParameters(stepExecution); Object[] parameterValues = parameters.get(0); //Template expects an int array fails with Integer int[] parameterTypes = new int[parameters.get(1).length]; for (int i = 0; i < parameterTypes.length; i++) { parameterTypes[i] = (Integer)parameters.get(1)[i]; } getJdbcTemplate().update(getQuery(SAVE_STEP_EXECUTION), parameterValues, parameterTypes); }
/** * Save a StepExecution. A unique id will be generated by the * stepExecutionIncrementor, and then set in the StepExecution. All values * will then be stored via an INSERT statement. * * @see StepExecutionDao#saveStepExecution(StepExecution) */ @Override public void saveStepExecution(StepExecution stepExecution) { List<Object[]> parameters = buildStepExecutionParameters(stepExecution); Object[] parameterValues = parameters.get(0); //Template expects an int array fails with Integer int[] parameterTypes = new int[parameters.get(1).length]; for (int i = 0; i < parameterTypes.length; i++) { parameterTypes[i] = (Integer)parameters.get(1)[i]; } getJdbcTemplate().update(getQuery(SAVE_STEP_EXECUTION), parameterValues, parameterTypes); }