Top Description Fields Constructors Methods
org.eclipse.persistence.jpa.jpql.tools.resolver

public Class StateFieldResolver

extends AbstractPathResolver
Class Inheritance
Imports
org.eclipse.persistence.jpa.jpql.tools.spi.IManagedType, .IMapping, .IType, .ITypeDeclaration

This Resolver is responsible to resolve the type of a state field, which is the leaf of the state field path expression.

It is possible the state field path expression is actually an enum type, which will be

Author
Pascal Filion
Since
2.3
Version
2.5

Field Summary

Inherited from org.eclipse.persistence.jpa.jpql.tools.resolver.AbstractPathResolver:
path

Constructor Summary

AccessConstructor and Description
public
StateFieldResolver(Resolver
The parent Resolver, which is never null
parent
,
String path)

Creates a new StateFieldResolver.

Method Summary

Modifier and TypeMethod and Description
protected IType
buildType()

Overrides org.eclipse.persistence.jpa.jpql.tools.resolver.Resolver.buildType.

Resolves the IType of the property handled by this Resolver.
protected IManagedType
resolveManagedType(IMapping
The IMapping, which is never null, is used to calculate the IManagedType
mapping
)

Implements abstract org.eclipse.persistence.jpa.jpql.tools.resolver.AbstractPathResolver.resolveManagedType.

Resolves this path's IManagedType by using the given IMapping.
Inherited from org.eclipse.persistence.jpa.jpql.tools.resolver.AbstractPathResolver:
buildTypeDeclarationgetManagedTypegetMappinggetPathresolveMappingtoString

Constructor Detail

StateFieldResolverback to summary
public StateFieldResolver(Resolver parent, String path)

Creates a new StateFieldResolver.

Parameters
parent:Resolver

The parent Resolver, which is never null

Method Detail

buildTypeback to summary
protected IType buildType()

Overrides org.eclipse.persistence.jpa.jpql.tools.resolver.Resolver.buildType.

Doc from org.eclipse.persistence.jpa.jpql.tools.resolver.Resolver.buildType.

Resolves the IType of the property handled by this Resolver.

Returns:IType

Either the IType that was resolved by this Resolver or the IType for IType#UNRESOLVABLE_TYPE if it could not be resolved

Annotations
@Override
resolveManagedTypeback to summary
protected IManagedType resolveManagedType(IMapping mapping)

Implements abstract org.eclipse.persistence.jpa.jpql.tools.resolver.AbstractPathResolver.resolveManagedType.

Doc from org.eclipse.persistence.jpa.jpql.tools.resolver.AbstractPathResolver.resolveManagedType.

Resolves this path's IManagedType by using the given IMapping.

Parameters
mapping:IMapping

The IMapping, which is never null, is used to calculate the IManagedType

Returns:IManagedType

The IManagedType for the given IMapping, if it has one; null if the type is a primitive

Annotations
@Override