Interface FeaturePagingHelper

All Superinterfaces:
org.gvsig.tools.dispose.Disposable, org.gvsig.tools.dynobject.DynObjectPagingHelper, org.gvsig.tools.util.GetItem64<Feature>, org.gvsig.tools.util.GetItemWithSize64<Feature>, org.gvsig.tools.util.GetItemWithSizeAndIterator64<Feature>, org.gvsig.tools.util.GetItemWithSizeIsEmptyAndIterator64<Feature>, org.gvsig.tools.util.IsEmpty, Iterable<Feature>, org.gvsig.tools.paging.PagingCalculator, org.gvsig.tools.util.Size64

public interface FeaturePagingHelper extends org.gvsig.tools.dynobject.DynObjectPagingHelper, org.gvsig.tools.dispose.Disposable, org.gvsig.tools.util.GetItemWithSizeIsEmptyAndIterator64<Feature>
Helper interface to access the values of a FeatureCollection by position.
Author:
gvSIG team
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.gvsig.tools.paging.PagingCalculator

    org.gvsig.tools.paging.PagingCalculator.Sizeable
  • Field Summary

    Fields inherited from interface org.gvsig.tools.util.GetItemWithSizeAndIterator64

    EMPTY_GETITEMWITHSIZEANDITERATOR64

    Fields inherited from interface org.gvsig.tools.util.GetItemWithSizeIsEmptyAndIterator64

    EMPTY_GETITEMWITHSIZEISEMPTYANDITERATOR64

    Fields inherited from interface org.gvsig.tools.paging.PagingCalculator

    DEFAULT_PAGE_SIZE
  • Method Summary

    Modifier and Type
    Method
    Description
    Return a List of Fearures with the contents of this PagingHelper
    Return a List of DynObjects with the contents of this PagingHelper
    void
    delete(Feature feature)
    Deletes a Feature from current FeatureSet.
    Returns all the values of the current loaded page.
    getFeatureAt(long index)
    Returns the Feature located at the index position.
    Returns the query used to load the Features.
     
    Returns the FeatureStore used to fetch the data.
    Returns the FeatureType used of the data.
     
    void
    Inserts a new feature in this FeatureSet.
    boolean
     
    boolean
     
    void
     
    void
    setSelectionUp(boolean selectionUp)
    Sets that the selected Features get returned first.
    void
    Updates a Feature with the given EditableFeature in the current FeatureSet.

    Methods inherited from interface org.gvsig.tools.dispose.Disposable

    dispose

    Methods inherited from interface org.gvsig.tools.dynobject.DynObjectPagingHelper

    getCurrentPageDynObjects, getDynObjectAt, getDynObjectSet, reload, reloadCurrentPage

    Methods inherited from interface org.gvsig.tools.util.GetItem64

    get64

    Methods inherited from interface java.lang.Iterable

    forEach, iterator, spliterator

    Methods inherited from interface org.gvsig.tools.paging.PagingCalculator

    getCurrentPage, getCurrentPageSize, getInitialIndex, getMaxPageSize, getNumPages, getTotalSize, setCurrentPage, setMaxPageSize

    Methods inherited from interface org.gvsig.tools.util.Size64

    size64
  • Method Details

    • getFeatureAt

      Feature getFeatureAt(long index) throws org.gvsig.tools.exception.BaseException
      Returns the Feature located at the index position.
      Parameters:
      index - to locate the Feature in the Collection
      Returns:
      the Feature located at the index position
      Throws:
      org.gvsig.tools.exception.BaseException - if there is an error getting the Feature
    • getCurrentPageFeatures

      Feature[] getCurrentPageFeatures()
      Returns all the values of the current loaded page.
      Returns:
      all the values of the current loaded page
    • getFeatureStore

      FeatureStore getFeatureStore()
      Returns the FeatureStore used to fetch the data.
      Returns:
      the FeatureStore
    • getFeatureQuery

      FeatureQuery getFeatureQuery()
      Returns the query used to load the Features.
      Returns:
      the query used to load the Features
    • getFeatureType

      FeatureType getFeatureType()
      Returns the FeatureType used of the data.
      Returns:
      the FeatureType of the data
    • update

      void update(EditableFeature feature) throws org.gvsig.tools.exception.BaseException
      Updates a Feature with the given EditableFeature in the current FeatureSet.
      Parameters:
      feature - an instance of EditableFeature with which to update the associated Feature.
      Throws:
      org.gvsig.tools.exception.BaseException
    • delete

      void delete(Feature feature) throws org.gvsig.tools.exception.BaseException
      Deletes a Feature from current FeatureSet.
      Parameters:
      feature - the Feature to delete.
      Throws:
      org.gvsig.tools.exception.BaseException
    • insert

      void insert(EditableFeature feature) throws org.gvsig.tools.exception.BaseException
      Inserts a new feature in this FeatureSet. It needs to be an instance of EditableFeature as it has not been stored yet.
      Any Iterator from this store that was still in use can will not reflect this change.
      Parameters:
      feature - the EditableFeature to insert.
      Throws:
      org.gvsig.tools.exception.BaseException
    • setSelectionUp

      void setSelectionUp(boolean selectionUp)
      Sets that the selected Features get returned first.
      Parameters:
      selectionUp -
    • isSelectionUp

      boolean isSelectionUp()
    • asList

      List asList()
      Return a List of Fearures with the contents of this PagingHelper
      Returns:
      List of Features
    • asListOfDynObjects

      List asListOfDynObjects()
      Return a List of DynObjects with the contents of this PagingHelper
      Returns:
      List of DynObjects
    • getSelection

      FeatureSelection getSelection()
    • setSelection

      void setSelection(FeatureSelection selection)
    • isEmpty

      boolean isEmpty()
      Specified by:
      isEmpty in interface org.gvsig.tools.util.IsEmpty
    • getFeatureSet

      FeatureSet getFeatureSet()