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

History | View | Annotate | Download (12.5 KB)

1

    
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

    
9
import org.cresques.cts.IProjection;
10

    
11
import org.gvsig.fmap.dal.DataQuery;
12
import org.gvsig.fmap.dal.DataServerExplorer;
13
import org.gvsig.fmap.dal.DataSet;
14
import org.gvsig.fmap.dal.DataStoreParameters;
15
import org.gvsig.fmap.dal.DataStoreProviderFactory;
16
import org.gvsig.fmap.dal.ExpressionEvaluator;
17
import org.gvsig.fmap.dal.exception.DataException;
18
import org.gvsig.fmap.dal.exception.ValidateDataParametersException;
19
import org.gvsig.fmap.dal.feature.exception.NeedEditingModeException;
20
import org.gvsig.fmap.geom.primitive.Envelope;
21
import org.gvsig.metadata.exceptions.MetadataException;
22
import org.gvsig.timesupport.Interval;
23
import org.gvsig.tools.dynobject.DynClass;
24
import org.gvsig.tools.dynobject.DynObject;
25
import org.gvsig.tools.dynobject.exception.DynFieldNotFoundException;
26
import org.gvsig.tools.dynobject.exception.DynMethodException;
27
import org.gvsig.tools.exception.BaseException;
28
import org.gvsig.tools.observer.Observer;
29
import org.gvsig.tools.persistence.PersistentState;
30
import org.gvsig.tools.persistence.exception.PersistenceException;
31
import org.gvsig.tools.undo.RedoException;
32
import org.gvsig.tools.undo.UndoException;
33
import org.gvsig.tools.visitor.Visitor;
34

    
35
/**
36
 * This class is intended to be used in test.
37
 * Use it directly or extend it and overwrite the methods you need.
38
 * This class is maintained as part of the DAL API.
39
 */
40

    
41

    
42
public class DummyFetureStore implements FeatureStore {
43

    
44
    @Override
45
    public Object clone() throws CloneNotSupportedException {
46
        return super.clone();
47
    }
48

    
49
    @Override
50
    public boolean allowWrite() {
51
        return false;
52
    }
53

    
54
    @Override
55
    public FeatureType getDefaultFeatureType() throws DataException {
56
        return null;
57
    }
58

    
59
    @Override
60
    public FeatureType getFeatureType(String featureTypeId) throws DataException {
61
        return null;
62
    }
63

    
64
    @Override
65
    public List getFeatureTypes() throws DataException {
66
        return null;
67
    }
68

    
69
    @Override
70
    public DataStoreParameters getParameters() {
71
        return null;
72
    }
73

    
74
    @Override
75
    public boolean canWriteGeometry(int gvSIGgeometryType) throws DataException {
76
        return false;
77
    }
78

    
79
    @Override
80
    public Envelope getEnvelope() throws DataException {
81
        return null;
82
    }
83

    
84
    @Override
85
    public IProjection getSRSDefaultGeometry() throws DataException {
86
        return null;
87
    }
88

    
89
    @Override
90
    public void export(DataServerExplorer explorer, String provider, NewFeatureStoreParameters params) throws DataException {
91

    
92
    }
93

    
94
    @Override
95
    public FeatureSet getFeatureSet() throws DataException {
96
        return null;
97
    }
98

    
99
    @Override
100
    public FeatureSet getFeatureSet(FeatureQuery featureQuery) throws DataException {
101
        return null;
102
    }
103

    
104
    @Override
105
    public void getFeatureSet(FeatureQuery featureQuery, Observer observer) throws DataException {
106

    
107
    }
108

    
109
    @Override
110
    public void getFeatureSet(Observer observer) throws DataException {
111

    
112
    }
113

    
114
    @Override
115
    public List<Feature> getFeatures(FeatureQuery query, int pageSize) {
116
        return null;
117
    }
118

    
119
    @Override
120
    public Feature getFeatureByReference(FeatureReference reference) throws DataException {
121
        return null;
122
    }
123

    
124
    @Override
125
    public Feature getFeatureByReference(FeatureReference reference, FeatureType featureType) throws DataException {
126
        return null;
127
    }
128

    
129
    @Override
130
    public void edit() throws DataException {
131

    
132
    }
133

    
134
    @Override
135
    public void edit(int mode) throws DataException {
136

    
137
    }
138

    
139
    @Override
140
    public void cancelEditing() throws DataException {
141

    
142
    }
143

    
144
    @Override
145
    public void finishEditing() throws DataException {
146

    
147
    }
148

    
149
    @Override
150
    public void commitChanges() throws DataException {
151

    
152
    }
153

    
154
    @Override
155
    public boolean canCommitChanges() throws DataException {
156
        return false;
157
    }
158

    
159
    @Override
160
    public boolean isEditing() {
161
        return false;
162
    }
163

    
164
    @Override
165
    public boolean isAppending() {
166
        return false;
167
    }
168

    
169
    @Override
170
    public void update(EditableFeatureType featureType) throws DataException {
171

    
172
    }
173

    
174
    @Override
175
    public void update(EditableFeature feature) throws DataException {
176

    
177
    }
178

    
179
    @Override
180
    public void delete(Feature feature) throws DataException {
181

    
182
    }
183

    
184
    @Override
185
    public void insert(EditableFeature feature) throws DataException {
186

    
187
    }
188

    
189
    @Override
190
    public EditableFeature createNewFeature() throws DataException {
191
        return null;
192
    }
193

    
194
    @Override
195
    public EditableFeature createNewFeature(FeatureType type, Feature defaultValues) throws DataException {
196
        return null;
197
    }
198

    
199
    @Override
200
    public EditableFeature createNewFeature(FeatureType type, boolean defaultValues) throws DataException {
201
        return null;
202
    }
203

    
204
    @Override
205
    public EditableFeature createNewFeature(boolean defaultValues) throws DataException {
206
        return null;
207
    }
208

    
209
    @Override
210
    public EditableFeature createNewFeature(Feature defaultValues) throws DataException {
211
        return null;
212
    }
213

    
214
    @Override
215
    public void validateFeatures(int mode) throws DataException {
216

    
217
    }
218

    
219
    @Override
220
    public boolean isAppendModeSupported() {
221
        return false;
222
    }
223

    
224
    @Override
225
    public void beginEditingGroup(String description) throws NeedEditingModeException {
226

    
227
    }
228

    
229
    @Override
230
    public void endEditingGroup() throws NeedEditingModeException {
231

    
232
    }
233

    
234
    @Override
235
    public FeatureIndex createIndex(FeatureType featureType, String attributeName, String indexName) throws DataException {
236
        return null;
237
    }
238

    
239
    @Override
240
    public FeatureIndex createIndex(String indexTypeName, FeatureType featureType, String attributeName, String indexName) throws DataException {
241
        return null;
242
    }
243

    
244
    @Override
245
    public FeatureIndex createIndex(FeatureType featureType, String attributeName, String indexName, Observer observer) throws DataException {
246
        return null;
247
    }
248

    
249
    @Override
250
    public FeatureIndex createIndex(String indexTypeName, FeatureType featureType, String attributeName, String indexName, Observer observer) throws DataException {
251
        return null;
252
    }
253

    
254
    @Override
255
    public FeatureIndexes getIndexes() {
256
        return null;
257
    }
258

    
259
    @Override
260
    public void setSelection(FeatureSet selection) throws DataException {
261

    
262
    }
263

    
264
    @Override
265
    public FeatureSelection createFeatureSelection() throws DataException {
266
        return null;
267
    }
268

    
269
    @Override
270
    public FeatureSelection getFeatureSelection() throws DataException {
271
        return null;
272
    }
273

    
274
    @Override
275
    public boolean isLocksSupported() {
276
        return false;
277
    }
278

    
279
    @Override
280
    public FeatureLocks getLocks() throws DataException {
281
        return null;
282
    }
283

    
284
    @Override
285
    public FeatureStoreTransforms getTransforms() {
286
        return null;
287
    }
288

    
289
    @Override
290
    public FeatureQuery createFeatureQuery() {
291
        return null;
292
    }
293

    
294
    @Override
295
    public long getFeatureCount() throws DataException {
296
        return 0;
297
    }
298

    
299
//    @Override
300
//    public void createCache(String name, DynObject parameters) throws DataException {
301
//
302
//    }
303
//
304
//    @Override
305
//    public FeatureCache getCache() {
306
//        return null;
307
//    }
308

    
309
    @Override
310
    public boolean isKnownEnvelope() {
311
        return false;
312
    }
313

    
314
    @Override
315
    public boolean hasRetrievedFeaturesLimit() {
316
        return false;
317
    }
318

    
319
    @Override
320
    public int getRetrievedFeaturesLimit() {
321
        return 0;
322
    }
323

    
324
    @Override
325
    public Feature getFeature(DynObject dynobject) {
326
        return null;
327
    }
328

    
329
    @Override
330
    public Iterator iterator() {
331
        return null;
332
    }
333

    
334
    @Override
335
    public String getName() {
336
        return null;
337
    }
338

    
339
    @Override
340
    public String getFullName() {
341
        return null;
342
    }
343

    
344
    @Override
345
    public String getProviderName() {
346
        return null;
347
    }
348

    
349
    @Override
350
    public void refresh() throws DataException {
351

    
352
    }
353

    
354
    @Override
355
    public DataSet getDataSet() throws DataException {
356
        return null;
357
    }
358

    
359
    @Override
360
    public DataSet getDataSet(DataQuery dataQuery) throws DataException {
361
        return null;
362
    }
363

    
364
    @Override
365
    public void accept(Visitor visitor) throws BaseException {
366

    
367
    }
368

    
369
    @Override
370
    public void accept(Visitor visitor, DataQuery dataQuery) throws BaseException {
371

    
372
    }
373

    
374
    @Override
375
    public void getDataSet(Observer observer) throws DataException {
376

    
377
    }
378

    
379
    @Override
380
    public void getDataSet(DataQuery dataQuery, Observer observer) throws DataException {
381

    
382
    }
383

    
384
    @Override
385
    public DataSet getSelection() throws DataException {
386
        return null;
387
    }
388

    
389
    @Override
390
    public void setSelection(DataSet selection) throws DataException {
391

    
392
    }
393

    
394
    @Override
395
    public DataSet createSelection() throws DataException {
396
        return null;
397
    }
398

    
399
    @Override
400
    public Iterator getChildren() {
401
        return null;
402
    }
403

    
404
    @Override
405
    public DataServerExplorer getExplorer() throws DataException, ValidateDataParametersException {
406
        return null;
407
    }
408

    
409
    @Override
410
    public DataQuery createQuery() {
411
        return null;
412
    }
413

    
414
    @Override
415
    public Interval getInterval() {
416
        return null;
417
    }
418

    
419
    @Override
420
    public Collection getTimes() {
421
        return null;
422
    }
423

    
424
    @Override
425
    public Collection getTimes(Interval interval) {
426
        return null;
427
    }
428

    
429
    @Override
430
    public void disableNotifications() {
431

    
432
    }
433

    
434
    @Override
435
    public void enableNotifications() {
436

    
437
    }
438

    
439
    @Override
440
    public void beginComplexNotification() {
441

    
442
    }
443

    
444
    @Override
445
    public void endComplexNotification() {
446

    
447
    }
448

    
449
    @Override
450
    public void addObserver(Observer obsrvr) {
451

    
452
    }
453

    
454
    @Override
455
    public void deleteObserver(Observer obsrvr) {
456

    
457
    }
458

    
459
    @Override
460
    public void deleteObservers() {
461

    
462
    }
463

    
464
    @Override
465
    public void saveToState(PersistentState ps) throws PersistenceException {
466

    
467
    }
468

    
469
    @Override
470
    public void loadFromState(PersistentState ps) throws PersistenceException {
471

    
472
    }
473

    
474
    @Override
475
    public Object getMetadataID() throws MetadataException {
476
        return null;
477
    }
478

    
479
    @Override
480
    public String getMetadataName() throws MetadataException {
481
        return null;
482
    }
483

    
484
    @Override
485
    public Set getMetadataChildren() throws MetadataException {
486
        return null;
487
    }
488

    
489
    @Override
490
    public DynClass getDynClass() {
491
        return null;
492
    }
493

    
494
    @Override
495
    public void implement(DynClass dc) {
496

    
497
    }
498

    
499
    @Override
500
    public void delegate(DynObject d) {
501

    
502
    }
503

    
504
    @Override
505
    public Object getDynValue(String string) throws DynFieldNotFoundException {
506
        return null;
507
    }
508

    
509
    @Override
510
    public void setDynValue(String string, Object o) throws DynFieldNotFoundException {
511

    
512
    }
513

    
514
    @Override
515
    public boolean hasDynValue(String string) {
516
        return false;
517
    }
518

    
519
    @Override
520
    public Object invokeDynMethod(String string, Object[] os) throws DynMethodException {
521
        return null;
522
    }
523

    
524
    @Override
525
    public Object invokeDynMethod(int i, Object[] os) throws DynMethodException {
526
        return null;
527
    }
528

    
529
    @Override
530
    public void clear() {
531

    
532
    }
533

    
534
    @Override
535
    public void dispose() {
536

    
537
    }
538

    
539
    @Override
540
    public void undo() throws UndoException {
541

    
542
    }
543

    
544
    @Override
545
    public void undo(int i) throws UndoException {
546

    
547
    }
548

    
549
    @Override
550
    public void redo() throws RedoException {
551

    
552
    }
553

    
554
    @Override
555
    public void redo(int i) throws RedoException {
556

    
557
    }
558

    
559
    @Override
560
    public List getUndoInfos() {
561
        return null;
562
    }
563

    
564
    @Override
565
    public List getRedoInfos() {
566
        return null;
567
    }
568

    
569
    @Override
570
    public boolean canUndo() {
571
        return false;
572
    }
573

    
574
    @Override
575
    public boolean canRedo() {
576
        return false;
577
    }
578

    
579
    @Override
580
    public ExpressionEvaluator createExpression() {
581
        return null;
582
    }
583

    
584
    @Override
585
    public List<Feature> getFeatures() {
586
        return null;
587
    }
588

    
589
    @Override
590
    public void createCache(String name, DynObject parameters) throws DataException {
591

    
592
    }
593

    
594
    @Override
595
    public FeatureCache getCache() {
596
        return null;
597
    }
598

    
599
    @Override
600
    public void useCache(String providerName, DynObject parameters) throws DataException {
601
        throw new UnsupportedOperationException();
602
    }
603

    
604
    @Override
605
    public DataStoreProviderFactory getProviderFactory() {
606
        return null;
607
    }
608

    
609
    @Override
610
    public boolean isBroken() {
611
        return false;
612
    }
613

    
614
        @Override
615
        public Throwable getBreakingsCause() {
616
                return null;
617
        }
618

    
619
}