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

public Class ClassResolver

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

This Resolver simply holds onto the actual type since it is already determined.
Author
Pascal Filion
Since
2.3
Version
2.5

Field Summary

Modifier and TypeField and Description
private final Class<?>
javaType

The actual Java type for which its IType will be returned.

Constructor Summary

AccessConstructor and Description
public
ClassResolver(Resolver
The parent Resolver, which is never null
parent
,
Class<?>
The actual Java type for which its IType will be returned
javaType
)

Creates a new ClassResolver.

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
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from org.eclipse.persistence.jpa.jpql.tools.resolver.Resolver:
addChildcheckParentgetChildgetManagedTypegetMappinggetParentgetParentManagedTypegetParentMappinggetParentTypegetParentTypeDeclarationgetProvidergetQuerygetTypegetTypegetTypegetTypeDeclarationgetTypeHelpergetTypeRepositoryisNullAllowedsetNullAllowed

Field Detail

javaTypeback to summary
private final Class<?> javaType

The actual Java type for which its IType will be returned.

Constructor Detail

ClassResolverback to summary
public ClassResolver(Resolver parent, Class<?> javaType)

Creates a new ClassResolver.

Parameters
parent:Resolver

The parent Resolver, which is never null

javaType:Class<?>

The actual Java type for which its IType will be returned

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
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override