Package io.jmix.data.impl.jpql
Class QueryParserAstBased
java.lang.Object
io.jmix.data.impl.jpql.QueryParserAstBased
- All Implemented Interfaces:
- QueryParser
@Scope("prototype")
@Component("data_QueryParser")
public class QueryParserAstBased
extends Object
implements QueryParser
- 
Nested Class SummaryNested ClassesNested classes/interfaces inherited from interface io.jmix.data.QueryParserQueryParser.QueryPath
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected DomainModelprotected Stringprotected QueryTreeAnalyzerprotected QueryTree
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected QueryTreeAnalyzergetEntityAlias(String entityType) Main entity aliasMain entity nameprotected QueryParserAstBased.EntityNameAndPathGet all parameter namesprotected QueryTreegetTree()booleanhasIsNotNullCondition(String attribute) booleanhasIsNullCondition(String attribute) booleanbooleanisEntitySelect(String targetEntity) Returns true if this is a standard select from an entity - not count() and not fields (e.id, etc.)booleanisParameterInCondition(String parameterName) booleanisParameterUsedInAnyCondition(String parameterName) booleanReturns true if SELECT query contains joins
- 
Field Details- 
model
- 
query
- 
queryTree
- 
queryAnalyzer
 
- 
- 
Constructor Details- 
QueryParserAstBased
 
- 
- 
Method Details- 
getTree
- 
getAnalyzer
- 
getParamNamesDescription copied from interface:QueryParserGet all parameter names- Specified by:
- getParamNamesin interface- QueryParser
 
- 
getAllEntityNames- Specified by:
- getAllEntityNamesin interface- QueryParser
 
- 
getEntityNameDescription copied from interface:QueryParserMain entity name- Specified by:
- getEntityNamein interface- QueryParser
 
- 
getEntityAliasDescription copied from interface:QueryParserMain entity alias- Specified by:
- getEntityAliasin interface- QueryParser
 
- 
getEntityAlias- Specified by:
- getEntityAliasin interface- QueryParser
 
- 
isEntitySelectDescription copied from interface:QueryParserReturns true if this is a standard select from an entity - not count() and not fields (e.id, etc.)- Specified by:
- isEntitySelectin interface- QueryParser
 
- 
hasIsNullCondition- Specified by:
- hasIsNullConditionin interface- QueryParser
 
- 
hasIsNotNullCondition- Specified by:
- hasIsNotNullConditionin interface- QueryParser
 
- 
isQueryWithJoinspublic boolean isQueryWithJoins()Description copied from interface:QueryParserReturns true if SELECT query contains joins- Specified by:
- isQueryWithJoinsin interface- QueryParser
 
- 
getOriginalEntityName- Specified by:
- getOriginalEntityNamein interface- QueryParser
- Returns:
- Entity name if not main entity name is returned, otherwise null Example: select u.group from sec$User u -> sec$Group Example: select g from sec$User u join u.group g -> sec$Group
 
- 
getOriginalEntityPath- Specified by:
- getOriginalEntityPathin interface- QueryParser
- Returns:
- Entity path if not main entity name is returned, otherwise null Example: select u.group from sec$User u -> u.group Example: select g from sec$User u join u.group g -> g
 
- 
isParameterInCondition- Specified by:
- isParameterInConditionin interface- QueryParser
 
- 
isParameterUsedInAnyCondition- Specified by:
- isParameterUsedInAnyConditionin interface- QueryParser
 
- 
isCollectionOriginalEntitySelectpublic boolean isCollectionOriginalEntitySelect()- Specified by:
- isCollectionOriginalEntitySelectin interface- QueryParser
- Returns:
- true if not main entity selected and it's path with collection Example: select u.group from sec$User u -> false Example: select u.userRoles from sec$User u -> true
 
- 
getQueryPaths- Specified by:
- getQueryPathsin interface- QueryParser
 
- 
getSelectedExpressionsList- Specified by:
- getSelectedExpressionsListin interface- QueryParser
 
- 
getOriginEntityNameAndPath
 
-