Module is.codion.framework.domain
Interface Entity.Key.Builder
- Enclosing interface:
Entity.Key
public static sealed interface Entity.Key.Builder
A builder for
Entity.Key instances.
Note that the resulting key is assumed to be a primary key
if any of the values is associated with a primary key column.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the key instanceAdds the given column value to this builder
-
Method Details
-
with
Adds the given column value to this builder- Type Parameters:
T- the value type- Parameters:
column- the columnvalue- the value- Returns:
- this builder instance
- Throws:
IllegalArgumentException- in case this column is not part of the entity
-
build
Entity.Key build()Builds the key instance- Returns:
- a new Key instance
-