Class EntityResolver
java.lang.Object
org.eclipse.persistence.jpa.jpql.tools.resolver.Resolver
org.eclipse.persistence.jpa.jpql.tools.resolver.EntityResolver
This
Resolver retrieves the type for an abstract schema name (entity name).- Since:
- 2.3
- Version:
- 2.5
-
Constructor Summary
ConstructorsConstructorDescriptionEntityResolver(Resolver parent, String abstractSchemaName) Creates a newEntityResolver. -
Method Summary
Modifier and TypeMethodDescriptionprotected ITypeprotected ITypeDeclarationResolves theITypeDeclarationof the property handled by thisResolver.Returns the name of the entity to resolve.Returns theIManagedTypeassociated with the field handled by thisResolver.toString()Methods inherited from class org.eclipse.persistence.jpa.jpql.tools.resolver.Resolver
addChild, checkParent, getChild, getMapping, getParent, getParentManagedType, getParentMapping, getParentType, getParentTypeDeclaration, getProvider, getQuery, getType, getType, getType, getTypeDeclaration, getTypeHelper, getTypeRepository, isNullAllowed, setNullAllowed
-
Constructor Details
-
EntityResolver
Creates a newEntityResolver.- Parameters:
parent- The parentResolver, which is nevernullabstractSchemaName- The name of the entity
-
-
Method Details
-
buildType
Description copied from class:Resolver -
buildTypeDeclaration
Description copied from class:ResolverResolves 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
-
getAbstractSchemaName
Returns the name of the entity to resolve.- Returns:
- The entity name, which is never
null
-
getManagedType
Description copied from class:ResolverReturns 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
-
toString
-