Revision 46426 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/DefaultFeatureStoreNotification.java
DefaultFeatureStoreNotification.java | ||
---|---|---|
24 | 24 |
package org.gvsig.fmap.dal.feature.impl; |
25 | 25 |
|
26 | 26 |
import java.util.Iterator; |
27 |
import org.gvsig.expressionevaluator.Expression; |
|
27 | 28 |
import org.gvsig.fmap.dal.DataSet; |
28 | 29 |
import org.gvsig.fmap.dal.DataStore; |
29 | 30 |
import org.gvsig.fmap.dal.feature.EditableFeature; |
... | ... | |
58 | 59 |
private static final int VALUE_IS_SELECTION_COMPROMISED = 12; |
59 | 60 |
private static final int VALUE_EDITING_SESSION = 13; |
60 | 61 |
private static final int VALUE_EDIT_MODE = 14; |
62 |
private static final int VALUE_EXPRESSION = 15; |
|
61 | 63 |
|
62 |
private static final int VALUES_COUNT = 15;
|
|
64 |
private static final int VALUES_COUNT = 16;
|
|
63 | 65 |
|
64 | 66 |
public DefaultFeatureStoreNotification(String type) { |
65 | 67 |
super(type, VALUES_COUNT); |
... | ... | |
73 | 75 |
} |
74 | 76 |
|
75 | 77 |
public DefaultFeatureStoreNotification(DataStore source, String type, String editingSession) { |
76 |
this(type); |
|
77 |
this.setValue(VALUE_SOURCE, source); |
|
78 |
this(source, type); |
|
78 | 79 |
this.setValue(VALUE_EDITING_SESSION, editingSession); |
79 | 80 |
} |
80 | 81 |
|
81 | 82 |
public DefaultFeatureStoreNotification(DataStore source, String type, String editingSession, int editMode) { |
82 |
this(type); |
|
83 |
this.setValue(VALUE_SOURCE, source); |
|
84 |
this.setValue(VALUE_EDITING_SESSION, editingSession); |
|
83 |
this(source, type, editingSession); |
|
85 | 84 |
this.setValue(VALUE_EDIT_MODE, editMode); |
86 | 85 |
} |
87 | 86 |
|
88 |
public DefaultFeatureStoreNotification(DataStore source, String type, Feature feature) { |
|
89 |
this(source, type); |
|
87 |
public DefaultFeatureStoreNotification(DataStore source, String type, String editingSession, int editMode, Feature feature) {
|
|
88 |
this(source, type, editingSession, editMode);
|
|
90 | 89 |
this.setValue(VALUE_FEATURE, feature); |
91 | 90 |
} |
92 | 91 |
|
93 |
public DefaultFeatureStoreNotification(DataStore source, String type, Command command) { |
|
94 |
this(source, type); |
|
95 |
this.setValue(VALUE_SOURCE, source); |
|
92 |
public DefaultFeatureStoreNotification(DataStore source, String type, String editingSession, int editMode, Expression expression) { |
|
93 |
this(source, type, editingSession, editMode); |
|
94 |
this.setValue(VALUE_EXPRESSION, expression); |
|
95 |
} |
|
96 |
|
|
97 |
public DefaultFeatureStoreNotification(DataStore source, String type, String editingSession, int editMode, Command command) { |
|
98 |
this(source, type, editingSession, editMode); |
|
96 | 99 |
this.setValue(VALUE_COMMAND, command); |
97 | 100 |
} |
98 | 101 |
|
... | ... | |
108 | 111 |
this.setValue(VALUE_COLLECTION_RESULT, collection); |
109 | 112 |
} |
110 | 113 |
|
111 |
public DefaultFeatureStoreNotification(DataStore source, String type, |
|
114 |
public DefaultFeatureStoreNotification(DataStore source, String type, String editingSession, int editMode,
|
|
112 | 115 |
EditableFeatureType featureType) { |
113 |
this(source, type); |
|
116 |
this(source, type, editingSession, editMode);
|
|
114 | 117 |
this.setValue(VALUE_FEATURETYPE, featureType); |
115 | 118 |
} |
116 | 119 |
|
... | ... | |
119 | 122 |
this.setValue(VALUE_FEATURE_INDEX, index); |
120 | 123 |
} |
121 | 124 |
|
122 |
DefaultFeatureStoreNotification(DataStore source, String type, |
|
123 |
String editingSession, |
|
125 |
DefaultFeatureStoreNotification(DataStore source, String type, String editingSession, int editMode, |
|
124 | 126 |
Iterator<FeatureReference> deleteds, |
125 | 127 |
Iterator<EditableFeature> inserteds, |
126 | 128 |
Iterator<EditableFeature> updateds, |
127 | 129 |
Iterator<FeatureType.FeatureTypeChanged> featureTypesChanged, |
128 | 130 |
boolean isSelectionCompromised |
129 | 131 |
) { |
130 |
this(source, type); |
|
132 |
this(source, type, editingSession, editMode);
|
|
131 | 133 |
this.setValue(VALUE_DELETEDS_FEATURES, deleteds); |
132 | 134 |
this.setValue(VALUE_INSERTEDS_FEATURES, inserteds); |
133 | 135 |
this.setValue(VALUE_UPDATEDS_FEATURES, updateds); |
134 | 136 |
this.setValue(VALUE_CHANGEDS_FEATURETYPES, featureTypesChanged); |
135 | 137 |
this.setValue(VALUE_IS_SELECTION_COMPROMISED, isSelectionCompromised); |
136 |
this.setValue(VALUE_EDITING_SESSION, editingSession); |
|
137 | 138 |
} |
138 | 139 |
|
139 | 140 |
@Override |
... | ... | |
213 | 214 |
public Iterator<FeatureTypeChanged> getChangedsFeatureTypes() { |
214 | 215 |
return (Iterator<FeatureTypeChanged>) this.getValue(VALUE_CHANGEDS_FEATURETYPES); |
215 | 216 |
} |
217 |
|
|
218 |
@Override |
|
219 |
public Expression getExpression() { |
|
220 |
return (Expression) this.getValue(VALUE_EXPRESSION); |
|
221 |
} |
|
216 | 222 |
|
217 |
|
|
218 | 223 |
} |
Also available in: Unified diff