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

Examples of org.eclipse.persistence.jpa.jpql.model.query.MaxFunctionStateObject


  @Override
  public void visit(MaxFunction expression) {

    expression.getExpression().accept(this);

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

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


    add(stateObject);
    return (T) this;
  }

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

    max(true, path);
    return (T) this;
  }

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

  @Override
  public void visit(MaxFunction expression) {

    expression.getExpression().accept(this);

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

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

  @Override
  public void visit(MaxFunction expression) {

    expression.getExpression().accept(this);

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

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

    add(stateObject);
    return (T) this;
  }

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

    max(true, path);
    return (T) this;
  }

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

TOP

Related Classes of org.eclipse.persistence.jpa.jpql.model.query.MaxFunctionStateObject

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.