Class FeatureModelPersistenceManager

java.lang.Object
com.luciad.models.features.FeatureModelPersistenceManager
All Implemented Interfaces:
AutoCloseable

public final class FeatureModelPersistenceManager extends Object implements AutoCloseable
This class can be used to save changes to an IFeatureModel's backend.

The main goal of this class it to give more control over when changes are persisted. An important difference between the updater and the FeatureModelPersistenceManager is the frequency at which they are used, with the FeatureModelPersistenceManager typically being used less often. In other words:

  • The updater typically only makes in-memory changes. These can occur in a high frequency and can be executed fast.
  • FeatureModelPersistenceManager can persist these in-memory changes. This is slower to execute, can require more resources (disk access for example), but can be performed at a lower frequency.

For example: when dragging a point from one location to another in an editor configured to update on any change, many small updates are done along the way. In contrast, a save typically only happens when the editing is finished.

A FeatureModelPersistenceManager can be accessed through the model using IFeatureModel#getPersistenceManager.

See this article for more information.

Since:
2023.1