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
ThisResolveris 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 ITypebuildType()protected IManagedTyperesolveManagedType(IMapping mapping)Resolves this path'sIManagedTypeby 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'sIManagedTypeby using the givenIMapping.- Specified by:
resolveManagedTypein classAbstractPathResolver- Parameters:
mapping- TheIMapping, which is nevernull, is used to calculate theIManagedType- Returns:
- The
IManagedTypefor the givenIMapping, if it has one;nullif the type is a primitive
-
-