EclipseLink 2.4.2, build 'v20130514-5956486' API Reference

org.eclipse.persistence.jpa.jpql
Class StateFieldResolver

java.lang.Object
  extended by org.eclipse.persistence.jpa.jpql.Resolver
      extended by org.eclipse.persistence.jpa.jpql.AbstractPathResolver
          extended by 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

Field Summary
 
Fields inherited from class org.eclipse.persistence.jpa.jpql.AbstractPathResolver
path
 
Constructor Summary
StateFieldResolver(Resolver parent, java.lang.String path)
          Creates a new StateFieldResolver.
 
Method Summary
 void accept(ResolverVisitor visitor)
          Visits this Resolver by the given visitor.
protected  IType buildType()
          Resolves the IType of the property handled by this Resolver.
protected  IManagedType resolveManagedType(IMapping mapping)
          Resolves this path's IManagedType by using the given IMapping.
 
Methods inherited from class org.eclipse.persistence.jpa.jpql.AbstractPathResolver
buildTypeDeclaration, getManagedType, getMapping, getPath, resolveMapping, toString
 
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
 

Constructor Detail

StateFieldResolver

public StateFieldResolver(Resolver parent,
                          java.lang.String path)
Creates a new StateFieldResolver.

Parameters:
parent - The parent Resolver, which is never null
Method Detail

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

EclipseLink 2.4.2, build 'v20130514-5956486' API Reference