|
Oracle Fusion Middleware Java API Reference for Oracle TopLink 11g Release 1 (11.1.1) E28847-01 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
org.eclipse.persistence.jpa.internal.jpql.Resolver
org.eclipse.persistence.jpa.internal.jpql.AbstractPathResolver
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, SingleValuedObjectFieldResolver, StateFieldResolver| Field Summary | |
|---|---|
private IMapping |
mappingThe mapping of the last path of the path expression or null if it could not be found. |
private boolean |
mappingResolvedThis 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 |
pathThe 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 |
|---|
private IMapping mapping
null if it could not be found.private boolean mappingResolved
IMapping more than once and no mapping could be found the first time.final java.lang.String path
| Constructor Detail |
|---|
AbstractPathResolver(Resolver parent,
java.lang.String path)
AbstractPathResolver.
parent - The parent Resolver, which is never nullpath - The name of the path| Method Detail |
|---|
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 final IMapping getMapping()
IMapping for the wrapped field.getMapping in class ResolverIMapping or null if none existspublic final java.lang.String getPath()
Resolver.Resolverprivate IMapping resolveMapping()
IMapping for the given property name.propertyName - The name of the IMapping to retrieveIMapping or null if none exists
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||