Revision 43739 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.impl/src/main/java/org/gvsig/fmap/dal/feature/impl/DefaultEditableFeatureType.java
DefaultEditableFeatureType.java | ||
---|---|---|
25 | 25 |
import java.text.MessageFormat; |
26 | 26 |
|
27 | 27 |
import java.util.Iterator; |
28 |
import java.util.zip.CRC32; |
|
29 | 28 |
|
30 | 29 |
import org.gvsig.fmap.dal.DataTypes; |
31 | 30 |
import org.gvsig.fmap.dal.exception.DataListException; |
... | ... | |
33 | 32 |
import org.gvsig.fmap.dal.feature.EditableFeatureType; |
34 | 33 |
import org.gvsig.fmap.dal.feature.FeatureAttributeDescriptor; |
35 | 34 |
import org.gvsig.fmap.dal.feature.FeatureAttributeEmulator; |
35 |
import org.gvsig.fmap.dal.feature.FeatureStore; |
|
36 | 36 |
import org.gvsig.fmap.dal.feature.FeatureType; |
37 | 37 |
import org.gvsig.fmap.dal.feature.exception.FeatureTypeIntegrityException; |
38 | 38 |
import org.gvsig.fmap.dal.feature.exception.UnsupportedDataTypeException; |
... | ... | |
50 | 50 |
private boolean hasStrongChanges; |
51 | 51 |
private DefaultFeatureType source; |
52 | 52 |
|
53 |
public DefaultEditableFeatureType() { |
|
54 |
super(); |
|
53 |
public DefaultEditableFeatureType(FeatureStore store) {
|
|
54 |
super(store);
|
|
55 | 55 |
this.hasStrongChanges = false; |
56 | 56 |
this.source = null; |
57 | 57 |
} |
58 | 58 |
|
59 |
public DefaultEditableFeatureType(String id) { |
|
60 |
super(id); |
|
59 |
public DefaultEditableFeatureType(FeatureStore store, String id) {
|
|
60 |
super(store, id);
|
|
61 | 61 |
this.hasStrongChanges = false; |
62 | 62 |
this.source = null; |
63 | 63 |
} |
... | ... | |
72 | 72 |
this.source = other; |
73 | 73 |
} |
74 | 74 |
|
75 |
@Override |
|
75 | 76 |
protected void intitalizeAddAttibute(DefaultFeatureAttributeDescriptor attr) { |
76 | 77 |
super.add(new DefaultEditableFeatureAttributeDescriptor(attr)); |
77 | 78 |
} |
... | ... | |
156 | 157 |
} |
157 | 158 |
|
158 | 159 |
private EditableFeatureAttributeDescriptor add(String name, int type, boolean updateHasStrongChanges) { |
159 |
DefaultEditableFeatureAttributeDescriptor attr = new DefaultEditableFeatureAttributeDescriptor(); |
|
160 |
DefaultEditableFeatureAttributeDescriptor attr = new DefaultEditableFeatureAttributeDescriptor(this);
|
|
160 | 161 |
Iterator iter = this.iterator(); |
161 | 162 |
while (iter.hasNext()) { |
162 | 163 |
EditableFeatureAttributeDescriptor descriptor = (EditableFeatureAttributeDescriptor) iter.next(); |
Also available in: Unified diff