| Modifier and Type | Field and Description |
|---|---|
| public static final String | ARGUMENTS_LIST
Notifies the list of arguments has changed. |
| public static final String | FUNCTION_NAME_PROPERTY
Notifies the function name property has changed. |
| private String | functionName
The name of the native database function. |
| private String | identifier
The JPQL identifier of the SQL expression. |
| private List | items
The list of |
| Access | Constructor and Description |
|---|---|
| public | FunctionExpressionStateObject(StateObject
The parent of this state object, which cannot be parent)nullCreates a new |
| public | FunctionExpressionStateObject(StateObject
The parent of this state object, which cannot be parent, String nullThe JPQL identifier of the SQL expression identifier, String The name of the native database function functionName, List<? extends StateObject> The list of arguments)StateObject representing the arguments to pass to the
native database functionCreates 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 <S extends StateObject> S | addItem(S
The child item)StateObject to become a child of this one
return The given itemImplements org. StateObject as a child of this one.
|
| public void | addItems(List<? extends StateObject>
The items)StateObjects to become children of this oneImplements org. StateObjects as children of this one.
|
| public void | addListChangeListener(String
The name of the list for which the listener will be notified when the content
of the list has changed listName, IListChangeListener<StateObject> The listener to be notified upon changes listener)Implements org. IListChangeListener for the specified list.
|
| protected boolean | Returns: true if both have equivalent children; false otherwiseThe stateObject)StateObject to compare its children to this one's childrenDetermines whether the children of this |
| public boolean | canMoveDown(StateObject
The item)StateObject that could potentially be moved downImplements org. StateObject can be moved down by one position in the
list owned by its parent.
|
| public boolean | canMoveUp(StateObject
The item)StateObject that could potentially be moved upImplements org. StateObject can be moved up by one position in the list
owned by its parent.
|
| public FunctionExpression | getExpression()
Overrides org. Implements org. StateObject representation of the JPQL query
was created by parsing an existing JPQL query.
|
| public String | Returns: The new name of the native database functionReturns the name of the native database function. |
| public String | |
| public StateObject | getItem(int
The position of the index)StateObject to retrieveImplements org. StateObject at the given positions from the list
|
| public String | Returns: The new name of the native database function, which is quotedReturns the quoted name of the native database function. |
| public boolean | Returns: true if the function name has been specified; false
otherwiseDetermines whether the name of the native SQL function has been specified. |
| public boolean | hasItems()
Implements org. StateObject has any children.
|
| 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 ListIterable | items()
Implements org. ListIterable over the children.
|
| public int | itemsSize()
Implements org. |
| public StateObject | moveDown(StateObject
The item)StateObject to move down in the listImplements org. StateObject down by one position in the list owned by its parent.
|
| public StateObject | moveUp(StateObject
The item)StateObject to move up in the listImplements org. StateObject up by one position in the list owned by its parent.
|
| public void | removeItem(StateObject
The child item)StateObject to not longer be a childImplements org. StateObject from the list of children.
|
| public void | removeItems(Collection<StateObject>
The items)StateObjects to remove from this oneImplements org. StateObject from the list of children.
|
| public void | removeListChangeListener(String
The name of the list for which the listener was registered listName, IListChangeListener<StateObject> The listener to unregister listener)Implements org. IListChangeListener that was registered for the specified list.
|
| public void | setExpression(FunctionExpression
The expression)parsed object representing a SQL expressionKeeps a reference of the |
| public void | setFunctionName(String
The new name of the native database function, which should be unquoted functionName)Sets the unquoted name of the native database function. |
| 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.
|
| ARGUMENTS_LIST | back to summary |
|---|---|
| public static final String ARGUMENTS_LIST Notifies the list of arguments has changed. | |
| FUNCTION_NAME_PROPERTY | back to summary |
|---|---|
| public static final String FUNCTION_NAME_PROPERTY Notifies the function name property has changed. | |
| functionName | back to summary |
|---|---|
| private String functionName The name of the native database function. | |
| identifier | back to summary |
|---|---|
| private String identifier The JPQL identifier of the SQL expression. | |
| items | back to summary |
|---|---|
| private List<StateObject> items The list of | |
| FunctionExpressionStateObject | back to summary |
|---|---|
| public FunctionExpressionStateObject(StateObject parent) Creates a new
| |
| FunctionExpressionStateObject | back to summary |
|---|---|
| public FunctionExpressionStateObject(StateObject parent, String identifier, String functionName, List<? extends StateObject> arguments) 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
| |
| addItem | back to summary |
|---|---|
| public <S extends StateObject> S addItem(S item) Implements org. Doc from org. Adds the given
| |
| addItems | back to summary |
|---|---|
| public void addItems(List<? extends StateObject> items) Implements org. Doc from org. Adds the given list of
| |
| addListChangeListener | back to summary |
|---|---|
| public void addListChangeListener(String listName, IListChangeListener<StateObject> listener) Implements org. Doc from org. Registers the given
| |
| areChildrenEquivalent | back to summary |
|---|---|
| protected boolean areChildrenEquivalent(FunctionExpressionStateObject stateObject) Determines whether the children of this
| |
| canMoveDown | back to summary |
|---|---|
| public boolean canMoveDown(StateObject item) Implements org. Doc from org. Determines whether the given
| |
| canMoveUp | back to summary |
|---|---|
| public boolean canMoveUp(StateObject item) Implements org. Doc from org. Determines whether the given
| |
| getExpression | back to summary |
|---|---|
| public FunctionExpression getExpression() Overrides org. Implements org. Doc from org. Returns the actual parsed object if this
| |
| getFunctionName | back to summary |
|---|---|
| public String getFunctionName() Returns the name of the native database function.
| |
| getIdentifier | back to summary |
|---|---|
| public String getIdentifier() Returns the JPQL identifier of this expression.
| |
| getItem | back to summary |
|---|---|
| public StateObject getItem(int index) Implements org. Doc from org. Returns the
| |
| getQuotedFunctionName | back to summary |
|---|---|
| public String getQuotedFunctionName() Returns the quoted name of the native database function.
| |
| hasFunctionName | back to summary |
|---|---|
| public boolean hasFunctionName() Determines whether the name of the native SQL function has been specified.
| |
| hasItems | back to summary |
|---|---|
| public boolean hasItems() Implements org. Doc from org. Determines whether this
| |
| 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
| |
| items | back to summary |
|---|---|
| public ListIterable Implements org. Doc from org. Returns an
| |
| itemsSize | back to summary |
|---|---|
| public int itemsSize() Implements org. Doc from org. Returns the number of children this list holder has.
| |
| moveDown | back to summary |
|---|---|
| public StateObject moveDown(StateObject item) Implements org. Doc from org. Moves the given
| |
| moveUp | back to summary |
|---|---|
| public StateObject moveUp(StateObject item) Implements org. Doc from org. Moves the given
| |
| removeItem | back to summary |
|---|---|
| public void removeItem(StateObject item) Implements org. Doc from org. Removes the given
| |
| removeItems | back to summary |
|---|---|
| public void removeItems(Collection<StateObject> items) Implements org. Doc from org. Removes the given
| |
| removeListChangeListener | back to summary |
|---|---|
| public void removeListChangeListener(String listName, IListChangeListener<StateObject> listener) Implements org. Doc from org. Unregisters the given
| |
| setExpression | back to summary |
|---|---|
| public void setExpression(FunctionExpression expression) Keeps a reference of the
| |
| setFunctionName | back to summary |
|---|---|
| public void setFunctionName(String functionName) Sets the unquoted name of the native database function.
| |
| toTextInternal | back to summary |
|---|---|
| protected void toTextInternal(Appendable writer) throws IOException Implements abstract org. Doc from org. Prints out a string representation of this
| |