Examples of queryHql()


Examples of net.sourceforge.processdash.tool.db.QueryRunner.queryHql()

        StringBuilder query = new StringBuilder(DEFECT_HQL_QUERY);
        List args = QueryUtils.addCriteriaToHql(query, "d", null, dbCriteria);

        List<DefectToAnalyze> defects = new ArrayList();
        List<Object[]> rawData = queryRunner.queryHql(query.toString(),
            args.toArray());
        for (Object[] oneRow : rawData) {
            String path = getDefectPathFromHqlResultRow(oneRow);
            Defect d = getDefectFromHqlResultRow(oneRow);
            defects.add(new DefectToAnalyze(path, d));
View Full Code Here

Examples of net.sourceforge.processdash.tool.db.QueryRunner.queryHql()

        if (query.indexOf(QueryUtils.IMPOSSIBLE_CONDITION) != -1)
            return new ArrayList();

        // run the query
        Object[] queryArgArray = queryArgs.toArray();
        List result = queryRunner.queryHql(query.toString(), queryArgArray);
        return result;
    }

}
View Full Code Here

Examples of net.sourceforge.processdash.tool.db.QueryRunner.queryHql()

        String planItemId = asString(getArg(arguments, 1));

        // look up this WBS element in the database.
        try {
            int key;
            List result = queryRunner.queryHql(NAME_QUERY, wbsElementName);
            if ((result == null || result.isEmpty())
                    && StringUtils.hasValue(planItemId))
                result = queryRunner.queryHql(ID_QUERY, planItemId);
            if (result != null && !result.isEmpty()) {
                // extract the value from the result set
View Full Code Here

Examples of net.sourceforge.processdash.tool.db.QueryRunner.queryHql()

        try {
            int key;
            List result = queryRunner.queryHql(NAME_QUERY, wbsElementName);
            if ((result == null || result.isEmpty())
                    && StringUtils.hasValue(planItemId))
                result = queryRunner.queryHql(ID_QUERY, planItemId);
            if (result != null && !result.isEmpty()) {
                // extract the value from the result set
                key = (Integer) result.get(0);
            } else {
                // not found? Use an impossible WBS key to result in no matches
View Full Code Here

Examples of net.sourceforge.processdash.tool.db.QueryRunner.queryHql()

        if (projectKeys.isEmpty())
            return;

        List data;
        try {
            data = query.queryHql(TIME_LOG_QUERY, projectKeys, fromDateKey,
                toDateKey);
        } catch (Exception e) {
            e.printStackTrace();
            return;
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.