Revision 42928 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.mapcontext/org.gvsig.fmap.mapcontext.api/src/test/java/org/gvsig/fmap/mapcontext/persistence/DummyFileFeatureStore.java

View differences:

DummyFileFeatureStore.java
22 22
 */
23 23
package org.gvsig.fmap.mapcontext.persistence;
24 24

  
25
import java.text.DateFormat;
26
import java.util.Collection;
27
import java.util.Iterator;
28
import java.util.List;
29
import java.util.Set;
30

  
31
import org.cresques.cts.IProjection;
32

  
33
import org.gvsig.fmap.dal.DataQuery;
34
import org.gvsig.fmap.dal.DataServerExplorer;
35
import org.gvsig.fmap.dal.DataSet;
36
import org.gvsig.fmap.dal.DataStoreParameters;
37
import org.gvsig.fmap.dal.exception.DataException;
38
import org.gvsig.fmap.dal.exception.ValidateDataParametersException;
39
import org.gvsig.fmap.dal.feature.EditableFeature;
40
import org.gvsig.fmap.dal.feature.EditableFeatureType;
41
import org.gvsig.fmap.dal.feature.Feature;
42
import org.gvsig.fmap.dal.feature.FeatureAttributeDescriptor;
43
import org.gvsig.fmap.dal.feature.FeatureAttributeEmulator;
44
import org.gvsig.fmap.dal.feature.FeatureAttributeGetter;
45
import org.gvsig.fmap.dal.feature.FeatureCache;
46
import org.gvsig.fmap.dal.feature.FeatureIndex;
47
import org.gvsig.fmap.dal.feature.FeatureIndexes;
48
import org.gvsig.fmap.dal.feature.FeatureLocks;
49
import org.gvsig.fmap.dal.feature.FeatureQuery;
50
import org.gvsig.fmap.dal.feature.FeatureReference;
51
import org.gvsig.fmap.dal.feature.FeatureRules;
52
import org.gvsig.fmap.dal.feature.FeatureSelection;
53
import org.gvsig.fmap.dal.feature.FeatureSet;
54 25
import org.gvsig.fmap.dal.feature.FeatureStore;
55
import org.gvsig.fmap.dal.feature.FeatureStoreTransforms;
56
import org.gvsig.fmap.dal.feature.FeatureType;
57
import org.gvsig.fmap.dal.feature.NewFeatureStoreParameters;
58
import org.gvsig.fmap.dal.feature.exception.NeedEditingModeException;
59
import org.gvsig.fmap.geom.Geometry;
60
import org.gvsig.fmap.geom.primitive.Envelope;
61
import org.gvsig.fmap.geom.type.GeometryType;
62
import org.gvsig.timesupport.Interval;
63 26
import org.gvsig.tools.ToolsLocator;
64
import org.gvsig.tools.dataTypes.CoercionException;
65
import org.gvsig.tools.dataTypes.DataType;
66
import org.gvsig.tools.dynobject.DynClass;
67
import org.gvsig.tools.dynobject.DynField;
68
import org.gvsig.tools.dynobject.DynMethod;
69
import org.gvsig.tools.dynobject.DynObject;
70
import org.gvsig.tools.dynobject.DynObjectValueItem;
71 27
import org.gvsig.tools.dynobject.DynStruct;
72
import org.gvsig.tools.dynobject.exception.DynFieldIsNotAContainerException;
73
import org.gvsig.tools.dynobject.exception.DynFieldNotFoundException;
74
import org.gvsig.tools.dynobject.exception.DynFieldValidateException;
75
import org.gvsig.tools.dynobject.exception.DynMethodException;
76
import org.gvsig.tools.dynobject.exception.DynObjectValidateException;
77
import org.gvsig.tools.evaluator.Evaluator;
78
import org.gvsig.tools.exception.BaseException;
79
import org.gvsig.tools.observer.Observer;
80 28
import org.gvsig.tools.persistence.PersistenceManager;
81 29
import org.gvsig.tools.persistence.PersistentState;
82 30
import org.gvsig.tools.persistence.exception.PersistenceException;
83
import org.gvsig.tools.undo.RedoException;
84
import org.gvsig.tools.undo.UndoException;
85
import org.gvsig.tools.visitor.Visitor;
31
import org.gvsig.fmap.dal.feature.DummyFetureStore;
86 32

  
87
public class DummyFileFeatureStore implements FeatureStore {
33
public class DummyFileFeatureStore extends DummyFetureStore implements FeatureStore {
88 34

  
89
    public static class DummyFeatureAttributeDescriptor implements
90
            FeatureAttributeDescriptor {
91

  
92
        @Override
93
        public Object clone() throws CloneNotSupportedException {
94
            return super.clone();
95
        }
96

  
97
        
98
        public boolean allowNull() {
99
            // TODO Auto-generated method stub
100
            return false;
101
        }
102

  
103
        public Object getAdditionalInfo(String infoName) {
104
            // TODO Auto-generated method stub
105
            return null;
106
        }
107

  
108
        public FeatureAttributeDescriptor getCopy() {
109
            // TODO Auto-generated method stub
110
            return null;
111
        }
112

  
113
        public DataType getDataType() {
114
            // TODO Auto-generated method stub
115
            return null;
116
        }
117

  
118
        public String getDataTypeName() {
119
            // TODO Auto-generated method stub
120
            return null;
121
        }
122

  
123
        public DateFormat getDateFormat() {
124
            // TODO Auto-generated method stub
125
            return null;
126
        }
127

  
128
        public Object getDefaultValue() {
129
            // TODO Auto-generated method stub
130
            return null;
131
        }
132

  
133
        public Evaluator getEvaluator() {
134
            // TODO Auto-generated method stub
135
            return null;
136
        }
137

  
138
        public int getGeometrySubType() {
139
            // TODO Auto-generated method stub
140
            return 0;
141
        }
142

  
143
        public int getGeometryType() {
144
            return Geometry.TYPES.POINT;
145
        }
146

  
147
        public int getIndex() {
148
            // TODO Auto-generated method stub
149
            return 0;
150
        }
151

  
152
        public int getMaximumOccurrences() {
153
            // TODO Auto-generated method stub
154
            return 0;
155
        }
156

  
157
        public int getMinimumOccurrences() {
158
            // TODO Auto-generated method stub
159
            return 0;
160
        }
161

  
162
        public String getName() {
163
            // TODO Auto-generated method stub
164
            return null;
165
        }
166

  
167
        public Class getObjectClass() {
168
            // TODO Auto-generated method stub
169
            return null;
170
        }
171

  
172
        public int getPrecision() {
173
            // TODO Auto-generated method stub
174
            return 0;
175
        }
176

  
177
        public IProjection getSRS() {
178
            // TODO Auto-generated method stub
179
            return null;
180
        }
181

  
182
        public int getSize() {
183
            // TODO Auto-generated method stub
184
            return 0;
185
        }
186

  
187
        public int getType() {
188
            // TODO Auto-generated method stub
189
            return 0;
190
        }
191

  
192
        public boolean isAutomatic() {
193
            // TODO Auto-generated method stub
194
            return false;
195
        }
196

  
197
        public boolean isPrimaryKey() {
198
            // TODO Auto-generated method stub
199
            return false;
200
        }
201

  
202
        public boolean isReadOnly() {
203
            // TODO Auto-generated method stub
204
            return false;
205
        }
206

  
207
        public String getSubtype() {
208
            // TODO Auto-generated method stub
209
            return null;
210
        }
211

  
212
        public int getTheTypeOfAvailableValues() {
213
            // TODO Auto-generated method stub
214
            return 0;
215
        }
216

  
217
        public boolean isContainer() {
218
            // TODO Auto-generated method stub
219
            return false;
220
        }
221

  
222
        public boolean isHidden() {
223
            // TODO Auto-generated method stub
224
            return false;
225
        }
226

  
227
        public boolean isMandatory() {
228
            // TODO Auto-generated method stub
229
            return false;
230
        }
231

  
232
        public boolean isPersistent() {
233
            // TODO Auto-generated method stub
234
            return false;
235
        }
236

  
237
        public DynField setAvailableValues(DynObjectValueItem[] values) {
238
            // TODO Auto-generated method stub
239
            return null;
240
        }
241

  
242
        public DynField setAvailableValues(List values) {
243
            // TODO Auto-generated method stub
244
            return null;
245
        }
246

  
247
        public DynField setClassOfItems(Class theClass)
248
                throws DynFieldIsNotAContainerException {
249
            // TODO Auto-generated method stub
250
            return null;
251
        }
252

  
253
        public DynField setClassOfValue(Class theClass)
254
                throws DynFieldIsNotAContainerException {
255
            // TODO Auto-generated method stub
256
            return null;
257
        }
258

  
259
        public DynField setDefaultDynValue(Object defaultValue) {
260
            // TODO Auto-generated method stub
261
            return null;
262
        }
263

  
264
        public DynField setDefaultFieldValue(Object defaultValue) {
265
            // TODO Auto-generated method stub
266
            return null;
267
        }
268

  
269
        public DynField setDescription(String description) {
270
            // TODO Auto-generated method stub
271
            return null;
272
        }
273

  
274
        public DynField setElementsType(int type)
275
                throws DynFieldIsNotAContainerException {
276
            // TODO Auto-generated method stub
277
            return null;
278
        }
279

  
280
        public DynField setElementsType(DynStruct type)
281
                throws DynFieldIsNotAContainerException {
282
            // TODO Auto-generated method stub
283
            return null;
284
        }
285

  
286
        public DynField setGroup(String groupName) {
287
            // TODO Auto-generated method stub
288
            return null;
289
        }
290

  
291
        public DynField setHidden(boolean hidden) {
292
            // TODO Auto-generated method stub
293
            return null;
294
        }
295

  
296
        public DynField setMandatory(boolean mandatory) {
297
            // TODO Auto-generated method stub
298
            return null;
299
        }
300

  
301
        public DynField setMaxValue(Object maxValue) {
302
            // TODO Auto-generated method stub
303
            return null;
304
        }
305

  
306
        public DynField setMinValue(Object minValue) {
307
            // TODO Auto-generated method stub
308
            return null;
309
        }
310

  
311
        public DynField setOrder(int order) {
312
            // TODO Auto-generated method stub
313
            return null;
314
        }
315

  
316
        public DynField setPersistent(boolean persistent) {
317
            // TODO Auto-generated method stub
318
            return null;
319
        }
320

  
321
        public DynField setReadOnly(boolean isReadOnly) {
322
            // TODO Auto-generated method stub
323
            return null;
324
        }
325

  
326
        public DynField setSubtype(String subtype) {
327
            // TODO Auto-generated method stub
328
            return null;
329
        }
330

  
331
        public DynField setTheTypeOfAvailableValues(int type) {
332
            // TODO Auto-generated method stub
333
            return null;
334
        }
335

  
336
        public DynField setType(int type) {
337
            // TODO Auto-generated method stub
338
            return null;
339
        }
340

  
341
        public DynField setType(DataType type) {
342
            // TODO Auto-generated method stub
343
            return null;
344
        }
345

  
346
        public void validate(Object value) throws DynFieldValidateException {
347
            // TODO Auto-generated method stub
348

  
349
        }
350

  
351
        public Object coerce(Object value) throws CoercionException {
352
            // TODO Auto-generated method stub
353
            return null;
354
        }
355

  
356
        public DynObjectValueItem[] getAvailableValues() {
357
            // TODO Auto-generated method stub
358
            return null;
359
        }
360

  
361
        public Class getClassOfItems() {
362
            // TODO Auto-generated method stub
363
            return null;
364
        }
365

  
366
        public Class getClassOfValue() {
367
            // TODO Auto-generated method stub
368
            return null;
369
        }
370

  
371
        public String getDescription() {
372
            // TODO Auto-generated method stub
373
            return null;
374
        }
375

  
376
        public DynField getElementsType() {
377
            // TODO Auto-generated method stub
378
            return null;
379
        }
380

  
381
        public String getGroup() {
382
            // TODO Auto-generated method stub
383
            return null;
384
        }
385

  
386
        public Object getMaxValue() {
387
            // TODO Auto-generated method stub
388
            return null;
389
        }
390

  
391
        public Object getMinValue() {
392
            // TODO Auto-generated method stub
393
            return null;
394
        }
395

  
396
        public int getOder() {
397
            // TODO Auto-generated method stub
398
            return 0;
399
        }
400

  
401
        public GeometryType getGeomType() {
402
            // TODO Auto-generated method stub
403
            return null;
404
        }
405

  
406
        public boolean isTime() {
407
            // TODO Auto-generated method stub
408
            return false;
409
        }
410

  
411
        public FeatureAttributeGetter getFeatureAttributeGetter() {
412
            // TODO Auto-generated method stub
413
            return null;
414
        }
415

  
416
        public void setFeatureAttributeGetter(
417
                FeatureAttributeGetter featureAttributeGetter) {
418
            // TODO Auto-generated method stub
419

  
420
        }
421

  
422
        public FeatureAttributeEmulator getFeatureAttributeEmulator() {
423
            return null;
424
        }
425

  
426
        public boolean isIndexed() {
427
            throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
428
        }
429

  
430
        public boolean allowIndexDuplicateds() {
431
            throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
432
        }
433

  
434
        public boolean isIndexAscending() {
435
            throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
436
        }
437
    }
438

  
439
    public static class DummyFeatureType implements FeatureType {
440

  
441
        public boolean allowAutomaticValues() {
442
            // TODO Auto-generated method stub
443
            return false;
444
        }
445

  
446
        public Object get(String name) {
447
            // TODO Auto-generated method stub
448
            return null;
449
        }
450

  
451
        public Object get(int index) {
452
            // TODO Auto-generated method stub
453
            return null;
454
        }
455

  
456
        public FeatureAttributeDescriptor getAttributeDescriptor(String name) {
457
            // TODO Auto-generated method stub
458
            return null;
459
        }
460

  
461
        public FeatureAttributeDescriptor getAttributeDescriptor(int index) {
462
            return new DummyFeatureAttributeDescriptor();
463
        }
464

  
465
        public FeatureAttributeDescriptor[] getAttributeDescriptors() {
466
            // TODO Auto-generated method stub
467
            return null;
468
        }
469

  
470
        public FeatureType getCopy() {
471
            // TODO Auto-generated method stub
472
            return null;
473
        }
474

  
475
        public FeatureAttributeDescriptor getDefaultGeometryAttribute() {
476
            // TODO Auto-generated method stub
477
            return null;
478
        }
479

  
480
        public int getDefaultGeometryAttributeIndex() {
481
            return 0;
482
        }
483

  
484
        public String getDefaultGeometryAttributeName() {
485
            // TODO Auto-generated method stub
486
            return null;
487
        }
488

  
489
        public IProjection getDefaultSRS() {
490
            // TODO Auto-generated method stub
491
            return null;
492
        }
493

  
494
        public EditableFeatureType getEditable() {
495
            // TODO Auto-generated method stub
496
            return null;
497
        }
498

  
499
        public String getId() {
500
            // TODO Auto-generated method stub
501
            return null;
502
        }
503

  
504
        public int getIndex(String name) {
505
            // TODO Auto-generated method stub
506
            return 0;
507
        }
508

  
509
        public FeatureAttributeDescriptor[] getPrimaryKey() {
510
            // TODO Auto-generated method stub
511
            return null;
512
        }
513

  
514
        public FeatureRules getRules() {
515
            // TODO Auto-generated method stub
516
            return null;
517
        }
518

  
519
        public List getSRSs() {
520
            // TODO Auto-generated method stub
521
            return null;
522
        }
523

  
524
        public boolean hasEvaluators() {
525
            // TODO Auto-generated method stub
526
            return false;
527
        }
528

  
529
        public boolean hasOID() {
530
            // TODO Auto-generated method stub
531
            return false;
532
        }
533

  
534
        public Iterator iterator() {
535
            // TODO Auto-generated method stub
536
            return null;
537
        }
538

  
539
        public int size() {
540
            // TODO Auto-generated method stub
541
            return 0;
542
        }
543

  
544
        public DynClass[] getSuperDynClasses() {
545
            // TODO Auto-generated method stub
546
            return null;
547
        }
548

  
549
        public void removeDynMethod(String name) {
550
            // TODO Auto-generated method stub
551

  
552
        }
553

  
554
        public DynField addDynField(String name) {
555
            // TODO Auto-generated method stub
556
            return null;
557
        }
558

  
559
        public DynField addDynFieldArray(String name) {
560
            // TODO Auto-generated method stub
561
            return null;
562
        }
563

  
564
        public DynField addDynFieldBoolean(String name) {
565
            // TODO Auto-generated method stub
566
            return null;
567
        }
568

  
569
        public DynField addDynFieldChoice(String name, int type,
570
                Object defaultValue, DynObjectValueItem[] values,
571
                boolean mandatory, boolean persistent) {
572
            // TODO Auto-generated method stub
573
            return null;
574
        }
575

  
576
        public DynField addDynFieldChoice(String name, int type,
577
                Object defaultValue, DynObjectValueItem[] values) {
578
            // TODO Auto-generated method stub
579
            return null;
580
        }
581

  
582
        public DynField addDynFieldDate(String name) {
583
            // TODO Auto-generated method stub
584
            return null;
585
        }
586

  
587
        public DynField addDynFieldDouble(String name) {
588
            // TODO Auto-generated method stub
589
            return null;
590
        }
591

  
592
        public DynField addDynFieldFile(String name) {
593
            // TODO Auto-generated method stub
594
            return null;
595
        }
596

  
597
        public DynField addDynFieldFloat(String name) {
598
            // TODO Auto-generated method stub
599
            return null;
600
        }
601

  
602
        public DynField addDynFieldFolder(String name) {
603
            // TODO Auto-generated method stub
604
            return null;
605
        }
606

  
607
        public DynField addDynFieldInt(String name) {
608
            // TODO Auto-generated method stub
609
            return null;
610
        }
611

  
612
        public DynField addDynFieldList(String name) {
613
            // TODO Auto-generated method stub
614
            return null;
615
        }
616

  
617
        public DynField addDynFieldLong(String name) {
618
            // TODO Auto-generated method stub
619
            return null;
620
        }
621

  
622
        public DynField addDynFieldMap(String name) {
623
            // TODO Auto-generated method stub
624
            return null;
625
        }
626

  
627
        public DynField addDynFieldObject(String name) {
628
            // TODO Auto-generated method stub
629
            return null;
630
        }
631

  
632
        public DynField addDynFieldRange(String name, int type,
633
                Object defaultValue, Object min, Object max, boolean mandatory,
634
                boolean persistent) {
635
            // TODO Auto-generated method stub
636
            return null;
637
        }
638

  
639
        public DynField addDynFieldRange(String name, int type,
640
                Object defaultValue, Object min, Object max) {
641
            // TODO Auto-generated method stub
642
            return null;
643
        }
644

  
645
        public DynField addDynFieldSet(String name) {
646
            // TODO Auto-generated method stub
647
            return null;
648
        }
649

  
650
        public DynField addDynFieldSingle(String name, int type,
651
                Object defaultValue, boolean mandatory, boolean persistent) {
652
            // TODO Auto-generated method stub
653
            return null;
654
        }
655

  
656
        public DynField addDynFieldSingle(String name, int type,
657
                Object defaultValue) {
658
            // TODO Auto-generated method stub
659
            return null;
660
        }
661

  
662
        public DynField addDynFieldString(String name) {
663
            // TODO Auto-generated method stub
664
            return null;
665
        }
666

  
667
        public DynField addDynFieldURI(String name) {
668
            // TODO Auto-generated method stub
669
            return null;
670
        }
671

  
672
        public DynField addDynFieldURL(String name) {
673
            // TODO Auto-generated method stub
674
            return null;
675
        }
676

  
677
        public void extend(DynStruct struct) {
678
            // TODO Auto-generated method stub
679

  
680
        }
681

  
682
        public void extend(String namespace, String structName) {
683
            // TODO Auto-generated method stub
684

  
685
        }
686

  
687
        public void extend(String structName) {
688
            // TODO Auto-generated method stub
689

  
690
        }
691

  
692
        public DynField getDeclaredDynField(String name) {
693
            // TODO Auto-generated method stub
694
            return null;
695
        }
696

  
697
        public DynField[] getDeclaredDynFields() {
698
            // TODO Auto-generated method stub
699
            return null;
700
        }
701

  
702
        public String getDescription() {
703
            // TODO Auto-generated method stub
704
            return null;
705
        }
706

  
707
        public DynField getDynField(String name) {
708
            // TODO Auto-generated method stub
709
            return null;
710
        }
711

  
712
        public DynField[] getDynFields() {
713
            // TODO Auto-generated method stub
714
            return null;
715
        }
716

  
717
        public String getFullName() {
718
            // TODO Auto-generated method stub
719
            return null;
720
        }
721

  
722
        public String getName() {
723
            // TODO Auto-generated method stub
724
            return null;
725
        }
726

  
727
        public String getNamespace() {
728
            // TODO Auto-generated method stub
729
            return null;
730
        }
731

  
732
        public DynStruct[] getSuperDynStructs() {
733
            // TODO Auto-generated method stub
734
            return null;
735
        }
736

  
737
        public boolean isInstance(DynObject dynObject) {
738
            // TODO Auto-generated method stub
739
            return false;
740
        }
741

  
742
        public DynObject newInstance() {
743
            // TODO Auto-generated method stub
744
            return null;
745
        }
746

  
747
        public void removeDynField(String name) {
748
            // TODO Auto-generated method stub
749

  
750
        }
751

  
752
        public void setDescription(String description) {
753
            // TODO Auto-generated method stub
754

  
755
        }
756

  
757
        public void setNamespace(String namespace) {
758
            // TODO Auto-generated method stub
759

  
760
        }
761

  
762
        public void validate(DynObject object)
763
                throws DynObjectValidateException {
764
            // TODO Auto-generated method stub
765

  
766
        }
767

  
768
        public void addDynMethod(DynMethod dynMethod) {
769
            // TODO Auto-generated method stub
770

  
771
        }
772

  
773
        public DynMethod getDeclaredDynMethod(String name)
774
                throws DynMethodException {
775
            // TODO Auto-generated method stub
776
            return null;
777
        }
778

  
779
        public DynMethod[] getDeclaredDynMethods() throws DynMethodException {
780
            // TODO Auto-generated method stub
781
            return null;
782
        }
783

  
784
        public DynMethod getDynMethod(String name) throws DynMethodException {
785
            // TODO Auto-generated method stub
786
            return null;
787
        }
788

  
789
        public DynMethod getDynMethod(int code) throws DynMethodException {
790
            // TODO Auto-generated method stub
791
            return null;
792
        }
793

  
794
        public DynMethod[] getDynMethods() throws DynMethodException {
795
            // TODO Auto-generated method stub
796
            return null;
797
        }
798

  
799
        public boolean isExtendable(DynStruct dynStruct) {
800
            // TODO Auto-generated method stub
801
            return false;
802
        }
803

  
804
        public void extend(DynStruct[] structs) {
805
            // TODO Auto-generated method stub
806

  
807
        }
808

  
809
        public void remove(DynStruct superDynStruct) {
810
            // TODO Auto-generated method stub
811

  
812
        }
813

  
814
        public void removeAll(DynStruct[] superDynStruct) {
815
            // TODO Auto-generated method stub
816

  
817
        }
818

  
819
        public FeatureAttributeDescriptor getDefaultTimeAttribute() {
820
            // TODO Auto-generated method stub
821
            return null;
822
        }
823

  
824
    }
825

  
826 35
    private String name = "[empty]";
827 36

  
828 37
    public DummyFileFeatureStore() {
......
833 42
        name = "[FILE FEATURE STORE - " + id + "]";
834 43
    }
835 44

  
836
    public boolean allowWrite() {
837
        // TODO Auto-generated method stub
838
        return false;
839
    }
840

  
841
    public void beginEditingGroup(String description)
842
            throws NeedEditingModeException {
843
        // TODO Auto-generated method stub
844

  
845
    }
846

  
847
    public boolean canWriteGeometry(int gvSIGgeometryType) throws DataException {
848
        // TODO Auto-generated method stub
849
        return false;
850
    }
851

  
852
    public void cancelEditing() throws DataException {
853
        // TODO Auto-generated method stub
854

  
855
    }
856

  
857
    public FeatureQuery createFeatureQuery() {
858
        // TODO Auto-generated method stub
859
        return null;
860
    }
861

  
862
    public FeatureSelection createFeatureSelection() throws DataException {
863
        // TODO Auto-generated method stub
864
        return null;
865
    }
866

  
867
    public FeatureIndex createIndex(FeatureType featureType,
868
            String attributeName, String indexName) throws DataException {
869
        // TODO Auto-generated method stub
870
        return null;
871
    }
872

  
873
    public FeatureIndex createIndex(FeatureType featureType,
874
            String attributeName, String indexName, Observer observer)
875
            throws DataException {
876
        // TODO Auto-generated method stub
877
        return null;
878
    }
879

  
880
    public EditableFeature createNewFeature() throws DataException {
881
        // TODO Auto-generated method stub
882
        return null;
883
    }
884

  
885
    public EditableFeature createNewFeature(FeatureType type,
886
            Feature defaultValues) throws DataException {
887
        // TODO Auto-generated method stub
888
        return null;
889
    }
890

  
891
    public EditableFeature createNewFeature(FeatureType type,
892
            boolean defaultValues) throws DataException {
893
        // TODO Auto-generated method stub
894
        return null;
895
    }
896

  
897
    public EditableFeature createNewFeature(boolean defaultValues)
898
            throws DataException {
899
        // TODO Auto-generated method stub
900
        return null;
901
    }
902

  
903
    public void delete(Feature feature) throws DataException {
904
        // TODO Auto-generated method stub
905

  
906
    }
907

  
908
    public void edit() throws DataException {
909
        // TODO Auto-generated method stub
910

  
911
    }
912

  
913
    public void edit(int mode) throws DataException {
914
        // TODO Auto-generated method stub
915

  
916
    }
917

  
918
    public void endEditingGroup() throws NeedEditingModeException {
919
        // TODO Auto-generated method stub
920

  
921
    }
922

  
923
    public void finishEditing() throws DataException {
924
        // TODO Auto-generated method stub
925

  
926
    }
927

  
928
    public FeatureType getDefaultFeatureType() throws DataException {
929
        return new DummyFeatureType();
930
    }
931

  
932
    public Envelope getEnvelope() throws DataException {
933
        // TODO Auto-generated method stub
934
        return null;
935
    }
936

  
937
    public Feature getFeatureByReference(FeatureReference reference)
938
            throws DataException {
939
        // TODO Auto-generated method stub
940
        return null;
941
    }
942

  
943
    public Feature getFeatureByReference(FeatureReference reference,
944
            FeatureType featureType) throws DataException {
945
        // TODO Auto-generated method stub
946
        return null;
947
    }
948

  
949
    public long getFeatureCount() throws DataException {
950
        // TODO Auto-generated method stub
951
        return 0;
952
    }
953

  
954
    public FeatureSelection getFeatureSelection() throws DataException {
955
        // TODO Auto-generated method stub
956
        return null;
957
    }
958

  
959
    public FeatureSet getFeatureSet() throws DataException {
960
        // TODO Auto-generated method stub
961
        return null;
962
    }
963

  
964
    public FeatureSet getFeatureSet(FeatureQuery featureQuery)
965
            throws DataException {
966
        // TODO Auto-generated method stub
967
        return null;
968
    }
969

  
970
    public void getFeatureSet(FeatureQuery featureQuery, Observer observer)
971
            throws DataException {
972
        // TODO Auto-generated method stub
973

  
974
    }
975

  
976
    public void getFeatureSet(Observer observer) throws DataException {
977
        // TODO Auto-generated method stub
978

  
979
    }
980

  
981
    public FeatureType getFeatureType(String featureTypeId)
982
            throws DataException {
983
        // TODO Auto-generated method stub
984
        return null;
985
    }
986

  
987
    public List getFeatureTypes() throws DataException {
988
        // TODO Auto-generated method stub
989
        return null;
990
    }
991

  
992
    public FeatureIndexes getIndexes() {
993
        // TODO Auto-generated method stub
994
        return null;
995
    }
996

  
997
    public FeatureLocks getLocks() throws DataException {
998
        // TODO Auto-generated method stub
999
        return null;
1000
    }
1001

  
1002
    public DataStoreParameters getParameters() {
1003
        // TODO Auto-generated method stub
1004
        return null;
1005
    }
1006

  
1007
    public IProjection getSRSDefaultGeometry() throws DataException {
1008
        // TODO Auto-generated method stub
1009
        return null;
1010
    }
1011

  
1012
    public FeatureStoreTransforms getTransforms() {
1013
        // TODO Auto-generated method stub
1014
        return null;
1015
    }
1016

  
1017
    public void insert(EditableFeature feature) throws DataException {
1018
        // TODO Auto-generated method stub
1019

  
1020
    }
1021

  
1022
    public boolean isAppendModeSupported() {
1023
        // TODO Auto-generated method stub
1024
        return false;
1025
    }
1026

  
1027
    public boolean isAppending() {
1028
        // TODO Auto-generated method stub
1029
        return false;
1030
    }
1031

  
1032
    public boolean isEditing() {
1033
        // TODO Auto-generated method stub
1034
        return false;
1035
    }
1036

  
1037
    public boolean isLocksSupported() {
1038
        // TODO Auto-generated method stub
1039
        return false;
1040
    }
1041

  
1042
    public void setSelection(FeatureSet selection) throws DataException {
1043
        // TODO Auto-generated method stub
1044

  
1045
    }
1046

  
1047
    public void update(EditableFeatureType featureType) throws DataException {
1048
        // TODO Auto-generated method stub
1049

  
1050
    }
1051

  
1052
    public void update(EditableFeature feature) throws DataException {
1053
        // TODO Auto-generated method stub
1054

  
1055
    }
1056

  
1057
    public void validateFeatures(int mode) throws DataException {
1058
        // TODO Auto-generated method stub
1059

  
1060
    }
1061

  
1062
    public DataQuery createQuery() {
1063
        // TODO Auto-generated method stub
1064
        return null;
1065
    }
1066

  
1067
    public DataSet createSelection() throws DataException {
1068
        // TODO Auto-generated method stub
1069
        return null;
1070
    }
1071

  
1072
    public void dispose() {
1073
        // TODO Auto-generated method stub
1074

  
1075
    }
1076

  
1077
    public Iterator getChildren() {
1078
        // TODO Auto-generated method stub
1079
        return null;
1080
    }
1081

  
1082
    public DataSet getDataSet() throws DataException {
1083
        // TODO Auto-generated method stub
1084
        return null;
1085
    }
1086

  
1087
    public DataSet getDataSet(DataQuery dataQuery) throws DataException {
1088
        // TODO Auto-generated method stub
1089
        return null;
1090
    }
1091

  
1092
    public void getDataSet(Observer observer) throws DataException {
1093
        // TODO Auto-generated method stub
1094

  
1095
    }
1096

  
1097
    public void getDataSet(DataQuery dataQuery, Observer observer)
1098
            throws DataException {
1099
        // TODO Auto-generated method stub
1100

  
1101
    }
1102

  
1103
    public DataServerExplorer getExplorer() throws DataException,
1104
            ValidateDataParametersException {
1105
        // TODO Auto-generated method stub
1106
        return null;
1107
    }
1108

  
1109 45
    public String getName() {
1110 46
        return name;
1111 47
    }
1112 48

  
1113
    public DataSet getSelection() throws DataException {
1114
        // TODO Auto-generated method stub
1115
        return null;
1116
    }
1117

  
1118
    public void refresh() throws DataException {
1119
        // TODO Auto-generated method stub
1120

  
1121
    }
1122

  
1123
    public void setSelection(DataSet selection) throws DataException {
1124
        // TODO Auto-generated method stub
1125

  
1126
    }
1127

  
1128
    public void beginComplexNotification() {
1129
        // TODO Auto-generated method stub
1130

  
1131
    }
1132

  
1133
    public void disableNotifications() {
1134
        // TODO Auto-generated method stub
1135

  
1136
    }
1137

  
1138
    public void enableNotifications() {
1139
        // TODO Auto-generated method stub
1140

  
1141
    }
1142

  
1143
    public void endComplexNotification() {
1144
        // TODO Auto-generated method stub
1145

  
1146
    }
1147

  
1148
    public void addObserver(Observer o) {
1149
        // TODO Auto-generated method stub
1150

  
1151
    }
1152

  
1153
    public void deleteObserver(Observer o) {
1154
        // TODO Auto-generated method stub
1155

  
1156
    }
1157

  
1158
    public void deleteObservers() {
1159
        // TODO Auto-generated method stub
1160

  
1161
    }
1162

  
1163 49
    public void loadFromState(PersistentState state)
1164 50
            throws PersistenceException {
1165 51
        name = state.getString("name");
......
1169 55
        state.set("name", name);
1170 56
    }
1171 57

  
1172
    public Set getMetadataChildren() {
1173
        // TODO Auto-generated method stub
1174
        return null;
1175
    }
1176

  
1177
    public Object getMetadataID() {
1178
        // TODO Auto-generated method stub
1179
        return null;
1180
    }
1181

  
1182
    public String getMetadataName() {
1183
        // TODO Auto-generated method stub
1184
        return null;
1185
    }
1186

  
1187
    public void delegate(DynObject dynObject) {
1188
        // TODO Auto-generated method stub
1189

  
1190
    }
1191

  
1192
    public DynClass getDynClass() {
1193
        // TODO Auto-generated method stub
1194
        return null;
1195
    }
1196

  
1197
    public Object getDynValue(String name) throws DynFieldNotFoundException {
1198
        // TODO Auto-generated method stub
1199
        return null;
1200
    }
1201

  
1202
    public boolean hasDynValue(String name) {
1203
        // TODO Auto-generated method stub
1204
        return false;
1205
    }
1206

  
1207
    public void implement(DynClass dynClass) {
1208
        // TODO Auto-generated method stub
1209

  
1210
    }
1211

  
1212
    public Object invokeDynMethod(String name, Object[] args)
1213
            throws DynMethodException {
1214
        // TODO Auto-generated method stub
1215
        return null;
1216
    }
1217

  
1218
    public Object invokeDynMethod(int code, Object[] args)
1219
            throws DynMethodException {
1220
        // TODO Auto-generated method stub
1221
        return null;
1222
    }
1223

  
1224
    public void setDynValue(String name, Object value)
1225
            throws DynFieldNotFoundException {
1226
        // TODO Auto-generated method stub
1227

  
1228
    }
1229

  
1230
    public boolean canRedo() {
1231
        // TODO Auto-generated method stub
1232
        return false;
1233
    }
1234

  
1235
    public boolean canUndo() {
1236
        // TODO Auto-generated method stub
1237
        return false;
1238
    }
1239

  
1240
    public List getRedoInfos() {
1241
        // TODO Auto-generated method stub
1242
        return null;
1243
    }
1244

  
1245
    public List getUndoInfos() {
1246
        // TODO Auto-generated method stub
1247
        return null;
1248
    }
1249

  
1250
    public void redo() throws RedoException {
1251
        // TODO Auto-generated method stub
1252

  
1253
    }
1254

  
1255
    public void redo(int num) throws RedoException {
1256
        // TODO Auto-generated method stub
1257

  
1258
    }
1259

  
1260
    public void undo() throws UndoException {
1261
        // TODO Auto-generated method stub
1262

  
1263
    }
1264

  
1265
    public void undo(int num) throws UndoException {
1266
        // TODO Auto-generated method stub
1267

  
1268
    }
1269

  
1270 58
    public static void registerPersistent() {
1271 59
        PersistenceManager manager = ToolsLocator.getPersistenceManager();
1272 60
        DynStruct definition = manager.addDefinition(
......
1280 68
                .setMandatory(true);
1281 69
    }
1282 70

  
1283
    public void accept(Visitor visitor) throws BaseException {
1284
        // TODO Auto-generated method stub
1285

  
1286
    }
1287

  
1288
    public void accept(Visitor visitor, DataQuery dataQuery)
1289
            throws BaseException {
1290
        // TODO Auto-generated method stub
1291

  
1292
    }
1293

  
1294
    public void createCache(String name, DynObject parameters)
1295
            throws DataException {
1296
        // TODO Auto-generated method stub
1297

  
1298
    }
1299

  
1300
    public FeatureCache getCache() {
1301
        // TODO Auto-generated method stub
1302
        return null;
1303
    }
1304

  
1305
    public void clear() {
1306
        // Nothing to do
1307
    }
1308

  
1309
    public void export(DataServerExplorer explorer, String provider,
1310
            NewFeatureStoreParameters params) throws DataException {
1311
        // TODO Auto-generated method stub
1312

  
1313
    }
1314

  
1315
    public String getProviderName() {
1316
        // TODO Auto-generated method stub
1317
        return null;
1318
    }
1319

  
1320
    public String getFullName() {
1321
        // TODO Auto-generated method stub
1322
        return null;
1323
    }
1324

  
1325
    public boolean isKnownEnvelope() {
1326
        // TODO Auto-generated method stub
1327
        return false;
1328
    }
1329

  
1330
    public boolean hasRetrievedFeaturesLimit() {
1331
        // TODO Auto-generated method stub
1332
        return false;
1333
    }
1334

  
1335
    public int getRetrievedFeaturesLimit() {
1336
        // TODO Auto-generated method stub
1337
        return 0;
1338
    }
1339

  
1340
    public Interval getInterval() {
1341
        // TODO Auto-generated method stub
1342
        return null;
1343
    }
1344

  
1345
    public Collection getTimes() {
1346
        // TODO Auto-generated method stub
1347
        return null;
1348
    }
1349

  
1350
    public Collection getTimes(Interval interval) {
1351
        // TODO Auto-generated method stub
1352
        return null;
1353
    }
1354

  
1355
    public FeatureIndex createIndex(String indexTypeName,
1356
            FeatureType featureType, String attributeName, String indexName)
1357
            throws DataException {
1358
        // TODO Auto-generated method stub
1359
        return null;
1360
    }
1361

  
1362
    public FeatureIndex createIndex(String indexTypeName,
1363
            FeatureType featureType, String attributeName, String indexName,
1364
            Observer observer) throws DataException {
1365
        // TODO Auto-generated method stub
1366
        return null;
1367
    }
1368

  
1369
    public Object clone() throws CloneNotSupportedException {
1370
        // TODO Auto-generated method stub
1371
        return super.clone();
1372
    }
1373

  
1374
    /* (non-Javadoc)
1375
     * @see org.gvsig.fmap.dal.feature.FeatureStore#commitChanges()
1376
     */
1377
    public void commitChanges() throws DataException {
1378
        // TODO Auto-generated method stub
1379

  
1380
    }
1381

  
1382
    /* (non-Javadoc)
1383
     * @see org.gvsig.fmap.dal.feature.FeatureStore#canCommitChanges()
1384
     */
1385
    public boolean canCommitChanges() throws DataException {
1386
        // TODO Auto-generated method stub
1387
        return false;
1388
    }
1389

  
1390
    public Feature getFeature(DynObject dynobject) {
1391
        // TODO Auto-generated method stub
1392
        return null;
1393
    }
1394

  
1395
    public EditableFeature createNewFeature(Feature defaultValues) throws DataException {
1396
        return null;
1397
    }
1398

  
1399
    public Iterator iterator() {
1400
        return null;
1401
    }
1402 71
}

Also available in: Unified diff