org.eclipse.persistence.jpa.jpql
Class StateFieldResolver
java.lang.Object
org.eclipse.persistence.jpa.jpql.Resolver
org.eclipse.persistence.jpa.jpql.AbstractPathResolver
org.eclipse.persistence.jpa.jpql.StateFieldResolver
public class StateFieldResolver
- extends AbstractPathResolver
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
- Version:
- 2.4
- Author:
- Pascal Filion
- Since:
- 2.3
Methods inherited from class org.eclipse.persistence.jpa.jpql.Resolver |
addChild, checkParent, getChild, getParent, getParentManagedType, getParentMapping, getParentType, getParentTypeDeclaration, getProvider, getQuery, getType, getType, getType, getTypeDeclaration, getTypeHelper, getTypeRepository, isNullAllowed, setNullAllowed |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
StateFieldResolver
public StateFieldResolver(Resolver parent,
java.lang.String path)
- Creates a new
StateFieldResolver
.
- Parameters:
parent
- The parent Resolver
, which is never null
accept
public void accept(ResolverVisitor visitor)
- Visits this
Resolver
by the given visitor
.
- Specified by:
accept
in class Resolver
- Parameters:
visitor
- The visitor
to visit this object
buildType
protected IType buildType()
- Resolves the
IType
of the property handled by this Resolver
.
- Overrides:
buildType
in class Resolver
- Returns:
- Either the
IType
that was resolved by this Resolver
or the IType
for IType.UNRESOLVABLE_TYPE
if it could not be resolved
resolveManagedType
protected IManagedType resolveManagedType(IMapping mapping)
- Resolves this path's
IManagedType
by using the given IMapping
.
- Specified by:
resolveManagedType
in class AbstractPathResolver
- Parameters:
mapping
- The IMapping
, which is never null
, is used to calculate
the IManagedType
- Returns:
- The
IManagedType
for the given IMapping
, if it has one; null
if the type is a primitive