FROM clause, which
is either the FROM clause of the query or of a sub-query expression.
AbstractSelectStatementStateObject, FromClauseStateObject, AbstractFromClause
| Modifier and Type | Field and Description |
|---|---|
| public static final String | VARIABLE_DECLARATIONS_LIST
Notifies the content of the list of |
| Access | Constructor and Description |
|---|---|
| protected | AbstractFromClauseStateObject(AbstractSelectStatementStateObject
The parent of this state object, which cannot be parent)nullCreates a new |
| Modifier and Type | Method and Description |
|---|---|
| public CollectionMemberDeclarationStateObject | Returns: TheCollectionMemberDeclarationStateObject representing the collection declarationAdds a new collection declaration to the |
| public CollectionMemberDeclarationStateObject | Returns: TheCollectionMemberDeclarationStateObject representing the collection
declarationThe collection-valued path expression collectionValuedPath, String The variable defining the collection-valued path expression identificationVariable)Adds a new collection declaration to the |
| protected void | addProblems(List<Problem>
The list to which the problems are added currentProblems)Overrides org. StateObject, which means there are validation issues.
|
| public IdentificationVariableDeclarationStateObject | Returns: TheStateObject representing the range variable declarationAdds a new range variable declaration to the |
| public IdentificationVariableDeclarationStateObject | Returns: The state object of the new declarationThe external form of the entity to add to the declaration list entity, String The unique identifier identifying the abstract schema name identificationVariable)Adds to this select statement a new range variable declaration. |
| public IdentificationVariableDeclarationStateObject | Returns: The state object of the new declarationThe name of the entity name entityName, String The new identification variable identificationVariable)Adds a new range variable declaration. |
| protected abstract String | Returns: The BNF of the declaration part of this clauseReturns the BNF of the declaration part of this clause. |
| public ListIterable | declarations()
Implements org. |
| public IdentificationVariableStateObject | findIdentificationVariable(String
The name of the identification variable to retrieve its state object variable)Overrides org. Implements org. IdentificationVariableStateObject representing the given identification
variable.
|
| public DeclarationStateObject | getDeclaration()
Overrides org. Implements org. |
| public AbstractFromClause | getExpression()
Overrides org. Implements org. StateObject representation of the JPQL query
was created by parsing an existing JPQL query.
|
| public IManagedType | getManagedType(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 AbstractSelectStatementStateObject | getParent()
Overrides org. Implements org. StateObject.
|
| public Iterable | Returns: The list ofIdentificationVariableStateObjectsReturns the |
| 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.
|
| protected String | listName()
Implements abstract org. |
| public void | |
| 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.
|
| VARIABLE_DECLARATIONS_LIST | back to summary |
|---|---|
| public static final String VARIABLE_DECLARATIONS_LIST Notifies the content of the list of | |
| AbstractFromClauseStateObject | back to summary |
|---|---|
| protected AbstractFromClauseStateObject(AbstractSelectStatementStateObject parent) Creates a new
| |
| addCollectionDeclaration | back to summary |
|---|---|
| public CollectionMemberDeclarationStateObject addCollectionDeclaration() Adds a new collection declaration to the
| |
| addCollectionDeclaration | back to summary |
|---|---|
| public CollectionMemberDeclarationStateObject addCollectionDeclaration(String collectionValuedPath, String identificationVariable) Adds a new collection declaration to the
| |
| addProblems | back to summary |
|---|---|
| protected void addProblems(List<Problem> currentProblems) Overrides org. Doc from org. Adds to the given list the problems that were found with the current state of this | |
| addRangeDeclaration | back to summary |
|---|---|
| public IdentificationVariableDeclarationStateObject addRangeDeclaration() Adds a new range variable declaration to the
| |
| addRangeDeclaration | back to summary |
|---|---|
| public IdentificationVariableDeclarationStateObject addRangeDeclaration(IEntity entity, String identificationVariable) Adds to this select statement a new range variable declaration.
| |
| addRangeDeclaration | back to summary |
|---|---|
| public IdentificationVariableDeclarationStateObject addRangeDeclaration(String entityName, String identificationVariable) Adds a new range variable declaration.
| |
| declarationBNF | back to summary |
|---|---|
| protected abstract String declarationBNF() Returns the BNF of the declaration part of this clause.
| |
| declarations | back to summary |
|---|---|
| public ListIterable Implements org. Doc from org. Returns the list of declarations declared in the declaration clause of the current query.
| |
| findIdentificationVariable | back to summary |
|---|---|
| public IdentificationVariableStateObject findIdentificationVariable(String variable) Overrides org. Implements org. Doc from org. Returns the
| |
| getDeclaration | back to summary |
|---|---|
| public DeclarationStateObject getDeclaration() Overrides org. Implements org. Doc from org. Returns the declaration clause which defines the domain of the query by declaring identification variables.
| |
| getExpression | back to summary |
|---|---|
| public AbstractFromClause getExpression() Overrides org. Implements org. Doc from org. Returns the actual parsed object if this
| |
| getManagedType | back to summary |
|---|---|
| public IManagedType getManagedType(StateObject stateObject) Implements org. Doc from org. Returns the
In the above query, the managed type associated with the identification variable:
| |
| getParent | back to summary |
|---|---|
| public AbstractSelectStatementStateObject getParent() Overrides org. Implements org. Doc from org. Returns the parent of this
| |
| identificationVariables | back to summary |
|---|---|
| public Iterable Returns the Example:
| |
| isEquivalent | back to summary |
|---|---|
| public boolean isEquivalent(StateObject stateObject) Overrides org. Implements org. Doc from org. Determines whether the given
| |
| listName | back to summary |
|---|---|
| protected String listName() Implements abstract org. Doc from org. Returns the name that is uniquely identifying the list. | |
| parse | back to summary |
|---|---|
| public 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.
| |
| toTextInternal | back to summary |
|---|---|
| protected void toTextInternal(Appendable writer) throws IOException Implements abstract org. Doc from org. Prints out a string representation of this
| |