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

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


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

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

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

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

    SubstringExpressionStateObject stateObject = new SubstringExpressionStateObject(
      parent,
      firstExpression,
      secondExpression,
View Full Code Here


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

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

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

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

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

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

    expression.getTrimCharacter().accept(this);
    StateObject trimCharacter = stateObject;

    TrimExpressionStateObject stateObject = new TrimExpressionStateObject(
      parent,
      expression.getSpecification(),
      trimCharacter,
View Full Code Here

      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

        if (!updateClause.isIdentificationVariableDefined()) {
          updateItem.setVirtualIdentificationVariable(updateClause.getIdentificationVariable());
        }

        // Create the new value
        StateObject stateObject = buildStateObjectImp(expression.getNewValue());
        updateItem.setNewValue(stateObject);
      }
      finally {
        updateItem = null;
      }
View Full Code Here

    public void visit(WhereClause expression) {

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

      StateObject stateObject = buildStateObjectImp(expression.getConditionalExpression());
      whereClause.setConditional(stateObject);
    }
View Full Code Here

     * {@inheritDoc}
     */
    @Override
    public void visit(WhenClause expression) {

      StateObject whenStateObject = buildStateObjectImp(expression.getWhenExpression());
      StateObject thenStateObject = buildStateObjectImp(expression.getThenExpression());

      WhenClauseStateObject stateObject = parent.addWhenClause(whenStateObject, thenStateObject);
      stateObject.setExpression(expression);
    }
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

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.