Package org.openbp.server.persistence

Examples of org.openbp.server.persistence.PersistenceCriterion


      }
      // cq.where(cb.equal(entity.get(Order_.orderNumber), orderNumber));

      for (Iterator it = query.getCriterions(); it.hasNext();)
      {
        PersistenceCriterion criterion = (PersistenceCriterion) it.next();

        String property = criterion.getProperty();
        Path propertyExpression = determinePropertyPath(property, entity);
        String operator = criterion.getOperator();
        Object value = criterion.getOperand();

        if (value != null && isPersistentObject(value))
        {
          value = getObjectId(value);
        }
View Full Code Here


        hc.addOrder(ho);
      }

      for (Iterator it = query.getCriterions(); it.hasNext();)
      {
        PersistenceCriterion criterion = (PersistenceCriterion) it.next();

        String property = criterion.getProperty();
        String operator = criterion.getOperator();
        Object value = criterion.getOperand();
        if (PersistenceCriterion.OPERATOR_EQ.equals(operator))
        {
          hc = hc.add(Restrictions.eq(property, value));
        }
        else if (PersistenceCriterion.OPERATOR_EQ_OR_NULL.equals(operator))
View Full Code Here

    {
      Expression exp = null;

      for (Iterator it = query.getCriterions(); it.hasNext();)
      {
        PersistenceCriterion criterion = (PersistenceCriterion) it.next();

        String property = criterion.getProperty();
        String operator = criterion.getOperator();
        Object value = criterion.getOperand();
        if (PersistenceCriterion.OPERATOR_EQ.equals(operator))
        {
          Expression newExp1 = ExpressionFactory.matchExp(property, value);
          Expression newExp2 = ExpressionFactory.matchExp(property, null);
          Expression newExp = newExp1.orExp(newExp2);
View Full Code Here

TOP

Related Classes of org.openbp.server.persistence.PersistenceCriterion

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.