Interface EditorLink.Builder.LoadStep<R extends EntityEditor<R>>
- Type Parameters:
R- theEntityEditortype
- Enclosing interface:
EditorLink.Builder<R extends EntityEditor<R>>
EditorLink.Builder.ForeignKeyNameStep.name(String) — supplies the load source for the
detail entity, expressed as a EditorLink.DetailCondition, EditorLink.DetailSelect or
EditorLink.DetailEntity.-
Method Summary
Modifier and TypeMethodDescriptioncondition(EditorLink.DetailCondition condition) Loads the detail row using theConditionproduced for each master entity.entity(EditorLink.DetailEntity entity) Loads the detail row using a user-supplied function — the lowest-level escape hatch when neither aEditorLink.DetailConditionnor aEditorLink.DetailSelectsuffices (e.g.select(EditorLink.DetailSelect select) Loads the detail row using theEntityConnection.Selectproduced for each master entity.
-
Method Details
-
condition
Loads the detail row using the
Conditionproduced for each master entity.The condition must produce 0 or 1 rows; multiple matches result in an
IllegalStateExceptionat load time.- Parameters:
condition- provides theConditionused to load the detail row given the master entity- Returns:
- a builder for further configuration
-
select
Loads the detail row using the
EntityConnection.Selectproduced for each master entity.The select must produce 0 or 1 rows; multiple matches result in an
IllegalStateExceptionat load time.- Parameters:
select- provides theEntityConnection.Selectused to load the detail row given the master entity- Returns:
- a builder for further configuration
-
entity
Loads the detail row using a user-supplied function — the lowest-level escape hatch when neither a
EditorLink.DetailConditionnor aEditorLink.DetailSelectsuffices (e.g. when the detail entity is computed rather than selected, or requires multiple round trips).The supplied function must produce at most one entity; cardinality is the caller's responsibility on this path.
- Parameters:
entity- provides the detail entity given the master entity- Returns:
- a builder for further configuration
-