Package org.eclipse.persistence.jpa.internal.jpql.parser

Examples of org.eclipse.persistence.jpa.internal.jpql.parser.IdentificationVariable


                                                         Map<String, List<IdentificationVariable>> identificationVariables) {

    for (Declaration declaration : queryContext.getActualDeclarationResolver().getDeclarations()) {

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

      // Register the identification variable from the JOIN expressions
      for (IdentificationVariable joinIdentificationVariable : declaration.joins.values()) {
        addIdentificationVariable(joinIdentificationVariable, identificationVariables);
View Full Code Here


    // If a subquery defined in a WHERE clause of an update query,
    // then check for a path expression
    if (managedType == null) {

      // Find the identification variable from the UPDATE range declaration
      IdentificationVariable identificationVariable = findVirtualIdentificationVariable(expression);
      String variableName = (identificationVariable != null) ? identificationVariable.getText() : null;

      if (ExpressionTools.stringIsNotEmpty(variableName)) {

        Resolver parentResolver = queryContext.getResolver(identificationVariable);
        Resolver resolver = buildStateFieldResolver(parentResolver, abstractSchemaName);
View Full Code Here

      return Collections.unmodifiableSet(variables);
    }

    private Map.Entry<Join, String> buildMapEntry(Map.Entry<Join, IdentificationVariable> entry) {
      IdentificationVariable variable = entry.getValue();
      String variableName = (variable != null) ? variable.getText() : ExpressionTools.EMPTY_STRING;
      return new SimpleEntry<Join, String>(entry.getKey(), variableName);
    }
View Full Code Here

                                                         Map<String, List<IdentificationVariable>> identificationVariables) {

    for (Declaration declaration : queryContext.getActualDeclarationResolver().getDeclarations()) {

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

      // Register the identification variable from the JOIN expressions
      for (IdentificationVariable joinIdentificationVariable : declaration.joins.values()) {
        addIdentificationVariable(joinIdentificationVariable, identificationVariables);
View Full Code Here

    // If a subquery defined in a WHERE clause of an update query,
    // then check for a path expression
    if (managedType == null) {

      // Find the identification variable from the UPDATE range declaration
      IdentificationVariable identificationVariable = findVirtualIdentificationVariable(expression);
      String variableName = (identificationVariable != null) ? identificationVariable.getText() : null;

      if (ExpressionTools.stringIsNotEmpty(variableName)) {

        Resolver parentResolver = queryContext.getResolver(identificationVariable);
        Resolver resolver = buildStateFieldResolver(parentResolver, abstractSchemaName);
View Full Code Here

  private void collectDeclarationIdentificationVariables(Map<String, List<IdentificationVariable>> identificationVariables) {

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

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

      // Register the identification variable from the JOIN expressions
      for (IdentificationVariable joinIdentificationVariable : declaration.joins.values()) {
        addIdentificationVariable(joinIdentificationVariable, identificationVariables);
View Full Code Here

    // If a subquery defined in a WHERE clause of an update query,
    // then check for a path expression
    if (managedType == null) {

      // Find the identification variable from the UPDATE range declaration
      IdentificationVariable identificationVariable = findVirtualIdentificationVariable(expression);
      String variableName = (identificationVariable != null) ? identificationVariable.getText() : null;

      if (ExpressionTools.stringIsNotEmpty(variableName)) {

        Resolver parentResolver = queryContext.getResolver(identificationVariable);
        Resolver resolver = buildStateFieldResolver(parentResolver, abstractSchemaName);
View Full Code Here

                                                         Map<String, List<IdentificationVariable>> identificationVariables) {

    for (Declaration declaration : queryContext.getActualDeclarationResolver().getDeclarations()) {

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

      // Register the identification variable from the JOIN expressions
      for (IdentificationVariable joinIdentificationVariable : declaration.joins.values()) {
        addIdentificationVariable(joinIdentificationVariable, identificationVariables);
View Full Code Here

    // If a subquery defined in a WHERE clause of an update query,
    // then check for a path expression
    if (managedType == null) {

      // Find the identification variable from the UPDATE range declaration
      IdentificationVariable identificationVariable = findVirtualIdentificationVariable(expression);
      String variableName = (identificationVariable != null) ? identificationVariable.getText() : null;

      if (ExpressionTools.stringIsNotEmpty(variableName)) {

        Resolver parentResolver = queryContext.getResolver(identificationVariable);
        Resolver resolver = buildStateFieldResolver(parentResolver, abstractSchemaName);
View Full Code Here

      return Collections.unmodifiableSet(variables);
    }

    private Map.Entry<Join, String> buildMapEntry(Map.Entry<Join, IdentificationVariable> entry) {
      IdentificationVariable variable = entry.getValue();
      String variableName = (variable != null) ? variable.getText() : ExpressionTools.EMPTY_STRING;
      return new SimpleEntry<Join, String>(entry.getKey(), variableName);
    }
View Full Code Here

TOP

Related Classes of org.eclipse.persistence.jpa.internal.jpql.parser.IdentificationVariable

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.