Examples of JobParameter


Examples of org.springframework.batch.core.JobParameter

      @Override
      public void processRow(ResultSet rs) throws SQLException {
        ParameterType type = ParameterType.valueOf(rs
            .getString("TYPE_CD"));
        JobParameter value = null;
        if (type == ParameterType.STRING) {
          value = new JobParameter(rs.getString("STRING_VAL"));
        } else if (type == ParameterType.LONG) {
          value = new JobParameter(rs.getLong("LONG_VAL"));
        } else if (type == ParameterType.DOUBLE) {
          value = new JobParameter(rs.getDouble("DOUBLE_VAL"));
        } else if (type == ParameterType.DATE) {
          value = new JobParameter(rs.getTimestamp("DATE_VAL"));
        }
        map.put(rs.getString("KEY_NAME"), value);
      }
    };
    Map<String, Object> args = new HashMap<String, Object>();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.