primaryKeyNull
is.codion.common.state.StateObserver primaryKeyNull()
- Returns:
- a
StateObserverindicating whether the primary key of the entity is null
is.codion.common.observer.Mutable<is.codion.framework.domain.entity.Entity>, is.codion.common.observer.Observable<is.codion.framework.domain.entity.Entity>, is.codion.common.observer.Observer<is.codion.framework.domain.entity.Entity>static interface static interface is.codion.common.observer.Observer<is.codion.framework.domain.entity.Entity>changing()voidclear()EntityEditModel.EditableValue.persist() directive.voiddefaults()is.codion.common.state.StateObserveredited()exists()is.codion.common.state.StateObserverisNotNull(is.codion.framework.domain.entity.attribute.Attribute<?> attribute) is.codion.common.state.StateObserverisNull(is.codion.framework.domain.entity.attribute.Attribute<?> attribute) modified()StateObserver indicating whether any values have been modified.booleannullable(is.codion.framework.domain.entity.attribute.Attribute<?> attribute) is.codion.common.state.StateObservervoidrefresh()voidrevert()voidset(is.codion.framework.domain.entity.Entity entity) is.codion.common.state.StateObservervalid()voidvalidate()is.codion.common.value.Value<is.codion.framework.domain.entity.EntityValidator>value(is.codion.framework.domain.entity.attribute.Attribute<T> attribute) EntityEditModel.EditableValue instance representing attribute in this EntityEditModel.EditableEntity.is.codion.common.observer.Observer<is.codion.framework.domain.entity.attribute.Attribute<?>>EntityEditModel.EditableValue
instance or when the entity is set via Mutable.set(Object) or defaults().addConsumer, addListener, addWeakConsumer, addWeakListener, get, observer, optional, removeConsumer, removeListener, removeWeakConsumer, removeWeakListenerclear() in order to clear the entity of all values.set in interface is.codion.common.observer.Mutable<is.codion.framework.domain.entity.Entity>entity - the entity to set, if null, then defaults are setEntityEditModel.EditableValue.persist() directive.clear in interface is.codion.common.observer.Mutable<is.codion.framework.domain.entity.Entity>EntityEditModel.EditableValue.defaultValue()EntityEditModel.EditableValue.persist()AttributeDefinition.defaultValue()StateObserver indicating whether the entity exists in the databaseStateObserver indicating whether any values have been modified.StateObserver indicating the modified state of this entityStateObserver indicating whether the entity has been edited, that is, exists and is modifiedMutable.set(Object) or defaults()Mutable.set(Object)defaults()EntityEditModel.EditableValue
instance or when the entity is set via Mutable.set(Object) or defaults().attribute - the attributeStateObserver indicating whether the value of the given attribute is nullattribute - the attributeStateObserver indicating whether the value of the given attribute is not nullStateObserver indicating whether the primary key of the entity is nullStateObserver indicating the valid status of the underlying Entity.EntityEditModel.validate(Attribute)EntityValidator.validate(Entity)Value controlling the validatoris.codion.framework.domain.entity.exception.ValidationException - in case the entity is invalidattribute - the attributeEntityEditModel.EditableValue instance representing attribute in this EntityEditModel.EditableEntity.T - the value typeattribute - the attributeEntityEditModel.EditableValue representing the given attribute