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

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


  /**
   * {@inheritDoc}
   */
  public ISelectExpressionStateObjectBuilder variable(String variable) {
    StateObject stateObject = buildIdentificationVariable(variable);
    add(stateObject);
    return this;
  }
View Full Code Here


   */
  public T abs(T builder) {

    checkBuilder(builder);

    StateObject stateObject = new AbsExpressionStateObject(parent, pop());
    add(stateObject);
    return (T) this;
  }
View Full Code Here

   */
  public T add(T builder) {

    checkBuilder(builder);

    StateObject rightStateObject = pop();
    StateObject leftStateObject  = pop();

    StateObject stateObject = new AdditionExpressionStateObject(
      parent,
      leftStateObject,
      rightStateObject
    );

View Full Code Here

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

  protected void arithmetic(boolean plusSign) {
    StateObject stateObject = new ArithmeticFactorStateObject(parent, plusSign, pop());
    add(stateObject);
  }
View Full Code Here

    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

    List<StateObject> stateObjects = new ArrayList<StateObject>();
    stateObjects.addAll(stateObjects(builders));
    stateObjects.add(0, pop());
    stateObjects.add(0, pop());

    StateObject stateObject = new CoalesceExpressionStateObject(parent, stateObjects);
    add(stateObject);
    return (T) this;
  }
View Full Code Here

    List<StateObject> stateObjects = new ArrayList<StateObject>();
    stateObjects.addAll(stateObjects(builders));
    stateObjects.add(0, pop());
    stateObjects.add(0, pop());

    StateObject stateObject = new ConcatExpressionStateObject(parent, stateObjects);
    add(stateObject);
    return (T) this;
  }
View Full Code Here

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

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

  /**
   * {@inheritDoc}
   */
  public T date(String jdbcDate) {
    StateObject stateObject = new DateTimeStateObject(parent, jdbcDate);
    add(stateObject);
    return (T) this;
  }
View Full Code Here

   */
  public T divide(T builder) {

    checkBuilder(builder);

    StateObject rightStateObject = pop();
    StateObject leftStateObject  = pop();

    StateObject stateObject = new DivisionExpressionStateObject(
      parent,
      leftStateObject,
      rightStateObject
    );

View Full Code Here

TOP

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

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.