Class KeyResolver
- java.lang.Object
-
- org.eclipse.persistence.jpa.jpql.tools.resolver.Resolver
-
- org.eclipse.persistence.jpa.jpql.tools.resolver.KeyResolver
-
public class KeyResolver extends Resolver
ThisResolveris responsible to return the map key, which means that for identification variables referring to an instance of an association or collection represented as aMap, the identification variable is of the abstract schema type of the map key.- Since:
- 2.3
- Version:
- 2.5
- Author:
- Pascal Filion
- See Also:
ValueResolver
-
-
Constructor Summary
Constructors Constructor Description KeyResolver(Resolver parent)Creates a newKeyResolver.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IManagedTypegetManagedType()Returns theIManagedTypeassociated with the field handled by thisResolver.StringtoString()-
Methods inherited from class org.eclipse.persistence.jpa.jpql.tools.resolver.Resolver
addChild, getChild, getMapping, getParent, getParentManagedType, getParentMapping, getParentType, getParentTypeDeclaration, getProvider, getQuery, getType, getType, getType, getTypeDeclaration, getTypeHelper, getTypeRepository, isNullAllowed, setNullAllowed
-
-
-
-
Method Detail
-
getManagedType
public IManagedType getManagedType()
Returns theIManagedTypeassociated with the field handled by thisResolver. If thisResolverdoes not handle a field that has aIManagedType, thennullshould be returned.For example: "
SELECT e FROM Employee e", theResolverfor e would be returning theIManagedTypefor Employee.- Overrides:
getManagedTypein classResolver- Returns:
- Either the
IManagedType, if it could be resolved;nullotherwise
-
-