public class FeatureManager
extends java.lang.Object
| Constructor and Description |
|---|
FeatureManager(FeatureStore store) |
public FeatureManager(FeatureStore store)
public Feature delete(Feature feature)
id - public void add(EditableFeature feature)
public void undoAdd(EditableFeature feature)
public Feature deleteLastFeature()
public DefaultFeature get(FeatureProvider data)
public DefaultFeature get(FeatureReference id, FeatureStore store) throws DataException
id - the feature referencestore - the store to get the feature fromDataException - if there is an error getting the Featurepublic DefaultFeature get(FeatureReference id, FeatureStore store, FeatureType featureType) throws DataException
id - the feature referencestore - the store to get the feature fromfeatureType - the type of the feature to returnDataException - if there is an error getting the Featurepublic int update(EditableFeature feature, Feature oldFeature)
public void restore(FeatureReference id)
public void restore(FeatureReference id, int num)
public boolean isDeleted(Feature feature)
public boolean isDeleted(FeatureProvider data)
public boolean isDeleted(FeatureReference featureID)
public void clear()
public boolean hasChanges()
public boolean hasDeleteds()
public long getPendingChangesCount()
public java.util.Iterator<FeatureReference> getDeleted()
public java.util.Iterator<FeatureProvider> getInserted()
public java.util.Iterator<EditableFeature> getInsertedFeatures()
public java.util.List<FeatureReference> getAddedAndUpdatedFeatures()
public java.util.List<FeatureReference> getAddedAndUpdatedFeaturesNotValidated(DefaultFeatureRules rules, int checks)
public java.util.Iterator<EditableFeature> getUpdatedFeatures()
public java.util.Iterator<FeatureProvider> getUpdated()
public boolean hasNews()
public long getDeltaSize()
public boolean isSelectionCompromised()
public Feature getOriginal(FeatureReference id)
public boolean isFeatureModified(FeatureReference id)