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

Examples of org.eclipse.persistence.jpa.jpql.parser.JPQLExpression.accept()


      // Validate the JPQL query, which will use the JPQL grammar matching the validation level
      validate(queryContext, jpqlExpression);

      // Create the DatabaseQuery by visiting the parsed tree
      DatabaseQueryVisitor visitor = new DatabaseQueryVisitor(queryContext, jpqlQuery);
      jpqlExpression.accept(visitor);

      // Add the input parameter types to the DatabaseQuery
      if (query == null) {
        query = queryContext.getDatabaseQuery();
        addArguments(queryContext, query);
View Full Code Here


    try {
      builder.jpqlQueryBuilder    = this;
      builder.managedTypeProvider = provider;

      jpqlExpression.accept(wrap(builder));

      return builder.parent;
    }
    finally {
      builder.jpqlQueryBuilder    = null;
View Full Code Here

      // Validate the JPQL query, which will use the JPQL grammar matching the validation level
      validate(queryContext, jpqlExpression);

      // Create the DatabaseQuery by visiting the parsed tree
      DatabaseQueryVisitor visitor = new DatabaseQueryVisitor(queryContext, jpqlQuery);
      jpqlExpression.accept(visitor);

      // Add the input parameter types to the DatabaseQuery
      if (query == null) {
        query = queryContext.getDatabaseQuery();
        addArguments(queryContext, query);
View Full Code Here

    JPQLQueryContext queryContext = new JPQLQueryContext(jpqlGrammar);
    queryContext.cache(session, null, jpqlExpression, jpqlQuery);

    // Visit the JPQL query and collect the descriptors defined in the declaration clauses
    DescriptorCollector collector = new DescriptorCollector(queryContext);
    jpqlExpression.accept(collector);

    return new ArrayList<ClassDescriptor>(collector.descriptors);
  }

  /**
 
View Full Code Here

    JPQLQueryContext queryContext = new JPQLQueryContext(jpqlGrammar);
    queryContext.cache(session, null, jpqlExpression, jpqlQuery);

    // Visit the JPQL query and collect the descriptors defined in the declaration clauses
    DescriptorCollector collector = new DescriptorCollector(queryContext);
    jpqlExpression.accept(collector);

    return new ArrayList<ClassDescriptor>(collector.descriptors);
  }

  /**
 
View Full Code Here

      // Validate the JPQL query, which will use the JPQL grammar matching the validation level
      validate(queryContext, jpqlExpression);

      // Create the DatabaseQuery by visiting the parsed tree
      DatabaseQueryVisitor visitor = new DatabaseQueryVisitor(queryContext, jpqlQuery);
      jpqlExpression.accept(visitor);

      // Add the input parameter types to the DatabaseQuery
      if (query == null) {
        query = queryContext.getDatabaseQuery();
        addArguments(queryContext, query);
View Full Code Here

      getQueryExpression(),
      position
    );

    prepare(queryPosition, extension);
    jpqlExpression.accept(this);
    return proposals;
  }

  protected RangeVariableDeclarationVisitor buildRangeVariableDeclarationVisitor() {
    return new RangeVariableDeclarationVisitor();
View Full Code Here

      getQueryExpression(),
      position
    );

    prepare(queryPosition, helper);
    jpqlExpression.accept(this);
    return proposals;
  }

  protected RangeVariableDeclarationVisitor buildRangeVariableDeclarationVisitor() {
    return new RangeVariableDeclarationVisitor();
View Full Code Here

      // Validate the JPQL query, which will use the JPQL grammar matching the validation level
      validate(queryContext, jpqlExpression);

      // Create the DatabaseQuery by visiting the parsed tree
      DatabaseQueryVisitor visitor = new DatabaseQueryVisitor(queryContext, jpqlQuery);
      jpqlExpression.accept(visitor);

      // Add the input parameter types to the DatabaseQuery
      if (query == null) {
        query = queryContext.getDatabaseQuery();
        addArguments(queryContext, query);
View Full Code Here

    try {
      builder.jpqlQueryBuilder    = this;
      builder.managedTypeProvider = provider;

      jpqlExpression.accept(wrap(builder));

      return builder.parent;
    }
    finally {
      builder.jpqlQueryBuilder    = null;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.