Class StateFieldResolver
java.lang.Object
org.eclipse.persistence.jpa.jpql.tools.resolver.Resolver
org.eclipse.persistence.jpa.jpql.tools.resolver.AbstractPathResolver
org.eclipse.persistence.jpa.jpql.tools.resolver.StateFieldResolver
This
Resolver
is responsible to resolve the type of a state field, which is the leaf of
the state field path expression.
It is possible the state field path expression is actually an enum type, which will be
- Since:
- 2.3
- Version:
- 2.5
-
Field Summary
Fields inherited from class org.eclipse.persistence.jpa.jpql.tools.resolver.AbstractPathResolver
path
-
Constructor Summary
ConstructorDescriptionStateFieldResolver
(Resolver parent, String path) Creates a newStateFieldResolver
. -
Method Summary
Modifier and TypeMethodDescriptionprotected IType
protected IManagedType
resolveManagedType
(IMapping mapping) Resolves this path'sIManagedType
by using the givenIMapping
.Methods inherited from class org.eclipse.persistence.jpa.jpql.tools.resolver.AbstractPathResolver
buildTypeDeclaration, getManagedType, getMapping, getPath, resolveMapping, toString
Methods inherited from class org.eclipse.persistence.jpa.jpql.tools.resolver.Resolver
addChild, checkParent, getChild, getParent, getParentManagedType, getParentMapping, getParentType, getParentTypeDeclaration, getProvider, getQuery, getType, getType, getType, getTypeDeclaration, getTypeHelper, getTypeRepository, isNullAllowed, setNullAllowed
-
Constructor Details
-
StateFieldResolver
Creates a newStateFieldResolver
.- Parameters:
parent
- The parentResolver
, which is nevernull
-
-
Method Details
-
buildType
Description copied from class:Resolver
-
resolveManagedType
Description copied from class:AbstractPathResolver
Resolves this path'sIManagedType
by using the givenIMapping
.- Specified by:
resolveManagedType
in classAbstractPathResolver
- Parameters:
mapping
- TheIMapping
, which is nevernull
, is used to calculate theIManagedType
- Returns:
- The
IManagedType
for the givenIMapping
, if it has one;null
if the type is a primitive
-