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

History | View | Annotate | Download (11.9 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
import org.cresques.cts.IProjection;
9
import org.gvsig.fmap.dal.DataQuery;
10
import org.gvsig.fmap.dal.DataServerExplorer;
11
import org.gvsig.fmap.dal.DataSet;
12
import org.gvsig.fmap.dal.DataStoreParameters;
13
import org.gvsig.fmap.dal.ExpressionBuilder;
14
import org.gvsig.fmap.dal.exception.DataException;
15
import org.gvsig.fmap.dal.exception.ValidateDataParametersException;
16
import org.gvsig.fmap.dal.feature.exception.NeedEditingModeException;
17
import org.gvsig.fmap.geom.primitive.Envelope;
18
import org.gvsig.metadata.exceptions.MetadataException;
19
import org.gvsig.timesupport.Interval;
20
import org.gvsig.tools.dynobject.DynClass;
21
import org.gvsig.tools.dynobject.DynObject;
22
import org.gvsig.tools.dynobject.exception.DynFieldNotFoundException;
23
import org.gvsig.tools.dynobject.exception.DynMethodException;
24
import org.gvsig.tools.exception.BaseException;
25
import org.gvsig.tools.observer.Observer;
26
import org.gvsig.tools.persistence.PersistentState;
27
import org.gvsig.tools.persistence.exception.PersistenceException;
28
import org.gvsig.tools.undo.RedoException;
29
import org.gvsig.tools.undo.UndoException;
30
import org.gvsig.tools.visitor.Visitor;
31

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

    
38

    
39
public class DummyFetureStore implements FeatureStore {
40

    
41
    @Override
42
    public Object clone() throws CloneNotSupportedException {
43
        return super.clone();
44
    }
45

    
46
    @Override
47
    public boolean allowWrite() {
48
        return false;
49
    }
50

    
51
    @Override
52
    public FeatureType getDefaultFeatureType() throws DataException {
53
        return null;
54
    }
55

    
56
    @Override
57
    public FeatureType getFeatureType(String featureTypeId) throws DataException {
58
        return null;
59
    }
60

    
61
    @Override
62
    public List getFeatureTypes() throws DataException {
63
        return null;
64
    }
65

    
66
    @Override
67
    public DataStoreParameters getParameters() {
68
        return null;
69
    }
70

    
71
    @Override
72
    public boolean canWriteGeometry(int gvSIGgeometryType) throws DataException {
73
        return false;
74
    }
75

    
76
    @Override
77
    public Envelope getEnvelope() throws DataException {
78
        return null;
79
    }
80

    
81
    @Override
82
    public IProjection getSRSDefaultGeometry() throws DataException {
83
        return null;
84
    }
85

    
86
    @Override
87
    public void export(DataServerExplorer explorer, String provider, NewFeatureStoreParameters params) throws DataException {
88

    
89
    }
90

    
91
    @Override
92
    public FeatureSet getFeatureSet() throws DataException {
93
        return null;
94
    }
95

    
96
    @Override
97
    public FeatureSet getFeatureSet(FeatureQuery featureQuery) throws DataException {
98
        return null;
99
    }
100

    
101
    @Override
102
    public void getFeatureSet(FeatureQuery featureQuery, Observer observer) throws DataException {
103

    
104
    }
105

    
106
    @Override
107
    public void getFeatureSet(Observer observer) throws DataException {
108

    
109
    }
110

    
111
    @Override
112
    public List<Feature> getFeatures(FeatureQuery query, int pageSize) {
113
        return null;
114
    }
115

    
116
    @Override
117
    public Feature getFeatureByReference(FeatureReference reference) throws DataException {
118
        return null;
119
    }
120

    
121
    @Override
122
    public Feature getFeatureByReference(FeatureReference reference, FeatureType featureType) throws DataException {
123
        return null;
124
    }
125

    
126
    @Override
127
    public void edit() throws DataException {
128

    
129
    }
130

    
131
    @Override
132
    public void edit(int mode) throws DataException {
133

    
134
    }
135

    
136
    @Override
137
    public void cancelEditing() throws DataException {
138

    
139
    }
140

    
141
    @Override
142
    public void finishEditing() throws DataException {
143

    
144
    }
145

    
146
    @Override
147
    public void commitChanges() throws DataException {
148

    
149
    }
150

    
151
    @Override
152
    public boolean canCommitChanges() throws DataException {
153
        return false;
154
    }
155

    
156
    @Override
157
    public boolean isEditing() {
158
        return false;
159
    }
160

    
161
    @Override
162
    public boolean isAppending() {
163
        return false;
164
    }
165

    
166
    @Override
167
    public void update(EditableFeatureType featureType) throws DataException {
168

    
169
    }
170

    
171
    @Override
172
    public void update(EditableFeature feature) throws DataException {
173

    
174
    }
175

    
176
    @Override
177
    public void delete(Feature feature) throws DataException {
178

    
179
    }
180

    
181
    @Override
182
    public void insert(EditableFeature feature) throws DataException {
183

    
184
    }
185

    
186
    @Override
187
    public EditableFeature createNewFeature() throws DataException {
188
        return null;
189
    }
190

    
191
    @Override
192
    public EditableFeature createNewFeature(FeatureType type, Feature defaultValues) throws DataException {
193
        return null;
194
    }
195

    
196
    @Override
197
    public EditableFeature createNewFeature(FeatureType type, boolean defaultValues) throws DataException {
198
        return null;
199
    }
200

    
201
    @Override
202
    public EditableFeature createNewFeature(boolean defaultValues) throws DataException {
203
        return null;
204
    }
205

    
206
    @Override
207
    public EditableFeature createNewFeature(Feature defaultValues) throws DataException {
208
        return null;
209
    }
210

    
211
    @Override
212
    public void validateFeatures(int mode) throws DataException {
213

    
214
    }
215

    
216
    @Override
217
    public boolean isAppendModeSupported() {
218
        return false;
219
    }
220

    
221
    @Override
222
    public void beginEditingGroup(String description) throws NeedEditingModeException {
223

    
224
    }
225

    
226
    @Override
227
    public void endEditingGroup() throws NeedEditingModeException {
228

    
229
    }
230

    
231
    @Override
232
    public FeatureIndex createIndex(FeatureType featureType, String attributeName, String indexName) throws DataException {
233
        return null;
234
    }
235

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

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

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

    
251
    @Override
252
    public FeatureIndexes getIndexes() {
253
        return null;
254
    }
255

    
256
    @Override
257
    public void setSelection(FeatureSet selection) throws DataException {
258

    
259
    }
260

    
261
    @Override
262
    public FeatureSelection createFeatureSelection() throws DataException {
263
        return null;
264
    }
265

    
266
    @Override
267
    public FeatureSelection getFeatureSelection() throws DataException {
268
        return null;
269
    }
270

    
271
    @Override
272
    public boolean isLocksSupported() {
273
        return false;
274
    }
275

    
276
    @Override
277
    public FeatureLocks getLocks() throws DataException {
278
        return null;
279
    }
280

    
281
    @Override
282
    public FeatureStoreTransforms getTransforms() {
283
        return null;
284
    }
285

    
286
    @Override
287
    public FeatureQuery createFeatureQuery() {
288
        return null;
289
    }
290

    
291
    @Override
292
    public long getFeatureCount() throws DataException {
293
        return 0;
294
    }
295

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

    
306
    @Override
307
    public boolean isKnownEnvelope() {
308
        return false;
309
    }
310

    
311
    @Override
312
    public boolean hasRetrievedFeaturesLimit() {
313
        return false;
314
    }
315

    
316
    @Override
317
    public int getRetrievedFeaturesLimit() {
318
        return 0;
319
    }
320

    
321
    @Override
322
    public Feature getFeature(DynObject dynobject) {
323
        return null;
324
    }
325

    
326
    @Override
327
    public Iterator iterator() {
328
        return null;
329
    }
330

    
331
    @Override
332
    public String getName() {
333
        return null;
334
    }
335

    
336
    @Override
337
    public String getFullName() {
338
        return null;
339
    }
340

    
341
    @Override
342
    public String getProviderName() {
343
        return null;
344
    }
345

    
346
    @Override
347
    public void refresh() throws DataException {
348

    
349
    }
350

    
351
    @Override
352
    public DataSet getDataSet() throws DataException {
353
        return null;
354
    }
355

    
356
    @Override
357
    public DataSet getDataSet(DataQuery dataQuery) throws DataException {
358
        return null;
359
    }
360

    
361
    @Override
362
    public void accept(Visitor visitor) throws BaseException {
363

    
364
    }
365

    
366
    @Override
367
    public void accept(Visitor visitor, DataQuery dataQuery) throws BaseException {
368

    
369
    }
370

    
371
    @Override
372
    public void getDataSet(Observer observer) throws DataException {
373

    
374
    }
375

    
376
    @Override
377
    public void getDataSet(DataQuery dataQuery, Observer observer) throws DataException {
378

    
379
    }
380

    
381
    @Override
382
    public DataSet getSelection() throws DataException {
383
        return null;
384
    }
385

    
386
    @Override
387
    public void setSelection(DataSet selection) throws DataException {
388

    
389
    }
390

    
391
    @Override
392
    public DataSet createSelection() throws DataException {
393
        return null;
394
    }
395

    
396
    @Override
397
    public Iterator getChildren() {
398
        return null;
399
    }
400

    
401
    @Override
402
    public DataServerExplorer getExplorer() throws DataException, ValidateDataParametersException {
403
        return null;
404
    }
405

    
406
    @Override
407
    public DataQuery createQuery() {
408
        return null;
409
    }
410

    
411
    @Override
412
    public Interval getInterval() {
413
        return null;
414
    }
415

    
416
    @Override
417
    public Collection getTimes() {
418
        return null;
419
    }
420

    
421
    @Override
422
    public Collection getTimes(Interval interval) {
423
        return null;
424
    }
425

    
426
    @Override
427
    public void disableNotifications() {
428

    
429
    }
430

    
431
    @Override
432
    public void enableNotifications() {
433

    
434
    }
435

    
436
    @Override
437
    public void beginComplexNotification() {
438

    
439
    }
440

    
441
    @Override
442
    public void endComplexNotification() {
443

    
444
    }
445

    
446
    @Override
447
    public void addObserver(Observer obsrvr) {
448

    
449
    }
450

    
451
    @Override
452
    public void deleteObserver(Observer obsrvr) {
453

    
454
    }
455

    
456
    @Override
457
    public void deleteObservers() {
458

    
459
    }
460

    
461
    @Override
462
    public void saveToState(PersistentState ps) throws PersistenceException {
463

    
464
    }
465

    
466
    @Override
467
    public void loadFromState(PersistentState ps) throws PersistenceException {
468

    
469
    }
470

    
471
    @Override
472
    public Object getMetadataID() throws MetadataException {
473
        return null;
474
    }
475

    
476
    @Override
477
    public String getMetadataName() throws MetadataException {
478
        return null;
479
    }
480

    
481
    @Override
482
    public Set getMetadataChildren() throws MetadataException {
483
        return null;
484
    }
485

    
486
    @Override
487
    public DynClass getDynClass() {
488
        return null;
489
    }
490

    
491
    @Override
492
    public void implement(DynClass dc) {
493

    
494
    }
495

    
496
    @Override
497
    public void delegate(DynObject d) {
498

    
499
    }
500

    
501
    @Override
502
    public Object getDynValue(String string) throws DynFieldNotFoundException {
503
        return null;
504
    }
505

    
506
    @Override
507
    public void setDynValue(String string, Object o) throws DynFieldNotFoundException {
508

    
509
    }
510

    
511
    @Override
512
    public boolean hasDynValue(String string) {
513
        return false;
514
    }
515

    
516
    @Override
517
    public Object invokeDynMethod(String string, Object[] os) throws DynMethodException {
518
        return null;
519
    }
520

    
521
    @Override
522
    public Object invokeDynMethod(int i, Object[] os) throws DynMethodException {
523
        return null;
524
    }
525

    
526
    @Override
527
    public void clear() {
528

    
529
    }
530

    
531
    @Override
532
    public void dispose() {
533

    
534
    }
535

    
536
    @Override
537
    public void undo() throws UndoException {
538

    
539
    }
540

    
541
    @Override
542
    public void undo(int i) throws UndoException {
543

    
544
    }
545

    
546
    @Override
547
    public void redo() throws RedoException {
548

    
549
    }
550

    
551
    @Override
552
    public void redo(int i) throws RedoException {
553

    
554
    }
555

    
556
    @Override
557
    public List getUndoInfos() {
558
        return null;
559
    }
560

    
561
    @Override
562
    public List getRedoInfos() {
563
        return null;
564
    }
565

    
566
    @Override
567
    public boolean canUndo() {
568
        return false;
569
    }
570

    
571
    @Override
572
    public boolean canRedo() {
573
        return false;
574
    }
575

    
576
    @Override
577
    public ExpressionBuilder createExpressionBuilder() {
578
        return null;
579
    }
580

    
581
    @Override
582
    public List<Feature> getFeatures() {
583
        return null;
584
    }  
585

    
586
}