Revision 24019 branches/v2_0_0_prep/libraries/libFMap_data/src/org/gvsig/fmap/data/feature/impl/DefaultFeatureStore.java

View differences:

DefaultFeatureStore.java
40 40
import org.gvsig.fmap.data.feature.exceptions.CreateFeatureException;
41 41
import org.gvsig.fmap.data.feature.exceptions.DataExportException;
42 42
import org.gvsig.fmap.data.feature.exceptions.DataIndexException;
43
import org.gvsig.fmap.data.feature.exceptions.FinishEditingException;
44
import org.gvsig.fmap.data.feature.exceptions.GetFeatureTypeException;
43 45
import org.gvsig.fmap.data.feature.exceptions.IllegalFeatureException;
44 46
import org.gvsig.fmap.data.feature.exceptions.IllegalFeatureTypeException;
45
import org.gvsig.fmap.data.feature.exceptions.FinishEditingException;
46
import org.gvsig.fmap.data.feature.exceptions.GetFeatureTypeException;
47 47
import org.gvsig.fmap.data.feature.exceptions.NeedEditingModeException;
48 48
import org.gvsig.fmap.data.feature.exceptions.NoNewFeatureInsertException;
49 49
import org.gvsig.fmap.data.feature.exceptions.NullFeatureTypeException;
......
88 88

  
89 89
final public class DefaultFeatureStore implements
90 90
		FeatureStoreProviderServices,
91
		Observer {
91
		Observer /* , Persistent */{
92 92

  
93 93
	private DataStoreParameters parameters = null;
94 94
	private FeatureSelection selection;
......
353 353
		return xml;
354 354
	}
355 355

  
356
	/*
357

  
358
	public void getState(PersistentState state) throws PersistenceException {
359
		state.setTheClass(this);
360
		state.set("dataStoreName", this.getName());
361
		state.set("parameters", this.parameters);
362
		state.set("provider", this.provider);
363
		state.set("selection", this.selection);
364
	}
365

  
366
	public void setState(PersistentState state) throws PersistenceException {
367
		if (this.provider != null) {
368
			throw new PersistenceException(null);
369
		}
370
		if (this.getManager() == null) {
371
			this.dataManager = (DefaultDataManager) DALLocator.getDataManager();
372
		}
373

  
374
		DataStoreParameters params = (DataStoreParameters) state.get("parameters");
375
		FeatureStoreProvider provider = (FeatureStoreProvider) state.get("provider");
376

  
377
		initialize(this.getManager(), params, provider);
378

  
379
		setSelection((FeatureSelection) state.get("selection"));
380
	}
381
	*/
382

  
356 383
	//
357 384
	// ====================================================================
358 385
	// Gestion de la seleccion

Also available in: Unified diff