Class AbstractPathResolver
- java.lang.Object
-
- org.eclipse.persistence.jpa.jpql.tools.resolver.Resolver
-
- org.eclipse.persistence.jpa.jpql.tools.resolver.AbstractPathResolver
-
- Direct Known Subclasses:
CollectionValuedFieldResolver
,StateFieldResolver
public abstract class AbstractPathResolver extends Resolver
ThisResolver
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.5
- Author:
- Pascal Filion
- See Also:
CollectionValuedFieldResolver
,StateFieldResolver
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IManagedType
getManagedType()
Returns theIManagedType
associated with the field handled by thisResolver
.IMapping
getMapping()
Returns theIMapping
for the wrapped field.String
getPath()
Returns the single path represented by thisResolver
.String
toString()
-
Methods inherited from class org.eclipse.persistence.jpa.jpql.tools.resolver.Resolver
addChild, getChild, getParent, getParentManagedType, getParentMapping, getParentType, getParentTypeDeclaration, getProvider, getQuery, getType, getType, getType, getTypeDeclaration, getTypeHelper, getTypeRepository, isNullAllowed, setNullAllowed
-
-
-
-
Method Detail
-
getManagedType
public IManagedType getManagedType()
Returns theIManagedType
associated with the field handled by thisResolver
. If thisResolver
does not handle a field that has aIManagedType
, thennull
should be returned.For example: "
SELECT e FROM Employee e
", theResolver
for e would be returning theIManagedType
for Employee.- Overrides:
getManagedType
in classResolver
- Returns:
- Either the
IManagedType
, if it could be resolved;null
otherwise
-
getMapping
public final IMapping getMapping()
Returns theIMapping
for the wrapped field.- Overrides:
getMapping
in classResolver
- Returns:
- Either the
IMapping
ornull
if none exists
-
getPath
public final String getPath()
Returns the single path represented by thisResolver
.- Returns:
- The single path represented by this
Resolver
-
-