Resolver resolves a path and casts it as another entity type.
| Modifier and Type | Field and Description |
|---|---|
| private String | entityTypeName
The entity type name used to downcast the collection-valued field. |
| Access | Constructor and Description |
|---|---|
| public | TreatResolver(Resolver
The parent of this resolver, which is never parent, String nullThe entity type name used to downcast the collection-valued field entityTypeName)Creates a new |
| Modifier and Type | Method and Description |
|---|---|
| protected ITypeDeclaration | buildTypeDeclaration()
Implements abstract org. ITypeDeclaration of the property handled by this Resolver.
|
| public String | Returns: The entity type name used to downcast the path expressionReturns the entity type name used to downcast the path expression. |
| public IManagedType | getManagedType()
Overrides org. IManagedType associated with the field handled by this Resolver.
|
| public void | setNullAllowed(boolean
true to allow null if the corresponding
relationship in the database does not exists; false otherwiseOverrides org. 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 String |
| entityTypeName | back to summary |
|---|---|
| private String entityTypeName The entity type name used to downcast the collection-valued field. | |
| TreatResolver | back to summary |
|---|---|
| public TreatResolver(Resolver parent, String entityTypeName) Creates a new | |
| buildTypeDeclaration | back to summary |
|---|---|
| protected ITypeDeclaration buildTypeDeclaration() Implements abstract org. Doc from org. Resolves the
| |
| getEntityTypeName | back to summary |
|---|---|
| public String getEntityTypeName() Returns the entity type name used to downcast the path expression.
| |
| getManagedType | back to summary |
|---|---|
| public IManagedType getManagedType() Overrides org. Doc from org. Returns the
For example: "
| |
| setNullAllowed | back to summary |
|---|---|
| public void setNullAllowed(boolean nullAllowed) Overrides org. Doc from org. Sets whether the
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |