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

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


    comparison(identifier, pop());
  }

  protected void comparison(String identifier, StateObject rightStateObject) {

    StateObject leftStateObject = pop();

    StateObject stateObject = new ComparisonExpressionStateObject(
      getParent(),
      leftStateObject,
      identifier,
      rightStateObject
    );
View Full Code Here


    comparison(EQUAL);
    return (T) this;
  }

  protected void exists(boolean not, SimpleSelectStatementStateObject subquery) {
    StateObject stateObject = new ExistsExpressionStateObject(getParent(), not, subquery);
    add(stateObject);
  }
View Full Code Here

    return (T) this;
  }

  protected void in(boolean not, List<StateObject> inItems) {

    StateObject stateFieldPath = pop();

    StateObject stateObject = new InExpressionStateObject(
      getParent(),
      stateFieldPath,
      not,
      inItems
    );
View Full Code Here

    return (T) this;
  }

  protected void isEmpty(boolean not, String path) {

    StateObject stateObject = new EmptyCollectionComparisonExpressionStateObject(
      getParent(),
      not,
      path
    );
View Full Code Here

    return (T) this;
  }

  protected void isNull(boolean not, String path) {

    StateObject stateObject;

    if (ExpressionTools.isParameter(path.charAt(0))) {
      stateObject = buildInputParameter(path);
    }
    else {
View Full Code Here

    isNull(false, path);
    return (T) this;
  }

  protected void keyword(String identifier) {
    StateObject stateObject = new KeywordExpressionStateObject(getParent(), identifier);
    add(stateObject);
  }
View Full Code Here

    add(stateObject);
  }

  protected void like(boolean not, String escapeCharacter) {

    StateObject patternValue = pop();
    StateObject string       = pop();

    StateObject stateObject = new LikeExpressionStateObject(
      getParent(),
      string,
      not,
      patternValue,
      escapeCharacter
View Full Code Here

  /**
   * {@inheritDoc}
   */
  public T lower(T builder) {
    checkBuilder(builder);
    StateObject stateObject = new LowerExpressionStateObject(getParent(), pop());
    add(stateObject);
    return (T) this;
  }
View Full Code Here

    return (T) this;
  }

  protected void member(boolean not, boolean of, String collectionValuedPathExpression) {

    StateObject entity = pop();

    StateObject stateObject = new CollectionMemberExpressionStateObject(
      getParent(),
      entity,
      not,
      of,
      collectionValuedPathExpression
View Full Code Here

   */
  public T or(T builder) {

    checkBuilder(builder);

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

    StateObject stateObject = new OrExpressionStateObject(
      getParent(),
      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.