Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle TopLink
11g Release 1 (11.1.1)

E28847-01


org.eclipse.persistence.jpa.internal.jpql
Class AbstractPathResolver

java.lang.Object
  extended by org.eclipse.persistence.jpa.internal.jpql.Resolver
      extended by org.eclipse.persistence.jpa.internal.jpql.AbstractPathResolver

Direct Known Subclasses:
CollectionValuedFieldResolver, SingleValuedObjectFieldResolver, StateFieldResolver

abstract class AbstractPathResolver
extends Resolver

This Resolver is responsible to resolve a single path of a path expression (state field path expression, singled valued object field, or a collection-valued path expression).

Since:
2.3
Version:
2.3
Author:
Pascal Filion
See Also:
CollectionValuedFieldResolver, SingleValuedObjectFieldResolver, StateFieldResolver

Field Summary
private  IMapping mapping
          The mapping of the last path of the path expression or null if it could not be found.
private  boolean mappingResolved
          This flag is used to prevent resolving the IMapping more than once and no mapping could be found the first time.
(package private)  java.lang.String path
          The name of the path for which its type will be retrieved.

 

Constructor Summary
AbstractPathResolver(Resolver parent, java.lang.String path)
          Creates a new AbstractPathResolver.

 

Method Summary
(package private)  ITypeDeclaration buildTypeDeclaration()
          Resolves the ITypeDeclaration of the property handled by this Resolver.
 IMapping getMapping()
          Returns the IMapping for the wrapped field.
 java.lang.String getPath()
          Returns the single path represented by this Resolver.
private  IMapping resolveMapping()
          Retrieves the IMapping for the given property name.

 

Methods inherited from class org.eclipse.persistence.jpa.internal.jpql.Resolver
accept, addChild, buildType, checkParent, getChild, getManagedType, 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, toString, wait, wait, wait

 

Field Detail

mapping

private IMapping mapping
The mapping of the last path of the path expression or null if it could not be found.

mappingResolved

private boolean mappingResolved
This flag is used to prevent resolving the IMapping more than once and no mapping could be found the first time.

path

final java.lang.String path
The name of the path for which its type will be retrieved.

Constructor Detail

AbstractPathResolver

AbstractPathResolver(Resolver parent,
                     java.lang.String path)
Creates a new AbstractPathResolver.
Parameters:
parent - The parent Resolver, which is never null
path - The name of the path

Method Detail

buildTypeDeclaration

ITypeDeclaration buildTypeDeclaration()
Resolves the ITypeDeclaration of the property handled by this Resolver.
Specified by:
buildTypeDeclaration in class Resolver
Returns:
Either the ITypeDeclaration that was resolved by this Resolver or the ITypeDeclaration for IType.UNRESOLVABLE_TYPE if it could not be resolved

getMapping

public final IMapping getMapping()
Returns the IMapping for the wrapped field.
Overrides:
getMapping in class Resolver
Returns:
Either the IMapping or null if none exists

getPath

public final java.lang.String getPath()
Returns the single path represented by this Resolver.
Returns:
The single path represented by this Resolver

resolveMapping

private IMapping resolveMapping()
Retrieves the IMapping for the given property name.
Parameters:
propertyName - The name of the IMapping to retrieve
Returns:
Either the IMapping or null if none exists

Skip navigation links

Copyright © 1998, 2012, Oracle. All Rights Reserved.