Revision 20477
trunk/libraries/libDataSourceBaseDrivers/src-test/org/gvsig/data/datastores/vectorial/file/DataStoreTest.java | ||
---|---|---|
1000 | 1000 |
fs.startEditing(); |
1001 | 1001 |
if (fs.canAlterFeatureType()){ |
1002 | 1002 |
IFeatureType featureType=fs.getDefaultFeatureType(); |
1003 |
DefaultAttributeDescriptor dad=new DefaultAttributeDescriptor(); |
|
1004 |
dad.loading(); |
|
1005 |
dad.setName("Prueba1"); |
|
1006 |
dad.setDefaultValue("11p"); |
|
1007 |
dad.setSize(10); |
|
1008 |
dad.setType(IFeatureAttributeDescriptor.TYPE_STRING); |
|
1009 |
dad.stopLoading(); |
|
1010 |
fs.insert(dad); |
|
1011 |
// fs.delete((IFeatureAttributeDescriptor)featureType.get(featureType.getFieldIndex("NOMBRE")));
|
|
1003 |
// DefaultAttributeDescriptor dad=new DefaultAttributeDescriptor();
|
|
1004 |
// dad.loading();
|
|
1005 |
// dad.setName("Prueba1");
|
|
1006 |
// dad.setDefaultValue("11p");
|
|
1007 |
// dad.setSize(10);
|
|
1008 |
// dad.setType(IFeatureAttributeDescriptor.TYPE_STRING);
|
|
1009 |
// dad.stopLoading();
|
|
1010 |
// fs.insert(dad);
|
|
1011 |
// fs.delete((IFeatureAttributeDescriptor)featureType.get(featureType.getFieldIndex("Prueba1")));
|
|
1012 | 1012 |
DefaultAttributeDescriptor dad2=(DefaultAttributeDescriptor)featureType.get(featureType.getFieldIndex("TIPO")); |
1013 | 1013 |
dad2.editing(); |
1014 | 1014 |
dad2.setName("TIPO"); |
Also available in: Unified diff