Class KeyResolver
java.lang.Object
org.eclipse.persistence.jpa.jpql.tools.resolver.Resolver
org.eclipse.persistence.jpa.jpql.tools.resolver.KeyResolver
This
Resolver
is responsible to return the map key, which means that for identification
variables referring to an instance of an association or collection represented as a Map
, the identification variable is of the abstract schema type of the map key.- Since:
- 2.3
- Version:
- 2.5
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected IType
protected ITypeDeclaration
Resolves theITypeDeclaration
of the property handled by thisResolver
.Returns theIManagedType
associated with the field handled by thisResolver
.toString()
Methods inherited from class org.eclipse.persistence.jpa.jpql.tools.resolver.Resolver
addChild, checkParent, getChild, getMapping, getParent, getParentManagedType, getParentMapping, getParentType, getParentTypeDeclaration, getProvider, getQuery, getType, getType, getType, getTypeDeclaration, getTypeHelper, getTypeRepository, isNullAllowed, setNullAllowed
-
Constructor Details
-
KeyResolver
Creates a newKeyResolver
.- Parameters:
parent
- The parentResolver
, which is nevernull
-
-
Method Details
-
buildType
Description copied from class:Resolver
-
buildTypeDeclaration
Description copied from class:Resolver
Resolves theITypeDeclaration
of the property handled by thisResolver
.- Specified by:
buildTypeDeclaration
in classResolver
- Returns:
- Either the
ITypeDeclaration
that was resolved by thisResolver
or theITypeDeclaration
forIType.UNRESOLVABLE_TYPE
if it could not be resolved
-
getManagedType
Description copied from class:Resolver
Returns theIManagedType
associated with the field handled by thisResolver
. If thisResolver
does not handle a field that has aIManagedType
, thennull
should be returned.For example: "
SELECT e FROM Employee e
", theResolver
for e would be returning theIManagedType
for Employee.- Overrides:
getManagedType
in classResolver
- Returns:
- Either the
IManagedType
, if it could be resolved;null
otherwise
-
toString
-