primaryKeyNull
ObservableState primaryKeyNull()
- Returns:
- an
ObservableState
indicating whether the primary key of the entity is null
Observable<Entity>
, Observer<Entity>
EntityEditModel
static interface
static interface
static final PropertyValue<Boolean>
changing()
void
clear()
EntityEditModel.EditorValue.persist()
directive.void
defaults()
exists()
get()
modified()
ObservableState
indicating whether any values have been modified.boolean
void
revert()
void
valid()
void
validate()
void
void
void
validate(Collection<Entity> entities)
<T> EntityEditModel.EditorValue<T>
EntityEditModel.EditorValue
instance representing attribute
in this EntityEditModel.EntityEditor
.EntityEditModel.EditorValue
instance or when the entity is set via set(Entity)
or defaults()
.addConsumer, addListener, addWeakConsumer, addWeakListener, getOrThrow, getOrThrow, isEqualTo, isNotEqualTo, isNull, isNullable, observer, optional, removeConsumer, removeListener, removeWeakConsumer, removeWeakListener
get
in interface Observable<Entity>
Populates this editor with the values from the given entity or sets the default value for all attributes in case it is null.
Use clear()
in order to clear the editor of all values.
entity
- the entity to set, if null, then defaults are setEntityEditModel.EditorValue.persist()
directive.ObservableState
indicating whether the entity exists in the databaseReturns an ObservableState
indicating whether any values have been modified.
Note that only existing entities are modified, new, or non-existing entities are never modified.
ObservableState
indicating the modified state of this entityset(Entity)
or defaults()
EntityEditModel.EditorValue
instance or when the entity is set via set(Entity)
or defaults()
.attribute
- the attributeObservableState
indicating whether the value of the given attribute is nullattribute
- the attributeObservableState
indicating whether the value of the given attribute is not nullObservableState
indicating whether the primary key of the entity is nullObservableState
indicating the valid status of the underlying Entity.Value
controlling the validatorValidationException
- in case the entity is invalidattribute
- the attribute the value is associated withValidationException
- if the given value is not valid for the given attributeentities
- the entities to validateValidationException
- on finding the first invalid entityentity
- the entity to validateValidationException
- in case the entity is invalidNullPointerException
- in case the entity is nullattribute
- the attributeEntityEditModel.EditorValue
instance representing attribute
in this EntityEditModel.EntityEditor
.T
- the value typeattribute
- the attributeEntityEditModel.EditorValue
representing the given attribute