Package org.eclipse.persistence.jpa.jpql.tools.model.query

Examples of org.eclipse.persistence.jpa.jpql.tools.model.query.AvgFunctionStateObject


    StateObject stateObject = new ArithmeticFactorStateObject(parent, plusSign, pop());
    add(stateObject);
  }

  protected void avg(boolean distinct, String path) {
    StateObject stateObject = new AvgFunctionStateObject(parent, distinct, literal(path));
    add(stateObject);
  }
View Full Code Here


  @Override
  public void visit(AvgFunction expression) {

    expression.getExpression().accept(this);

    AvgFunctionStateObject stateObject = new AvgFunctionStateObject(
      parent,
      expression.hasDistinct(),
      this.stateObject
    );

    stateObject.setExpression(expression);
    this.stateObject = stateObject;
  }
View Full Code Here

TOP

Related Classes of org.eclipse.persistence.jpa.jpql.tools.model.query.AvgFunctionStateObject

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.