Class EnumLiteralResolver
- java.lang.Object
-
- org.eclipse.persistence.jpa.jpql.tools.resolver.Resolver
-
- org.eclipse.persistence.jpa.jpql.tools.resolver.EnumLiteralResolver
-
-
Constructor Summary
Constructors Constructor Description EnumLiteralResolver(Resolver parent, IType type, java.lang.String enumLiteral)Creates a newEnumLiteralResolver.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ITypebuildType()protected ITypeDeclarationbuildTypeDeclaration()Resolves theITypeDeclarationof the property handled by thisResolver.java.lang.StringgetConstantName()Returns the name of the constant constant.java.lang.StringtoString()-
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 Detail
-
EnumLiteralResolver
public EnumLiteralResolver(Resolver parent, IType type, java.lang.String enumLiteral)
Creates a newEnumLiteralResolver.- Parameters:
parent- The parent of this resolver, which is nevernulltype- TheITypeof the enum typeenumLiteral- The fully qualified name of the enum constant- Throws:
java.lang.NullPointerException- If the parent isnull
-
-
Method Detail
-
buildType
protected IType buildType()
-
buildTypeDeclaration
protected ITypeDeclaration buildTypeDeclaration()
Resolves theITypeDeclarationof the property handled by thisResolver.- Specified by:
buildTypeDeclarationin classResolver- Returns:
- Either the
ITypeDeclarationthat was resolved by thisResolveror theITypeDeclarationforIType.UNRESOLVABLE_TYPEif it could not be resolved
-
getConstantName
public java.lang.String getConstantName()
Returns the name of the constant constant.- Returns:
- The name of the constant without the fully qualified enum type
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-