| Modifier and Type | Field and Description |
|---|---|
| private boolean | as
Flag used to determine if the |
| public static final String | AS_PROPERTY
Notifies the visibility of the |
| public static final String | IDENTIFICATION_VARIABLE_PROPERTY
Notifies the identification variable property has changed. |
| private IdentificationVariableStateObject | identificationVariable
The state object representing the identification variable used to reach the "root" object. |
| private boolean | identificationVariableOptional
Flag used to determine if the identification variable is optional or not, which is |
| private StateObject | rootStateObject
The state object holding the "root" for objects which may not be reachable by navigation. |
| Access | Constructor and Description |
|---|---|
| public | AbstractRangeVariableDeclarationStateObject(AbstractIdentificationVariableDeclarationStateObject
The parent of this state object, which cannot be parent)nullCreates a new |
| public | AbstractRangeVariableDeclarationStateObject(AbstractIdentificationVariableDeclarationStateObject
The parent of this state object, which cannot be parent, String root)nullCreates a new |
| public | AbstractRangeVariableDeclarationStateObject(AbstractModifyClauseStateObject
The parent of this state object, which cannot be parent)nullCreates a new |
| Modifier and Type | Method and Description |
|---|---|
| public AbstractRangeVariableDeclarationStateObject | |
| protected void | addChildren(List<StateObject>
The list used to store the children children)Overrides org. StateObject to the given list.
|
| protected void | addProblems(List<Problem>
The list to which the problems are added problems)Overrides org. StateObject, which means there are validation issues.
|
| protected abstract StateObject | |
| public RangeVariableDeclaration | getExpression()
Overrides org. Implements org. StateObject representation of the JPQL query
was created by parsing an existing JPQL query.
|
| public String | Returns: The identification variable nameReturns the identification variable name that is ranging over the abstract schema type. |
| public IdentificationVariableStateObject | getIdentificationVariableStateObject()
Returns the |
| public abstract String | Returns: The "root" objectReturns the "root" object for objects which may not be reachable by navigation. |
| public StateObject | |
| public boolean | Returns: true if the AS identifier is part of the expression;
false otherwiseDetermines whether the |
| public boolean | Returns: true if an identification variable is defined; false otherwiseDetermines whether an identification variable was defined. |
| public ListIterable | identificationVariables()
Implements org. IdentificationVariableStateObject that are used by this state object.
|
| protected void | initialize()
Overrides org. |
| public boolean | isEquivalent(StateObject
The stateObject)StateObject to compare its content to this oneOverrides org. Implements org. StateObject is equivalent to this one, i.e. the
information of both StateObject is the same.
|
| public boolean | Returns: true if an identification variable is not required; false if
it is requiredDetermines whether the identification variable is optional or not. |
| public boolean | Returns: true if this identification variable was virtually created to fully
qualify path expression; false if it was parsedDetermines whether this identification variable is virtual, meaning it's not part of the query but is required for proper navigability. |
| public void | setAs(boolean
true if the AS identifier is part of the
expression; false otherwiseSets whether the |
| public void | setExpression(RangeVariableDeclaration
The expression)parsed object representing a range
variable declarationKeeps a reference of the |
| public void | setIdentificationVariable(String
The new identification variable identificationVariable)Sets the new identification variable that will range over the "root" object. |
| protected void | setIdentificationVariableOptional(boolean
true if an identification variable is not
required; false if it is requiredSets whether the identification variable is optional or not. |
| public abstract void | setRootPath(String
The "root" object root)Sets the "root" object for objects which may not be reachable by navigation. |
| public void | |
| protected void | toTextInternal(Appendable
The writer used to print out the string representation writer)Implements abstract org. StateObject, which should not be used to
define a true string representation of a JPQL query but should be used for
debugging purposes.
|
| as | back to summary |
|---|---|
| private boolean as Flag used to determine if the | |
| AS_PROPERTY | back to summary |
|---|---|
| public static final String AS_PROPERTY Notifies the visibility of the | |
| IDENTIFICATION_VARIABLE_PROPERTY | back to summary |
|---|---|
| public static final String IDENTIFICATION_VARIABLE_PROPERTY Notifies the identification variable property has changed. | |
| identificationVariable | back to summary |
|---|---|
| private IdentificationVariableStateObject identificationVariable The state object representing the identification variable used to reach the "root" object. | |
| identificationVariableOptional | back to summary |
|---|---|
| private boolean identificationVariableOptional Flag used to determine if the identification variable is optional or not, which is | |
| rootStateObject | back to summary |
|---|---|
| private StateObject rootStateObject The state object holding the "root" for objects which may not be reachable by navigation. | |
| AbstractRangeVariableDeclarationStateObject | back to summary |
|---|---|
| public AbstractRangeVariableDeclarationStateObject(AbstractIdentificationVariableDeclarationStateObject parent) Creates a new
| |
| AbstractRangeVariableDeclarationStateObject | back to summary |
|---|---|
| public AbstractRangeVariableDeclarationStateObject(AbstractIdentificationVariableDeclarationStateObject parent, String root) Creates a new
| |
| AbstractRangeVariableDeclarationStateObject | back to summary |
|---|---|
| public AbstractRangeVariableDeclarationStateObject(AbstractModifyClauseStateObject parent) Creates a new
| |
| addAs | back to summary |
|---|---|
| public AbstractRangeVariableDeclarationStateObject addAs() Makes sure the
| |
| addChildren | back to summary |
|---|---|
| protected void addChildren(List<StateObject> children) Overrides org. Doc from org. Adds the children of this
| |
| addProblems | back to summary |
|---|---|
| protected void addProblems(List<Problem> problems) Overrides org. Doc from org. Adds to the given list the problems that were found with the current state of this | |
| buildRootStateObject | back to summary |
|---|---|
| protected abstract StateObject buildRootStateObject() | |
| getExpression | back to summary |
|---|---|
| public RangeVariableDeclaration getExpression() Overrides org. Implements org. Doc from org. Returns the actual parsed object if this
| |
| getIdentificationVariable | back to summary |
|---|---|
| public String getIdentificationVariable() Returns the identification variable name that is ranging over the abstract schema type.
| |
| getIdentificationVariableStateObject | back to summary |
|---|---|
| public IdentificationVariableStateObject getIdentificationVariableStateObject() Returns the
| |
| getRootPath | back to summary |
|---|---|
| public abstract String getRootPath() Returns the "root" object for objects which may not be reachable by navigation.
| |
| getRootStateObject | back to summary |
|---|---|
| public StateObject getRootStateObject() Returns the
| |
| hasAs | back to summary |
|---|---|
| public boolean hasAs() Determines whether the
| |
| hasIdentificationVariable | back to summary |
|---|---|
| public boolean hasIdentificationVariable() Determines whether an identification variable was defined.
| |
| identificationVariables | back to summary |
|---|---|
| public ListIterable Implements org. Returns the
| |
| initialize | back to summary |
|---|---|
| protected void initialize() Overrides org. Doc from org. Initializes this state object.
| |
| isEquivalent | back to summary |
|---|---|
| public boolean isEquivalent(StateObject stateObject) Overrides org. Implements org. Doc from org. Determines whether the given
| |
| isIdentificationVariableOptional | back to summary |
|---|---|
| public boolean isIdentificationVariableOptional() Determines whether the identification variable is optional or not. The only time it is
optional is when this model is used in a modify clause (
| |
| isIdentificationVariableVirtual | back to summary |
|---|---|
| public boolean isIdentificationVariableVirtual() Determines whether this identification variable is virtual, meaning it's not part of the query but is required for proper navigability.
| |
| setAs | back to summary |
|---|---|
| public void setAs(boolean as) Sets whether the
| |
| setExpression | back to summary |
|---|---|
| public void setExpression(RangeVariableDeclaration expression) Keeps a reference of the
| |
| setIdentificationVariable | back to summary |
|---|---|
| public void setIdentificationVariable(String identificationVariable) Sets the new identification variable that will range over the "root" object.
| |
| setIdentificationVariableOptional | back to summary |
|---|---|
| protected void setIdentificationVariableOptional(boolean identificationVariableOptional) Sets whether the identification variable is optional or not. The only time it is optional is
when this model is used in a modify clause (
| |
| setRootPath | back to summary |
|---|---|
| public abstract void setRootPath(String root) Sets the "root" object for objects which may not be reachable by navigation.
| |
| toggleAs | back to summary |
|---|---|
| public void toggleAs() Toggles the usage of the | |
| toTextInternal | back to summary |
|---|---|
| protected void toTextInternal(Appendable writer) throws IOException Implements abstract org. Doc from org. Prints out a string representation of this
| |