Package gov.nysenate.openleg.api

Examples of gov.nysenate.openleg.api.QueryBuilder


     */
    public void addBillListToReport(String field, String year,
            HashMap<String, ProblemBill> problemBillMap) throws ParseException,
            IOException {

        QueryBuilder builder = null;
        try {
            builder = QueryBuilder.build().otype("bill").andNot().range(field, "A*", "Z*")
                    .andNot().keyValue(field, "Z*")
                    .and().oid("(S* OR A*)")
                    .and().keyValue("year", year);
        } catch (QueryBuilderException e) {
            logger.error(e);
        }

        if(builder == null) return;

        longSearch.query(builder.query());

        for(Bill bill:longSearch) {
            logger.warn(TextFormatter.append("found ", bill.getSenateBillNo()," missing ",field));

            ProblemBill problemBill = null;
View Full Code Here

TOP

Related Classes of gov.nysenate.openleg.api.QueryBuilder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.