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

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


   * @return The list of valid proposals regrouped by categories
   */
  protected ContentAssistProposals buildContentAssistProposals(int position) {

    // Create a map of the positions within the parsed tree
    QueryPosition queryPosition = getJPQLExpression().buildPosition(
      queryContext.getQuery().getExpression(),
      position
    );

    // Visit the expression, which will collect the possible proposals
    ContentAssistVisitor visitor = contentAssistVisitor();

    try {
      visitor.prepare(queryPosition);
      queryPosition.getExpression().accept(visitor);
      return visitor.getProposals();
    }
    finally {
      visitor.dispose();
    }
View Full Code Here


   * @return The list of valid proposals regrouped by categories
   */
  protected ContentAssistProposals buildContentAssistProposals(int position) {

    // Create a map of the positions within the parsed tree
    QueryPosition queryPosition = getJPQLExpression().buildPosition(
      queryContext.getQuery().getExpression(),
      position
    );

    // Visit the expression, which will collect the possible proposals
    ContentAssistVisitor visitor = contentAssistVisitor();

    try {
      visitor.prepare(queryPosition);
      queryPosition.getExpression().accept(visitor);
      return visitor.getProposals();
    }
    finally {
      visitor.dispose();
    }
View Full Code Here

TOP

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

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.