Pruefung auf ungueltige Where-Parameter
| | |
| | | * |
| | | * @return queryString a query string that can be used to select the |
| | | * required Objects |
| | | * @throws ServletException |
| | | */ |
| | | private String buildQuery(Class<?> eType, Map<String, String> where, |
| | | ArrayList<String> oids) { |
| | | ArrayList<String> oids) throws ServletException { |
| | | String rval = ""; |
| | | |
| | | boolean first = true; |
| | |
| | | rval += (first ? "" : " and ") |
| | | + "(obj." + AbstractEntity.escapeString(kname) + " = '" + AbstractEntity.escapeString(where.get(k)) + "')"; |
| | | first = false; |
| | | } else { |
| | | throw new ServletException("illegal input\nunknown field: " + k); |
| | | } |
| | | } |
| | | |