|
EclipseLink 2.4.2, build 'v20130514-5956486' API Reference | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.persistence.jpa.jpql.Resolver
org.eclipse.persistence.jpa.jpql.AbstractPathResolver
public abstract class AbstractPathResolver
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).
CollectionValuedFieldResolver,
StateFieldResolver| Field Summary | |
|---|---|
protected java.lang.String |
path
The name of the path for which its type will be retrieved. |
| Constructor Summary | |
|---|---|
protected |
AbstractPathResolver(Resolver parent,
java.lang.String path)
Creates a new AbstractPathResolver. |
| Method Summary | |
|---|---|
protected ITypeDeclaration |
buildTypeDeclaration()
Resolves the ITypeDeclaration of the property handled by this Resolver. |
IManagedType |
getManagedType()
Returns the IManagedType associated with the field 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. |
protected abstract IManagedType |
resolveManagedType(IMapping mapping)
Resolves this path's IManagedType by using the given IMapping. |
protected IMapping |
resolveMapping()
Retrieves the IMapping for the given property name. |
java.lang.String |
toString()
|
| Methods inherited from class org.eclipse.persistence.jpa.jpql.Resolver |
|---|
accept, addChild, buildType, 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 |
| Field Detail |
|---|
protected final java.lang.String path
| Constructor Detail |
|---|
protected AbstractPathResolver(Resolver parent,
java.lang.String path)
AbstractPathResolver.
parent - The parent Resolver, which is never nullpath - The name of the path| Method Detail |
|---|
protected ITypeDeclaration buildTypeDeclaration()
ITypeDeclaration of the property handled by this Resolver.
buildTypeDeclaration in class ResolverITypeDeclaration that was resolved by this Resolver or the
ITypeDeclaration for IType.UNRESOLVABLE_TYPE if it could not be resolvedpublic IManagedType getManagedType()
IManagedType associated with the field handled by this Resolver.
If this Resolver does not handle a field that has a IManagedType, then
null should be returned.
For example: "SELECT e FROM Employee e", the Resolver for
e would be returning the IManagedType for Employee.
getManagedType in class ResolverIManagedType, if it could be resolved; null otherwisepublic final IMapping getMapping()
IMapping for the wrapped field.
getMapping in class ResolverIMapping or null if none existspublic final java.lang.String getPath()
Resolver.
Resolverprotected abstract IManagedType resolveManagedType(IMapping mapping)
IManagedType by using the given IMapping.
mapping - The IMapping, which is never null, is used to calculate
the IManagedType
IManagedType for the given IMapping, if it has one; null
if the type is a primitiveprotected IMapping resolveMapping()
IMapping for the given property name.
IMapping or null if none existspublic java.lang.String toString()
toString in class java.lang.Object
|
EclipseLink 2.4.2, build 'v20130514-5956486' API Reference | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||