EclipseLink 2.4.2, build 'v20130514-5956486' API Reference

org.eclipse.persistence.jpa.jpql
Class CollectionValuedFieldResolver

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.CollectionValuedFieldResolver

public class CollectionValuedFieldResolver
extends AbstractPathResolver

This Resolver is responsible to resolve the type of a collection-valued field.

Version:
2.4
Author:
Pascal Filion
Since:
2.3

Nested Class Summary
protected static class CollectionValuedFieldResolver.MapManagedType
           
 
Field Summary
 
Fields inherited from class org.eclipse.persistence.jpa.jpql.AbstractPathResolver
path
 
Constructor Summary
CollectionValuedFieldResolver(Resolver parent, java.lang.String path)
          Creates a new CollectionValuedFieldResolver.
 
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

CollectionValuedFieldResolver

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

Parameters:
parent - The parent Resolver, which is never null
path - A single segment of the collection-valued path expression
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