Resolver retrieves the type for an abstract schema name (entity name) if it can
be resolved otherwise a derived path will be assumed. This Resolver is used within a
subquery and it handles the following two cases.
The "root" object in the subquery is an unqualified derived path:
UPDATE Employee SET name = 'JPQL'
WHERE (SELECT a FROM addr a)
and
The "root" object in the subquery is an entity:
UPDATE Employee SET name = 'JPQL'
WHERE (SELECT a FROM Address a)
| Modifier and Type | Field and Description |
|---|---|
| private AbstractSchemaName | abstractSchemaName
The |
| private Resolver | derivedPathResolver
The actual |
| private String | entityName
The name of the entity or the unqualified derived path. |
| private IManagedType | managedType
The |
| private boolean | managedTypeResolved
Determines whether the managed type was resolved or not. |
| private JPQLQueryContext | queryContext
The |
| Access | Constructor and Description |
|---|---|
| public | SubqueryEntityResolver(Resolver
The parent parent, JPQLQueryContext Resolver, which is never nullThe queryContext, AbstractSchemaName JPQLQueryContext for the subqueryThe abstractSchemaName)AbstractSchemaName holding onto the the name of the entityCreates a new |
| Modifier and Type | Method and Description |
|---|---|
| protected IType | buildType()
Overrides org. IType of the property handled by this Resolver.
|
| protected ITypeDeclaration | buildTypeDeclaration()
Implements abstract org. ITypeDeclaration of the property handled by this Resolver.
|
| public String | Returns: The entity name, which is nevernullReturns the name of the entity to resolve. |
| public IManagedType | getManagedType()
Overrides org. IManagedType associated with the field handled by this Resolver.
|
| public IMapping | getMapping()
Overrides org. IMapping for the wrapped field.
|
| protected Resolver | |
| public String |
| abstractSchemaName | back to summary |
|---|---|
| private AbstractSchemaName abstractSchemaName The | |
| derivedPathResolver | back to summary |
|---|---|
| private Resolver derivedPathResolver The actual | |
| entityName | back to summary |
|---|---|
| private String entityName The name of the entity or the unqualified derived path. | |
| managedType | back to summary |
|---|---|
| private IManagedType managedType The | |
| managedTypeResolved | back to summary |
|---|---|
| private boolean managedTypeResolved Determines whether the managed type was resolved or not. | |
| queryContext | back to summary |
|---|---|
| private JPQLQueryContext queryContext The | |
| SubqueryEntityResolver | back to summary |
|---|---|
| public SubqueryEntityResolver(Resolver parent, JPQLQueryContext queryContext, AbstractSchemaName abstractSchemaName) Creates a new
| |
| buildType | back to summary |
|---|---|
| protected IType buildType() Overrides org. Doc from org. Resolves the | |
| buildTypeDeclaration | back to summary |
|---|---|
| protected ITypeDeclaration buildTypeDeclaration() Implements abstract org. Doc from org. Resolves the
| |
| getAbstractSchemaName | back to summary |
|---|---|
| public String getAbstractSchemaName() Returns the name of the entity to resolve.
| |
| getManagedType | back to summary |
|---|---|
| public IManagedType getManagedType() Overrides org. Doc from org. Returns the
For example: "
| |
| getMapping | back to summary |
|---|---|
| public IMapping getMapping() Overrides org. Doc from org. Returns the | |
| resolveDerivePathResolver | back to summary |
|---|---|
| protected Resolver resolveDerivePathResolver() Creates the | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |