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

public Class AbsFunctionResolver

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

This Resolver is responsible to calculate the IType based on the type of the ABS expression. The valid type is a Number type.

The ABS function takes a numeric argument and returns a number (integer, float, or double) of the same type as the argument to the function.

Author
Pascal Filion
Since
2.3
Version
2.5

Constructor Summary

AccessConstructor and Description
public
AbsFunctionResolver(Resolver
The parent Resolver, which is never null
parent
)

Creates a new AbsFunctionResolver.

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

Constructor Detail

AbsFunctionResolverback to summary
public AbsFunctionResolver(Resolver parent)

Creates a new AbsFunctionResolver.

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
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