public enum ModelUpdateMode extends Enum<ModelUpdateMode>
committed
to the model.
This mode is a configuration option for FeatureEditConfigurationBuilder
.
This mode can have an influence on editing performance. It is not always a good idea to commit all intermediate editing changes to the model. This can lead to a large number of model updates, and for many model implementations, this can lead to a sub-optimal performance. For example: models that are backed by a database.
This enumeration allows you to specify the granularity of updates that are performed on a model.
Enum Constant and Description |
---|
OnAnyChange
Indicates that the model will be updated for any change, including
ChangeStatus#InProgress changes to a Feature . |
OnEditFinished
|
OnMajorChanges
Indicates that the model will be updated for major changes, meaning only changes that are marked as
ChangeStatus#InProgressKeyPoint or ChangeStatus#Finished . |
Modifier and Type | Method and Description |
---|---|
static ModelUpdateMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ModelUpdateMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ModelUpdateMode OnAnyChange
ChangeStatus#InProgress
changes to a Feature
.public static final ModelUpdateMode OnMajorChanges
ChangeStatus#InProgressKeyPoint
or ChangeStatus#Finished
.public static final ModelUpdateMode OnEditFinished
public static ModelUpdateMode[] values()
for (ModelUpdateMode c : ModelUpdateMode.values()) System.out.println(c);
public static ModelUpdateMode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null