SELECT clause,
which is either the SELECT clause of the top-level query or of a subquery.
AbstractSelectStatementStateObject, SelectClauseStateObject, AbstractSelectClause
| Modifier and Type | Field and Description |
|---|---|
| private boolean | distinct
Determines whether the |
| public static final String | DISTINCT_PROPERTY
Notifies the distinct property has changed. |
| Access | Constructor and Description |
|---|---|
| protected | AbstractSelectClauseStateObject(AbstractSelectStatementStateObject
The parent of this state object, which cannot be parent)nullCreates a new |
| Modifier and Type | Method and Description |
|---|---|
| public AbstractSelectClause | getExpression()
Overrides org. Implements org. StateObject representation of the JPQL query
was created by parsing an existing JPQL query.
|
| public AbstractFromClauseStateObject | Returns: The state object representing the FROM clauseReturns the |
| public AbstractSelectStatementStateObject | getParent()
Overrides org. Implements org. StateObject.
|
| public boolean | hasDistinct()
Gets whether the |
| public abstract boolean | Returns: true if this state object has children; false otherwiseDetermines whether this |
| 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 abstract void | |
| public void | setDistinct(boolean
true to add DISTINCT to the query in order to have
distinct values; false if it is not requiredSets whether the |
| public void | toggleDistinct()
Changes the state of the |
| distinct | back to summary |
|---|---|
| private boolean distinct Determines whether the | |
| DISTINCT_PROPERTY | back to summary |
|---|---|
| public static final String DISTINCT_PROPERTY Notifies the distinct property has changed. | |
| AbstractSelectClauseStateObject | back to summary |
|---|---|
| protected AbstractSelectClauseStateObject(AbstractSelectStatementStateObject parent) Creates a new
| |
| getExpression | back to summary |
|---|---|
| public AbstractSelectClause getExpression() Overrides org. Implements org. Doc from org. Returns the actual parsed object if this
| |
| getFromClause | back to summary |
|---|---|
| public AbstractFromClauseStateObject getFromClause() Returns the
| |
| getParent | back to summary |
|---|---|
| public AbstractSelectStatementStateObject getParent() Overrides org. Implements org. Doc from org. Returns the parent of this
| |
| hasDistinct | back to summary |
|---|---|
| public boolean hasDistinct() Gets whether the | |
| hasSelectItem | back to summary |
|---|---|
| public abstract boolean hasSelectItem() 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 abstract void parse(String jpqlFragment) 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.
| |
| setDistinct | back to summary |
|---|---|
| public void setDistinct(boolean distinct) Sets whether the
| |
| toggleDistinct | back to summary |
|---|---|
| public void toggleDistinct() Changes the state of the | |