BNF: expression ::= identifier conditional_expression
AbstractConditionalClause
| Modifier and Type | Field and Description |
|---|---|
| private IConditionalExpressionStateObjectBuilder | builder
The builder is cached during the creation of the conditional expression. |
| public static final String | CONDITIONAL_STATE_OBJECT_PROPERTY
Notifies the conditional expression property has changed. |
| private StateObject | conditionalStateObject
The state object representing the composition of the conditional expressions. |
| Access | Constructor and Description |
|---|---|
| protected | AbstractConditionalClauseStateObject(StateObject
The parent of this state object, which cannot be parent)nullCreates a new |
| protected | AbstractConditionalClauseStateObject(StateObject
The parent of this state object, which cannot be parent, StateObject nullThe conditionalStateObject)StateObject representing the conditional expressionCreates 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 AndExpressionStateObject | Returns: The newly createdAndExpressionStateObjectThe portion of the query representing the right side of the
jpqlFragment)AND expressionParses the given JPQL fragment as the right side of an |
| public IConditionalExpressionStateObjectBuilder | Returns: A new builder that can be used to quickly create a conditional expressionCreates and returns a new |
| public StateObject | Returns: The actual conditional expressionReturns the state object representing the composition of the conditional expressions. |
| public abstract String | Returns: The JPQL identifier of this conditional clauseReturns the JPQL identifier of this clause. |
| public boolean | Returns: true if the conditional expression is not null;
false otherwiseDetermines 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 OrExpressionStateObject | Returns: The newly createdOrExpressionStateObjectThe portion of the query representing the right side of the
jpqlFragment)OR expressionParses the given JPQL fragment as the right side of an |
| public void | parse(String
The portion of the query representing a conditional expression jpqlFragment)Parses the given JPQL fragment, which represents a conditional expression, and creates the
|
| public void | setConditional(StateObject
The new conditionalStateObject)StateObject representing the conditional
expressionSets the given |
| protected boolean | |
| 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.
|
| builder | back to summary |
|---|---|
| private IConditionalExpressionStateObjectBuilder builder The builder is cached during the creation of the conditional expression. | |
| CONDITIONAL_STATE_OBJECT_PROPERTY | back to summary |
|---|---|
| public static final String CONDITIONAL_STATE_OBJECT_PROPERTY Notifies the conditional expression property has changed. | |
| conditionalStateObject | back to summary |
|---|---|
| private StateObject conditionalStateObject The state object representing the composition of the conditional expressions. | |
| AbstractConditionalClauseStateObject | back to summary |
|---|---|
| protected AbstractConditionalClauseStateObject(StateObject parent) Creates a new
| |
| AbstractConditionalClauseStateObject | back to summary |
|---|---|
| protected AbstractConditionalClauseStateObject(StateObject parent, StateObject conditionalStateObject) Creates a new
| |
| addChildren | back to summary |
|---|---|
| protected void addChildren(List<StateObject> children) Overrides org. Doc from org. Adds the children of this
| |
| andParse | back to summary |
|---|---|
| public AndExpressionStateObject andParse(String jpqlFragment) Parses the given JPQL fragment as the right side of an
| |
| getBuilder | back to summary |
|---|---|
| public IConditionalExpressionStateObjectBuilder getBuilder() Creates and returns a new
| |
| getConditional | back to summary |
|---|---|
| public StateObject getConditional() Returns the state object representing the composition of the conditional expressions.
| |
| getIdentifier | back to summary |
|---|---|
| public abstract String getIdentifier() Returns the JPQL identifier of this clause.
| |
| hasConditional | back to summary |
|---|---|
| public boolean hasConditional() Determines whether the
| |
| isEquivalent | back to summary |
|---|---|
| public boolean isEquivalent(StateObject stateObject) Overrides org. Implements org. Doc from org. Determines whether the given
| |
| orParse | back to summary |
|---|---|
| public OrExpressionStateObject orParse(String jpqlFragment) Parses the given JPQL fragment as the right side of an
| |
| parse | back to summary |
|---|---|
| public void parse(String jpqlFragment) Parses the given JPQL fragment, which represents a conditional expression, and creates the
| |
| setConditional | back to summary |
|---|---|
| public void setConditional(StateObject conditionalStateObject) Sets the given
| |
| shouldEncapsulateORExpression | back to summary |
|---|---|
| protected boolean shouldEncapsulateORExpression(StateObject stateObject) | |
| toTextInternal | back to summary |
|---|---|
| protected void toTextInternal(Appendable writer) throws IOException Implements abstract org. Doc from org. Prints out a string representation of this
| |