protected void initValues() { Map queryValues = getProcedureQuery().getParameters(); // match values with parameters in the correct order. // make an assumption that a missing value is NULL // Any reason why this is bad? Iterator it = callParams.iterator(); while (it.hasNext()) { ProcedureParameter param = (ProcedureParameter) it.next(); if (param.getDirection() == ProcedureParameter.OUT_PARAMETER) { values.add(OUT_PARAM); } else { values.add(queryValues.get(param.getName())); } } }
protected void initValues() { Map<String, ?> queryValues = getProcedureQuery().getParameters(); // match values with parameters in the correct order. // make an assumption that a missing value is NULL // Any reason why this is bad? for (ProcedureParameter param : callParams) { if (param.getDirection() == ProcedureParameter.OUT_PARAMETER) { values.add(OUT_PARAM); } else { values.add(queryValues.get(param.getName())); } } }
Map<String, ?> parameters = query.getParameters(); if (!parameters.isEmpty()) {