svn-gvsig-desktop / 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 @ 47784
History | View | Annotate | Download (21.6 KB)
1 | 42928 | jjdelcerro | |
---|---|---|---|
2 | package org.gvsig.fmap.dal.feature; |
||
3 | |||
4 | import java.util.Collection; |
||
5 | 45425 | jjdelcerro | import java.util.Collections; |
6 | 42928 | jjdelcerro | import java.util.Iterator; |
7 | import java.util.List; |
||
8 | 45425 | jjdelcerro | import java.util.Map; |
9 | 42928 | jjdelcerro | import java.util.Set; |
10 | 47784 | jjdelcerro | import java.util.function.Predicate; |
11 | 44655 | jjdelcerro | import javax.json.JsonObject; |
12 | 43152 | fdiaz | |
13 | 42928 | jjdelcerro | import org.cresques.cts.IProjection; |
14 | 44023 | jjdelcerro | import org.gvsig.expressionevaluator.Expression; |
15 | 44042 | jjdelcerro | import org.gvsig.expressionevaluator.ExpressionBuilder; |
16 | 43152 | fdiaz | |
17 | 42928 | jjdelcerro | import org.gvsig.fmap.dal.DataQuery; |
18 | import org.gvsig.fmap.dal.DataServerExplorer; |
||
19 | import org.gvsig.fmap.dal.DataSet; |
||
20 | 44253 | jjdelcerro | import org.gvsig.fmap.dal.DataStore; |
21 | 42928 | jjdelcerro | import org.gvsig.fmap.dal.DataStoreParameters; |
22 | 43152 | fdiaz | import org.gvsig.fmap.dal.DataStoreProviderFactory; |
23 | 44259 | jjdelcerro | import org.gvsig.fmap.dal.StoresRepository; |
24 | 42928 | jjdelcerro | import org.gvsig.fmap.dal.exception.DataException; |
25 | import org.gvsig.fmap.dal.exception.ValidateDataParametersException; |
||
26 | import org.gvsig.fmap.dal.feature.exception.NeedEditingModeException; |
||
27 | 43371 | fdiaz | import org.gvsig.fmap.geom.SpatialIndex; |
28 | 42928 | jjdelcerro | import org.gvsig.fmap.geom.primitive.Envelope; |
29 | import org.gvsig.metadata.exceptions.MetadataException; |
||
30 | import org.gvsig.timesupport.Interval; |
||
31 | import org.gvsig.tools.dynobject.DynClass; |
||
32 | import org.gvsig.tools.dynobject.DynObject; |
||
33 | import org.gvsig.tools.dynobject.exception.DynFieldNotFoundException; |
||
34 | import org.gvsig.tools.dynobject.exception.DynMethodException; |
||
35 | import org.gvsig.tools.exception.BaseException; |
||
36 | import org.gvsig.tools.observer.Observer; |
||
37 | import org.gvsig.tools.persistence.PersistentState; |
||
38 | import org.gvsig.tools.persistence.exception.PersistenceException; |
||
39 | import org.gvsig.tools.undo.RedoException; |
||
40 | import org.gvsig.tools.undo.UndoException; |
||
41 | 44297 | jjdelcerro | import org.gvsig.tools.resourcesstorage.ResourcesStorage; |
42 | 45425 | jjdelcerro | import org.gvsig.tools.util.GetItemWithSizeIsEmptyAndIterator64; |
43 | 44259 | jjdelcerro | import org.gvsig.tools.util.UnmodifiableBasicMap; |
44 | 42928 | jjdelcerro | import org.gvsig.tools.visitor.Visitor; |
45 | |||
46 | /**
|
||
47 | * This class is intended to be used in test.
|
||
48 | * Use it directly or extend it and overwrite the methods you need.
|
||
49 | * This class is maintained as part of the DAL API.
|
||
50 | */
|
||
51 | |||
52 | |||
53 | public class DummyFetureStore implements FeatureStore { |
||
54 | 45482 | fdiaz | |
55 | private int mode; |
||
56 | 47779 | fdiaz | private int submode; |
57 | 42928 | jjdelcerro | |
58 | @Override
|
||
59 | public Object clone() throws CloneNotSupportedException { |
||
60 | return super.clone(); |
||
61 | } |
||
62 | |||
63 | @Override
|
||
64 | public boolean allowWrite() { |
||
65 | return false; |
||
66 | } |
||
67 | |||
68 | @Override
|
||
69 | public FeatureType getDefaultFeatureType() throws DataException { |
||
70 | return null; |
||
71 | } |
||
72 | |||
73 | @Override
|
||
74 | public FeatureType getFeatureType(String featureTypeId) throws DataException { |
||
75 | return null; |
||
76 | } |
||
77 | |||
78 | @Override
|
||
79 | public List getFeatureTypes() throws DataException { |
||
80 | return null; |
||
81 | } |
||
82 | |||
83 | @Override
|
||
84 | public DataStoreParameters getParameters() {
|
||
85 | return null; |
||
86 | } |
||
87 | |||
88 | @Override
|
||
89 | public boolean canWriteGeometry(int gvSIGgeometryType) throws DataException { |
||
90 | return false; |
||
91 | } |
||
92 | |||
93 | @Override
|
||
94 | public Envelope getEnvelope() throws DataException { |
||
95 | return null; |
||
96 | } |
||
97 | |||
98 | @Override
|
||
99 | public IProjection getSRSDefaultGeometry() throws DataException { |
||
100 | return null; |
||
101 | } |
||
102 | |||
103 | @Override
|
||
104 | 45482 | fdiaz | public void export(DataServerExplorer explorer, String provider, NewFeatureStoreParameters params, String name) throws DataException { |
105 | 42928 | jjdelcerro | |
106 | } |
||
107 | |||
108 | @Override
|
||
109 | public FeatureSet getFeatureSet() throws DataException { |
||
110 | return null; |
||
111 | } |
||
112 | |||
113 | @Override
|
||
114 | public FeatureSet getFeatureSet(FeatureQuery featureQuery) throws DataException { |
||
115 | return null; |
||
116 | } |
||
117 | |||
118 | @Override
|
||
119 | public void getFeatureSet(FeatureQuery featureQuery, Observer observer) throws DataException { |
||
120 | |||
121 | } |
||
122 | |||
123 | @Override
|
||
124 | public void getFeatureSet(Observer observer) throws DataException { |
||
125 | |||
126 | } |
||
127 | |||
128 | @Override
|
||
129 | public List<Feature> getFeatures(FeatureQuery query, int pageSize) { |
||
130 | return null; |
||
131 | } |
||
132 | |||
133 | @Override
|
||
134 | public Feature getFeatureByReference(FeatureReference reference) throws DataException { |
||
135 | return null; |
||
136 | } |
||
137 | |||
138 | @Override
|
||
139 | public Feature getFeatureByReference(FeatureReference reference, FeatureType featureType) throws DataException { |
||
140 | return null; |
||
141 | } |
||
142 | |||
143 | @Override
|
||
144 | public void edit() throws DataException { |
||
145 | 47779 | fdiaz | this.edit(MODE_FULLEDIT);
|
146 | 42928 | jjdelcerro | } |
147 | |||
148 | @Override
|
||
149 | public void edit(int mode) throws DataException { |
||
150 | 47779 | fdiaz | this.edit(MODE_FULLEDIT, SUBMODE_NONE);
|
151 | } |
||
152 | |||
153 | @Override
|
||
154 | public void edit(int mode, int submode) throws DataException { |
||
155 | 45482 | fdiaz | this.mode = mode;
|
156 | 47779 | fdiaz | this.submode = submode;
|
157 | 45482 | fdiaz | } |
158 | 42928 | jjdelcerro | |
159 | 45482 | fdiaz | @Override
|
160 | public int getMode() { |
||
161 | return this.mode; |
||
162 | 42928 | jjdelcerro | } |
163 | |||
164 | @Override
|
||
165 | 47779 | fdiaz | public int getSubmode() { |
166 | return this.submode; |
||
167 | } |
||
168 | |||
169 | @Override
|
||
170 | 42928 | jjdelcerro | public void cancelEditing() throws DataException { |
171 | 45482 | fdiaz | this.mode = MODE_QUERY;
|
172 | 42928 | jjdelcerro | } |
173 | |||
174 | @Override
|
||
175 | public void finishEditing() throws DataException { |
||
176 | 45482 | fdiaz | this.mode = MODE_QUERY;
|
177 | 42928 | jjdelcerro | } |
178 | |||
179 | @Override
|
||
180 | public void commitChanges() throws DataException { |
||
181 | |||
182 | } |
||
183 | |||
184 | @Override
|
||
185 | public boolean canCommitChanges() throws DataException { |
||
186 | return false; |
||
187 | } |
||
188 | |||
189 | @Override
|
||
190 | public boolean isEditing() { |
||
191 | return false; |
||
192 | } |
||
193 | |||
194 | @Override
|
||
195 | public boolean isAppending() { |
||
196 | return false; |
||
197 | } |
||
198 | |||
199 | @Override
|
||
200 | public void update(EditableFeatureType featureType) throws DataException { |
||
201 | |||
202 | } |
||
203 | |||
204 | @Override
|
||
205 | public void update(EditableFeature feature) throws DataException { |
||
206 | |||
207 | } |
||
208 | |||
209 | @Override
|
||
210 | 45425 | jjdelcerro | public void update(Object... parameters) throws DataException { |
211 | |||
212 | } |
||
213 | |||
214 | @Override
|
||
215 | 42928 | jjdelcerro | public void delete(Feature feature) throws DataException { |
216 | |||
217 | } |
||
218 | |||
219 | @Override
|
||
220 | public void insert(EditableFeature feature) throws DataException { |
||
221 | |||
222 | } |
||
223 | |||
224 | @Override
|
||
225 | public EditableFeature createNewFeature() throws DataException { |
||
226 | return null; |
||
227 | } |
||
228 | |||
229 | @Override
|
||
230 | public EditableFeature createNewFeature(FeatureType type, Feature defaultValues) throws DataException { |
||
231 | return null; |
||
232 | } |
||
233 | |||
234 | @Override
|
||
235 | public EditableFeature createNewFeature(FeatureType type, boolean defaultValues) throws DataException { |
||
236 | return null; |
||
237 | } |
||
238 | |||
239 | @Override
|
||
240 | public EditableFeature createNewFeature(boolean defaultValues) throws DataException { |
||
241 | return null; |
||
242 | } |
||
243 | |||
244 | @Override
|
||
245 | public EditableFeature createNewFeature(Feature defaultValues) throws DataException { |
||
246 | return null; |
||
247 | } |
||
248 | |||
249 | @Override
|
||
250 | 44655 | jjdelcerro | public EditableFeature createNewFeature(JsonObject defaultValues) throws DataException { |
251 | return null; |
||
252 | } |
||
253 | |||
254 | @Override
|
||
255 | 42928 | jjdelcerro | public boolean isAppendModeSupported() { |
256 | return false; |
||
257 | } |
||
258 | |||
259 | @Override
|
||
260 | public void beginEditingGroup(String description) throws NeedEditingModeException { |
||
261 | |||
262 | } |
||
263 | |||
264 | @Override
|
||
265 | public void endEditingGroup() throws NeedEditingModeException { |
||
266 | |||
267 | } |
||
268 | |||
269 | @Override
|
||
270 | public FeatureIndex createIndex(FeatureType featureType, String attributeName, String indexName) throws DataException { |
||
271 | return null; |
||
272 | } |
||
273 | |||
274 | @Override
|
||
275 | public FeatureIndex createIndex(String indexTypeName, FeatureType featureType, String attributeName, String indexName) throws DataException { |
||
276 | return null; |
||
277 | } |
||
278 | |||
279 | @Override
|
||
280 | public FeatureIndex createIndex(FeatureType featureType, String attributeName, String indexName, Observer observer) throws DataException { |
||
281 | return null; |
||
282 | } |
||
283 | |||
284 | @Override
|
||
285 | public FeatureIndex createIndex(String indexTypeName, FeatureType featureType, String attributeName, String indexName, Observer observer) throws DataException { |
||
286 | return null; |
||
287 | } |
||
288 | |||
289 | @Override
|
||
290 | public FeatureIndexes getIndexes() {
|
||
291 | return null; |
||
292 | } |
||
293 | |||
294 | @Override
|
||
295 | public void setSelection(FeatureSet selection) throws DataException { |
||
296 | |||
297 | } |
||
298 | |||
299 | @Override
|
||
300 | public FeatureSelection createFeatureSelection() throws DataException { |
||
301 | return null; |
||
302 | } |
||
303 | |||
304 | @Override
|
||
305 | public FeatureSelection getFeatureSelection() throws DataException { |
||
306 | return null; |
||
307 | } |
||
308 | |||
309 | @Override
|
||
310 | public boolean isLocksSupported() { |
||
311 | return false; |
||
312 | } |
||
313 | |||
314 | @Override
|
||
315 | public FeatureLocks getLocks() throws DataException { |
||
316 | return null; |
||
317 | } |
||
318 | |||
319 | @Override
|
||
320 | public FeatureStoreTransforms getTransforms() {
|
||
321 | return null; |
||
322 | } |
||
323 | |||
324 | @Override
|
||
325 | public FeatureQuery createFeatureQuery() {
|
||
326 | return null; |
||
327 | } |
||
328 | |||
329 | @Override
|
||
330 | public long getFeatureCount() throws DataException { |
||
331 | return 0; |
||
332 | } |
||
333 | |||
334 | 43020 | jjdelcerro | // @Override
|
335 | // public void createCache(String name, DynObject parameters) throws DataException {
|
||
336 | //
|
||
337 | // }
|
||
338 | //
|
||
339 | // @Override
|
||
340 | // public FeatureCache getCache() {
|
||
341 | // return null;
|
||
342 | // }
|
||
343 | 42928 | jjdelcerro | |
344 | @Override
|
||
345 | public boolean isKnownEnvelope() { |
||
346 | return false; |
||
347 | } |
||
348 | |||
349 | @Override
|
||
350 | public boolean hasRetrievedFeaturesLimit() { |
||
351 | return false; |
||
352 | } |
||
353 | |||
354 | @Override
|
||
355 | public int getRetrievedFeaturesLimit() { |
||
356 | return 0; |
||
357 | } |
||
358 | |||
359 | @Override
|
||
360 | public Feature getFeature(DynObject dynobject) {
|
||
361 | return null; |
||
362 | } |
||
363 | |||
364 | @Override
|
||
365 | public Iterator iterator() { |
||
366 | return null; |
||
367 | } |
||
368 | |||
369 | @Override
|
||
370 | public String getName() { |
||
371 | return null; |
||
372 | } |
||
373 | |||
374 | @Override
|
||
375 | public String getFullName() { |
||
376 | return null; |
||
377 | } |
||
378 | |||
379 | @Override
|
||
380 | public String getProviderName() { |
||
381 | return null; |
||
382 | } |
||
383 | |||
384 | @Override
|
||
385 | public void refresh() throws DataException { |
||
386 | |||
387 | } |
||
388 | |||
389 | @Override
|
||
390 | public DataSet getDataSet() throws DataException { |
||
391 | return null; |
||
392 | } |
||
393 | |||
394 | @Override
|
||
395 | public DataSet getDataSet(DataQuery dataQuery) throws DataException { |
||
396 | return null; |
||
397 | } |
||
398 | |||
399 | @Override
|
||
400 | public void accept(Visitor visitor) throws BaseException { |
||
401 | |||
402 | } |
||
403 | |||
404 | @Override
|
||
405 | public void accept(Visitor visitor, DataQuery dataQuery) throws BaseException { |
||
406 | |||
407 | } |
||
408 | |||
409 | @Override
|
||
410 | public void getDataSet(Observer observer) throws DataException { |
||
411 | |||
412 | } |
||
413 | |||
414 | @Override
|
||
415 | public void getDataSet(DataQuery dataQuery, Observer observer) throws DataException { |
||
416 | |||
417 | } |
||
418 | |||
419 | @Override
|
||
420 | public DataSet getSelection() throws DataException { |
||
421 | return null; |
||
422 | } |
||
423 | |||
424 | @Override
|
||
425 | public void setSelection(DataSet selection) throws DataException { |
||
426 | |||
427 | } |
||
428 | |||
429 | @Override
|
||
430 | public DataSet createSelection() throws DataException { |
||
431 | return null; |
||
432 | } |
||
433 | |||
434 | @Override
|
||
435 | public DataServerExplorer getExplorer() throws DataException, ValidateDataParametersException { |
||
436 | return null; |
||
437 | } |
||
438 | |||
439 | @Override
|
||
440 | public DataQuery createQuery() {
|
||
441 | return null; |
||
442 | } |
||
443 | |||
444 | @Override
|
||
445 | public Interval getInterval() {
|
||
446 | return null; |
||
447 | } |
||
448 | |||
449 | @Override
|
||
450 | public Collection getTimes() { |
||
451 | return null; |
||
452 | } |
||
453 | |||
454 | @Override
|
||
455 | public Collection getTimes(Interval interval) { |
||
456 | return null; |
||
457 | } |
||
458 | |||
459 | @Override
|
||
460 | public void disableNotifications() { |
||
461 | |||
462 | } |
||
463 | |||
464 | @Override
|
||
465 | public void enableNotifications() { |
||
466 | |||
467 | } |
||
468 | |||
469 | @Override
|
||
470 | public void beginComplexNotification() { |
||
471 | |||
472 | } |
||
473 | |||
474 | @Override
|
||
475 | public void endComplexNotification() { |
||
476 | |||
477 | } |
||
478 | |||
479 | @Override
|
||
480 | public void addObserver(Observer obsrvr) { |
||
481 | |||
482 | } |
||
483 | |||
484 | @Override
|
||
485 | public void deleteObserver(Observer obsrvr) { |
||
486 | |||
487 | } |
||
488 | |||
489 | @Override
|
||
490 | public void deleteObservers() { |
||
491 | |||
492 | } |
||
493 | |||
494 | @Override
|
||
495 | public void saveToState(PersistentState ps) throws PersistenceException { |
||
496 | |||
497 | } |
||
498 | |||
499 | @Override
|
||
500 | public void loadFromState(PersistentState ps) throws PersistenceException { |
||
501 | |||
502 | } |
||
503 | |||
504 | @Override
|
||
505 | public Object getMetadataID() throws MetadataException { |
||
506 | return null; |
||
507 | } |
||
508 | |||
509 | @Override
|
||
510 | public String getMetadataName() throws MetadataException { |
||
511 | return null; |
||
512 | } |
||
513 | |||
514 | @Override
|
||
515 | public Set getMetadataChildren() throws MetadataException { |
||
516 | return null; |
||
517 | } |
||
518 | |||
519 | @Override
|
||
520 | public DynClass getDynClass() {
|
||
521 | return null; |
||
522 | } |
||
523 | |||
524 | @Override
|
||
525 | public void implement(DynClass dc) { |
||
526 | |||
527 | } |
||
528 | |||
529 | @Override
|
||
530 | public void delegate(DynObject d) { |
||
531 | |||
532 | } |
||
533 | |||
534 | @Override
|
||
535 | public Object getDynValue(String string) throws DynFieldNotFoundException { |
||
536 | return null; |
||
537 | } |
||
538 | |||
539 | @Override
|
||
540 | public void setDynValue(String string, Object o) throws DynFieldNotFoundException { |
||
541 | |||
542 | } |
||
543 | |||
544 | @Override
|
||
545 | public boolean hasDynValue(String string) { |
||
546 | return false; |
||
547 | } |
||
548 | |||
549 | @Override
|
||
550 | public Object invokeDynMethod(String string, Object[] os) throws DynMethodException { |
||
551 | return null; |
||
552 | } |
||
553 | |||
554 | @Override
|
||
555 | public Object invokeDynMethod(int i, Object[] os) throws DynMethodException { |
||
556 | return null; |
||
557 | } |
||
558 | |||
559 | @Override
|
||
560 | public void clear() { |
||
561 | |||
562 | } |
||
563 | |||
564 | @Override
|
||
565 | public void dispose() { |
||
566 | |||
567 | } |
||
568 | |||
569 | @Override
|
||
570 | public void undo() throws UndoException { |
||
571 | |||
572 | } |
||
573 | |||
574 | @Override
|
||
575 | public void undo(int i) throws UndoException { |
||
576 | |||
577 | } |
||
578 | |||
579 | @Override
|
||
580 | public void redo() throws RedoException { |
||
581 | |||
582 | } |
||
583 | |||
584 | @Override
|
||
585 | public void redo(int i) throws RedoException { |
||
586 | |||
587 | } |
||
588 | |||
589 | @Override
|
||
590 | public List getUndoInfos() { |
||
591 | return null; |
||
592 | } |
||
593 | |||
594 | @Override
|
||
595 | public List getRedoInfos() { |
||
596 | return null; |
||
597 | } |
||
598 | |||
599 | @Override
|
||
600 | public boolean canUndo() { |
||
601 | return false; |
||
602 | } |
||
603 | |||
604 | @Override
|
||
605 | public boolean canRedo() { |
||
606 | return false; |
||
607 | } |
||
608 | |||
609 | 43020 | jjdelcerro | @Override
|
610 | public List<Feature> getFeatures() { |
||
611 | return null; |
||
612 | 43152 | fdiaz | } |
613 | 43020 | jjdelcerro | |
614 | 43057 | jjdelcerro | @Override
|
615 | public void createCache(String name, DynObject parameters) throws DataException { |
||
616 | |||
617 | } |
||
618 | |||
619 | @Override
|
||
620 | public FeatureCache getCache() {
|
||
621 | return null; |
||
622 | } |
||
623 | |||
624 | 43152 | fdiaz | @Override
|
625 | public void useCache(String providerName, DynObject parameters) throws DataException { |
||
626 | throw new UnsupportedOperationException(); |
||
627 | } |
||
628 | |||
629 | @Override
|
||
630 | 43190 | jjdelcerro | public DataStoreProviderFactory getProviderFactory() {
|
631 | 43152 | fdiaz | return null; |
632 | } |
||
633 | |||
634 | 43215 | jjdelcerro | @Override
|
635 | public boolean isBroken() { |
||
636 | return false; |
||
637 | } |
||
638 | |||
639 | @Override
|
||
640 | public Throwable getBreakingsCause() { |
||
641 | return null; |
||
642 | } |
||
643 | |||
644 | 43246 | jjdelcerro | @Override
|
645 | public boolean hasDynMethod(String name) { |
||
646 | return false; |
||
647 | } |
||
648 | |||
649 | 43371 | fdiaz | @Override
|
650 | public SpatialIndex wrapSpatialIndex(SpatialIndex index) {
|
||
651 | return null; |
||
652 | } |
||
653 | |||
654 | 43521 | jjdelcerro | @Override
|
655 | public ExpressionBuilder createExpressionBuilder() {
|
||
656 | return null; |
||
657 | } |
||
658 | |||
659 | @Override
|
||
660 | public ExpressionBuilder createExpression() {
|
||
661 | return createExpressionBuilder();
|
||
662 | } |
||
663 | |||
664 | 43540 | jjdelcerro | @Override
|
665 | public FeatureSet getFeatureSet(String filter) throws DataException { |
||
666 | return null; |
||
667 | } |
||
668 | |||
669 | @Override
|
||
670 | public FeatureSet getFeatureSet(String filter, String sortBy) throws DataException { |
||
671 | return null; |
||
672 | } |
||
673 | |||
674 | @Override
|
||
675 | public FeatureSet getFeatureSet(String filter, String sortBy, boolean asc) throws DataException { |
||
676 | return null; |
||
677 | } |
||
678 | 43558 | jjdelcerro | |
679 | @Override
|
||
680 | public List<Feature> getFeatures(FeatureQuery query) { |
||
681 | 44023 | jjdelcerro | return null; |
682 | 43558 | jjdelcerro | } |
683 | 43628 | jjdelcerro | |
684 | @Override
|
||
685 | public List<Feature> getFeatures(String filter) { |
||
686 | 44023 | jjdelcerro | return null; |
687 | 43628 | jjdelcerro | } |
688 | |||
689 | @Override
|
||
690 | public List<Feature> getFeatures(String filter, String sortBy) { |
||
691 | 44023 | jjdelcerro | return null; |
692 | 43628 | jjdelcerro | } |
693 | |||
694 | @Override
|
||
695 | public List<Feature> getFeatures(String filter, String sortBy, boolean asc) { |
||
696 | 44023 | jjdelcerro | return null; |
697 | 43628 | jjdelcerro | } |
698 | |||
699 | @Override
|
||
700 | public Feature findFirst(String filter) throws DataException { |
||
701 | 44023 | jjdelcerro | return null; |
702 | 43628 | jjdelcerro | } |
703 | |||
704 | @Override
|
||
705 | public Feature findFirst(String filter, String sortBy) throws DataException { |
||
706 | 44023 | jjdelcerro | return null; |
707 | 43628 | jjdelcerro | } |
708 | |||
709 | @Override
|
||
710 | public Feature findFirst(String filter, String sortBy, boolean asc) throws DataException { |
||
711 | 44023 | jjdelcerro | return null; |
712 | 43628 | jjdelcerro | } |
713 | 43832 | jjdelcerro | |
714 | @Override
|
||
715 | public FeatureReference getFeatureReference(String code) { |
||
716 | 44023 | jjdelcerro | return null; |
717 | 43832 | jjdelcerro | } |
718 | |||
719 | 44023 | jjdelcerro | @Override
|
720 | public FeatureSet getFeatureSet(Expression filter) throws DataException { |
||
721 | return null; |
||
722 | } |
||
723 | |||
724 | @Override
|
||
725 | public FeatureSet getFeatureSet(Expression filter, String sortBy) throws DataException { |
||
726 | return null; |
||
727 | } |
||
728 | |||
729 | @Override
|
||
730 | public FeatureSet getFeatureSet(Expression filter, String sortBy, boolean asc) throws DataException { |
||
731 | return null; |
||
732 | } |
||
733 | |||
734 | @Override
|
||
735 | public List<Feature> getFeatures(Expression filter) { |
||
736 | return null; |
||
737 | } |
||
738 | |||
739 | @Override
|
||
740 | public List<Feature> getFeatures(Expression filter, String sortBy) { |
||
741 | return null; |
||
742 | } |
||
743 | |||
744 | @Override
|
||
745 | public List<Feature> getFeatures(Expression filter, String sortBy, boolean asc) { |
||
746 | return null; |
||
747 | } |
||
748 | |||
749 | @Override
|
||
750 | public Feature findFirst(Expression filter) throws DataException { |
||
751 | return null; |
||
752 | } |
||
753 | |||
754 | @Override
|
||
755 | public Feature findFirst(Expression filter, String sortBy) throws DataException { |
||
756 | return null; |
||
757 | } |
||
758 | |||
759 | @Override
|
||
760 | public Feature findFirst(Expression filter, String sortBy, boolean asc) throws DataException { |
||
761 | return null; |
||
762 | } |
||
763 | |||
764 | 44100 | jjdelcerro | @Override
|
765 | public Feature first() throws DataException { |
||
766 | return null; |
||
767 | } |
||
768 | |||
769 | 44111 | jjdelcerro | @Override
|
770 | public long getPendingChangesCount() { |
||
771 | return 0; |
||
772 | } |
||
773 | |||
774 | 44253 | jjdelcerro | @Override
|
775 | public ResourcesStorage getResourcesStorage() {
|
||
776 | 46830 | fdiaz | return ResourcesStorage.EMPTY_RESOURCESSTORAGE;
|
777 | 44253 | jjdelcerro | } |
778 | |||
779 | @Override
|
||
780 | 44259 | jjdelcerro | public StoresRepository getStoresRepository() {
|
781 | 44253 | jjdelcerro | return null; |
782 | } |
||
783 | |||
784 | @Override
|
||
785 | 44259 | jjdelcerro | public UnmodifiableBasicMap<String, DataStore> getChildren() { |
786 | return UnmodifiableBasicMap.EMPTY_UNMODIFIABLEBASICMAP;
|
||
787 | 44253 | jjdelcerro | } |
788 | |||
789 | 44262 | jjdelcerro | @Override
|
790 | public Feature findFirst(FeatureQuery query) throws DataException { |
||
791 | return null; |
||
792 | } |
||
793 | |||
794 | 44284 | jjdelcerro | @Override
|
795 | public Feature getSampleFeature() {
|
||
796 | return null; |
||
797 | } |
||
798 | 44318 | jjdelcerro | |
799 | @Override
|
||
800 | public void copyTo(FeatureStore target) { |
||
801 | } |
||
802 | 44346 | jjdelcerro | |
803 | @Override
|
||
804 | public FeatureQuery createFeatureQuery(String filter, String sortBy, boolean asc) { |
||
805 | return null; |
||
806 | } |
||
807 | |||
808 | @Override
|
||
809 | public FeatureQuery createFeatureQuery(Expression filter, String sortBy, boolean asc) { |
||
810 | return null; |
||
811 | } |
||
812 | 44435 | jjdelcerro | |
813 | @Override
|
||
814 | public boolean supportReferences() { |
||
815 | return true; |
||
816 | } |
||
817 | 44443 | jjdelcerro | |
818 | @Override
|
||
819 | public boolean isTemporary() { |
||
820 | return false; |
||
821 | } |
||
822 | 44884 | jjdelcerro | |
823 | @Override
|
||
824 | public FeatureType getDefaultFeatureTypeQuietly() {
|
||
825 | try {
|
||
826 | return this.getDefaultFeatureType(); |
||
827 | } catch (DataException ex) {
|
||
828 | return null; |
||
829 | } |
||
830 | } |
||
831 | 45071 | jjdelcerro | |
832 | @Override
|
||
833 | public void insert(FeatureSet set) throws DataException { |
||
834 | |||
835 | } |
||
836 | 45195 | omartinez | |
837 | @Override
|
||
838 | public long size64() { |
||
839 | return 0; |
||
840 | } |
||
841 | 45308 | fdiaz | |
842 | @Override
|
||
843 | public FeatureQuery createFeatureQuery(Expression filter, Expression sortBy, boolean asc) { |
||
844 | return null; |
||
845 | } |
||
846 | |||
847 | @Override
|
||
848 | public FeatureQuery createFeatureQuery(String filter, Expression sortBy, boolean asc) { |
||
849 | return null; |
||
850 | } |
||
851 | |||
852 | @Override
|
||
853 | public Feature findFirst(String filter, Expression sortBy, boolean asc) throws DataException { |
||
854 | return null; |
||
855 | } |
||
856 | |||
857 | @Override
|
||
858 | public Feature findFirst(Expression filter, Expression sortBy, boolean asc) throws DataException { |
||
859 | return null; |
||
860 | } |
||
861 | 45425 | jjdelcerro | |
862 | @Override
|
||
863 | public boolean cancelEditingQuietly() { |
||
864 | return true; |
||
865 | } |
||
866 | |||
867 | @Override
|
||
868 | public Object getProperty(String name) { |
||
869 | return null; |
||
870 | } |
||
871 | |||
872 | @Override
|
||
873 | public void setProperty(String name, Object value) { |
||
874 | |||
875 | } |
||
876 | |||
877 | @Override
|
||
878 | public Map<String, Object> getProperties() { |
||
879 | return Collections.EMPTY_MAP; |
||
880 | } |
||
881 | |||
882 | @Override
|
||
883 | public boolean finishEditingQuietly() { |
||
884 | return true; |
||
885 | } |
||
886 | |||
887 | @Override
|
||
888 | public void delete(String filter) { |
||
889 | } |
||
890 | |||
891 | @Override
|
||
892 | public void delete(Expression filter) { |
||
893 | } |
||
894 | |||
895 | @Override
|
||
896 | public GetItemWithSizeIsEmptyAndIterator64<Feature> getFeatures64() {
|
||
897 | return this.getFeatures64(null, -1); |
||
898 | } |
||
899 | |||
900 | @Override
|
||
901 | public GetItemWithSizeIsEmptyAndIterator64<Feature> getFeatures64(String filter) { |
||
902 | return this.getFeatures64(filter, null, true); |
||
903 | } |
||
904 | |||
905 | @Override
|
||
906 | public GetItemWithSizeIsEmptyAndIterator64<Feature> getFeatures64(String filter, String sortBy, boolean asc) { |
||
907 | FeatureQuery query = this.createFeatureQuery(filter, sortBy, asc);
|
||
908 | return this.getFeatures64(query, -1); |
||
909 | } |
||
910 | |||
911 | @Override
|
||
912 | public GetItemWithSizeIsEmptyAndIterator64<Feature> getFeatures64(FeatureQuery query, int pageSize) { |
||
913 | return null; |
||
914 | } |
||
915 | |||
916 | @Override
|
||
917 | public FeatureQuery createFeatureQuery(String filter) { |
||
918 | return null; |
||
919 | } |
||
920 | |||
921 | @Override
|
||
922 | public FeatureQuery createFeatureQuery(Expression filter) { |
||
923 | return null; |
||
924 | } |
||
925 | 45426 | fdiaz | |
926 | @Override
|
||
927 | public FeatureSelection createLargeFeatureSelection() throws DataException { |
||
928 | return null; |
||
929 | } |
||
930 | |||
931 | @Override
|
||
932 | public FeatureSelection createMemoryFeatureSelection() throws DataException { |
||
933 | return null; |
||
934 | } |
||
935 | 45521 | fdiaz | |
936 | @Override
|
||
937 | public Feature getOriginalFeature(FeatureReference id) {
|
||
938 | return null; |
||
939 | } |
||
940 | |||
941 | @Override
|
||
942 | public Feature getOriginalFeature(Feature feature) {
|
||
943 | return null; |
||
944 | } |
||
945 | |||
946 | @Override
|
||
947 | public boolean isFeatureModified(FeatureReference id){ |
||
948 | return false; |
||
949 | } |
||
950 | |||
951 | @Override
|
||
952 | public boolean isFeatureModified(Feature feature){ |
||
953 | return false; |
||
954 | } |
||
955 | 45738 | fdiaz | |
956 | @Override
|
||
957 | public String getEditingSession() { |
||
958 | return null; |
||
959 | } |
||
960 | 45788 | jjdelcerro | |
961 | @Override
|
||
962 | public List<FeatureReference> getEditedFeatures() { |
||
963 | return Collections.EMPTY_LIST; |
||
964 | } |
||
965 | |||
966 | @Override
|
||
967 | public List<FeatureReference> getEditedFeaturesNotValidated() { |
||
968 | return Collections.EMPTY_LIST; |
||
969 | } |
||
970 | 46277 | jjdelcerro | |
971 | @Override
|
||
972 | public boolean isFeatureSelectionEmpty() { |
||
973 | return false; |
||
974 | } |
||
975 | |||
976 | @Override
|
||
977 | public boolean isFeatureSelectionAvailable() { |
||
978 | return true; |
||
979 | } |
||
980 | 46309 | jjdelcerro | @Override
|
981 | public Iterator<Feature> getFeaturesIterator(Iterator<FeatureReference> references) { |
||
982 | return Collections.EMPTY_LIST.iterator(); |
||
983 | } |
||
984 | 46301 | fdiaz | |
985 | @Override
|
||
986 | 46309 | jjdelcerro | public Iterable<Feature> getFeaturesIterable(Iterator<FeatureReference> references) { |
987 | return Collections.EMPTY_LIST; |
||
988 | } |
||
989 | |||
990 | @Override
|
||
991 | 46301 | fdiaz | public void setTemporary(Boolean temporary) { |
992 | } |
||
993 | 46672 | fdiaz | |
994 | @Override
|
||
995 | public FeatureSelection getFeatureSelectionQuietly() {
|
||
996 | return null; |
||
997 | } |
||
998 | 46875 | fdiaz | |
999 | @Override
|
||
1000 | public boolean canBeEdited() { |
||
1001 | return true; |
||
1002 | } |
||
1003 | 47082 | jjdelcerro | |
1004 | @Override
|
||
1005 | public String getLabel() { |
||
1006 | return this.getName(); |
||
1007 | } |
||
1008 | |||
1009 | 47784 | jjdelcerro | @Override
|
1010 | public Predicate<FeatureStoreNotification> setNotificationsFilter(Predicate<FeatureStoreNotification> filter) { |
||
1011 | return null; |
||
1012 | } |
||
1013 | |||
1014 | 42928 | jjdelcerro | } |