FROM clause of a sub-query defines the domain of the sub-query by
declaring identification variables. An identification variable is an identifier declared in the
FROM clause of a sub-query. The domain of the sub-query may be constrained by
path expressions. Identification variables designate instances of a particular entity abstract
schema type. The FROM clause can contain multiple identification variable
declarations separated by a comma (,).
BNF: subquery_from_clause ::= FROM subselect_identification_variable_declaration {, subselect_identification_variable_declaration}*
SimpleFromClause
| Access | Constructor and Description |
|---|---|
| public | SimpleFromClauseStateObject(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.
|
| 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
path 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 |
| public String | declarationBNF()
Implements abstract org. |
| public IManagedType | findManagedType(StateObject
The stateObject)StateObject that should be an simple identification variable or
an encapsulated identification variable with the identifier KEY or
VALUEImplements org. IManagedType for the given identification variable.
|
| public SimpleFromClause | getExpression()
Overrides org. Implements org. StateObject representation of the JPQL query
was created by parsing an existing JPQL query.
|
| public SimpleSelectStatementStateObject | getParent()
Overrides org. Implements org. StateObject.
|
| public void | setExpression(SimpleFromClause
The expression)parsed object representing a subquery
FROM clauseKeeps a reference of the |
| SimpleFromClauseStateObject | back to summary |
|---|---|
| public SimpleFromClauseStateObject(SimpleSelectStatementStateObject 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
| |
| declarationBNF | back to summary |
|---|---|
| public String declarationBNF() Implements abstract org. Doc from org. Returns the BNF of the declaration part of this clause. | |
| findManagedType | back to summary |
|---|---|
| public IManagedType findManagedType(StateObject stateObject) Implements org. Doc from org. Returns the
In the above query, the managed type associated with the identification variable:
| |
| getExpression | back to summary |
|---|---|
| public SimpleFromClause getExpression() Overrides org. Implements org. Doc from org. Returns the actual parsed object if this
| |
| getParent | back to summary |
|---|---|
| public SimpleSelectStatementStateObject getParent() Overrides org. Implements org. Doc from org. Returns the parent of this
| |
| setExpression | back to summary |
|---|---|
| public void setExpression(SimpleFromClause expression) Keeps a reference of the
| |