Package org.eclipse.persistence.jpa.jpql.tools.resolver

Examples of org.eclipse.persistence.jpa.jpql.tools.resolver.DeclarationResolver


  }

  protected void collectLocalDeclarationIdentificationVariables(JPQLQueryContext queryContext,
                                                                Map<String, List<IdentificationVariable>> identificationVariables) {

    DeclarationResolver declarationResolver = queryContext.getDeclarationResolverImp();

    for (Declaration declaration : declarationResolver.getDeclarations()) {

      // Register the identification variable from the base expression
      IdentificationVariable identificationVariable = declaration.getIdentificationVariable();
      addIdentificationVariable(identificationVariable, identificationVariables);

      // Register the identification variable from the JOIN expressions
      for (Join join : declaration.getJoins()) {
        IdentificationVariable joinIdentificationVariable = getIdentificationVariable(join.getIdentificationVariable());
        addIdentificationVariable(joinIdentificationVariable, identificationVariables);
      }
    }

    if (queryContext.getParent() == null) {
      for (IdentificationVariable identificationVariable : declarationResolver.getResultVariablesMap().keySet()) {
        addIdentificationVariable(identificationVariable, identificationVariables);
      }
    }
  }
View Full Code Here


  }

  protected void collectLocalDeclarationIdentificationVariables(JPQLQueryContext queryContext,
                                                                Map<String, List<IdentificationVariable>> identificationVariables) {

    DeclarationResolver declarationResolver = queryContext.getDeclarationResolverImp();

    for (Declaration declaration : declarationResolver.getDeclarations()) {

      // Register the identification variable from the base expression
      IdentificationVariable identificationVariable = declaration.getIdentificationVariable();
      addIdentificationVariable(identificationVariable, identificationVariables);

      // Register the identification variable from the JOIN expressions
      for (Join join : declaration.getJoins()) {
        IdentificationVariable joinIdentificationVariable = getIdentificationVariable(join.getIdentificationVariable());
        addIdentificationVariable(joinIdentificationVariable, identificationVariables);
      }
    }

    if (queryContext.getParent() == null) {
      for (IdentificationVariable identificationVariable : declarationResolver.getResultVariablesMap().keySet()) {
        addIdentificationVariable(identificationVariable, identificationVariables);
      }
    }
  }
View Full Code Here

    this(parent.jpqlGrammar);
    store(parent, currentQuery);
  }

  protected DeclarationResolver buildDeclarationResolver() {
    DeclarationResolver parentResolver = (parent != null) ? parent.getDeclarationResolverImp() : null;
    return buildDeclarationResolver(parentResolver);
  }
View Full Code Here

    DeclarationResolver parentResolver = (parent != null) ? parent.getDeclarationResolverImp() : null;
    return buildDeclarationResolver(parentResolver);
  }

  protected DeclarationResolver buildDeclarationResolver(DeclarationResolver parent) {
    return new DeclarationResolver(parent, this);
  }
View Full Code Here

TOP

Related Classes of org.eclipse.persistence.jpa.jpql.tools.resolver.DeclarationResolver

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.