Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle TopLink
11g Release 1 (11.1.1)

E28847-01


org.eclipse.persistence.jpa.internal.jpql
Class ContentAssistVisitor.GroupByClauseCollectionHelper

java.lang.Object
  extended by org.eclipse.persistence.jpa.internal.jpql.ContentAssistVisitor.GroupByClauseCollectionHelper

All Implemented Interfaces:
ContentAssistVisitor.CollectionExpressionHelper<GroupByClause>
Enclosing class:
ContentAssistVisitor

private class ContentAssistVisitor.GroupByClauseCollectionHelper
extends java.lang.Object
implements ContentAssistVisitor.CollectionExpressionHelper<GroupByClause>

Constructor Summary
private ContentAssistVisitor.GroupByClauseCollectionHelper()
           

 

Method Summary
 void addAtTheEndOfChild(GroupByClause expression, Expression child, int index)
          Adds the proposals because the cursor is at the end of the given child Expression.
 void addProposals(GroupByClause expression, int index)
          Adds
 CollectionExpression buildCollectionExpression(GroupByClause expression)
          Either returns the given Expression's child, which is already a CollectionExpression or requests this helper to return a "virtual" CollectionExpression that is wrapping the single element.
 boolean hasDelimiterAfterIdentifier(GroupByClause expression)
          Determines whether
 int maxCollectionSize(GroupByClause expression)
          Returns the maximum number of encapsulated expressions the Expression allows.
 int preExpressionLength(GroupByClause expression)
          Returns the length to add to
 JPQLQueryBNF queryBNF(GroupByClause expression, int index)
          Returns the

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

ContentAssistVisitor.GroupByClauseCollectionHelper

private ContentAssistVisitor.GroupByClauseCollectionHelper()

Method Detail

addAtTheEndOfChild

public void addAtTheEndOfChild(GroupByClause expression,
                               Expression child,
                               int index)
Adds the proposals because the cursor is at the end of the given child Expression.
Specified by:
addAtTheEndOfChild in interface ContentAssistVisitor.CollectionExpressionHelper<GroupByClause>
Parameters:
expression - The Expression being visited
child - The child of the parent Expression for which proposals can be added at the end
index - The position of that child in the collection of children

addProposals

public void addProposals(GroupByClause expression,
                         int index)
Adds
Specified by:
addProposals in interface ContentAssistVisitor.CollectionExpressionHelper<GroupByClause>

buildCollectionExpression

public CollectionExpression buildCollectionExpression(GroupByClause expression)
Either returns the given Expression's child, which is already a CollectionExpression or requests this helper to return a "virtual" CollectionExpression that is wrapping the single element.
Specified by:
buildCollectionExpression in interface ContentAssistVisitor.CollectionExpressionHelper<GroupByClause>
Parameters:
expression - The parent of the children to retrieve
Returns:
The given expression's child or a "virtual" one

hasDelimiterAfterIdentifier

public boolean hasDelimiterAfterIdentifier(GroupByClause expression)
Determines whether
Specified by:
hasDelimiterAfterIdentifier in interface ContentAssistVisitor.CollectionExpressionHelper<GroupByClause>
Returns:

maxCollectionSize

public int maxCollectionSize(GroupByClause expression)
Returns the maximum number of encapsulated expressions the Expression allows. Some expression only allow 2, others 3 and others allow an unlimited number.
Specified by:
maxCollectionSize in interface ContentAssistVisitor.CollectionExpressionHelper<GroupByClause>
Parameters:
expression - The Expression for which its maximum number of children
Returns:
The maximum number of children the expression can have

preExpressionLength

public int preExpressionLength(GroupByClause expression)
Returns the length to add to
Specified by:
preExpressionLength in interface ContentAssistVisitor.CollectionExpressionHelper<GroupByClause>

queryBNF

public JPQLQueryBNF queryBNF(GroupByClause expression,
                             int index)
Returns the
Specified by:
queryBNF in interface ContentAssistVisitor.CollectionExpressionHelper<GroupByClause>
Returns:

Skip navigation links

Copyright © 1998, 2012, Oracle. All Rights Reserved.