Revision 20898 trunk/libraries/libFMap_data/src/org/gvsig/data/vectorial/FeatureStore.java

View differences:

FeatureStore.java
182 182
	}
183 183

  
184 184
	public final void delete(IFeatureAttributeDescriptor attributeDescriptor) {
185
		//FIXME Comporobar que el attribute viene del Fype de este store
185 186
		if( !alterMode ) {
186 187
			throw new RuntimeException("alterMode is false");
187 188
		}
......
224 225
	}
225 226

  
226 227
	public final void update(IFeatureAttributeDescriptor attributeDescriptor) {
228
		//FIXME Comporobar que el attribute viene del Fype de este store
227 229
		if( !alterMode ) {
228 230
			throw new RuntimeException("alterMode is false");
229 231
		}
230
//		feature.validateModification(this);
231 232
		this.observable.notifyObservers(this,
232 233
				new AttributeStoreNotification(this,AttributeStoreNotification.BEFORE_UPDATE_ATTRIBUTE,attributeDescriptor)
233 234
			);
......
266 267
		if( !alterMode ) {
267 268
			throw new RuntimeException("alterMode is false");
268 269
		}
270
		// FIXME: Comprobar que la feature es de este store
269 271
		feature.validateModification(this);
270 272
		this.observable.notifyObservers(this,
271 273
				new FeatureStoreNotification(this,FeatureStoreNotification.BEFORE_INSERT,feature)
......
285 287
		if( !alterMode ) {
286 288
			throw new RuntimeException("alterMode is false");
287 289
		}
290
		//	FIXME: Comprobar que la feature es de este store
291
		feature.validateModification(this);
288 292
		this.observable.notifyObservers(this,
289 293
				new FeatureStoreNotification(this,FeatureStoreNotification.BEFORE_UPDATE,feature)
290 294
			);
......
630 634
	 * @see org.gvsig.data.vectorial.IFeatureStore#createAttributeDescriptor()
631 635
	 */
632 636
	public IFeatureAttributeDescriptor createAttributeDescriptor() {
637
		// FIXME Hay que identificar de que FType queremos crear el attributo
638
		// FIXME el Attribute lo deber?a de crea el FType
633 639
		return new AttributeDescriptor(true);
634 640
	}
635 641
}

Also available in: Unified diff