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

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


    // it is possible the state model uses this builder to create some objects
    BasicStateObjectBuilder builder  = getStateObjectBuilder();
    IJPQLQueryBuilder oldBuilder     = builder.jpqlQueryBuilder;
    IManagedTypeProvider oldProvider = builder.managedTypeProvider;
    JPQLQueryStateObject oldParent   = builder.parent;
    StateObject oldStateObject       = builder.stateObject;

    try {
      builder.jpqlQueryBuilder    = this;
      builder.managedTypeProvider = parent.getManagedTypeProvider();
      builder.parent              = parent.getRoot();
View Full Code Here


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

  /**
   * {@inheritDoc}
   */
  public INewValueStateObjectBuilder NULL() {
    StateObject stateObject = new KeywordExpressionStateObject(getParent(), NULL);
    add(stateObject);
    return this;
  }
View Full Code Here

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

    allOrAny(ALL, subquery);
    return (T) this;
  }

  protected void allOrAny(String identifier, SimpleSelectStatementStateObject subquery) {
    StateObject stateObject = new AllOrAnyExpressionStateObject(getParent(), identifier, subquery);
    add(stateObject);
  }
View Full Code Here

   */
  public T and(T builder) {

    checkBuilder(builder);

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

    StateObject stateObject = new AndExpressionStateObject(
      getParent(),
      leftStateObject,
      rightStateObject
    );

View Full Code Here

    return (T) this;
  }

  protected void between(boolean not) {

    StateObject upperBoundStateObject  = pop();
    StateObject lowerBoundStateObject  = pop();
    StateObject firstStateObject       = pop();

    StateObject stateObject = new BetweenExpressionStateObject(
      getParent(),
      firstStateObject,
      not,
      lowerBoundStateObject,
      upperBoundStateObject
View Full Code Here

  /**
   * {@inheritDoc}
   */
  public T collectionPath(String path) {
    StateObject stateObject = buildCollectionPath(path);
    add(stateObject);
    return (T) this;
  }
View Full Code Here

    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

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.