between_expression ::= arithmetic_expression [NOT] BETWEEN arithmetic_expression AND arithmetic_expression |
string_expression [NOT] BETWEEN string_expression AND string_expression |
datetime_expression [NOT] BETWEEN datetime_expression AND datetime_expressionBetweenExpression
| Modifier and Type | Field and Description |
|---|---|
| public static final String | LOWER_STATE_OBJECT_PROPERTY
Notifies the |
| private StateObject | lowerBoundStateObject
The |
| private boolean | not
Determines whether the |
| public static final String | NOT_PROPERTY
Notifies the visibility of the |
| public static final String | STATE_OBJECT_PROPERTY
Notifies the state object property has changed. |
| private StateObject | stateObject
The |
| public static final String | UPPER_STATE_OBJECT_PROPERTY
Notifies the |
| private StateObject | upperBoundStateObject
The |
| Access | Constructor and Description |
|---|---|
| public | BetweenExpressionStateObject(StateObject
The parent of this state object, which cannot be parent)nullCreates a new |
| public | BetweenExpressionStateObject(StateObject
The parent of this state object, which cannot be parent, StateObject nullThe stateObject, boolean StateObject representing the expression to compare its result
to the lower and upper boundsDetermines whether the not, StateObject NOT identifier is part of the expression
or notThe lowerBound, StateObject StateObject representing the lower bound expressionThe upperBound)StateObject representing the upper bound expressionCreates a new |
| public | BetweenExpressionStateObject(StateObject
The parent of this state object, which cannot be parent, StateObject nullThe stateObject, StateObject StateObject representing the expression to compare its result
to the lower and upper boundsThe lowerBound, StateObject StateObject representing the lower bound expressionThe upperBound)StateObject representing the upper bound expressionCreates a new |
| public | BetweenExpressionStateObject(StateObject
The parent of this state object, which cannot be parent, String nullThe JPQL fragment representing the expression to compare its result to the
lower and upper bounds, the fragment will be parsed and converted into a jpqlFragment, boolean StateObjectDetermines whether the not, String NOT identifier is part of the expression
or notThe JPQL fragment representing the lower bound of the range, the
fragment will be parsed and converted into a lowerBoundJpqlFragment, String StateObjectThe JPQL fragment representing the upper bound of the range, the
fragment will be parsed and converted into a upperBoundJpqlFragment)StateObjectCreates a new |
| public | BetweenExpressionStateObject(StateObject
The parent of this state object, which cannot be parent, String nullThe JPQL fragment representing the expression to compare its result to the
lower and upper bounds, the fragment will be parsed and converted into a jpqlFragment, String StateObjectThe JPQL fragment representing the lowe bound of the range, the
fragment will be parsed and converted into a lowerBoundJpqlFragment, String StateObjectThe JPQL fragment representing the upper bound of the range, the
fragment will be parsed and converted into a upperBoundJpqlFragment)StateObjectCreates a new |
| Modifier and Type | Method and Description |
|---|---|
| public void | accept(StateObjectVisitor
The visitor)visitor to visit this objectImplements org. StateObject by the given visitor.
|
| protected void | addChildren(List<StateObject>
The list used to store the children children)Overrides org. StateObject to the given list.
|
| public BetweenExpressionStateObject | |
| public BetweenExpression | getExpression()
Overrides org. Implements org. StateObject representation of the JPQL query
was created by parsing an existing JPQL query.
|
| public StateObject | Returns: The expression representing the lower boundReturns the |
| public StateObject | Returns: The expression to check if its result is in the range of the lower and upper boundsReturns the |
| public StateObject | Returns: The expression representing the upper boundReturns the |
| public boolean | Returns: true if the StateObject representing the expression to check if
its result falls into a range has been defined; false otherwiseDetermines whether the |
| public boolean | Returns: true if the NOT identifier is part of the expression;
false otherwiseDetermines whether the |
| public boolean | Returns: true if the StateObject representing the lower bound expression
has been defined; false otherwiseDetermines whether the |
| public boolean | Returns: true if the StateObject representing the upper bound expression
has been defined; 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 void | parse(String
The JPQL fragment representing the expression to compare its result to the
lower and upper bounds, the fragment will be parsed and converted into a jpqlFragment)StateObjectParses the given JPQL fragment, which will represent the expression to compare its result to the lower and upper bounds. |
| public void | parseLowerBound(String
The JPQL fragment representing the lower bound of the range, the fragment
will be parsed and converted into a jpqlFragment)StateObjectParses the given JPQL fragment, which will represent the lower bound of the range. |
| public void | parseUpperBound(String
The JPQL fragment representing the upper bound of the range, the fragment
will be parsed and converted into a jpqlFragment)StateObjectParses the given JPQL fragment, which will represent the upper bound of the range. |
| public void | |
| public void | setExpression(BetweenExpression
The expression)parsed object representing a BETWEEN
expressionKeeps a reference of the |
| public void | setLowerBound(StateObject
The lowerBound)StateObject representing the lower bound expressionSets the |
| public void | setNot(boolean
true if the NOT identifier should be part of the
expression; false otherwiseSets whether the |
| public void | setStateObject(StateObject
The expression to check if its result is in the range of the lower and
upper bounds stateObject)Sets the |
| public void | setUpperBound(StateObject
The upperBound)StateObject representing the upper bound expressionSets the |
| 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.
|
| LOWER_STATE_OBJECT_PROPERTY | back to summary |
|---|---|
| public static final String LOWER_STATE_OBJECT_PROPERTY Notifies the | |
| lowerBoundStateObject | back to summary |
|---|---|
| private StateObject lowerBoundStateObject The | |
| not | back to summary |
|---|---|
| private boolean not Determines whether the | |
| NOT_PROPERTY | back to summary |
|---|---|
| public static final String NOT_PROPERTY Notifies the visibility of the | |
| STATE_OBJECT_PROPERTY | back to summary |
|---|---|
| public static final String STATE_OBJECT_PROPERTY Notifies the state object property has changed. | |
| stateObject | back to summary |
|---|---|
| private StateObject stateObject The | |
| UPPER_STATE_OBJECT_PROPERTY | back to summary |
|---|---|
| public static final String UPPER_STATE_OBJECT_PROPERTY Notifies the | |
| upperBoundStateObject | back to summary |
|---|---|
| private StateObject upperBoundStateObject The | |
| BetweenExpressionStateObject | back to summary |
|---|---|
| public BetweenExpressionStateObject(StateObject parent) Creates a new
| |
| BetweenExpressionStateObject | back to summary |
|---|---|
| public BetweenExpressionStateObject(StateObject parent, StateObject stateObject, boolean not, StateObject lowerBound, StateObject upperBound) Creates a new
| |
| BetweenExpressionStateObject | back to summary |
|---|---|
| public BetweenExpressionStateObject(StateObject parent, StateObject stateObject, StateObject lowerBound, StateObject upperBound) Creates a new
| |
| BetweenExpressionStateObject | back to summary |
|---|---|
| public BetweenExpressionStateObject(StateObject parent, String jpqlFragment, boolean not, String lowerBoundJpqlFragment, String upperBoundJpqlFragment) Creates a new
| |
| BetweenExpressionStateObject | back to summary |
|---|---|
| public BetweenExpressionStateObject(StateObject parent, String jpqlFragment, String lowerBoundJpqlFragment, String upperBoundJpqlFragment) Creates a new
| |
| accept | back to summary |
|---|---|
| public void accept(StateObjectVisitor visitor) Implements org. Doc from org. Visits this
| |
| addChildren | back to summary |
|---|---|
| protected void addChildren(List<StateObject> children) Overrides org. Doc from org. Adds the children of this
| |
| addNot | back to summary |
|---|---|
| public BetweenExpressionStateObject addNot() Makes sure the
| |
| getExpression | back to summary |
|---|---|
| public BetweenExpression getExpression() Overrides org. Implements org. Doc from org. Returns the actual parsed object if this
| |
| getLowerBound | back to summary |
|---|---|
| public StateObject getLowerBound() Returns the
| |
| getStateObject | back to summary |
|---|---|
| public StateObject getStateObject() Returns the
| |
| getUpperBound | back to summary |
|---|---|
| public StateObject getUpperBound() Returns the
| |
| hasLowerBound | back to summary |
|---|---|
| public boolean hasLowerBound() Determines whether the
| |
| hasNot | back to summary |
|---|---|
| public boolean hasNot() Determines whether the
| |
| hasStateObject | back to summary |
|---|---|
| public boolean hasStateObject() Determines whether the
| |
| hasUpperBound | back to summary |
|---|---|
| public boolean hasUpperBound() Determines whether the
| |
| isEquivalent | back to summary |
|---|---|
| public boolean isEquivalent(StateObject stateObject) Overrides org. Implements org. Doc from org. Determines whether the given
| |
| parse | back to summary |
|---|---|
| public void parse(String jpqlFragment) Parses the given JPQL fragment, which will represent the expression to compare its result to the lower and upper bounds.
| |
| parseLowerBound | back to summary |
|---|---|
| public void parseLowerBound(String jpqlFragment) Parses the given JPQL fragment, which will represent the lower bound of the range.
| |
| parseUpperBound | back to summary |
|---|---|
| public void parseUpperBound(String jpqlFragment) Parses the given JPQL fragment, which will represent the upper bound of the range.
| |
| removeNot | back to summary |
|---|---|
| public void removeNot() Makes sure the | |
| setExpression | back to summary |
|---|---|
| public void setExpression(BetweenExpression expression) Keeps a reference of the
| |
| setLowerBound | back to summary |
|---|---|
| public void setLowerBound(StateObject lowerBound) Sets the
| |
| setNot | back to summary |
|---|---|
| public void setNot(boolean not) Sets whether the
| |
| setStateObject | back to summary |
|---|---|
| public void setStateObject(StateObject stateObject) Sets the
| |
| setUpperBound | back to summary |
|---|---|
| public void setUpperBound(StateObject upperBound) Sets the
| |
| toggleNot | back to summary |
|---|---|
| public void toggleNot() Changes the visibility state 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
| |