ArrayList<RunnableQuery> res;
Map<String, Query> queries;
Iterator<String> iterator;
RunnableQuery runnableQuery;
Query query;
Statement statement;
res = new ArrayList<RunnableQuery>();
queries = this.manager.getQueries();
iterator = queries.keySet().iterator();
while (iterator.hasNext()) {
query = queries.get(iterator.next());
statement = query.getStatements().get(statementName);
try {
if (statement != null) {
runnableQuery = getQueryStatement(query, statement);
res.add(runnableQuery);
}
} catch (QueryBuilderException e) {
runnableQuery = new RunnableQuery(e, query.getName(),
statement.getName());
res.add(runnableQuery);
}
}