/** * Returns the locations of all occurrences of the named parameter. */ @Override public int[] getNamedParameterLocs(String name) throws QueryException { ParameterInformation info = queryTranslator.getParameterTranslations().getNamedParameterInformation( name ); if ( info == null ) { try { info = queryTranslator.getParameterTranslations().getPositionalParameterInformation( Integer.parseInt( name ) ); } catch (Exception ignore) { } } if ( info == null ) { throw new QueryException( "Unrecognized parameter label : " + name ); } return info.getSourceLocations(); }