Uses of Interface
is.codion.framework.domain.entity.Entity.Builder
Packages that use Entity.Builder
Package
Description
Package configuration values:
EntityValidator.STRICT_VALIDATION
Entities.VALIDATE_FOREIGN_KEYS
Entities.STRICT_DESERIALIZATION
AttributeDefinition.MAXIMUM_FRACTION_DIGITS
AttributeDefinition.TIME_FORMAT
AttributeDefinition.NUMBER_FORMAT_GROUPING
AttributeDefinition.GROUPING_SEPARATOR
AttributeDefinition.DECIMAL_SEPARATOR
AttributeDefinition.USE_LEXICAL_STRING_COMPARATOR
AttributeDefinition.DATE_TIME_FORMAT
AttributeDefinition.DATE_FORMAT
AttributeDefinition.DECIMAL_ROUNDING_MODE
ForeignKeyDefinition.FOREIGN_KEY_REFERENCE_DEPTH
-
Uses of Entity.Builder in is.codion.framework.domain.entity
Methods in is.codion.framework.domain.entity that return Entity.BuilderModifier and TypeMethodDescriptionfinal Entity.Builder
DefaultEntities.builder
(EntityType entityType) Entities.builder
(EntityType entityType) Creates a newEntity.Builder
instance for the given entityTypeEntities entities = domain.entities(); // Build an entity with initial values Entity customer = entities.builder(Customer.TYPE) .with(Customer.NAME, "John Doe") .with(Customer.EMAIL, "john@example.com") .with(Customer.ACTIVE, true) .build(); // Build with a foreign key reference Entity order = entities.builder(Order.TYPE) .with(Order.CUSTOMER_FK, customer) .with(Order.DATE, LocalDate.now()) .with(Order.TOTAL, 100.50) .build();
static Entity.Builder
Entity.builder
(Entity.Key key) Entity.Copy.builder()
Returns a newEntity.Builder
instance initialized with the values and original values from this entity.Entity.Builder.clearPrimaryKey()
Clears the primary key values from this builder, current as well as original values if anyEntity.Builder.originalPrimaryKey()
Resets the primary to its original state, in case the original value is available<T> Entity.Builder
Adds the given attribute value to this builderEntity.Builder.withDefaults()
Sets the default value for all attributes which have a default value.