StateObject represents a JPQL expression that has a JPQL identifier followed by
two an encapsulated expression with parenthesis, the two expression are separated by a comma.
BNF: expression ::= <identifier>(first_expression, second_expression)
ModExpressionStateObject, NullIfExpressionStateObject, AbstractDoubleEncapsulatedExpression
| Modifier and Type | Field and Description |
|---|---|
| public static final String | FIRST_STATE_OBJECT_PROPERTY
Notifies the first |
| private StateObject | firstStateObject
The |
| public static final String | SECOND_STATE_OBJECT_PROPERTY
Notifies the second |
| private StateObject | secondStateObject
The |
| Access | Constructor and Description |
|---|---|
| protected | AbstractDoubleEncapsulatedExpressionStateObject(StateObject
The parent of this state object, which cannot be parent)nullCreates a new |
| protected | AbstractDoubleEncapsulatedExpressionStateObject(StateObject
The parent of this state object, which cannot be parent, StateObject nullThe firstStateObject, StateObject StateObject representing the first expressionThe secondStateObject)StateObject representing the second expressionCreates a new |
| public | AbstractDoubleEncapsulatedExpressionStateObject(StateObject
The parent of this state object, which cannot be parent, String nullThe string representation of the first encapsulated expression to
parse and to convert into a firstJpqlFragment, String StateObject representationThe string representation of the second encapsulated expression to
parse and to convert into a secondJpqlFragment)StateObject representationCreates a new |
| Modifier and Type | Method and Description |
|---|---|
| protected void | addChildren(List<StateObject>
The list used to store the children children)Overrides org. StateObject to the given list.
|
| public AbstractDoubleEncapsulatedExpression | getExpression()
Implements org. StateObject representation of the JPQL query
was created by parsing an existing JPQL query.
|
| public StateObject | |
| protected abstract String | Returns: The query BNF ID for the first encapsulated expressionReturns the unique identifier of the BNF that will be used to parse a JPQL fragment as the first encapsulated expression. |
| public StateObject | |
| protected abstract String | Returns: The query BNF ID for the second encapsulated expressionReturns the unique identifier of the BNF that will be used to parse a JPQL fragment as the second encapsulated expression. |
| public boolean | hasFirst()
Determines whether the |
| public boolean | hasSecond()
Determines whether the |
| 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 void | parseFirst(String
The string representation of the first encapsulated expression to parse and
to convert into a jpqlFragment)StateObject representationParses the given JPQL fragment, which will represent the first encapsulated expression. |
| public void | parseSecond(String
The string representation of the second encapsulated expression to parse and
to convert into a jpqlFragment)StateObject representationParses the given JPQL fragment, which will represent the second encapsulated expression. |
| public void | setFirst(StateObject
The new encapsulated firstStateObject)StateObject representing the first
expressionSets the given |
| public void | setSecond(StateObject
The new encapsulated secondStateObject)StateObject representing the second
expressionSets the given |
| protected void | toTextEncapsulatedExpression(Appendable
The writer used to print out the string representation of the encapsulated
information writer)Implements abstract org. true string representation of a JPQL query but should be used for
debugging purposes.
|
| FIRST_STATE_OBJECT_PROPERTY | back to summary |
|---|---|
| public static final String FIRST_STATE_OBJECT_PROPERTY Notifies the first | |
| firstStateObject | back to summary |
|---|---|
| private StateObject firstStateObject The | |
| SECOND_STATE_OBJECT_PROPERTY | back to summary |
|---|---|
| public static final String SECOND_STATE_OBJECT_PROPERTY Notifies the second | |
| secondStateObject | back to summary |
|---|---|
| private StateObject secondStateObject The | |
| AbstractDoubleEncapsulatedExpressionStateObject | back to summary |
|---|---|
| protected AbstractDoubleEncapsulatedExpressionStateObject(StateObject parent) Creates a new
| |
| AbstractDoubleEncapsulatedExpressionStateObject | back to summary |
|---|---|
| protected AbstractDoubleEncapsulatedExpressionStateObject(StateObject parent, StateObject firstStateObject, StateObject secondStateObject) Creates a new
| |
| AbstractDoubleEncapsulatedExpressionStateObject | back to summary |
|---|---|
| public AbstractDoubleEncapsulatedExpressionStateObject(StateObject parent, String firstJpqlFragment, String secondJpqlFragment) Creates a new
| |
| addChildren | back to summary |
|---|---|
| protected void addChildren(List<StateObject> children) Overrides org. Doc from org. Adds the children of this
| |
| getExpression | back to summary |
|---|---|
| public AbstractDoubleEncapsulatedExpression getExpression() Implements org. Doc from org. Returns the actual parsed object if this
| |
| getFirst | back to summary |
|---|---|
| public StateObject getFirst() Returns the
| |
| getFirstQueryBNFId | back to summary |
|---|---|
| protected abstract String getFirstQueryBNFId() Returns the unique identifier of the BNF that will be used to parse a JPQL fragment as the first encapsulated expression.
| |
| getSecond | back to summary |
|---|---|
| public StateObject getSecond() Returns the
| |
| getSecondQueryBNFId | back to summary |
|---|---|
| protected abstract String getSecondQueryBNFId() Returns the unique identifier of the BNF that will be used to parse a JPQL fragment as the second encapsulated expression.
| |
| hasFirst | back to summary |
|---|---|
| public boolean hasFirst() Determines whether the
| |
| hasSecond | back to summary |
|---|---|
| public boolean hasSecond() Determines whether the
| |
| isEquivalent | back to summary |
|---|---|
| public boolean isEquivalent(StateObject stateObject) Overrides org. Implements org. Doc from org. Determines whether the given
| |
| parseFirst | back to summary |
|---|---|
| public void parseFirst(String jpqlFragment) Parses the given JPQL fragment, which will represent the first encapsulated expression.
| |
| parseSecond | back to summary |
|---|---|
| public void parseSecond(String jpqlFragment) Parses the given JPQL fragment, which will represent the second encapsulated expression.
| |
| setFirst | back to summary |
|---|---|
| public void setFirst(StateObject firstStateObject) Sets the given
| |
| setSecond | back to summary |
|---|---|
| public void setSecond(StateObject secondStateObject) Sets the given
| |
| toTextEncapsulatedExpression | back to summary |
|---|---|
| protected void toTextEncapsulatedExpression(Appendable writer) throws IOException Implements abstract org. Prints out a string representation of this encapsulated information, which should not be used
to define a
| |