/** * Gets the declared parameter keys in the given query. This information is only available after the query has been * parsed. As native language queries are not parsed, this information is not available for them. * * @return set of parameter identifiers in a parsed query */ public Set<?> getDeclaredParameterKeys() { return getDeclaredParameters().keySet(); }
/** * Gets the declared parameter keys in the given query. This information is only available after the query has been * parsed. As native language queries are not parsed, this information is not available for them. * * @return set of parameter identifiers in a parsed query */ public Set<?> getDeclaredParameterKeys() { return getDeclaredParameters().keySet(); }
/** * Gets the declared parameter keys in the given query. This information is only available after the query has been * parsed. As native language queries are not parsed, this information is not available for them. * * @return set of parameter identifiers in a parsed query */ public Set<?> getDeclaredParameterKeys() { return getDeclaredParameters().keySet(); }
/** * Gets the declared parameter keys in the given query. This information is only available after the query has been * parsed. As native language queries are not parsed, this information is not available for them. * * @return set of parameter identifiers in a parsed query */ public Set<?> getDeclaredParameterKeys() { return getDeclaredParameters().keySet(); }
/** * Gets the parameters declared in this query. */ public Set<Parameter<?>> getParameters() { Set<Parameter<?>> result = new HashSet<Parameter<?>>(); result.addAll(getDeclaredParameters().values()); return result; }
/** * Gets the parameters declared in this query. */ public Set<Parameter<?>> getParameters() { Set<Parameter<?>> result = new HashSet<Parameter<?>>(); result.addAll(getDeclaredParameters().values()); return result; }
/** * Gets the parameters declared in this query. */ public Set<Parameter<?>> getParameters() { Set<Parameter<?>> result = new HashSet<Parameter<?>>(); result.addAll(getDeclaredParameters().values()); return result; }
/** * Gets the parameters declared in this query. */ public Set<Parameter<?>> getParameters() { Set<Parameter<?>> result = new HashSet<Parameter<?>>(); result.addAll(getDeclaredParameters().values()); return result; }
/** * Gets a map of values of each parameter indexed by their <em>original</em> key. * * @return an empty map if no parameter is declared for this query. The unbound parameters has a value of null which * is indistinguishable from the value being bound to null. */ Map<Object, Object> getParameterValues() { Map<Object, Object> result = new HashMap<Object, Object>(); if (_boundParams == null) return result; for (Map.Entry<Object, Parameter<?>> entry : getDeclaredParameters().entrySet()) { Object paramKey = entry.getKey(); Parameter<?> param = entry.getValue(); result.put(paramKey, _boundParams.get(param)); } return result; }
/** * Gets a map of values of each parameter indexed by their <em>original</em> key. * * @return an empty map if no parameter is declared for this query. The unbound parameters has a value of null which * is indistinguishable from the value being bound to null. */ Map<Object, Object> getParameterValues() { Map<Object, Object> result = new HashMap<Object, Object>(); if (_boundParams == null) return result; for (Map.Entry<Object, Parameter<?>> entry : getDeclaredParameters().entrySet()) { Object paramKey = entry.getKey(); Parameter<?> param = entry.getValue(); result.put(paramKey, _boundParams.get(param)); } return result; }
/** * Gets a map of values of each parameter indexed by their <em>original</em> key. * * @return an empty map if no parameter is declared for this query. The unbound parameters has a value of null which * is indistinguishable from the value being bound to null. */ Map<Object, Object> getParameterValues() { Map<Object, Object> result = new HashMap<Object, Object>(); if (_boundParams == null) return result; for (Map.Entry<Object, Parameter<?>> entry : getDeclaredParameters().entrySet()) { Object paramKey = entry.getKey(); Parameter<?> param = entry.getValue(); result.put(paramKey, _boundParams.get(param)); } return result; }
/** * Gets a map of values of each parameter indexed by their <em>original</em> key. * * @return an empty map if no parameter is declared for this query. The unbound parameters has a value of null which * is indistinguishable from the value being bound to null. */ Map<Object, Object> getParameterValues() { Map<Object, Object> result = new HashMap<Object, Object>(); if (_boundParams == null) return result; for (Map.Entry<Object, Parameter<?>> entry : getDeclaredParameters().entrySet()) { Object paramKey = entry.getKey(); Parameter<?> param = entry.getValue(); result.put(paramKey, _boundParams.get(param)); } return result; }
/** * Gets the parameter keys bound with this query. Parameter key can be Integer, String or a ParameterExpression * itself but all parameters keys of a particular query are of the same type. */ public Set<?> getBoundParameterKeys() { if (_boundParams == null) return Collections.EMPTY_SET; getDeclaredParameters(); Set<Object> result = new HashSet<Object>(); for (Map.Entry<Object, Parameter<?>> entry : _declaredParams.entrySet()) { if (isBound(entry.getValue())) { result.add(entry.getKey()); } } return result; }
/** * Gets the parameter keys bound with this query. Parameter key can be Integer, String or a ParameterExpression * itself but all parameters keys of a particular query are of the same type. */ public Set<?> getBoundParameterKeys() { if (_boundParams == null) return Collections.EMPTY_SET; getDeclaredParameters(); Set<Object> result = new HashSet<Object>(); for (Map.Entry<Object, Parameter<?>> entry : _declaredParams.entrySet()) { if (isBound(entry.getValue())) { result.add(entry.getKey()); } } return result; }
/** * Gets the parameter keys bound with this query. Parameter key can be Integer, String or a ParameterExpression * itself but all parameters keys of a particular query are of the same type. */ public Set<?> getBoundParameterKeys() { if (_boundParams == null) return Collections.EMPTY_SET; getDeclaredParameters(); Set<Object> result = new HashSet<Object>(); for (Map.Entry<Object, Parameter<?>> entry : _declaredParams.entrySet()) { if (isBound(entry.getValue())) { result.add(entry.getKey()); } } return result; }
/** * Gets the parameter keys bound with this query. Parameter key can be Integer, String or a ParameterExpression * itself but all parameters keys of a particular query are of the same type. */ public Set<?> getBoundParameterKeys() { if (_boundParams == null) return Collections.EMPTY_SET; getDeclaredParameters(); Set<Object> result = new HashSet<Object>(); for (Map.Entry<Object, Parameter<?>> entry : _declaredParams.entrySet()) { if (isBound(entry.getValue())) { result.add(entry.getKey()); } } return result; }
/** * Get the positional parameter with the given position. The parameter may just have been declared and not bound to * a value. * * @param position * specified in the user query. * @return parameter object * @throws IllegalArgumentException * if the parameter with the given position does not exist */ public Parameter<?> getParameter(int pos) { if (_convertPositionalParams == true) { return getParameter("_" + String.valueOf(pos)); } Parameter<?> param = getDeclaredParameters().get(pos); if (param == null) throw new IllegalArgumentException(_loc.get("param-missing-pos", pos, getQueryString(), getDeclaredParameterKeys()).getMessage()); return param; }
/** * Get the positional parameter with the given position. The parameter may just have been declared and not bound to * a value. * * @param position * specified in the user query. * @return parameter object * @throws IllegalArgumentException * if the parameter with the given position does not exist */ public Parameter<?> getParameter(int pos) { if (_convertPositionalParams == true) { return getParameter("_" + String.valueOf(pos)); } Parameter<?> param = getDeclaredParameters().get(pos); if (param == null) throw new IllegalArgumentException(_loc.get("param-missing-pos", pos, getQueryString(), getDeclaredParameterKeys()).getMessage()); return param; }
/** * Get the positional parameter with the given position. The parameter may just have been declared and not bound to * a value. * * @param position * specified in the user query. * @return parameter object * @throws IllegalArgumentException * if the parameter with the given position does not exist */ public Parameter<?> getParameter(int pos) { if (_convertPositionalParams == true) { return getParameter("_" + String.valueOf(pos)); } Parameter<?> param = getDeclaredParameters().get(pos); if (param == null) throw new IllegalArgumentException(_loc.get("param-missing-pos", pos, getQueryString(), getDeclaredParameterKeys()).getMessage()); return param; }
/** * Get the positional parameter with the given position. The parameter may just have been declared and not bound to * a value. * * @param position * specified in the user query. * @return parameter object * @throws IllegalArgumentException * if the parameter with the given position does not exist */ public Parameter<?> getParameter(int pos) { if (_convertPositionalParams == true) { return getParameter("_" + String.valueOf(pos)); } Parameter<?> param = getDeclaredParameters().get(pos); if (param == null) throw new IllegalArgumentException(_loc.get("param-missing-pos", pos, getQueryString(), getDeclaredParameterKeys()).getMessage()); return param; }