SELECT clause
and a FROM clause. The other clauses are optional.
subquery ::= simple_select_clause subquery_from_clause [where_clause] [groupby_clause] [having_clause]SimpleSelectStatement
| Access | Constructor and Description |
|---|---|
| public | SimpleSelectStatementStateObject(StateObject
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.
|
| public CollectionMemberDeclarationStateObject | Returns: TheCollectionMemberDeclarationStateObject representing the collection
declarationAdds a new derived collection declaration to the |
| public CollectionMemberDeclarationStateObject | Returns: TheCollectionMemberDeclarationStateObject representing the collection
declarationThe collection-valued path expression collectionValuedPath)Adds a new derived collection declaration to the |
| public DerivedPathIdentificationVariableDeclarationStateObject | Returns: TheDerivedPathIdentificationVariableDeclarationStateObject representing the collection
declarationAdds a new derived identification variable declaration to the |
| public DerivedPathIdentificationVariableDeclarationStateObject | Returns: TheDerivedPathIdentificationVariableDeclarationStateObject representing the
path declarationEither the derived singled-valued object field or the collection-valued path expression path, String The identification variable defining the given path identificationVariable)Adds a new derived identification variable declaration to the |
| protected AbstractFromClauseStateObject | buildFromClause()
Implements abstract org. FROM clause.
|
| protected AbstractSelectClauseStateObject | buildSelectClause()
Implements abstract org. SELECT clause.
|
| public SimpleSelectStatement | getExpression()
Overrides org. Implements org. StateObject representation of the JPQL query
was created by parsing an existing JPQL query.
|
| public SimpleFromClauseStateObject | getFromClause()
Overrides org. FROM clause.
|
| public ISimpleSelectExpressionStateObjectBuilder | Returns: A new builder that can be used to quickly create a select expressionCreates and returns a new |
| public SimpleSelectClauseStateObject | |
| public void | setExpression(SimpleSelectStatement
The expression)parsed object representing a subquery
SELECT statementKeeps a reference of the |
| public void | setSelectItem(StateObject
The stateObject)StateObject representing the single select itemSets the given |
| public void | setSelectItem(String
The portion of the query representing one or several select items jpqlFragment)Parses the given JPQL fragment and create the select item. |
| SimpleSelectStatementStateObject | back to summary |
|---|---|
| public SimpleSelectStatementStateObject(StateObject parent) Creates a new
| |
| accept | back to summary |
|---|---|
| public void accept(StateObjectVisitor visitor) Implements org. Doc from org. Visits this
| |
| addDerivedCollectionDeclaration | back to summary |
|---|---|
| public CollectionMemberDeclarationStateObject addDerivedCollectionDeclaration() Adds a new derived collection declaration to the
| |
| addDerivedCollectionDeclaration | back to summary |
|---|---|
| public CollectionMemberDeclarationStateObject addDerivedCollectionDeclaration(String collectionValuedPath) Adds a new derived collection declaration to the
| |
| addDerivedPathDeclaration | back to summary |
|---|---|
| public DerivedPathIdentificationVariableDeclarationStateObject addDerivedPathDeclaration() Adds a new derived identification variable declaration to the
| |
| addDerivedPathDeclaration | back to summary |
|---|---|
| public DerivedPathIdentificationVariableDeclarationStateObject addDerivedPathDeclaration(String path, String identificationVariable) Adds a new derived identification variable declaration to the
| |
| buildFromClause | back to summary |
|---|---|
| protected AbstractFromClauseStateObject buildFromClause() Implements abstract org. Creates the state object representing the
| |
| buildSelectClause | back to summary |
|---|---|
| protected AbstractSelectClauseStateObject buildSelectClause() Implements abstract org. Creates the state object representing the
| |
| getExpression | back to summary |
|---|---|
| public SimpleSelectStatement 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 state object representing the
| |
| getSelectBuilder | back to summary |
|---|---|
| public ISimpleSelectExpressionStateObjectBuilder getSelectBuilder() Creates and returns a new
| |
| getSelectClause | back to summary |
|---|---|
| public SimpleSelectClauseStateObject getSelectClause() Returns the state object representing the
| |
| setExpression | back to summary |
|---|---|
| public void setExpression(SimpleSelectStatement expression) Keeps a reference of the
| |
| setSelectItem | back to summary |
|---|---|
| public void setSelectItem(StateObject stateObject) Sets the given
| |
| setSelectItem | back to summary |
|---|---|
| public void setSelectItem(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.
| |