StateObject is an editable representation of a JPQL query.
IJPQLQueryBuilder can be used to
create the state model from an existing JPQL query.
| Modifier and Type | Method and Description |
|---|---|
| public void | accept(StateObjectVisitor
The visitor)visitor to visit this objectVisits this |
| public void | addPropertyChangeListener(String
The name of the property for which the listener was registered propertyName, IPropertyChangeListener<?> The listener to be notified upon changes listener)Registers the given |
| public Iterable | Returns: The children of thisStateObject or an empty iterable this state object does
not have childrenReturns the ordered children of this |
| public void | decorate(StateObject
The decorator)StateObject decorating this oneDecorates this |
| public IdentificationVariableStateObject | Returns: TheIdentificationVariableStateObject defining the given identification variableThe name of the identification variable to retrieve its state object identificationVariable)Returns the |
| public DeclarationStateObject | Returns: The declaration clause of which thisStateObject is a child; i.e. either the
top-level declaration if this is part of the top query or the sub-level declaration if this is
part of a subqueryReturns the declaration clause which defines the domain of the query by declaring identification variables. |
| public StateObject | Returns: TheStateObject decorating this oneReturns the |
| public Expression | Returns: The parsed object when a JPQL query is parsed and converted into aStateObject
or null when the JPQL query is manually created (i.e. not from a string)Returns the actual parsed object if this |
| public JPQLGrammar | Returns: The grammar that was used to parse the JPQL queryReturns the grammar that defines how to parse a JPQL query. |
| public IManagedTypeProvider | Returns: The provider that gives access to the managed typesReturns the provider of managed types. |
| public StateObject | Returns: Returns the parent of thisStateObject, which is null only when
this is the root of the hierarchyReturns the parent of this |
| public IJPQLQueryBuilder | Returns: The builder that created thisStateObject from a JPQL query or that gives
access to various sub-buildersReturns the |
| public JPQLQueryStateObject | Returns: The root of the state model representing the JPQL queryReturns the root of the |
| public boolean | isDecorated()
Determines whether this |
| public boolean | Returns: true if both object are equivalent; false otherwiseThe stateObject)StateObject to compare its content to this oneDetermines whether the given |
| public void | removePropertyChangeListener(String
The name of the property for which the listener was registered propertyName, IPropertyChangeListener<?> The listener to unregister listener)Unregisters the given |
| public void | setParent(StateObject
The new parent parent)StateObject of this one, which cannot be nullSets the given |
| public void | toString(Appendable
The writer used to print out the string representation writer)Prints out a string representation of this |
| public void | toText(Appendable
The writer used to print out the string representation writer)Prints out a string representation of this |
| accept | back to summary |
|---|---|
| public void accept(StateObjectVisitor visitor) Visits this
| |
| addPropertyChangeListener | back to summary |
|---|---|
| public void addPropertyChangeListener(String propertyName, IPropertyChangeListener<?> listener) Registers the given
| |
| children | back to summary |
|---|---|
| public Iterable Returns the ordered children of this
| |
| decorate | back to summary |
|---|---|
| public void decorate(StateObject decorator) Decorates this
| |
| findIdentificationVariable | back to summary |
|---|---|
| public IdentificationVariableStateObject findIdentificationVariable(String identificationVariable) Returns the
| |
| getDeclaration | back to summary |
|---|---|
| public DeclarationStateObject getDeclaration() Returns the declaration clause which defines the domain of the query by declaring identification variables.
| |
| getDecorator | back to summary |
|---|---|
| public StateObject getDecorator() Returns the
| |
| getExpression | back to summary |
|---|---|
| public Expression getExpression() Returns the actual parsed object if this
| |
| getGrammar | back to summary |
|---|---|
| public JPQLGrammar getGrammar() Returns the grammar that defines how to parse a JPQL query.
| |
| getManagedTypeProvider | back to summary |
|---|---|
| public IManagedTypeProvider getManagedTypeProvider() Returns the provider of managed types.
| |
| getParent | back to summary |
|---|---|
| public StateObject getParent() Returns the parent of this
| |
| getQueryBuilder | back to summary |
|---|---|
| public IJPQLQueryBuilder getQueryBuilder() Returns the
| |
| getRoot | back to summary |
|---|---|
| public JPQLQueryStateObject getRoot() Returns the root of the
| |
| isDecorated | back to summary |
|---|---|
| public boolean isDecorated() Determines whether this | |
| isEquivalent | back to summary |
|---|---|
| public boolean isEquivalent(StateObject stateObject) Determines whether the given
| |
| removePropertyChangeListener | back to summary |
|---|---|
| public void removePropertyChangeListener(String propertyName, IPropertyChangeListener<?> listener) Unregisters the given
| |
| setParent | back to summary |
|---|---|
| public void setParent(StateObject parent) Sets the given
| |
| toString | back to summary |
|---|---|
| public void toString(Appendable writer) Prints out a string representation of this Important Note If this
| |
| toText | back to summary |
|---|---|
| public void toText(Appendable writer) Prints out a string representation of this Important Note Even if this
| |