Interface SwingEntityTreeModel.Builder.RootsStep
- All Superinterfaces:
EntityTreeModel.Builder.RootsStep
- Enclosing interface:
SwingEntityTreeModel.Builder
public static interface SwingEntityTreeModel.Builder.RootsStep
extends EntityTreeModel.Builder.RootsStep
Provides a
SwingEntityTreeModel.Builder.ConnectionStep-
Method Summary
Modifier and TypeMethodDescriptionroots(EntityType entityType) roots(EntityType entityType, Consumer<EntityTreeModel.Builder.Roots> roots) Configures the query selecting the roots.
-
Method Details
-
roots
- Specified by:
rootsin interfaceEntityTreeModel.Builder.RootsStep- Parameters:
entityType- the type of the root entities- Returns:
- a
EntityTreeModel.Builder.ConnectionStep
-
roots
SwingEntityTreeModel.Builder.ConnectionStep roots(EntityType entityType, Consumer<EntityTreeModel.Builder.Roots> roots) Description copied from interface:EntityTreeModel.Builder.RootsStepConfigures the query selecting the roots. A condition replaces the default one, the self-referencing foreign keys being null, which it may include if needed.
EntityTreeModel.builder() .roots(Employee.TYPE, roots -> roots .condition(() -> Employee.LASTNAME.equalTo("Edwards")) .select(select -> select.orderBy(ascending(Employee.LASTNAME))));- Specified by:
rootsin interfaceEntityTreeModel.Builder.RootsStep- Parameters:
entityType- the type of the root entitiesroots- configures the query selecting the roots- Returns:
- a
EntityTreeModel.Builder.ConnectionStep - See Also:
-