Package io.jmix.data
Interface QueryParser
- All Known Implementing Classes:
- QueryParserAstBased
public interface QueryParser
Parses JPQL query and returns some information about it.
- 
Nested Class SummaryNested Classes
- 
Method SummaryModifier and TypeMethodDescriptiongetEntityAlias(String targetEntity) Main entity aliasMain entity nameGet all parameter namesbooleanhasIsNotNullCondition(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 paramName) booleanReturns true if SELECT query contains joins
- 
Method Details- 
getParamNamesGet all parameter names
- 
getEntityNameString getEntityName()Main entity name
- 
getAllEntityNames
- 
getEntityAliasMain entity alias
- 
getEntityAliasString getEntityAlias()
- 
isEntitySelectReturns true if this is a standard select from an entity - not count() and not fields (e.id, etc.)
- 
hasIsNullCondition
- 
hasIsNotNullCondition
- 
isQueryWithJoinsboolean isQueryWithJoins()Returns true if SELECT query contains joins
- 
getOriginalEntityName- 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- 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
 
- 
isCollectionOriginalEntitySelectboolean isCollectionOriginalEntitySelect()- 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
 
- 
isParameterInCondition
- 
getSelectedExpressionsList
- 
getQueryPathsList<QueryParser.QueryPath> getQueryPaths()
- 
isParameterUsedInAnyCondition
 
-