Class IdentificationVariableResolver
- java.lang.Object
-
- org.eclipse.persistence.jpa.jpql.tools.resolver.Resolver
-
- org.eclipse.persistence.jpa.jpql.tools.resolver.IdentificationVariableResolver
-
-
Constructor Summary
Constructors Constructor Description IdentificationVariableResolver(Resolver parent, java.lang.String variableName)Creates a newIdentificationVariableResolver.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ITypebuildType()ITypeDeclarationbuildTypeDeclaration()Resolves theITypeDeclarationof the property handled by thisResolver.IManagedTypegetManagedType()Returns theIManagedTypeassociated with the field handled by thisResolver.IMappinggetMapping()Returns theIMappingfor the wrapped field.java.lang.StringgetVariableName()Returns the identification variable handled by thisResolver.java.lang.StringtoString()-
Methods inherited from class org.eclipse.persistence.jpa.jpql.tools.resolver.Resolver
addChild, checkParent, getChild, getParent, getParentManagedType, getParentMapping, getParentType, getParentTypeDeclaration, getProvider, getQuery, getType, getType, getType, getTypeDeclaration, getTypeHelper, getTypeRepository, isNullAllowed, setNullAllowed
-
-
-
-
Constructor Detail
-
IdentificationVariableResolver
public IdentificationVariableResolver(Resolver parent, java.lang.String variableName)
Creates a newIdentificationVariableResolver.- Parameters:
parent- The parentResolver, which is nevernullvariableName- The name of the identification variable, which should never benulland it should not be an empty string
-
-
Method Detail
-
buildType
public IType buildType()
-
buildTypeDeclaration
public 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
-
getManagedType
public IManagedType getManagedType()
Returns theIManagedTypeassociated with the field handled by thisResolver. If thisResolverdoes not handle a field that has aIManagedType, thennullshould be returned.For example: "
SELECT e FROM Employee e", theResolverfor e would be returning theIManagedTypefor Employee.- Overrides:
getManagedTypein classResolver- Returns:
- Either the
IManagedType, if it could be resolved;nullotherwise
-
getMapping
public IMapping getMapping()
Returns theIMappingfor the wrapped field.- Overrides:
getMappingin classResolver- Returns:
- Either the
IMappingornullif none exists
-
getVariableName
public java.lang.String getVariableName()
Returns the identification variable handled by thisResolver.- Returns:
- The identification variable handled by this
Resolver
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-