Revision 20599 trunk/libraries/libDataSource/src/org/gvsig/data/vectorial/AbstractFeatureStore.java
AbstractFeatureStore.java | ||
---|---|---|
441 | 441 |
|
442 | 442 |
|
443 | 443 |
} |
444 |
public IFeature createFeature(IFeatureType type) throws IsNotFeatureSettingException { |
|
445 |
IFeature feature=new CreatedFeature(type,true); |
|
446 |
return feature; |
|
444 |
public IFeature createFeature(IFeatureType type) throws InitializeException { |
|
445 |
return this.createDefaultFeature(true); |
|
447 | 446 |
} |
448 | 447 |
|
449 |
public IFeature createDefaultFeature(boolean defaultValues){ |
|
450 |
IFeature feature=new CreatedFeature(getDefaultFeatureType(),defaultValues); |
|
448 |
public IFeature createDefaultFeature(boolean defaultValues) throws InitializeException{ |
|
449 |
IFeature feature; |
|
450 |
try { |
|
451 |
feature = new CreatedFeature(getDefaultFeatureType(),defaultValues); |
|
452 |
} catch (ReadException e) { |
|
453 |
throw new InitializeException(this.getName(),e); |
|
454 |
} |
|
451 | 455 |
return feature; |
452 | 456 |
} |
453 | 457 |
|
Also available in: Unified diff