SemanticValidatorHelper that uses JPQLQueryContext to return
the required information and Hermes SPI.
Provisional API: This interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.
| Modifier and Type | Class and Description |
|---|---|
| protected static class |
| Modifier and Type | Field and Description |
|---|---|
| private GenericSemanticValidatorHelper. | |
| private final JPQLQueryContext | queryContext
The context used to query information about the JPQL query. |
| private ITypeHelper | typeHelper
The concrete instance of |
| Access | Constructor and Description |
|---|---|
| public | GenericSemanticValidatorHelper(JPQLQueryContext
The context used to query information about the JPQL query queryContext)Creates a new |
| Modifier and Type | Method and Description |
|---|---|
| protected void | addIdentificationVariable(IdentificationVariable identificationVariable, Map<String, List<IdentificationVariable>> identificationVariables)
|
| protected GenericSemanticValidatorHelper. | |
| public void | collectAllDeclarationIdentificationVariables(Map<String, List<IdentificationVariable>>
The identificationVariables)Map used to store the variablesImplements org. FROM clause of the
current query and from the parent queries.
|
| protected void | collectLocalDeclarationIdentificationVariables(JPQLQueryContext queryContext, Map<String, List<IdentificationVariable>> identificationVariables)
|
| public void | collectLocalDeclarationIdentificationVariables(Map<String, List<IdentificationVariable>>
The identificationVariables)Map used to store the variablesImplements org. FROM clause of the
current query.
|
| public void | disposeSubqueryContext()
Implements org. |
| public String[] | entityNames()
Implements org. |
| public List | getAllDeclarations()
Implements org. JPQLQueryDeclaration, which contain the information
contained in the query's FROM clause.
|
| public IConstructor[] | getConstructors(Object type)
Implements org. |
| public List | getDeclarations()
Implements org. JPQLQueryDeclaration, which contain the information
contained in the query's FROM clause.
|
| public IManagedType | getEmbeddable(Object
The Java type of the embeddable to retrieve type)Implements org. |
| public IEntity | getEntityNamed(String
The abstract schema name of the entity to retrieve entityName)Implements org. |
| public String[] | getEnumConstants(Object
The type)Enum typeImplements org. Enum type.
|
| public JPQLGrammar | getGrammar()
Implements org. JPQLGrammar that defines how the JPQL query was parsed.
|
| protected IdentificationVariable | |
| protected GenericSemanticValidatorHelper. | |
| public IManagedType | getManagedType(Expression expression)
Implements org. Expression.
|
| public IMapping | getMappingNamed(Object
The managed type that has a mapping with the given name managedType, String The name of the mapping to retrieve path)Implements org. |
| public IType | getMappingType(Object
The mapping object mapping)Implements org. |
| public ITypeDeclaration[] | getMethodParameterTypeDeclarations(Object
The constructor to return its parameter types constructor)Implements org. |
| public JPQLQueryContext | Returns: The context used to query information about the JPQL queryReturns the context used to query information about the JPQL query. |
| public IManagedType | getReferenceManagedType(Object
The relationship mapping relationshipMapping)Implements org. |
| public IType | getType(Expression
The expression)Expression to resolveImplements org. Expression.
|
| public IType | getType(Object typeDeclaration)
Implements org. |
| public IType | getType(String
The fully qualified name of the class to retrieve typeName)Implements org. |
| public ITypeDeclaration | getTypeDeclaration(Expression
The expression)Expression to resolveImplements org. Expression's type.
|
| public ITypeHelper | getTypeHelper()
Implements org. |
| public String | getTypeName(Object
The type to retrieve its name type)Implements org. |
| public boolean | isAssignableTo(Object
The type to check if it is an instance of type 2 type1, Object The type used to determine if the class represented by type 1 is an instance
of with one type2)Implements org. |
| public boolean | isCollectionIdentificationVariable(String
The identification variable to check for what it maps variableName)Implements org. |
| public boolean | isCollectionMapping(Object
The mapping object to verify if it represents a collection mapping mapping)Implements org. |
| public boolean | isEmbeddableMapping(Object
The mapping object to verify if it represents an embeddable mapping mapping)Implements org. |
| public boolean | isEnumType(Object type)
Implements org. Enum.
|
| public boolean | isIdentificationVariableValidInComparison(IdentificationVariable
The expression)IdentificationVariable that is mapped to either an entity, a
singled-object value field, a collection-valued object fieldImplements org. |
| public boolean | isManagedTypeResolvable(Object managedType)
Implements org. |
| public boolean | isPropertyMapping(Object
The mapping object to verify if it represents a property mapping mapping)Implements org. |
| public boolean | isRelationshipMapping(Object
The mapping object to verify if it represents a relationship mapping mapping)Implements org. |
| public boolean | isResultVariable(String
The variable to check if it's a result variable variableName)Implements org. |
| public boolean | isTransient(Object
The mapping object to verify if it represents a transient attribute mapping)Implements org. |
| public boolean | isTypeDeclarationAssignableTo(Object
The type declaration to check if it is an instance of type declaration 2 typeDeclaration1, Object The type used to determine if the class represented by type
declaration 1 is an instance of with one typeDeclaration2)Implements org. |
| public boolean | isTypeResolvable(Object type)
Implements org. |
| public void | newSubqueryContext(SimpleSelectStatement
The parsed tree representation of the subquery that will become the current query expression)Implements org. |
| public IMapping | resolveMapping(Expression
The expression)Expression representing a state field path expression or a
collection-valued path expressionImplements org. Expression.
|
| public IMapping | resolveMapping(String
The identification variable that is defined in the variableName, String FROM
clause of the query (which can be in the current subquery) or in one of the parent queries.The name of the persistent field to retrieve name)Implements org. |