Package org.openbp.server.persistence

Examples of org.openbp.server.persistence.PersistenceContext.createQuery()


    {
      LogUtil.debug(getClass(), "Performing token query (all tokens).");
    }

    PersistenceContext pc = getPersistenceContext();
    PersistenceQuery query = pc.createQuery(TokenContext.class);

    if (criteria != null)
    {
      configureCriterion(query, criteria);
    }
View Full Code Here


    LogUtil.debug(getClass(), "Performing query for executable tokens.");
    PersistenceContext pc = getPersistenceContext();

    // Construct search search criterion for executable token contexts;
    // don't cache this, depends on current session.
    PersistenceQuery query = pc.createQuery(TokenContext.class);
    query.eq("lifecycleRequest", new Integer(LifecycleRequest.RESUME));
    query.neq("lifecycleState", new Integer(LifecycleState.SELECTED));
    query.addOrdering("priority");

    int max = maxResults;
View Full Code Here

  @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
  public Iterator getworkflowTasks(final WorkflowTaskCriteria criteria)
  {
    LogUtil.debug(getClass(), "Performing workflow task query $0.", criteria);
    PersistenceContext pc = getPersistenceContext();
    PersistenceQuery query = pc.createQuery(WorkflowTask.class);

    if (criteria != null)
    {
      configureCriterion(query, criteria);
    }
View Full Code Here

          model.getName(), getClass().getName(), e
        });
        return null;
      }

      PersistenceQuery query = pc.createQuery(DbModelItem.class);
      query.eq("modelName", model.getName());
      for (Iterator it = pc.runQuery(query); it.hasNext();)
      {
        DbModelItem dbModelItem = (DbModelItem) it.next();
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.