use of org.wso2.carbon.humantask.core.dao.sql.HumanTaskJPQLQueryBuilder in project carbon-business-process by wso2.
the class HumanTaskDAOConnectionImpl method getTasksCount.
public int getTasksCount(SimpleQueryCriteria queryCriteria) {
HumanTaskJPQLQueryBuilder queryBuilder = new HumanTaskJPQLQueryBuilder(queryCriteria, entityManager);
Query countQuery = queryBuilder.buildCount();
int firstResult = Integer.parseInt(countQuery.getSingleResult().toString());
return firstResult;
}
use of org.wso2.carbon.humantask.core.dao.sql.HumanTaskJPQLQueryBuilder in project carbon-business-process by wso2.
the class HumanTaskDAOConnectionImpl method removeTasks.
public void removeTasks(SimpleQueryCriteria queryCriteria) {
HumanTaskJPQLQueryBuilder queryBuilder = new HumanTaskJPQLQueryBuilder(queryCriteria, entityManager);
Query taskQuery = queryBuilder.build();
taskQuery.executeUpdate();
}
use of org.wso2.carbon.humantask.core.dao.sql.HumanTaskJPQLQueryBuilder in project carbon-business-process by wso2.
the class HumanTaskDAOConnectionImpl method searchTasks.
public List<TaskDAO> searchTasks(SimpleQueryCriteria queryCriteria) {
HumanTaskJPQLQueryBuilder queryBuilder = new HumanTaskJPQLQueryBuilder(queryCriteria, entityManager);
Query taskQuery = queryBuilder.build();
return taskQuery.getResultList();
}
Aggregations