Revision 43056 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/DefaultFeatureStore.java

View differences:

DefaultFeatureStore.java
2153 2153
        return this;
2154 2154
    }
2155 2155

  
2156
//    public void createCache(String name, DynObject parameters)
2157
//        throws DataException {
2158
//        cache = dataManager.createFeatureCacheProvider(name, parameters);
2159
//        if (cache == null) {
2160
//            throw new CreateException("FeaureCacheProvider", null);
2161
//        }
2162
//        cache.apply(this, provider);
2163
//        provider = cache;
2164
//
2165
//        featureCount = null;
2166
//    }
2167
//
2168
//    public FeatureCache getCache() {
2169
//        return cache;
2170
//    }
2156
    public void createCache(String name, DynObject parameters)
2157
        throws DataException {
2158
        cache = dataManager.createFeatureCacheProvider(name, parameters);
2159
        if (cache == null) {
2160
            throw new CreateException("FeaureCacheProvider", null);
2161
        }
2162
        cache.apply(this, provider);
2163
        provider = cache;
2171 2164

  
2165
        featureCount = null;
2166
    }
2167

  
2168
    public FeatureCache getCache() {
2169
        return cache;
2170
    }
2171

  
2172 2172
    public void clear() {
2173 2173
        if (metadata != null) {
2174 2174
            metadata.clear();

Also available in: Unified diff