Revision 46844
trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.api/src/main/java/org/gvsig/fmap/dal/AbstractStoresRepository.java | ||
---|---|---|
64 | 64 |
protected abstract UnmodifiableBasicSet<String> getMyKeySet(); |
65 | 65 |
|
66 | 66 |
protected FeatureType getMyFeatureType(String name) { |
67 |
if( StringUtils.isBlank(name) ) { |
|
68 |
return null; |
|
69 |
} |
|
67 | 70 |
if(this.featureTypes == null){ |
68 | 71 |
this.featureTypes = new HashMap<>(); |
69 | 72 |
} |
... | ... | |
300 | 303 |
|
301 | 304 |
@Override |
302 | 305 |
public FeatureType getFeatureType(String name) { |
306 |
if( StringUtils.isBlank(name) ) { |
|
307 |
return null; |
|
308 |
} |
|
303 | 309 |
FeatureType featureType = this.getMyFeatureType(name); |
304 | 310 |
if( featureType != null ) { |
305 | 311 |
return featureType; |
... | ... | |
315 | 321 |
|
316 | 322 |
@Override |
317 | 323 |
public boolean containsKey(String key) { |
318 |
DataStoreParameters parameters = this.getMyParameters(name);
|
|
324 |
DataStoreParameters parameters = this.getMyParameters(key);
|
|
319 | 325 |
if( parameters!=null ) { |
320 | 326 |
return true; |
321 | 327 |
} |
Also available in: Unified diff