Class AbsFunctionResolver
java.lang.Object
org.eclipse.persistence.jpa.jpql.tools.resolver.Resolver
org.eclipse.persistence.jpa.jpql.tools.resolver.AbsFunctionResolver
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.
- Since:
- 2.3
- Version:
- 2.5
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected IType
protected ITypeDeclaration
Resolves theITypeDeclaration
of the property handled by thisResolver
.Methods inherited from class org.eclipse.persistence.jpa.jpql.tools.resolver.Resolver
addChild, checkParent, getChild, getManagedType, getMapping, getParent, getParentManagedType, getParentMapping, getParentType, getParentTypeDeclaration, getProvider, getQuery, getType, getType, getType, getTypeDeclaration, getTypeHelper, getTypeRepository, isNullAllowed, setNullAllowed
-
Constructor Details
-
AbsFunctionResolver
Creates a newAbsFunctionResolver
.- Parameters:
parent
- The parentResolver
, which is nevernull
-
-
Method Details
-
buildType
Description copied from class:Resolver
-
buildTypeDeclaration
Description copied from class:Resolver
Resolves theITypeDeclaration
of the property handled by thisResolver
.- Specified by:
buildTypeDeclaration
in classResolver
- Returns:
- Either the
ITypeDeclaration
that was resolved by thisResolver
or theITypeDeclaration
forIType.UNRESOLVABLE_TYPE
if it could not be resolved
-