public interface ComposedAttribute<T> extends Attribute<T>
Modifier and Type | Interface and Description |
---|---|
static class |
ComposedAttribute.Relation
Enum represanting the relation between tables.
|
Modifier and Type | Method and Description |
---|---|
ComposedAttribute<?> |
getOpposedAttribute()
Return the opposed attribute defined in the target entity type.
|
EntityType |
getTargetType()
Return the entity type of the value that can be assigned to this composed attribute.
|
boolean |
isAggregateByValue()
Indicates the relation to be of aggregating nature.
|
boolean |
isLazyLoad()
Return true if the value of this attribute is loaded on demand else false.
|
boolean |
isMainAttribute()
In an 1:n or 1:1 relation there is a main attribute in the parent entity type
which defines or owns the foreign key.
|
boolean |
isToMany()
Indicates to allow for referring to multiple foreign entries.
|
boolean |
isToOne()
Indicates to allow for referring to exactly one foreign entry.
|
void |
setAggregateByValue(boolean flag)
Defines whether the relation is of aggregating nature.
|
void |
setLazyLoad(boolean lazyLoad)
Defines whether to load values on demand.
|
getDisplayText, getName, getOwner, getType, getValidator, isKey, isReadOnly, isRequired, isValid, isVisible, setName, setReadOnly, setRequired, setValidator
EntityType getTargetType()
@Nullable ComposedAttribute<?> getOpposedAttribute()
boolean isLazyLoad()
void setLazyLoad(boolean lazyLoad)
lazyLoad
- true
, for on demand value loading.void setAggregateByValue(boolean flag)
flag
- true
, to have it aggregating.boolean isAggregateByValue()
true
, if aggregating.boolean isMainAttribute()
boolean isToOne()
true
, if only one foreign entry can be referred to.boolean isToMany()
true
, if multiple entries may be referenced.Copyright © 2021 e-Spirit AG. All Rights Reserved. Build 5.2.210210