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

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


    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

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

  /**
   * {@inheritDoc}
   */
  public T enumLiteral(Enum<? extends Enum<?>> enumConstant) {
    StateObject stateObject = new EnumTypeStateObject(parent, enumConstant);
    add(stateObject);
    return (T) this;
  }
View Full Code Here

  /**
   * {@inheritDoc}
   */
  public T function(String identifier, String functionName, String... arguments) {

    StateObject stateObject = new FunctionExpressionStateObject(
      getParent(),
      identifier,
      functionName,
      literals(arguments)
    );
View Full Code Here

TOP

Related Classes of org.eclipse.persistence.jpa.jpql.tools.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.