Class JRFeatureStoreDataSource1

java.lang.Object
org.gvsig.report.lib.impl.JRFeatureStoreDataSource1
All Implemented Interfaces:
net.sf.jasperreports.engine.data.HierarchicalDataSource, net.sf.jasperreports.engine.data.JsonData, net.sf.jasperreports.engine.JRDataSource, net.sf.jasperreports.engine.JRRewindableDataSource, org.gvsig.tools.util.GetItem<org.gvsig.fmap.dal.feature.Feature>, org.gvsig.tools.util.GetItem64<org.gvsig.fmap.dal.feature.Feature>, org.gvsig.tools.util.Size, org.gvsig.tools.util.Size64

public class JRFeatureStoreDataSource1 extends Object implements net.sf.jasperreports.engine.JRRewindableDataSource, net.sf.jasperreports.engine.data.JsonData, org.gvsig.tools.util.Size64, org.gvsig.tools.util.Size, org.gvsig.tools.util.GetItem<org.gvsig.fmap.dal.feature.Feature>, org.gvsig.tools.util.GetItem64<org.gvsig.fmap.dal.feature.Feature>
Author:
jjdelcerro
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected static final org.slf4j.Logger
     
    protected String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    JRFeatureStoreDataSource1(net.sf.jasperreports.engine.JasperReportsContext context, org.gvsig.fmap.dal.feature.FeatureStore store, org.gvsig.expressionevaluator.Expression filter)
     
    JRFeatureStoreDataSource1(net.sf.jasperreports.engine.JasperReportsContext context, org.gvsig.tools.util.UnmodifiableBasicList64<org.gvsig.fmap.dal.feature.Feature> features, org.gvsig.fmap.dal.StoresRepository storesRepository, org.gvsig.fmap.dal.feature.FeatureType featureType)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.gvsig.fmap.dal.feature.Feature
    get(int position)
     
    org.gvsig.fmap.dal.feature.Feature
    get64(long position)
     
    getFieldValue(net.sf.jasperreports.engine.JRField jrField)
     
    getLabel(org.gvsig.fmap.dal.feature.Feature feature, String fieldName)
     
    void
     
    boolean
     
    int
     
    long
     
    net.sf.jasperreports.engine.data.JsonData
     
    net.sf.jasperreports.engine.data.JsonData
    subDataSource(String selectExpression)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • LOGGER

      protected static final org.slf4j.Logger LOGGER
    • name

      protected String name
  • Constructor Details

    • JRFeatureStoreDataSource1

      public JRFeatureStoreDataSource1(net.sf.jasperreports.engine.JasperReportsContext context, org.gvsig.tools.util.UnmodifiableBasicList64<org.gvsig.fmap.dal.feature.Feature> features, org.gvsig.fmap.dal.StoresRepository storesRepository, org.gvsig.fmap.dal.feature.FeatureType featureType)
    • JRFeatureStoreDataSource1

      public JRFeatureStoreDataSource1(net.sf.jasperreports.engine.JasperReportsContext context, org.gvsig.fmap.dal.feature.FeatureStore store, org.gvsig.expressionevaluator.Expression filter)
  • Method Details

    • next

      public boolean next() throws net.sf.jasperreports.engine.JRException
      Specified by:
      next in interface net.sf.jasperreports.engine.JRDataSource
      Throws:
      net.sf.jasperreports.engine.JRException
    • getLabel

      public String getLabel(org.gvsig.fmap.dal.feature.Feature feature, String fieldName)
    • getFieldValue

      public Object getFieldValue(net.sf.jasperreports.engine.JRField jrField) throws net.sf.jasperreports.engine.JRException
      Specified by:
      getFieldValue in interface net.sf.jasperreports.engine.JRDataSource
      Throws:
      net.sf.jasperreports.engine.JRException
    • moveFirst

      public void moveFirst() throws net.sf.jasperreports.engine.JRException
      Specified by:
      moveFirst in interface net.sf.jasperreports.engine.JRRewindableDataSource
      Throws:
      net.sf.jasperreports.engine.JRException
    • size64

      public long size64()
      Specified by:
      size64 in interface org.gvsig.tools.util.Size64
    • size

      public int size()
      Specified by:
      size in interface org.gvsig.tools.util.Size
    • get

      public org.gvsig.fmap.dal.feature.Feature get(int position)
      Specified by:
      get in interface org.gvsig.tools.util.GetItem<org.gvsig.fmap.dal.feature.Feature>
    • get64

      public org.gvsig.fmap.dal.feature.Feature get64(long position)
      Specified by:
      get64 in interface org.gvsig.tools.util.GetItem64<org.gvsig.fmap.dal.feature.Feature>
    • subDataSource

      public net.sf.jasperreports.engine.data.JsonData subDataSource() throws net.sf.jasperreports.engine.JRException
      Specified by:
      subDataSource in interface net.sf.jasperreports.engine.data.HierarchicalDataSource
      Throws:
      net.sf.jasperreports.engine.JRException
    • subDataSource

      public net.sf.jasperreports.engine.data.JsonData subDataSource(String selectExpression) throws net.sf.jasperreports.engine.JRException
      Specified by:
      subDataSource in interface net.sf.jasperreports.engine.data.HierarchicalDataSource
      Throws:
      net.sf.jasperreports.engine.JRException