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

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


   */
  public T subtract(T builder) {

    checkBuilders(builder);

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

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

View Full Code Here


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

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

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

   */
  @Override
  public void visit(DivisionExpression expression) {

    expression.getLeftExpression().accept(this);
    StateObject leftStateObject = stateObject;

    expression.getRightExpression().accept(this);
    StateObject rightStateObject = stateObject;

    DivisionExpressionStateObject stateObject = new DivisionExpressionStateObject(
      parent,
      leftStateObject,
      rightStateObject
View Full Code Here

   */
  @Override
  public void visit(LikeExpression expression) {

    expression.getStringExpression().accept(this);
    StateObject stringStateObject = stateObject;

    expression.getPatternValue().accept(this);
    StateObject patternValue = stateObject;

    LikeExpressionStateObject stateObject = new LikeExpressionStateObject(
      parent,
      stringStateObject,
      expression.hasNot(),
View Full Code Here

   */
  @Override
  public void visit(LocateExpression expression) {

    expression.getFirstExpression().accept(this);
    StateObject firstStateObject = stateObject;

    expression.getSecondExpression().accept(this);
    StateObject secondStateObject = stateObject;

    expression.getThirdExpression().accept(this);
    StateObject thirdStateObject = stateObject;

    LocateExpressionStateObject stateObject = new LocateExpressionStateObject(
      parent,
      firstStateObject,
      secondStateObject,
View Full Code Here

   */
  @Override
  public void visit(ModExpression expression) {

    expression.getFirstExpression().accept(this);
    StateObject firstStateObject = stateObject;

    expression.getSecondExpression().accept(this);
    StateObject secondStateObject = stateObject;

    ModExpressionStateObject stateObject = new ModExpressionStateObject(
      parent,
      firstStateObject,
      secondStateObject
View Full Code Here

   */
  @Override
  public void visit(MultiplicationExpression expression) {

    expression.getLeftExpression().accept(this);
    StateObject leftStateObject = stateObject;

    expression.getRightExpression().accept(this);
    StateObject rightStateObject = stateObject;

    MultiplicationExpressionStateObject stateObject = new MultiplicationExpressionStateObject(
      parent,
      leftStateObject,
      rightStateObject
View Full Code Here

   */
  @Override
  public void visit(NullIfExpression expression) {

    expression.getFirstExpression().accept(this);
    StateObject firstStateObject = stateObject;

    expression.getSecondExpression().accept(this);
    StateObject secondStateObject = stateObject;

    NullIfExpressionStateObject stateObject = new NullIfExpressionStateObject(
      parent,
      firstStateObject,
      secondStateObject
View Full Code Here

   */
  @Override
  public void visit(OrExpression expression) {

    expression.getLeftExpression().accept(this);
    StateObject leftStateObject = stateObject;

    expression.getRightExpression().accept(this);
    StateObject rightStateObject = stateObject;

    OrExpressionStateObject stateObject = new OrExpressionStateObject(
      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.