Revision 47779 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.api/src/test/java/org/gvsig/fmap/dal/feature/DummyFetureStore.java
DummyFetureStore.java | ||
---|---|---|
52 | 52 |
public class DummyFetureStore implements FeatureStore { |
53 | 53 |
|
54 | 54 |
private int mode; |
55 |
private int submode; |
|
55 | 56 |
|
56 | 57 |
@Override |
57 | 58 |
public Object clone() throws CloneNotSupportedException { |
... | ... | |
140 | 141 |
|
141 | 142 |
@Override |
142 | 143 |
public void edit() throws DataException { |
143 |
this.mode = MODE_FULLEDIT;
|
|
144 |
this.edit(MODE_FULLEDIT);
|
|
144 | 145 |
} |
145 | 146 |
|
146 | 147 |
@Override |
147 | 148 |
public void edit(int mode) throws DataException { |
149 |
this.edit(MODE_FULLEDIT, SUBMODE_NONE); |
|
150 |
} |
|
151 |
|
|
152 |
@Override |
|
153 |
public void edit(int mode, int submode) throws DataException { |
|
148 | 154 |
this.mode = mode; |
155 |
this.submode = submode; |
|
149 | 156 |
} |
150 | 157 |
|
151 | 158 |
@Override |
152 | 159 |
public int getMode() { |
153 | 160 |
return this.mode; |
154 | 161 |
} |
155 |
|
|
156 |
|
|
157 | 162 |
|
158 | 163 |
@Override |
164 |
public int getSubmode() { |
|
165 |
return this.submode; |
|
166 |
} |
|
167 |
|
|
168 |
@Override |
|
159 | 169 |
public void cancelEditing() throws DataException { |
160 | 170 |
this.mode = MODE_QUERY; |
161 | 171 |
} |
Also available in: Unified diff