Package org.nxplanner.db

Examples of org.nxplanner.db.DatabaseQueryException


    public Collection getCurrentActiveTasksForPerson() throws DatabaseQueryException {
        try {
            return CollectionUtils.select(getCurrentTasks(),
                    new TaskStatusFilter(Boolean.FALSE, Boolean.TRUE));
        } catch (HibernateException e) {
            throw new DatabaseQueryException(e);
        }
    }
View Full Code Here


    public Collection getCurrentPendingTasksForPerson() throws DatabaseQueryException {
        try {
            return CollectionUtils.select(getCurrentTasks(),
                    new TaskStatusFilter(Boolean.FALSE, Boolean.FALSE));
        } catch (HibernateException e) {
            throw new DatabaseQueryException(e);
        }
    }
View Full Code Here

    public Collection getCurrentCompletedTasksForPerson() throws DatabaseQueryException {
        try {
            return CollectionUtils.select(getCurrentTasks(),
                    new TaskStatusFilter(Boolean.TRUE, null));
        } catch (HibernateException e) {
            throw new DatabaseQueryException(e);
        }
    }
View Full Code Here

    private Collection bindAndExecuteQuery(String queryName) throws DatabaseQueryException {
        try {
            return ThreadSession.get().getNamedQuery(queryName).
                    setInteger("personId", personId).setDate("date", new Date()).list();
        } catch (HibernateException e) {
            throw new DatabaseQueryException(e);
        }
    }
View Full Code Here

TOP

Related Classes of org.nxplanner.db.DatabaseQueryException

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.