Revision 44390 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/impl/featureset/AbstractFeatureSet.java

View differences:

AbstractFeatureSet.java
132 132
    public boolean isFromStore(DataStore store) {
133 133
        return this.getFeatureStore().equals(store);
134 134
    }    
135

  
136
    @Override
137
    public long size64() {
138
        try {
139
            return this.getSize();
140
        } catch (DataException ex) {
141
            throw new RuntimeException("Can't get size",ex);
142
        }
143
    }
144

  
145
    @Override
146
    public int size() {
147
        try {
148
            long sz = this.getSize();
149
            if( sz > Integer.MAX_VALUE ) {
150
                return Integer.MAX_VALUE;
151
            }
152
            return (int) sz;
153
        } catch (DataException ex) {
154
            throw new RuntimeException("Can't get size",ex);
155
        }
156
    }
157

  
135 158
}

Also available in: Unified diff