de.espirit.or.schema
Interface ComposedAttribute<T>

All Superinterfaces:
Attribute<T>, Serializable

public interface ComposedAttribute<T>
extends Attribute<T>

Since:
4.0.17

Nested Class Summary
static class ComposedAttribute.Relation
          Enum represanting the relation between tables.
 
Method Summary
 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()
           
 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()
           
 boolean isToOne()
           
 void setAggregateByValue(boolean flag)
           
 void setLazyLoad(boolean lazyLoad)
           
 
Methods inherited from interface de.espirit.or.schema.Attribute
getDisplayText, getName, getOwner, getType, getValidator, isKey, isReadOnly, isRequired, isValid, isVisible, setName, setReadOnly, setRequired, setValidator
 

Method Detail

getTargetType

EntityType getTargetType()
Return the entity type of the value that can be assigned to this composed attribute.

Since:
4.0.17

getOpposedAttribute

ComposedAttribute getOpposedAttribute()
Return the opposed attribute defined in the target entity type.

Since:
4.0.17

isLazyLoad

boolean isLazyLoad()
Return true if the value of this attribute is loaded on demand else false.

Since:
4.0.17

setLazyLoad

void setLazyLoad(boolean lazyLoad)
Since:
4.0.17

setAggregateByValue

void setAggregateByValue(boolean flag)
Since:
4.0.17

isAggregateByValue

boolean isAggregateByValue()
Since:
4.0.17

isMainAttribute

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. The opposed attribute of this attribute is an optional attribute and is defined if the navigation from a child entity to its parent is allowed. If a main attribute is deleted then its opposed attribute and the assigned foreign key is deleted too. Return true if this attribute is the main attribute in the relation.

Since:
4.0.17

isToOne

boolean isToOne()
Since:
4.0.17

isToMany

boolean isToMany()
Since:
4.0.17


Copyright © 2012 e-Spirit AG. All Rights Reserved. Build 4.2.480