Statistics
| Revision:

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 @ 44719

History | View | Annotate | Download (16.8 KB)

1 42928 jjdelcerro
2
package org.gvsig.fmap.dal.feature;
3
4
import java.util.Collection;
5
import java.util.Iterator;
6
import java.util.List;
7
import java.util.Set;
8 44655 jjdelcerro
import javax.json.JsonObject;
9 43152 fdiaz
10 42928 jjdelcerro
import org.cresques.cts.IProjection;
11 44023 jjdelcerro
import org.gvsig.expressionevaluator.Expression;
12 44042 jjdelcerro
import org.gvsig.expressionevaluator.ExpressionBuilder;
13 43152 fdiaz
14 42928 jjdelcerro
import org.gvsig.fmap.dal.DataQuery;
15
import org.gvsig.fmap.dal.DataServerExplorer;
16
import org.gvsig.fmap.dal.DataSet;
17 44253 jjdelcerro
import org.gvsig.fmap.dal.DataStore;
18 42928 jjdelcerro
import org.gvsig.fmap.dal.DataStoreParameters;
19 43152 fdiaz
import org.gvsig.fmap.dal.DataStoreProviderFactory;
20 44259 jjdelcerro
import org.gvsig.fmap.dal.StoresRepository;
21 42928 jjdelcerro
import org.gvsig.fmap.dal.exception.DataException;
22
import org.gvsig.fmap.dal.exception.ValidateDataParametersException;
23
import org.gvsig.fmap.dal.feature.exception.NeedEditingModeException;
24 43371 fdiaz
import org.gvsig.fmap.geom.SpatialIndex;
25 42928 jjdelcerro
import org.gvsig.fmap.geom.primitive.Envelope;
26
import org.gvsig.metadata.exceptions.MetadataException;
27
import org.gvsig.timesupport.Interval;
28
import org.gvsig.tools.dynobject.DynClass;
29
import org.gvsig.tools.dynobject.DynObject;
30
import org.gvsig.tools.dynobject.exception.DynFieldNotFoundException;
31
import org.gvsig.tools.dynobject.exception.DynMethodException;
32
import org.gvsig.tools.exception.BaseException;
33
import org.gvsig.tools.observer.Observer;
34
import org.gvsig.tools.persistence.PersistentState;
35
import org.gvsig.tools.persistence.exception.PersistenceException;
36
import org.gvsig.tools.undo.RedoException;
37
import org.gvsig.tools.undo.UndoException;
38 44297 jjdelcerro
import org.gvsig.tools.resourcesstorage.ResourcesStorage;
39
import org.gvsig.tools.resourcesstorage.EmptyResourcesStorage;
40 44259 jjdelcerro
import org.gvsig.tools.util.UnmodifiableBasicMap;
41 42928 jjdelcerro
import org.gvsig.tools.visitor.Visitor;
42
43
/**
44
 * This class is intended to be used in test.
45
 * Use it directly or extend it and overwrite the methods you need.
46
 * This class is maintained as part of the DAL API.
47
 */
48
49
50
public class DummyFetureStore implements FeatureStore {
51
52
    @Override
53
    public Object clone() throws CloneNotSupportedException {
54
        return super.clone();
55
    }
56
57
    @Override
58
    public boolean allowWrite() {
59
        return false;
60
    }
61
62
    @Override
63
    public FeatureType getDefaultFeatureType() throws DataException {
64
        return null;
65
    }
66
67
    @Override
68
    public FeatureType getFeatureType(String featureTypeId) throws DataException {
69
        return null;
70
    }
71
72
    @Override
73
    public List getFeatureTypes() throws DataException {
74
        return null;
75
    }
76
77
    @Override
78
    public DataStoreParameters getParameters() {
79
        return null;
80
    }
81
82
    @Override
83
    public boolean canWriteGeometry(int gvSIGgeometryType) throws DataException {
84
        return false;
85
    }
86
87
    @Override
88
    public Envelope getEnvelope() throws DataException {
89
        return null;
90
    }
91
92
    @Override
93
    public IProjection getSRSDefaultGeometry() throws DataException {
94
        return null;
95
    }
96
97
    @Override
98
    public void export(DataServerExplorer explorer, String provider, NewFeatureStoreParameters params) throws DataException {
99
100
    }
101
102
    @Override
103
    public FeatureSet getFeatureSet() throws DataException {
104
        return null;
105
    }
106
107
    @Override
108
    public FeatureSet getFeatureSet(FeatureQuery featureQuery) throws DataException {
109
        return null;
110
    }
111
112
    @Override
113
    public void getFeatureSet(FeatureQuery featureQuery, Observer observer) throws DataException {
114
115
    }
116
117
    @Override
118
    public void getFeatureSet(Observer observer) throws DataException {
119
120
    }
121
122
    @Override
123
    public List<Feature> getFeatures(FeatureQuery query, int pageSize) {
124
        return null;
125
    }
126
127
    @Override
128
    public Feature getFeatureByReference(FeatureReference reference) throws DataException {
129
        return null;
130
    }
131
132
    @Override
133
    public Feature getFeatureByReference(FeatureReference reference, FeatureType featureType) throws DataException {
134
        return null;
135
    }
136
137
    @Override
138
    public void edit() throws DataException {
139
140
    }
141
142
    @Override
143
    public void edit(int mode) throws DataException {
144
145
    }
146
147
    @Override
148
    public void cancelEditing() throws DataException {
149
150
    }
151
152
    @Override
153
    public void finishEditing() throws DataException {
154
155
    }
156
157
    @Override
158
    public void commitChanges() throws DataException {
159
160
    }
161
162
    @Override
163
    public boolean canCommitChanges() throws DataException {
164
        return false;
165
    }
166
167
    @Override
168
    public boolean isEditing() {
169
        return false;
170
    }
171
172
    @Override
173
    public boolean isAppending() {
174
        return false;
175
    }
176
177
    @Override
178
    public void update(EditableFeatureType featureType) throws DataException {
179
180
    }
181
182
    @Override
183
    public void update(EditableFeature feature) throws DataException {
184
185
    }
186
187
    @Override
188
    public void delete(Feature feature) throws DataException {
189
190
    }
191
192
    @Override
193
    public void insert(EditableFeature feature) throws DataException {
194
195
    }
196
197
    @Override
198
    public EditableFeature createNewFeature() throws DataException {
199
        return null;
200
    }
201
202
    @Override
203
    public EditableFeature createNewFeature(FeatureType type, Feature defaultValues) throws DataException {
204
        return null;
205
    }
206
207
    @Override
208
    public EditableFeature createNewFeature(FeatureType type, boolean defaultValues) throws DataException {
209
        return null;
210
    }
211
212
    @Override
213
    public EditableFeature createNewFeature(boolean defaultValues) throws DataException {
214
        return null;
215
    }
216
217
    @Override
218
    public EditableFeature createNewFeature(Feature defaultValues) throws DataException {
219
        return null;
220
    }
221
222
    @Override
223 44655 jjdelcerro
    public EditableFeature createNewFeature(JsonObject defaultValues) throws DataException {
224
        return null;
225
    }
226
227
    @Override
228 42928 jjdelcerro
    public void validateFeatures(int mode) throws DataException {
229
230
    }
231
232
    @Override
233
    public boolean isAppendModeSupported() {
234
        return false;
235
    }
236
237
    @Override
238
    public void beginEditingGroup(String description) throws NeedEditingModeException {
239
240
    }
241
242
    @Override
243
    public void endEditingGroup() throws NeedEditingModeException {
244
245
    }
246
247
    @Override
248
    public FeatureIndex createIndex(FeatureType featureType, String attributeName, String indexName) throws DataException {
249
        return null;
250
    }
251
252
    @Override
253
    public FeatureIndex createIndex(String indexTypeName, FeatureType featureType, String attributeName, String indexName) throws DataException {
254
        return null;
255
    }
256
257
    @Override
258
    public FeatureIndex createIndex(FeatureType featureType, String attributeName, String indexName, Observer observer) throws DataException {
259
        return null;
260
    }
261
262
    @Override
263
    public FeatureIndex createIndex(String indexTypeName, FeatureType featureType, String attributeName, String indexName, Observer observer) throws DataException {
264
        return null;
265
    }
266
267
    @Override
268
    public FeatureIndexes getIndexes() {
269
        return null;
270
    }
271
272
    @Override
273
    public void setSelection(FeatureSet selection) throws DataException {
274
275
    }
276
277
    @Override
278
    public FeatureSelection createFeatureSelection() throws DataException {
279
        return null;
280
    }
281
282
    @Override
283
    public FeatureSelection getFeatureSelection() throws DataException {
284
        return null;
285
    }
286
287
    @Override
288
    public boolean isLocksSupported() {
289
        return false;
290
    }
291
292
    @Override
293
    public FeatureLocks getLocks() throws DataException {
294
        return null;
295
    }
296
297
    @Override
298
    public FeatureStoreTransforms getTransforms() {
299
        return null;
300
    }
301
302
    @Override
303
    public FeatureQuery createFeatureQuery() {
304
        return null;
305
    }
306
307
    @Override
308
    public long getFeatureCount() throws DataException {
309
        return 0;
310
    }
311
312 43020 jjdelcerro
//    @Override
313
//    public void createCache(String name, DynObject parameters) throws DataException {
314
//
315
//    }
316
//
317
//    @Override
318
//    public FeatureCache getCache() {
319
//        return null;
320
//    }
321 42928 jjdelcerro
322
    @Override
323
    public boolean isKnownEnvelope() {
324
        return false;
325
    }
326
327
    @Override
328
    public boolean hasRetrievedFeaturesLimit() {
329
        return false;
330
    }
331
332
    @Override
333
    public int getRetrievedFeaturesLimit() {
334
        return 0;
335
    }
336
337
    @Override
338
    public Feature getFeature(DynObject dynobject) {
339
        return null;
340
    }
341
342
    @Override
343
    public Iterator iterator() {
344
        return null;
345
    }
346
347
    @Override
348
    public String getName() {
349
        return null;
350
    }
351
352
    @Override
353
    public String getFullName() {
354
        return null;
355
    }
356
357
    @Override
358
    public String getProviderName() {
359
        return null;
360
    }
361
362
    @Override
363
    public void refresh() throws DataException {
364
365
    }
366
367
    @Override
368
    public DataSet getDataSet() throws DataException {
369
        return null;
370
    }
371
372
    @Override
373
    public DataSet getDataSet(DataQuery dataQuery) throws DataException {
374
        return null;
375
    }
376
377
    @Override
378
    public void accept(Visitor visitor) throws BaseException {
379
380
    }
381
382
    @Override
383
    public void accept(Visitor visitor, DataQuery dataQuery) throws BaseException {
384
385
    }
386
387
    @Override
388
    public void getDataSet(Observer observer) throws DataException {
389
390
    }
391
392
    @Override
393
    public void getDataSet(DataQuery dataQuery, Observer observer) throws DataException {
394
395
    }
396
397
    @Override
398
    public DataSet getSelection() throws DataException {
399
        return null;
400
    }
401
402
    @Override
403
    public void setSelection(DataSet selection) throws DataException {
404
405
    }
406
407
    @Override
408
    public DataSet createSelection() throws DataException {
409
        return null;
410
    }
411
412
    @Override
413
    public DataServerExplorer getExplorer() throws DataException, ValidateDataParametersException {
414
        return null;
415
    }
416
417
    @Override
418
    public DataQuery createQuery() {
419
        return null;
420
    }
421
422
    @Override
423
    public Interval getInterval() {
424
        return null;
425
    }
426
427
    @Override
428
    public Collection getTimes() {
429
        return null;
430
    }
431
432
    @Override
433
    public Collection getTimes(Interval interval) {
434
        return null;
435
    }
436
437
    @Override
438
    public void disableNotifications() {
439
440
    }
441
442
    @Override
443
    public void enableNotifications() {
444
445
    }
446
447
    @Override
448
    public void beginComplexNotification() {
449
450
    }
451
452
    @Override
453
    public void endComplexNotification() {
454
455
    }
456
457
    @Override
458
    public void addObserver(Observer obsrvr) {
459
460
    }
461
462
    @Override
463
    public void deleteObserver(Observer obsrvr) {
464
465
    }
466
467
    @Override
468
    public void deleteObservers() {
469
470
    }
471
472
    @Override
473
    public void saveToState(PersistentState ps) throws PersistenceException {
474
475
    }
476
477
    @Override
478
    public void loadFromState(PersistentState ps) throws PersistenceException {
479
480
    }
481
482
    @Override
483
    public Object getMetadataID() throws MetadataException {
484
        return null;
485
    }
486
487
    @Override
488
    public String getMetadataName() throws MetadataException {
489
        return null;
490
    }
491
492
    @Override
493
    public Set getMetadataChildren() throws MetadataException {
494
        return null;
495
    }
496
497
    @Override
498
    public DynClass getDynClass() {
499
        return null;
500
    }
501
502
    @Override
503
    public void implement(DynClass dc) {
504
505
    }
506
507
    @Override
508
    public void delegate(DynObject d) {
509
510
    }
511
512
    @Override
513
    public Object getDynValue(String string) throws DynFieldNotFoundException {
514
        return null;
515
    }
516
517
    @Override
518
    public void setDynValue(String string, Object o) throws DynFieldNotFoundException {
519
520
    }
521
522
    @Override
523
    public boolean hasDynValue(String string) {
524
        return false;
525
    }
526
527
    @Override
528
    public Object invokeDynMethod(String string, Object[] os) throws DynMethodException {
529
        return null;
530
    }
531
532
    @Override
533
    public Object invokeDynMethod(int i, Object[] os) throws DynMethodException {
534
        return null;
535
    }
536
537
    @Override
538
    public void clear() {
539
540
    }
541
542
    @Override
543
    public void dispose() {
544
545
    }
546
547
    @Override
548
    public void undo() throws UndoException {
549
550
    }
551
552
    @Override
553
    public void undo(int i) throws UndoException {
554
555
    }
556
557
    @Override
558
    public void redo() throws RedoException {
559
560
    }
561
562
    @Override
563
    public void redo(int i) throws RedoException {
564
565
    }
566
567
    @Override
568
    public List getUndoInfos() {
569
        return null;
570
    }
571
572
    @Override
573
    public List getRedoInfos() {
574
        return null;
575
    }
576
577
    @Override
578
    public boolean canUndo() {
579
        return false;
580
    }
581
582
    @Override
583
    public boolean canRedo() {
584
        return false;
585
    }
586
587 43020 jjdelcerro
    @Override
588
    public List<Feature> getFeatures() {
589
        return null;
590 43152 fdiaz
    }
591 43020 jjdelcerro
592 43057 jjdelcerro
    @Override
593
    public void createCache(String name, DynObject parameters) throws DataException {
594
595
    }
596
597
    @Override
598
    public FeatureCache getCache() {
599
        return null;
600
    }
601
602 43152 fdiaz
    @Override
603
    public void useCache(String providerName, DynObject parameters) throws DataException {
604
        throw new UnsupportedOperationException();
605
    }
606
607
    @Override
608 43190 jjdelcerro
    public DataStoreProviderFactory getProviderFactory() {
609 43152 fdiaz
        return null;
610
    }
611
612 43215 jjdelcerro
    @Override
613
    public boolean isBroken() {
614
        return false;
615
    }
616
617
        @Override
618
        public Throwable getBreakingsCause() {
619
                return null;
620
        }
621
622 43246 jjdelcerro
    @Override
623
    public boolean hasDynMethod(String name) {
624
        return false;
625
    }
626
627 43371 fdiaz
    @Override
628
    public SpatialIndex wrapSpatialIndex(SpatialIndex index) {
629
        return null;
630
    }
631
632 43521 jjdelcerro
    @Override
633
    public ExpressionBuilder createExpressionBuilder() {
634
        return null;
635
    }
636
637
    @Override
638
    public ExpressionBuilder createExpression() {
639
        return createExpressionBuilder();
640
    }
641
642 43540 jjdelcerro
    @Override
643
    public FeatureSet getFeatureSet(String filter) throws DataException {
644
        return null;
645
    }
646
647
    @Override
648
    public FeatureSet getFeatureSet(String filter, String sortBy) throws DataException {
649
        return null;
650
    }
651
652
    @Override
653
    public FeatureSet getFeatureSet(String filter, String sortBy, boolean asc) throws DataException {
654
        return null;
655
    }
656 43558 jjdelcerro
657
    @Override
658
    public List<Feature> getFeatures(FeatureQuery query) {
659 44023 jjdelcerro
        return null;
660 43558 jjdelcerro
    }
661 43628 jjdelcerro
662
    @Override
663
    public List<Feature> getFeatures(String filter) {
664 44023 jjdelcerro
        return null;
665 43628 jjdelcerro
    }
666
667
    @Override
668
    public List<Feature> getFeatures(String filter, String sortBy) {
669 44023 jjdelcerro
        return null;
670 43628 jjdelcerro
    }
671
672
    @Override
673
    public List<Feature> getFeatures(String filter, String sortBy, boolean asc) {
674 44023 jjdelcerro
        return null;
675 43628 jjdelcerro
    }
676
677
    @Override
678
    public Feature findFirst(String filter) throws DataException {
679 44023 jjdelcerro
        return null;
680 43628 jjdelcerro
    }
681
682
    @Override
683
    public Feature findFirst(String filter, String sortBy) throws DataException {
684 44023 jjdelcerro
        return null;
685 43628 jjdelcerro
    }
686
687
    @Override
688
    public Feature findFirst(String filter, String sortBy, boolean asc) throws DataException {
689 44023 jjdelcerro
        return null;
690 43628 jjdelcerro
    }
691 43832 jjdelcerro
692
    @Override
693
    public FeatureReference getFeatureReference(String code) {
694 44023 jjdelcerro
        return null;
695 43832 jjdelcerro
    }
696
697 44023 jjdelcerro
    @Override
698
    public FeatureSet getFeatureSet(Expression filter) throws DataException {
699
        return null;
700
    }
701
702
    @Override
703
    public FeatureSet getFeatureSet(Expression filter, String sortBy) throws DataException {
704
        return null;
705
    }
706
707
    @Override
708
    public FeatureSet getFeatureSet(Expression filter, String sortBy, boolean asc) throws DataException {
709
        return null;
710
    }
711
712
    @Override
713
    public List<Feature> getFeatures(Expression filter) {
714
        return null;
715
    }
716
717
    @Override
718
    public List<Feature> getFeatures(Expression filter, String sortBy) {
719
        return null;
720
    }
721
722
    @Override
723
    public List<Feature> getFeatures(Expression filter, String sortBy, boolean asc) {
724
        return null;
725
    }
726
727
    @Override
728
    public Feature findFirst(Expression filter) throws DataException {
729
        return null;
730
    }
731
732
    @Override
733
    public Feature findFirst(Expression filter, String sortBy) throws DataException {
734
        return null;
735
    }
736
737
    @Override
738
    public Feature findFirst(Expression filter, String sortBy, boolean asc) throws DataException {
739
        return null;
740
    }
741
742 44100 jjdelcerro
    @Override
743
    public Feature first() throws DataException {
744
        return null;
745
    }
746
747 44111 jjdelcerro
    @Override
748
    public long getPendingChangesCount() {
749
        return 0;
750
    }
751
752 44253 jjdelcerro
    @Override
753
    public ResourcesStorage getResourcesStorage() {
754 44297 jjdelcerro
        return new EmptyResourcesStorage();
755 44253 jjdelcerro
    }
756
757
    @Override
758 44259 jjdelcerro
    public StoresRepository getStoresRepository() {
759 44253 jjdelcerro
        return null;
760
    }
761
762
    @Override
763 44259 jjdelcerro
    public UnmodifiableBasicMap<String, DataStore> getChildren() {
764
        return UnmodifiableBasicMap.EMPTY_UNMODIFIABLEBASICMAP;
765 44253 jjdelcerro
    }
766
767 44262 jjdelcerro
    @Override
768
    public Feature findFirst(FeatureQuery query) throws DataException {
769
        return null;
770
    }
771
772 44284 jjdelcerro
    @Override
773
    public Feature getSampleFeature() {
774
        return null;
775
    }
776 44318 jjdelcerro
777
    @Override
778
    public void copyTo(FeatureStore target) {
779
    }
780 44346 jjdelcerro
781
    @Override
782
    public FeatureQuery createFeatureQuery(String filter, String sortBy, boolean asc) {
783
        return null;
784
    }
785
786
    @Override
787
    public FeatureQuery createFeatureQuery(Expression filter, String sortBy, boolean asc) {
788
        return null;
789
    }
790 44435 jjdelcerro
791
    @Override
792
    public boolean supportReferences() {
793
        return true;
794
    }
795 44443 jjdelcerro
796
    @Override
797
    public boolean isTemporary() {
798
        return false;
799
    }
800
801 42928 jjdelcerro
}