Class AbstractContentAssistVisitor.WhereClauseDeleteStatementHelper
java.lang.Object
org.eclipse.persistence.jpa.jpql.tools.AbstractContentAssistVisitor.WhereClauseDeleteStatementHelper
- All Implemented Interfaces:
AbstractContentAssistVisitor.StatementHelper<DeleteStatement>
- Enclosing class:
AbstractContentAssistVisitor
protected static final class AbstractContentAssistVisitor.WhereClauseDeleteStatementHelper
extends Object
implements AbstractContentAssistVisitor.StatementHelper<DeleteStatement>
-
Field Summary
Modifier and TypeFieldDescriptionprotected final AbstractContentAssistVisitor
Enclosing visitor instance. -
Constructor Summary
ModifierConstructorDescriptionprotected
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds the JPQL identifier of the clause being scanned by this helper.void
addInternalClauseProposals
(DeleteStatement expression) Adds the JPQL identifier of the internal clause being scanned by this helper.getClause
(DeleteStatement expression) Returns the clause being scanned by this helper.Returns theAbstractContentAssistVisitor.StatementHelper
that will scan the following clause, which is based on the grammar and not on the actual existence of the clause in the parsed tree.boolean
hasClause
(DeleteStatement expression) Determines whether the clause exists in the parsed tree.boolean
hasSpaceAfterClause
(DeleteStatement expression) Determines whether there is a space (owned by the SELECT statement) after the clause being scanned by this helper.boolean
isClauseComplete
(DeleteStatement expression) Determines whether the clause being scanned is complete or not.boolean
Determines whether the clause is required in order to make the JPQL query grammatically valid.
-
Field Details
-
visitor
Enclosing visitor instance.
-
-
Constructor Details
-
WhereClauseDeleteStatementHelper
-
-
Method Details
-
addClauseProposals
public void addClauseProposals()Description copied from interface:AbstractContentAssistVisitor.StatementHelper
Adds the JPQL identifier of the clause being scanned by this helper.Note: The identifier should not be added directly to the list, it needs to be filtered out based on the location of the cursor, it can be within a word.
- Specified by:
addClauseProposals
in interfaceAbstractContentAssistVisitor.StatementHelper<DeleteStatement>
-
addInternalClauseProposals
Description copied from interface:AbstractContentAssistVisitor.StatementHelper
Adds the JPQL identifier of the internal clause being scanned by this helper. For instance, theFROM
clause could add its own sub-clauses.Note: The identifier should not be added directly to the list, it needs to be filtered out based on the location of the cursor, it can be within a word.
- Specified by:
addInternalClauseProposals
in interfaceAbstractContentAssistVisitor.StatementHelper<DeleteStatement>
- Parameters:
expression
- TheAbstractSelectStatement
being visited
-
getClause
Description copied from interface:AbstractContentAssistVisitor.StatementHelper
Returns the clause being scanned by this helper. It is safe to type cast the clause becauseAbstractContentAssistVisitor.StatementHelper.hasClause(Expression)
is called before this one.- Specified by:
getClause
in interfaceAbstractContentAssistVisitor.StatementHelper<DeleteStatement>
- Parameters:
expression
- TheAbstractSelectStatement
being visited- Returns:
- The clause being scanned
-
getNextHelper
Description copied from interface:AbstractContentAssistVisitor.StatementHelper
Returns theAbstractContentAssistVisitor.StatementHelper
that will scan the following clause, which is based on the grammar and not on the actual existence of the clause in the parsed tree.- Specified by:
getNextHelper
in interfaceAbstractContentAssistVisitor.StatementHelper<DeleteStatement>
- Returns:
- The
AbstractContentAssistVisitor.StatementHelper
for the next clause
-
hasClause
Description copied from interface:AbstractContentAssistVisitor.StatementHelper
Determines whether the clause exists in the parsed tree.- Specified by:
hasClause
in interfaceAbstractContentAssistVisitor.StatementHelper<DeleteStatement>
- Parameters:
expression
- TheAbstractSelectStatement
being visited- Returns:
true
if the clause has been parsed;false
otherwise
-
hasSpaceAfterClause
Description copied from interface:AbstractContentAssistVisitor.StatementHelper
Determines whether there is a space (owned by the SELECT statement) after the clause being scanned by this helper.- Specified by:
hasSpaceAfterClause
in interfaceAbstractContentAssistVisitor.StatementHelper<DeleteStatement>
- Parameters:
expression
- TheAbstractSelectStatement
being visited- Returns:
true
if a space follows the clause;false
otherwise
-
isClauseComplete
Description copied from interface:AbstractContentAssistVisitor.StatementHelper
Determines whether the clause being scanned is complete or not.- Specified by:
isClauseComplete
in interfaceAbstractContentAssistVisitor.StatementHelper<DeleteStatement>
- Parameters:
expression
- TheAbstractSelectStatement
being visited- Returns:
true
if the clause is complete;false
otherwise
-
isRequired
public boolean isRequired()Description copied from interface:AbstractContentAssistVisitor.StatementHelper
Determines whether the clause is required in order to make the JPQL query grammatically valid.- Specified by:
isRequired
in interfaceAbstractContentAssistVisitor.StatementHelper<DeleteStatement>
- Returns:
true
if the clause has to be defined;false
if the clause is optional
-