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 IType
buildType()
ITypeDeclaration
buildTypeDeclaration()
Resolves theITypeDeclaration
of the property handled by thisResolver
.IManagedType
getManagedType()
Returns theIManagedType
associated with the field handled by thisResolver
.IMapping
getMapping()
Returns theIMapping
for the wrapped field.java.lang.String
getVariableName()
Returns the identification variable handled by thisResolver
.java.lang.String
toString()
-
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 nevernull
variableName
- The name of the identification variable, which should never benull
and it should not be an empty string
-
-
Method Detail
-
buildType
public IType buildType()
-
buildTypeDeclaration
public ITypeDeclaration buildTypeDeclaration()
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
-
getManagedType
public IManagedType getManagedType()
Returns theIManagedType
associated with the field handled by thisResolver
. If thisResolver
does not handle a field that has aIManagedType
, thennull
should be returned.For example: "
SELECT e FROM Employee e
", theResolver
for e would be returning theIManagedType
for Employee.- Overrides:
getManagedType
in classResolver
- Returns:
- Either the
IManagedType
, if it could be resolved;null
otherwise
-
getMapping
public IMapping getMapping()
Returns theIMapping
for the wrapped field.- Overrides:
getMapping
in classResolver
- Returns:
- Either the
IMapping
ornull
if 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:
toString
in classjava.lang.Object
-
-