Module is.codion.framework.model
Package is.codion.framework.model
Interface EntityEditor.ComponentModels
- All Known Subinterfaces:
SwingEntityEditor.SwingComponentModels
- Enclosing interface:
EntityEditor
public static interface EntityEditor.ComponentModels
Provides models for editor components requiring database access.
-
Method Summary
Modifier and TypeMethodDescriptiondefault EntitySearchModelsearchModel(ForeignKey foreignKey, EntityConnectionProvider connectionProvider) 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
default EntitySearchModel searchModel(ForeignKey foreignKey, EntityConnectionProvider connectionProvider) 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 aEntitySearchModelconnectionProvider- the connection provider- 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:
-