public abstract class Resolver
extends java.lang.Object
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.| Modifier and Type | Method and Description |
|---|---|
abstract void |
accept(ResolverVisitor visitor)
|
IManagedType |
getManagedType()
Returns the
IManagedType associated with the field handled by this Resolver. |
IMapping |
getMapping()
Returns the
IMapping for the wrapped field. |
Resolver |
getParent()
Returns the parent of this
Resolver. |
IType |
getType()
|
boolean |
isNullAllowed()
Determines whether the
Expression to be created, which wraps the attribute or query
key name allows the target of the 1:1 relationship to be null if there is no
corresponding relationship in the database. |
void |
setNullAllowed(boolean nullAllowed)
Sets whether the
Expression to be created, which wraps the attribute or query
key name allows the target of the 1:1 relationship to be null if there is no
corresponding relationship in the database. |
public abstract void accept(ResolverVisitor visitor)
visitor - The visitor to visit this objectpublic IManagedType getManagedType()
IManagedType associated with the field handled by this Resolver.
If this Resolver does not handle a field that has a IManagedType, then
null should be returned.
For example: "SELECT e FROM Employee e", the Resolver for
e would be returning the IManagedType for Employee.
IManagedType, if it could be resolved; null otherwisepublic IMapping getMapping()
IMapping for the wrapped field.IMapping or null if none existspublic Resolver getParent()
Resolver.Resolverpublic final IType getType()
IType that was resolved by this Resolver or the IType
for IType.UNRESOLVABLE_TYPE if it could not be resolvedpublic final boolean isNullAllowed()
Expression to be created, which wraps the attribute or query
key name allows the target of the 1:1 relationship to be null if there is no
corresponding relationship in the database.true to allow null if the corresponding relationship in the
database does not exists; false otherwisepublic void setNullAllowed(boolean nullAllowed)
Expression to be created, which wraps the attribute or query
key name allows the target of the 1:1 relationship to be null if there is no
corresponding relationship in the database.nullAllowed - true to allow null if the corresponding
relationship in the database does not exists; false otherwiseEclipseLink 2.3.2, "build v20111125-r10461" API Reference