Module is.codion.framework.domain
Interface TransientAttributeDefinition<T>
- Type Parameters:
T
- the attribute value type
- All Superinterfaces:
AttributeDefinition<T>
An attribute that does not map to an underlying database column. The value of a transient attribute
is initialized to null when entities are loaded, which means transient attributes always have null as the original value.
The value of transient attributes can be set and retrieved like normal attributes but are ignored during DML operations.
Note that by default setting a transient value marks the entity as being modified, but trying to update an entity
with only transient values modified will result in an error.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Builds a transient AttributeDefinition instanceNested classes/interfaces inherited from interface is.codion.framework.domain.entity.attribute.AttributeDefinition
AttributeDefinition.ValueSupplier<T>
-
Field Summary
Fields inherited from interface is.codion.framework.domain.entity.attribute.AttributeDefinition
DATE_FORMAT, DATE_TIME_FORMAT, DECIMAL_ROUNDING_MODE, DECIMAL_SEPARATOR, DEFAULT_MAXIMUM_FRACTION_DIGITS, GROUPING_SEPARATOR, MAXIMUM_FRACTION_DIGITS, NUMBER_FORMAT_GROUPING, TIME_FORMAT, USE_LEXICAL_STRING_COMPARATOR
-
Method Summary
Methods inherited from interface is.codion.framework.domain.entity.attribute.AttributeDefinition
attribute, caption, comparator, dateTimeFormatter, dateTimePattern, decimalRoundingMode, defaultValue, derived, description, entityType, format, hasDefaultValue, hidden, items, maximumFractionDigits, maximumLength, maximumValue, minimumValue, mnemonic, nullable, string, validItem
-
Method Details
-
modifiesEntity
boolean modifiesEntity()- Returns:
- true if the value of this attribute being modified should result in a modified entity
-