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
Interface ContentAssistVisitor.CollectionExpressionHelper<T extends Expression>

All Known Implementing Classes:
ContentAssistVisitor.ConstrutorCollectionHelper, ContentAssistVisitor.DoubleEncapsulatedCollectionHelper, ContentAssistVisitor.FromClauseCollectionHelper, ContentAssistVisitor.GroupByClauseCollectionHelper, ContentAssistVisitor.JoinCollectionHelper, ContentAssistVisitor.OrderByClauseCollectionHelper, ContentAssistVisitor.TripleEncapsulatedCollectionHelper, ContentAssistVisitor.UpdateItemCollectionHelper
Enclosing class:
ContentAssistVisitor

private static interface ContentAssistVisitor.CollectionExpressionHelper<T extends Expression>

Method Summary
 void addAtTheEndOfChild(T expression, Expression child, int index)
          Adds the proposals because the cursor is at the end of the given child Expression.
 void addProposals(T expression, int index)
          Adds
 CollectionExpression buildCollectionExpression(T 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(T expression)
          Determines whether
 int maxCollectionSize(T expression)
          Returns the maximum number of encapsulated expressions the Expression allows.
 int preExpressionLength(T expression)
          Returns the length to add to
 JPQLQueryBNF queryBNF(T expression, int index)
          Returns the

 

Method Detail

addAtTheEndOfChild

void addAtTheEndOfChild(T expression,
                        Expression child,
                        int index)
Adds the proposals because the cursor is at the end of the given child Expression.
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

void addProposals(T expression,
                  int index)
Adds
Parameters:
expression -
index -

buildCollectionExpression

CollectionExpression buildCollectionExpression(T 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.
Parameters:
expression - The parent of the children to retrieve
Returns:
The given expression's child or a "virtual" one

hasDelimiterAfterIdentifier

boolean hasDelimiterAfterIdentifier(T expression)
Determines whether
Parameters:
expression -
Returns:

maxCollectionSize

int maxCollectionSize(T expression)
Returns the maximum number of encapsulated expressions the Expression allows. Some expression only allow 2, others 3 and others allow an unlimited number.
Parameters:
expression - The Expression for which its maximum number of children
Returns:
The maximum number of children the expression can have

preExpressionLength

int preExpressionLength(T expression)
Returns the length to add to

queryBNF

JPQLQueryBNF queryBNF(T expression,
                      int index)
Returns the
Parameters:
expression -
Returns:

Skip navigation links

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