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

public Class CollectionEquivalentResolver

extends Resolver
Class Inheritance
Imports
java.util.List, org.eclipse.persistence.jpa.jpql.tools.TypeHelper, org.eclipse.persistence.jpa.jpql.tools.spi.IType, .ITypeDeclaration

This Resolver compares each IType retrieved from the list of Resolvers that were gathered for a given Expression and returns that type if they are all the same type otherwise the IType for Object is returned.
Author
Pascal Filion
Since
2.3
Version
2.5

Field Summary

Modifier and TypeField and Description
private List<Resolver>
resolvers

Hides org.eclipse.persistence.jpa.jpql.tools.resolver.Resolver.resolvers.

The list of resolvers that were created for each of the encapsulated expressions.

Constructor Summary

AccessConstructor and Description
public
CollectionEquivalentResolver(Resolver
The parent Resolver, which is never null
parent
,
List<Resolver>
The list of resolvers that were created for each of the encapsulated expressions
resolvers
)

Creates a new CollectionEquivalentResolver.

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 ITypeDeclaration
Inherited from org.eclipse.persistence.jpa.jpql.tools.resolver.Resolver:
addChildcheckParentgetChildgetManagedTypegetMappinggetParentgetParentManagedTypegetParentMappinggetParentTypegetParentTypeDeclarationgetProvidergetQuerygetTypegetTypegetTypegetTypeDeclarationgetTypeHelpergetTypeRepositoryisNullAllowedsetNullAllowed

Field Detail

resolversback to summary
private List<Resolver> resolvers

Hides org.eclipse.persistence.jpa.jpql.tools.resolver.Resolver.resolvers.

The list of resolvers that were created for each of the encapsulated expressions.

Constructor Detail

CollectionEquivalentResolverback to summary
public CollectionEquivalentResolver(Resolver parent, List<Resolver> resolvers)

Creates a new CollectionEquivalentResolver.

Parameters
parent:Resolver

The parent Resolver, which is never null

resolvers:List<Resolver>

The list of resolvers that were created for each of the encapsulated expressions

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
buildTypeDeclarationback to summary
protected ITypeDeclaration buildTypeDeclaration()

Implements abstract org.eclipse.persistence.jpa.jpql.tools.resolver.Resolver.buildTypeDeclaration.

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

Resolves the ITypeDeclaration of the property handled by this Resolver.

Returns:ITypeDeclaration

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

Annotations
@Override