Revision 24141 branches/v2_0_0_prep/libraries/libFMap_data/src/org/gvsig/fmap/data/feature/spi/memory/MemoryFeatureData.java
MemoryFeatureData.java | ||
---|---|---|
1 | 1 |
package org.gvsig.fmap.data.feature.spi.memory; |
2 | 2 |
|
3 |
import java.util.UUID; |
|
4 |
|
|
3 | 5 |
import org.gvsig.fmap.data.feature.FeatureReference; |
4 | 6 |
import org.gvsig.fmap.data.feature.FeatureType; |
5 | 7 |
import org.gvsig.fmap.data.feature.spi.DefaultFeatureData; |
... | ... | |
9 | 11 |
|
10 | 12 |
private FeatureStoreProvider store; |
11 | 13 |
private Object id; |
14 |
private boolean isNew; |
|
12 | 15 |
|
13 | 16 |
public MemoryFeatureData(FeatureStoreProvider store, FeatureType type, |
14 | 17 |
Object id) { |
15 | 18 |
super(type); |
16 | 19 |
this.store = store; |
17 | 20 |
this.id = id; |
21 |
this.isNew = false; |
|
22 |
if( id== null ) { |
|
23 |
this.id = UUID.randomUUID(); |
|
24 |
this.isNew = true; |
|
25 |
} |
|
18 | 26 |
} |
19 | 27 |
|
20 | 28 |
public FeatureStoreProvider getStore() { |
Also available in: Unified diff