Resolver is responsible to resolve a property by retrieving either the managed
type, the mapping, the type and the type declaration depending on the type of resolver.
Provisional API: This interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.
| Modifier and Type | Field and Description |
|---|---|
| private boolean | nullAllowed
This is only applicable to 1:1 relationships, and allows the target of the relationship to be
|
| private final Resolver | parent
The parent of this resolver, which is never |
| private Map | |
| private IType | |
| private ITypeDeclaration | typeDeclaration
The cached |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public final void | |
| protected IType | |
| protected abstract ITypeDeclaration | Returns: Either theITypeDeclaration that was resolved by this Resolver or the
ITypeDeclaration for IType#UNRESOLVABLE_TYPE if it could not be resolvedResolves the |
| protected void | |
| public final Resolver | |
| public IManagedType | |
| public IMapping | |
| public Resolver | |
| public final IManagedType | Returns: The managed type of the parent resolverReturns the managed type of the parent resolver. |
| public final IMapping | Returns: TheIMapping of the parent resolverReturns the |
| public final IType | |
| public final ITypeDeclaration | Returns: The type declaration of the parent resolverReturns the type declaration of the parent resolver. |
| public final IManagedTypeProvider | |
| public IQuery | Returns: The external form of the JPQL queryReturns the external form representing the JPQL query. |
| public final IType | |
| public final IType | |
| public final IType | |
| public final ITypeDeclaration | Returns: Either theITypeDeclaration that was resolved by this Resolver or the
ITypeDeclaration for IType#UNRESOLVABLE_TYPE if it could not be resolvedReturns the |
| public final TypeHelper | Returns: A helper containing a collection of methods related toITypeReturns a helper that gives access to the most common |
| public final ITypeRepository | Returns: The repository ofITypesReturns the type repository for the application. |
| public boolean | Returns: true to allow null if the corresponding relationship in the
database does not exists; false otherwiseDetermines whether the |
| public void | setNullAllowed(boolean
true to allow null if the corresponding
relationship in the database does not exists; false otherwiseSets whether the |
| nullAllowed | back to summary |
|---|---|
| private boolean nullAllowed This is only applicable to 1:1 relationships, and allows the target of the relationship to be
| |
| parent | back to summary |
|---|---|
| private final Resolver parent The parent of this resolver, which is never | |
| resolvers | back to summary |
|---|---|
| private Map<String, Resolver> resolvers The cached | |
| type | back to summary |
|---|---|
| private IType type The cached | |
| typeDeclaration | back to summary |
|---|---|
| private ITypeDeclaration typeDeclaration The cached | |
| Resolver | back to summary |
|---|---|
| protected Resolver(Resolver parent) Creates a new
| |
| addChild | back to summary |
|---|---|
| public final void addChild(String variableName, Resolver resolver) Caches the given | |
| buildType | back to summary |
|---|---|
| protected IType buildType() Resolves the
| |
| buildTypeDeclaration | back to summary |
|---|---|
| protected abstract ITypeDeclaration buildTypeDeclaration() Resolves the
| |
| checkParent | back to summary |
|---|---|
| protected void checkParent(Resolver parent) | |
| getChild | back to summary |
|---|---|
| public final Resolver getChild(String variableName) Retrieves the child of this | |
| getManagedType | back to summary |
|---|---|
| public IManagedType getManagedType() Returns the
For example: "
| |
| getMapping | back to summary |
|---|---|
| public IMapping getMapping() Returns the | |
| getParent | back to summary |
|---|---|
| public Resolver getParent() Returns the parent of this | |
| getParentManagedType | back to summary |
|---|---|
| public final IManagedType getParentManagedType() Returns the managed type of the parent resolver.
| |
| getParentMapping | back to summary |
|---|---|
| public final IMapping getParentMapping() Returns the | |
| getParentType | back to summary |
|---|---|
| public final IType getParentType() Returns the type of the parent resolver.
| |
| getParentTypeDeclaration | back to summary |
|---|---|
| public final ITypeDeclaration getParentTypeDeclaration() Returns the type declaration of the parent resolver.
| |
| getProvider | back to summary |
|---|---|
| public final IManagedTypeProvider getProvider() Returns the provider of managed types.
| |
| getQuery | back to summary |
|---|---|
| public IQuery getQuery() Returns the external form representing the JPQL query.
| |
| getType | back to summary |
|---|---|
| public final IType getType() Returns the
| |
| getType | back to summary |
|---|---|
| public final IType getType(Class<?> type) Returns the | |
| getType | back to summary |
|---|---|
| public final IType getType(String typeName) Retrieves the external class for the given fully qualified class name. | |
| getTypeDeclaration | back to summary |
|---|---|
| public final ITypeDeclaration getTypeDeclaration() Returns the
| |
| getTypeHelper | back to summary |
|---|---|
| public final TypeHelper getTypeHelper() Returns a helper that gives access to the most common
| |
| getTypeRepository | back to summary |
|---|---|
| public final ITypeRepository getTypeRepository() Returns the type repository for the application.
| |
| isNullAllowed | back to summary |
|---|---|
| public boolean isNullAllowed() Determines whether the
| |
| setNullAllowed | back to summary |
|---|---|
| public void setNullAllowed(boolean nullAllowed) Sets whether the
| |