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
-
public class StateFieldResolver extends AbstractPathResolver
ThisResolver
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
- Version:
- 2.5
- Author:
- Pascal Filion
- Since:
- 2.3
-
-
Field Summary
-
Fields inherited from class org.eclipse.persistence.jpa.jpql.tools.resolver.AbstractPathResolver
path
-
-
Constructor Summary
Constructors Constructor Description StateFieldResolver(Resolver parent, java.lang.String path)
Creates a newStateFieldResolver
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected IType
buildType()
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
-
-
-
-
Method Detail
-
buildType
protected IType buildType()
-
resolveManagedType
protected IManagedType resolveManagedType(IMapping mapping)
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
-
-