Module is.codion.framework.model
Package is.codion.framework.model
Interface EntityEditModel.EditableEntity.Exists
- All Superinterfaces:
is.codion.common.observer.Observer<Boolean>,is.codion.common.state.StateObserver,is.codion.common.value.ValueObserver<Boolean>
- Enclosing interface:
- EntityEditModel.EditableEntity
public static interface EntityEditModel.EditableEntity.Exists
extends is.codion.common.state.StateObserver
Indicates whether the active entity exists in the database.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionis.codion.common.value.Value<Predicate<is.codion.framework.domain.entity.Entity>>Controls the 'exists' predicate for thisEntityEditModel.EditableEntity.Existsinstance, which is responsible for providing the exists state of the underlying entity.Methods inherited from interface is.codion.common.observer.Observer
addConsumer, addListener, addWeakConsumer, addWeakListener, removeConsumer, removeListener, removeWeakConsumer, removeWeakListenerMethods inherited from interface is.codion.common.state.StateObserver
isNotNull, isNull, not, nullableMethods inherited from interface is.codion.common.value.ValueObserver
get, isEqualTo, isNotEqualTo, optional
-
Method Details
-
predicate
is.codion.common.value.Value<Predicate<is.codion.framework.domain.entity.Entity>> predicate()Controls the 'exists' predicate for thisEntityEditModel.EditableEntity.Existsinstance, which is responsible for providing the exists state of the underlying entity.- Returns:
- the
Valuecontrolling the predicate used to check if the entity exists - See Also:
-
EntityDefinition.exists()Entity.exists()
-