primaryKeyPresent
- Specified by:
primaryKeyPresentin interfaceEntityEditor- Returns:
- an
ObservableStateindicating whether the value of the entity primary key is present
EntityEditorSwingEntityEditorEntityEditor implementation.EntityEditor.ComponentModels, EntityEditor.EditorEntity, EntityEditor.EditorPersistence, EntityEditor.EditorValue<T>, EntityEditor.EditorValues, EntityEditor.Exists, EntityEditor.Modified, EntityEditor.PersistEvents, EntityEditor.PersistTask<T>, EntityEditor.PersistTasks, EntityEditor.SearchModelsPERSIST_FOREIGN_KEYS, PUBLISH_PERSISTENCE_EVENTSDefaultEntityEditor(EntityType entityType,
EntityConnectionProvider connectionProvider,
EntityEditor.ComponentModels componentModels) DefaultEntityEditorprotected EntityEditor.ComponentModelsfinal EntityConnectionProviderfinal Entitiesentities()entity()final EntityDefinitionevents()final EntityEditor.Existsexists()final EntityEditor.Modifiedmodified()ObservableState indicating whether any values have been modified.final ObservableStatefinal Statetasks(EntityConnection connection) final StringtoString()final ObservableStatevalid()final voidvalidate()final voidfinal voidfinal voidvalidate(Collection<Entity> entities) final Value<EntityValidator> final <T> EntityEditor.EditorValue<T> values()DefaultEntityEditorentityType - the entity typeconnectionProvider - the connection providercomponentModels - the editor component modelsentities in interface EntityEditorentityDefinition in interface EntityEditorconnectionProvider in interface EntityEditorevents in interface EntityEditorEntityEditor.PersistEventspublishPersistenceEvents in interface EntityEditorPersistenceEvents event bus.entity in interface EntityEditorEntityEditor.EditorEntity instancevalues in interface EntityEditorEntityEditor.EditorValuesexists in interface EntityEditorObservableState indicating whether the entity exists in the databaseEntityEditorReturns an ObservableState indicating whether any values have been modified.
Note that only existing entities are modified, new, or non-existing entities are never modified.
modified in interface EntityEditorObservableState indicating the modified state of this editor entityprimaryKeyPresent in interface EntityEditorObservableState indicating whether the value of the entity primary key is presentEntityEditorvalidator in interface EntityEditorValue controlling the validatorvalid in interface EntityEditorObservableState indicating the valid status of the underlying Entity.EntityEditorvalidate in interface EntityEditorEntityValidationException - in case the entity is invalidEntityEditorvalidate in interface EntityEditorattribute - the attribute the value is associated withAttributeValidationException - if the given value is not valid for the given attributeEntityEditorvalidate in interface EntityEditorentities - the entities to validateEntityValidationException - on finding the first invalid entityEntityEditorvalidate in interface EntityEditorentity - the entity to validateEntityValidationException - in case the entity is invalidEntityEditorvalue in interface EntityEditorT - the value typeattribute - the attributeEntityEditor.EditorValue representing the given attributesearchModels in interface EntityEditorEntityEditor.SearchModels instancepersistence in interface EntityEditorEntityEditor.EditorPersistence used by this editortasks in interface EntityEditorconnection - the connection to use when persistingEntityEditor.PersistTasks instanceEntityEditor.ComponentModels instance