final Iterator<Long> executionIdIterator = serializedContexts.keySet().iterator(); getJdbcTemplate().batchUpdate(getQuery(sql), new BatchPreparedStatementSetter() { @Override public void setValues(PreparedStatement ps, int i) throws SQLException {
getJdbcTemplate().update(getQuery(sql), new PreparedStatementSetter() { @Override public void setValues(PreparedStatement ps) throws SQLException {
@Override public ExecutionContext getExecutionContext(JobExecution jobExecution) { Long executionId = jobExecution.getId(); Assert.notNull(executionId, "ExecutionId must not be null."); List<ExecutionContext> results = getJdbcTemplate().query(getQuery(FIND_JOB_EXECUTION_CONTEXT), new ExecutionContextRowMapper(), executionId); if (results.size() > 0) { return results.get(0); } else { return new ExecutionContext(); } }
@Override public ExecutionContext getExecutionContext(StepExecution stepExecution) { Long executionId = stepExecution.getId(); Assert.notNull(executionId, "ExecutionId must not be null."); List<ExecutionContext> results = getJdbcTemplate().query(getQuery(FIND_STEP_EXECUTION_CONTEXT), new ExecutionContextRowMapper(), executionId); if (results.size() > 0) { return results.get(0); } else { return new ExecutionContext(); } }
public ExecutionContext getExecutionContext(StepExecution stepExecution) { Long executionId = stepExecution.getId(); Assert.notNull(executionId, "ExecutionId must not be null."); List<ExecutionContext> results = getJdbcTemplate().query(getQuery(FIND_STEP_EXECUTION_CONTEXT), new ExecutionContextRowMapper(), executionId); if (results.size() > 0) { return results.get(0); } else { return new ExecutionContext(); } }
@Override public ExecutionContext getExecutionContext(StepExecution stepExecution) { Long executionId = stepExecution.getId(); Assert.notNull(executionId, "ExecutionId must not be null."); List<ExecutionContext> results = getJdbcTemplate().query(getQuery(FIND_STEP_EXECUTION_CONTEXT), new ExecutionContextRowMapper(), executionId); if (results.size() > 0) { return results.get(0); } else { return new ExecutionContext(); } }
@Override public ExecutionContext getExecutionContext(JobExecution jobExecution) { Long executionId = jobExecution.getId(); Assert.notNull(executionId, "ExecutionId must not be null."); List<ExecutionContext> results = getJdbcTemplate().query(getQuery(FIND_JOB_EXECUTION_CONTEXT), new ExecutionContextRowMapper(), executionId); if (results.size() > 0) { return results.get(0); } else { return new ExecutionContext(); } }
getJdbcTemplate().update(getQuery(sql), new PreparedStatementSetter() { @Override public void setValues(PreparedStatement ps) throws SQLException {
@Override public ExecutionContext getExecutionContext(StepExecution stepExecution) { Long executionId = stepExecution.getId(); Assert.notNull(executionId, "ExecutionId must not be null."); List<ExecutionContext> results = getJdbcTemplate().query(getQuery(FIND_STEP_EXECUTION_CONTEXT), new ExecutionContextRowMapper(), executionId); if (results.size() > 0) { return results.get(0); } else { return new ExecutionContext(); } }
public ExecutionContext getExecutionContext(JobExecution jobExecution) { Long executionId = jobExecution.getId(); Assert.notNull(executionId, "ExecutionId must not be null."); List<ExecutionContext> results = getJdbcTemplate().query(getQuery(FIND_JOB_EXECUTION_CONTEXT), new ExecutionContextRowMapper(), executionId); if (results.size() > 0) { return results.get(0); } else { return new ExecutionContext(); } }
getJdbcTemplate().update(getQuery(sql), new PreparedStatementSetter() { @Override public void setValues(PreparedStatement ps) throws SQLException {
final Iterator<Long> executionIdIterator = serializedContexts.keySet().iterator(); getJdbcTemplate().batchUpdate(getQuery(sql), new BatchPreparedStatementSetter() { @Override public void setValues(PreparedStatement ps, int i) throws SQLException {
final Iterator<Long> executionIdIterator = serializedContexts.keySet().iterator(); getJdbcTemplate().batchUpdate(getQuery(sql), new BatchPreparedStatementSetter() { @Override public void setValues(PreparedStatement ps, int i) throws SQLException {
getJdbcTemplate().update(getQuery(sql), new PreparedStatementSetter() { @Override public void setValues(PreparedStatement ps) throws SQLException {
@Override public ExecutionContext getExecutionContext(JobExecution jobExecution) { Long executionId = jobExecution.getId(); Assert.notNull(executionId, "ExecutionId must not be null."); List<ExecutionContext> results = getJdbcTemplate().query(getQuery(FIND_JOB_EXECUTION_CONTEXT), new ExecutionContextRowMapper(), executionId); if (results.size() > 0) { return results.get(0); } else { return new ExecutionContext(); } }
final Iterator<Long> executionIdIterator = serializedContexts.keySet().iterator(); getJdbcTemplate().batchUpdate(getQuery(sql), new BatchPreparedStatementSetter() { @Override public void setValues(PreparedStatement ps, int i) throws SQLException {
@Override public ExecutionContext getExecutionContext(StepExecution stepExecution) { Long executionId = stepExecution.getId(); Assert.notNull(executionId, "ExecutionId must not be null."); List<ExecutionContext> results = getJdbcTemplate().query(getQuery(FIND_STEP_EXECUTION_CONTEXT), new ExecutionContextRowMapper(), executionId); if (results.size() > 0) { return results.get(0); } else { return new ExecutionContext(); } }
@Override public ExecutionContext getExecutionContext(JobExecution jobExecution) { Long executionId = jobExecution.getId(); Assert.notNull(executionId, "ExecutionId must not be null."); List<ExecutionContext> results = getJdbcTemplate().query(getQuery(FIND_JOB_EXECUTION_CONTEXT), new ExecutionContextRowMapper(), executionId); if (results.size() > 0) { return results.get(0); } else { return new ExecutionContext(); } }
getJdbcTemplate().getJdbcOperations().update(getQuery(sql), new PreparedStatementSetter() { public void setValues(PreparedStatement ps) throws SQLException { ps.setString(1, shortContext);