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.
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 | 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 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.4.2, "build v20130514-5956486" API Reference