Examples of notEq()


Examples of org.jeecgframework.core.common.hibernate.qbc.CriteriaQuery.notEq()

  @ResponseBody
  public List<ComboTree> setPFunction(HttpServletRequest request,
      ComboTree comboTree) {
    CriteriaQuery cq = new CriteriaQuery(TSFunction.class);
    if(null != request.getParameter("selfId")){
      cq.notEq("id", request.getParameter("selfId"));
    }
    if (comboTree.getId() != null) {
      cq.eq("TSFunction.id", comboTree.getId());
    }
    if (comboTree.getId() == null) {
View Full Code Here

Examples of org.jeecgframework.core.common.hibernate.qbc.CriteriaQuery.notEq()

  public List<TreeGrid> functionGrid(HttpServletRequest request,
      TreeGrid treegrid) {
    CriteriaQuery cq = new CriteriaQuery(TSFunction.class);
    String selfId = request.getParameter("selfId");
    if(selfId != null){
      cq.notEq("id", selfId);
    }
    if (treegrid.getId() != null) {
      cq.eq("TSFunction.id", treegrid.getId());
    }
    if (treegrid.getId() == null) {
View Full Code Here

Examples of org.jeecgframework.core.common.hibernate.qbc.CriteriaQuery.notEq()

  @RequestMapping(params = "setPFunction")
  @ResponseBody
  public List<ComboTree> setPFunction(HttpServletRequest request, ComboTree comboTree) {
    CriteriaQuery cq = new CriteriaQuery(TSDepart.class);
    if(null != request.getParameter("selfId")){
      cq.notEq("id", request.getParameter("selfId"));
    }
    if (comboTree.getId() != null) {
      cq.eq("TSPDepart.id", comboTree.getId());
    }
    if (comboTree.getId() == null) {
View Full Code Here

Examples of org.jeecgframework.core.common.hibernate.qbc.CriteriaQuery.notEq()

          comboTree.getId());
    }
    if (comboTree.getId() == null) {
      cq.isNull("TSFunction");
    }
    cq.notEq("functionLevel",Short.parseShort("-1"));
    cq.add();
    List<TSFunction> functionList = systemService.getListByCriteriaQuery(cq,false);
    List<ComboTree> comboTrees = new ArrayList<ComboTree>();
    String roleId = request.getParameter("roleId");
    List<TSFunction> loginActionlist = new ArrayList<TSFunction>();// 已有权限菜单
View Full Code Here

Examples of org.jpox.store.mapped.expression.ScalarExpression.noteq()

            {
                expr = expr.gteq(compileAdditiveExpression());
            }
            else if (p.parseString("<>"))
            {
                expr = expr.noteq(compileAdditiveExpression());
            }
            else if (p.parseChar('<'))
            {
                expr = expr.lt(compileAdditiveExpression());
            }
View Full Code Here

Examples of org.jpox.store.mapped.expression.ScalarExpression.noteq()

            {
                expr = expr.eq(compileRelationalExpression());
            }
            else if (p.parseString("!="))
            {
                expr = expr.noteq(compileRelationalExpression());
            }
            else if (p.parseString("="))
            {
                // Assignment operator is invalid (user probably meant to specify "==")
                throw new JPOXUserException(LOCALISER.msg("042008", p.getInput()));
View Full Code Here

Examples of org.jresearch.flexess.models.expression.stdlib.ExprStdLib.notEq()

    // For all types
    for(EDataType type : typesAndValues.keySet()){
     
      // Test a != b = true           
      OperationCall call = createNeqOperation(type, true, false);
      assertTrue(tested.notEq(ExpressionUtils.getLeftArg(call), ExpressionUtils.getRightArg(call)));
      call = createNeqOperation(type, true, true);
      assertTrue(tested.notEq(ExpressionUtils.getLeftArg(call), ExpressionUtils.getRightArg(call)));
     
      // Test a == b = false           
      call = createNeqOperation(type, false, false);
View Full Code Here

Examples of org.jresearch.flexess.models.expression.stdlib.ExprStdLib.notEq()

     
      // Test a != b = true           
      OperationCall call = createNeqOperation(type, true, false);
      assertTrue(tested.notEq(ExpressionUtils.getLeftArg(call), ExpressionUtils.getRightArg(call)));
      call = createNeqOperation(type, true, true);
      assertTrue(tested.notEq(ExpressionUtils.getLeftArg(call), ExpressionUtils.getRightArg(call)));
     
      // Test a == b = false           
      call = createNeqOperation(type, false, false);
      assertFalse(tested.notEq(ExpressionUtils.getLeftArg(call), ExpressionUtils.getRightArg(call)));
      call = createNeqOperation(type, false, true);
View Full Code Here

Examples of org.jresearch.flexess.models.expression.stdlib.ExprStdLib.notEq()

      call = createNeqOperation(type, true, true);
      assertTrue(tested.notEq(ExpressionUtils.getLeftArg(call), ExpressionUtils.getRightArg(call)));
     
      // Test a == b = false           
      call = createNeqOperation(type, false, false);
      assertFalse(tested.notEq(ExpressionUtils.getLeftArg(call), ExpressionUtils.getRightArg(call)));
      call = createNeqOperation(type, false, true);
      assertFalse(tested.notEq(ExpressionUtils.getLeftArg(call), ExpressionUtils.getRightArg(call)));     
    }
  }
 
View Full Code Here

Examples of org.jresearch.flexess.models.expression.stdlib.ExprStdLib.notEq()

     
      // Test a == b = false           
      call = createNeqOperation(type, false, false);
      assertFalse(tested.notEq(ExpressionUtils.getLeftArg(call), ExpressionUtils.getRightArg(call)));
      call = createNeqOperation(type, false, true);
      assertFalse(tested.notEq(ExpressionUtils.getLeftArg(call), ExpressionUtils.getRightArg(call)));     
    }
  }
 
  private OperationCall createAndOperation( OperationCall arg1, OperationCall arg2, OperationCall arg3){
    return ExpressionUtils.createBooleanOperation(StdLib.AND, new Expression[]{arg1, arg2, arg3 });
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.