Revision 44488 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.impl/src/main/java/org/gvsig/fmap/dal/feature/paging/impl/FeaturePagingHelperImpl.java

View differences:

FeaturePagingHelperImpl.java
612 612

  
613 613
        reloadCurrentPage();
614 614
    }
615
    
616
    public boolean isEmpty() {
617
        try {
618
            return getFeatureSet(false).isEmpty();
619
        } catch (ConcurrentDataModificationException ex) {
620
            LOG.warn("ConcurrentDataModification error asking about the emptiness of the list. Retrying reloading data.");
621
            try {
622
                reload();
623
            } catch (BaseException e) {
624
                LOG.warn("Error reloading data.", e);
625
                throw new RuntimeException(e);
626
            }
627
            try {
628
                return getFeatureSet(false).isEmpty();
629
            } catch (DataException e) {
630
                LOG.warn("Error asking about the emptiness of the list after reloading data.",e);
631
                throw new RuntimeException(e);
632
            }
633
        } catch (DataException ex) {
634
            throw  new RuntimeException(ex);
635
        }
636
    }
615 637

  
616 638
    public void update(EditableFeature feature) throws BaseException {
617 639
    	featureStore.update(feature);

Also available in: Unified diff