Class EnumLiteralResolver
java.lang.Object
org.eclipse.persistence.jpa.jpql.tools.resolver.Resolver
org.eclipse.persistence.jpa.jpql.tools.resolver.EnumLiteralResolver
This
Resolver
retrieves the type for an enum constant.- Since:
- 2.4
- Version:
- 2.5
-
Constructor Summary
ConstructorDescriptionEnumLiteralResolver
(Resolver parent, IType type, String enumLiteral) Creates a newEnumLiteralResolver
. -
Method Summary
Modifier and TypeMethodDescriptionprotected IType
protected ITypeDeclaration
Resolves theITypeDeclaration
of the property handled by thisResolver
.Returns the name of the constant constant.toString()
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
-
EnumLiteralResolver
Creates a newEnumLiteralResolver
.- Parameters:
parent
- The parent of this resolver, which is nevernull
type
- TheIType
of the enum typeenumLiteral
- The fully qualified name of the enum constant- Throws:
NullPointerException
- If the parent isnull
-
-
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
-
getConstantName
Returns the name of the constant constant.- Returns:
- The name of the constant without the fully qualified enum type
-
toString
-