Module is.codion.framework.domain
Interface DerivedAttributeDefinition.Builder<T,B extends DerivedAttributeDefinition.Builder<T,B>>
- Type Parameters:
T
- the attribute value type
- All Superinterfaces:
AttributeDefinition.Builder<T,
B>
- Enclosing interface:
- DerivedAttributeDefinition<T>
public static interface DerivedAttributeDefinition.Builder<T,B extends DerivedAttributeDefinition.Builder<T,B>>
extends AttributeDefinition.Builder<T,B>
Builds a derived AttributeDefinition instance
-
Method Summary
Modifier and TypeMethodDescriptioncached
(boolean cached) Default true unless no source attributes are specified or this is a denormalized attribute.Methods inherited from interface is.codion.framework.domain.entity.attribute.AttributeDefinition.Builder
attribute, build, caption, captionResourceKey, comparator, dateTimePattern, decimalRoundingMode, defaultValue, defaultValue, description, format, hidden, items, localeDateTimePattern, maximumFractionDigits, maximumLength, maximumValue, minimumValue, mnemonic, nullable, numberFormatGrouping, valueRange
-
Method Details
-
cached
Default true unless no source attributes are specified or this is a denormalized attribute. Note that cached attributes are included when an entity is serialized.- Parameters:
cached
- true if the value of this derived attribute should be cached, false if it should be computed on each access- Returns:
- this builder instance
- Throws:
IllegalArgumentException
- in case this is a denormalized attribute
-