BNF: simple_select_clause ::= SELECT [DISTINCT] simple_select_expression
SimpleSelectClause
| Modifier and Type | Field and Description |
|---|---|
| private ISimpleSelectExpressionStateObjectBuilder | builder
The builder is cached during the creation of the select expression. |
| public static final String | SELECT_ITEM_PROPERTY
Notifies the select expression property has changed. |
| private StateObject | stateObject
The state object representing the single select expression. |
| Access | Constructor and Description |
|---|---|
| public | SimpleSelectClauseStateObject(SimpleSelectStatementStateObject
The parent of this state object, which cannot be parent)nullCreates 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 ISimpleSelectExpressionStateObjectBuilder | Returns: A new builder that can be used to quickly create a select expressionCreates and returns a new |
| public SimpleSelectClause | getExpression()
Overrides org. Implements org. StateObject representation of the JPQL query
was created by parsing an existing JPQL query.
|
| public SimpleFromClauseStateObject | getFromClause()
Overrides org. AbstractFromClauseStateObject representing the FROM clause.
|
| public SimpleSelectStatementStateObject | getParent()
Overrides org. Implements org. StateObject.
|
| public StateObject | |
| public boolean | hasSelectItem()
Implements abstract org. SELECT clause has a select item defined (only one
can be set for a subquery's SELECT clause and many for a top-level query).
|
| 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 portion of the query representing one or several select items jpqlFragment)Implements abstract org. |
| public void | setExpression(SimpleSelectClause
The expression)parsed object representing a subquery
SELECT clauseKeeps a reference of the |
| public void | setSelectItem(StateObject
The stateObject)StateObject representing the single select itemSets the given |
| 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 ISimpleSelectExpressionStateObjectBuilder builder The builder is cached during the creation of the select expression. | |
| SELECT_ITEM_PROPERTY | back to summary |
|---|---|
| public static final String SELECT_ITEM_PROPERTY Notifies the select expression property has changed. | |
| stateObject | back to summary |
|---|---|
| private StateObject stateObject The state object representing the single select expression. | |
| SimpleSelectClauseStateObject | back to summary |
|---|---|
| public SimpleSelectClauseStateObject(SimpleSelectStatementStateObject parent) 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
| |
| getBuilder | back to summary |
|---|---|
| public ISimpleSelectExpressionStateObjectBuilder getBuilder() Creates and returns a new
| |
| getExpression | back to summary |
|---|---|
| public SimpleSelectClause getExpression() Overrides org. Implements org. Doc from org. Returns the actual parsed object if this
| |
| getFromClause | back to summary |
|---|---|
| public SimpleFromClauseStateObject getFromClause() Overrides org. Doc from org. Returns the
| |
| getParent | back to summary |
|---|---|
| public SimpleSelectStatementStateObject getParent() Overrides org. Implements org. Doc from org. Returns the parent of this
| |
| getSelectItem | back to summary |
|---|---|
| public StateObject getSelectItem() Returns | |
| hasSelectItem | back to summary |
|---|---|
| public boolean hasSelectItem() Implements abstract org. Doc from org. Determines whether this
| |
| 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) Implements abstract org. Doc from org. Parses the given JPQL fragment and create the select item. For the top-level query, the fragment can contain several select items but for a subquery, it can represent only one. | |
| setExpression | back to summary |
|---|---|
| public void setExpression(SimpleSelectClause expression) Keeps a reference of the
| |
| setSelectItem | back to summary |
|---|---|
| public void setSelectItem(StateObject stateObject) Sets the given
| |
| toTextInternal | back to summary |
|---|---|
| protected void toTextInternal(Appendable writer) throws IOException Implements abstract org. Doc from org. Prints out a string representation of this
| |