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

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


    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

   */
  public T substring(T parameter1, T parameter2, T parameter3) {

    checkBuilders(parameter1, parameter2, parameter3);

    StateObject thirdStateObject  = pop();
    StateObject secondStateObject = pop();
    StateObject firstStateObject  = pop();

    StateObject stateObject = new SubstringExpressionStateObject(
      getParent(),
      firstStateObject,
      secondStateObject,
      thirdStateObject
    );
View Full Code Here

   * {@inheritDoc}
   */
  public T trim(Specification specification, String trimCharacter, T builder) {

    checkBuilder(builder);
    StateObject stateObject = pop();

    stateObject = new TrimExpressionStateObject(
      getParent(),
      specification,
      ExpressionTools.stringIsNotEmpty(trimCharacter) ? literal(trimCharacter) : null,
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.