Module is.codion.framework.model
Package is.codion.framework.model
Interface EntityEditor.ComponentModels<M extends EntityModel<M,E,T,R>,E extends EntityEditModel<M,E,T,R>,T extends EntityTableModel<M,E,T,R>,R extends EntityEditor<M,E,T,R>>
- Type Parameters:
M- theEntityModeltypeE- theEntityEditModeltypeT- theEntityTableModeltypeR- theEntityEditortype
- All Known Subinterfaces:
SwingEntityEditor.SwingComponentModels
- Enclosing interface:
EntityEditor<M extends EntityModel<M,E, T, R>, E extends EntityEditModel<M, E, T, R>, T extends EntityTableModel<M, E, T, R>, R extends EntityEditor<M, E, T, R>>
public static interface EntityEditor.ComponentModels<M extends EntityModel<M,E,T,R>,E extends EntityEditModel<M,E,T,R>,T extends EntityTableModel<M,E,T,R>,R extends EntityEditor<M,E,T,R>>
Provides models for editor components requiring database access.
-
Method Summary
Modifier and TypeMethodDescriptiondefault EntitySearchModelsearchModel(ForeignKey foreignKey, R editor) Creates aEntitySearchModelfor looking up entities of the type referenced by the given foreign key, using the search attributes defined for that entity type.
-
Method Details
-
searchModel
Creates a
EntitySearchModelfor looking up entities of the type referenced by the given foreign key, using the search attributes defined for that entity type.- Parameters:
foreignKey- the foreign key for which to create aEntitySearchModeleditor- the editor- Returns:
- a new
EntitySearchModelfor looking up entities of the type referenced by the given foreign key attribute, - Throws:
IllegalStateException- in case no searchable attributes can be found for the entity type referenced by the given foreign key- See Also:
-