Class DefaultFeatureSet

java.lang.Object
org.gvsig.tools.visitor.impl.AbstractVisitable
org.gvsig.tools.visitor.impl.AbstractIndexedVisitable
org.gvsig.fmap.dal.feature.impl.featureset.AbstractFeatureSet
org.gvsig.fmap.dal.feature.impl.featureset.DefaultFeatureSet
All Implemented Interfaces:
Iterable<org.gvsig.fmap.dal.feature.Feature>, org.gvsig.fmap.dal.DataSet, org.gvsig.fmap.dal.feature.FeatureSet, org.gvsig.tools.dispose.Disposable, org.gvsig.tools.observer.Observer, org.gvsig.tools.util.IsEmpty, org.gvsig.tools.util.Size, org.gvsig.tools.util.Size64, org.gvsig.tools.visitor.IndexedVisitable, org.gvsig.tools.visitor.Visitable

public class DefaultFeatureSet extends AbstractFeatureSet implements org.gvsig.fmap.dal.feature.FeatureSet, org.gvsig.tools.observer.Observer
  • Field Details

    • NO_CHECKED

      protected static final int NO_CHECKED
      See Also:
    • DEFAULT

      protected static final int DEFAULT
      See Also:
    • FILTERED

      protected static final int FILTERED
      See Also:
    • ORDERED

      protected static final int ORDERED
      See Also:
    • ORDERED_FILTERED

      protected static final int ORDERED_FILTERED
      See Also:
    • EDITED

      protected static final int EDITED
      See Also:
    • EDITED_FILTERED

      protected static final int EDITED_FILTERED
      See Also:
    • ORDERD_EDITED

      protected static final int ORDERD_EDITED
      See Also:
    • ORDERED_EDITED_FILTER

      protected static final int ORDERED_EDITED_FILTER
      See Also:
    • sourceStoreModifiedCause

      protected Throwable sourceStoreModifiedCause
    • sourceStoreModified

      protected boolean sourceStoreModified
    • ownFeaturesModified

      protected boolean ownFeaturesModified
    • store

      protected DefaultFeatureStore store
    • featureTypes

      protected List featureTypes
    • query

      protected org.gvsig.fmap.dal.feature.FeatureQuery query
    • provider

      protected org.gvsig.fmap.dal.feature.spi.FeatureSetProvider provider
    • size

      protected long size
    • iteratorMode

      protected int iteratorMode
    • orderedData

      protected List orderedData
    • featureToIgnoreNotification

      protected org.gvsig.fmap.dal.feature.Feature featureToIgnoreNotification
    • transform

      protected DefaultFeatureStoreTransforms transform
    • queryForProvider

      protected org.gvsig.fmap.dal.feature.FeatureQuery queryForProvider
    • defaultFeatureType

      protected org.gvsig.fmap.dal.feature.FeatureType defaultFeatureType
    • defatulFeatureTypeForProvider

      protected org.gvsig.fmap.dal.feature.FeatureType defatulFeatureTypeForProvider
    • ignoreChanges

      protected boolean ignoreChanges
  • Constructor Details

    • DefaultFeatureSet

      public DefaultFeatureSet(DefaultFeatureStore store, org.gvsig.fmap.dal.feature.FeatureQuery query) throws org.gvsig.fmap.dal.exception.DataException
      Throws:
      org.gvsig.fmap.dal.exception.DataException
  • Method Details

    • getDefaultFeatureType

      public org.gvsig.fmap.dal.feature.FeatureType getDefaultFeatureType()
      Specified by:
      getDefaultFeatureType in interface org.gvsig.fmap.dal.feature.FeatureSet
    • getFeatureTypes

      public List getFeatureTypes()
      Specified by:
      getFeatureTypes in interface org.gvsig.fmap.dal.feature.FeatureSet
    • getSize

      public long getSize() throws org.gvsig.fmap.dal.exception.DataException
      Specified by:
      getSize in interface org.gvsig.fmap.dal.feature.FeatureSet
      Throws:
      org.gvsig.fmap.dal.exception.DataException
    • dispose

      public final void dispose()
      Specified by:
      dispose in interface org.gvsig.tools.dispose.Disposable
    • doDispose

      public void doDispose()
    • update

      public void update(org.gvsig.tools.observer.Observable obsevable, Object notification)
      Specified by:
      update in interface org.gvsig.tools.observer.Observer
    • checkSourceStoreModified

      protected void checkSourceStoreModified()
    • fastIterator

      public org.gvsig.tools.dispose.DisposableIterator fastIterator(long index) throws org.gvsig.fmap.dal.exception.DataException
      Specified by:
      fastIterator in interface org.gvsig.fmap.dal.feature.FeatureSet
      Throws:
      org.gvsig.fmap.dal.exception.DataException
    • fastIterator

      public org.gvsig.tools.dispose.DisposableIterator fastIterator(long index, long elements) throws org.gvsig.fmap.dal.exception.DataException
      Specified by:
      fastIterator in interface org.gvsig.fmap.dal.feature.FeatureSet
      Throws:
      org.gvsig.fmap.dal.exception.DataException
    • setIgnoreConcurrentChanges

      public void setIgnoreConcurrentChanges(boolean b)
    • iterator

      public org.gvsig.tools.dispose.DisposableIterator iterator(long index) throws org.gvsig.fmap.dal.exception.DataException
      Specified by:
      iterator in interface org.gvsig.fmap.dal.feature.FeatureSet
      Throws:
      org.gvsig.fmap.dal.exception.DataException
    • iterator

      public org.gvsig.tools.dispose.DisposableIterator iterator(long index, long elements) throws org.gvsig.fmap.dal.exception.DataException
      Specified by:
      iterator in interface org.gvsig.fmap.dal.feature.FeatureSet
      Throws:
      org.gvsig.fmap.dal.exception.DataException
    • delete

      public void delete(org.gvsig.fmap.dal.feature.Feature feature) throws org.gvsig.fmap.dal.exception.DataException
      Specified by:
      delete in interface org.gvsig.fmap.dal.feature.FeatureSet
      Throws:
      org.gvsig.fmap.dal.exception.DataException
    • insert

      public void insert(org.gvsig.fmap.dal.feature.EditableFeature feature) throws org.gvsig.fmap.dal.exception.DataException
      Specified by:
      insert in interface org.gvsig.fmap.dal.feature.FeatureSet
      Throws:
      org.gvsig.fmap.dal.exception.DataException
    • update

      public void update(org.gvsig.fmap.dal.feature.EditableFeature feature) throws org.gvsig.fmap.dal.exception.DataException
      Specified by:
      update in interface org.gvsig.fmap.dal.feature.FeatureSet
      Throws:
      org.gvsig.fmap.dal.exception.DataException
    • commitChanges

      public void commitChanges() throws org.gvsig.fmap.dal.exception.DataException
      Specified by:
      commitChanges in interface org.gvsig.fmap.dal.feature.FeatureSet
      Throws:
      org.gvsig.fmap.dal.exception.DataException
    • getFeatureStore

      public org.gvsig.fmap.dal.feature.FeatureStore getFeatureStore()
      Specified by:
      getFeatureStore in interface org.gvsig.fmap.dal.feature.FeatureSet
      Specified by:
      getFeatureStore in class AbstractFeatureSet