| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private JPQLGrammar | jpqlGrammar
The grammar that defines how to parse a JPQL query. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | JPQLQueryHelper(JPQLGrammar
The jpqlGrammar)JPQLGrammar that will determine how to parse JPQL queriesCreates a new |
| Modifier and Type | Method and Description |
|---|---|
| public List | Returns: The list ofdescriptors used in the JPQL query or an empty
list if the JPQL query is invalid or incompleteThe JPQL query used to gather the descriptors defined in the declaration clause jpqlQuery, AbstractSession The session)AbstractSession is used to retrieve the descriptorsRetrieves the list of |
| public List | Returns: The holder of the resultThe session)AbstractSession is used to retrieve the mappings used in the
constructor itemsRetrieves the class names and the attribute names mapped to their types that are used in the
constructor expressions defined in the |
| public ConstructorQueryMappings | Returns: The holder of the resultThe session, DatabaseQuery query)AbstractSession is used to retrieve the mappings used in the
constructor itemsRetrieves the class names and the attribute names mapped to their types that are used in the
constructor expressions defined in the |
| public JPQLGrammar | Returns: The grammar that will determine how to parse a JPQL queryReturns the JPQL grammar that will be used to define how to parse a JPQL query. |
| jpqlGrammar | back to summary |
|---|---|
| private JPQLGrammar jpqlGrammar The grammar that defines how to parse a JPQL query. | |
| JPQLQueryHelper | back to summary |
|---|---|
| public JPQLQueryHelper() Creates a new | |
| JPQLQueryHelper | back to summary |
|---|---|
| public JPQLQueryHelper(JPQLGrammar jpqlGrammar) Creates a new
| |
| getClassDescriptors | back to summary |
|---|---|
| public List Retrieves the list of
| |
| getConstructorQueryMappings | back to summary |
|---|---|
| public List Retrieves the class names and the attribute names mapped to their types that are used in the
constructor expressions defined in the
The return object is
| |
| getConstructorQueryMappings | back to summary |
|---|---|
| public ConstructorQueryMappings getConstructorQueryMappings(AbstractSession session, DatabaseQuery query) Retrieves the class names and the attribute names mapped to their types that are used in the
constructor expressions defined in the
For instance, from the following JPQL query:
The return object is
| |
| getGrammar | back to summary |
|---|---|
| public JPQLGrammar getGrammar() Returns the JPQL grammar that will be used to define how to parse a JPQL query.
| |
| Modifier and Type | Field and Description |
|---|---|
| private Set | |
| private JPQLQueryContext | |
| private DeclarationResolver |
| Access | Constructor and Description |
|---|---|
| private |
| descriptors | back to summary |
|---|---|
| private Set<ClassDescriptor> descriptors | |
| queryContext | back to summary |
|---|---|
| private JPQLQueryContext queryContext | |
| resolver | back to summary |
|---|---|
| private DeclarationResolver resolver | |
| DescriptorCollector | back to summary |
|---|---|
| private DescriptorCollector(JPQLQueryContext queryContext) Creates a new | |
| collectDescriptors | back to summary |
|---|---|
| private void collectDescriptors(Expression expression, DeclarationResolver resolver) | |
| visit | back to summary |
|---|---|
| public void visit(DeleteClause expression) Overrides org. Implements org. Doc from org. Visits the
| |
| visit | back to summary |
|---|---|
| public void visit(FromClause expression) Overrides org. Implements org. Doc from org. Visits the
| |
| visit | back to summary |
|---|---|
| public void visit(SimpleSelectStatement expression) Overrides org. Implements org. Doc from org. Visits the
| |
| visit | back to summary |
|---|---|
| public void visit(UpdateClause expression) Overrides org. Implements org. Doc from org. Visits the
| |