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

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


      WhereClauseStateObject whereClause = stateObject.addWhereClause();
      whereClause.setExpression(expression);

      expression.getConditionalExpression().accept(BasicStateObjectBuilder.this);
      StateObject conditionalStateObject = BasicStateObjectBuilder.this.stateObject;

      whereClause.setConditional(conditionalStateObject);
    }
View Full Code Here


      selectClause.setExpression(expression);
      selectClause.setDistinct(expression.hasDistinct());

      for (Expression child : children(expression.getSelectExpression())) {

        StateObject stateObject = getSelectItemBuilder().buildStateObject(selectClause, child);

        if (stateObject != null) {
          selectClause.addItem(stateObject);
        }
      }
View Full Code Here

  }

  @SuppressWarnings("unchecked")
  protected <T extends StateObject> List<T> buildChildren(Expression expression) {

    StateObject oldStateObject = stateObject;
    List<T> stateObjects = new ArrayList<T>();

    for (Expression child : children(expression)) {
      child.accept(this);
      stateObjects.add((T) stateObject);
View Full Code Here

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

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

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

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

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

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

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

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

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

    expression.getExpression().accept(this);
    StateObject betweenStateObject = stateObject;

    expression.getLowerBoundExpression().accept(this);
    StateObject lowerBoundStateObject = stateObject;

    expression.getUpperBoundExpression().accept(this);
    StateObject upperBoundStateObject = stateObject;

    BetweenExpressionStateObject stateObject = new BetweenExpressionStateObject(
      parent,
      betweenStateObject,
      expression.hasNot(),
View Full Code Here

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

    expression.getCaseOperand().accept(this);
    StateObject caseOperand = stateObject;

    expression.getElseExpression().accept(this);
    StateObject elseStateObject = stateObject;

    CaseExpressionStateObject caseExpressionStateObject = new CaseExpressionStateObject(
      parent,
      caseOperand,
      Collections.<WhenClauseStateObject>emptyList(),
View Full Code Here

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

    expression.getEntityExpression().accept(this);
    StateObject entityExpression = stateObject;

    CollectionMemberExpressionStateObject stateObject = new CollectionMemberExpressionStateObject(
      parent,
      entityExpression,
      expression.hasNot(),
View Full Code Here

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

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

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

    ComparisonExpressionStateObject stateObject = new ComparisonExpressionStateObject(
      parent,
      leftStateObject,
      expression.getComparisonOperator(),
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

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.