svn-gvsig-desktop / tags / v2_0_0_Build_2021 / libraries / libFMap_mapcontext / src-test / org / gvsig / fmap / mapcontext / persistence / DummyFileFeatureStore.java @ 34093
History | View | Annotate | Download (29.4 KB)
1 |
package org.gvsig.fmap.mapcontext.persistence; |
---|---|
2 |
|
3 |
import java.text.DateFormat; |
4 |
import java.util.Iterator; |
5 |
import java.util.List; |
6 |
import java.util.Set; |
7 |
|
8 |
import org.cresques.cts.IProjection; |
9 |
|
10 |
import org.gvsig.fmap.dal.DataQuery; |
11 |
import org.gvsig.fmap.dal.DataServerExplorer; |
12 |
import org.gvsig.fmap.dal.DataSet; |
13 |
import org.gvsig.fmap.dal.DataStoreParameters; |
14 |
import org.gvsig.fmap.dal.exception.DataException; |
15 |
import org.gvsig.fmap.dal.exception.ValidateDataParametersException; |
16 |
import org.gvsig.fmap.dal.feature.EditableFeature; |
17 |
import org.gvsig.fmap.dal.feature.EditableFeatureType; |
18 |
import org.gvsig.fmap.dal.feature.Feature; |
19 |
import org.gvsig.fmap.dal.feature.FeatureAttributeDescriptor; |
20 |
import org.gvsig.fmap.dal.feature.FeatureCache; |
21 |
import org.gvsig.fmap.dal.feature.FeatureIndex; |
22 |
import org.gvsig.fmap.dal.feature.FeatureIndexes; |
23 |
import org.gvsig.fmap.dal.feature.FeatureLocks; |
24 |
import org.gvsig.fmap.dal.feature.FeatureQuery; |
25 |
import org.gvsig.fmap.dal.feature.FeatureReference; |
26 |
import org.gvsig.fmap.dal.feature.FeatureRules; |
27 |
import org.gvsig.fmap.dal.feature.FeatureSelection; |
28 |
import org.gvsig.fmap.dal.feature.FeatureSet; |
29 |
import org.gvsig.fmap.dal.feature.FeatureStore; |
30 |
import org.gvsig.fmap.dal.feature.FeatureStoreTransforms; |
31 |
import org.gvsig.fmap.dal.feature.FeatureType; |
32 |
import org.gvsig.fmap.dal.feature.NewFeatureStoreParameters; |
33 |
import org.gvsig.fmap.dal.feature.exception.NeedEditingModeException; |
34 |
import org.gvsig.fmap.geom.Geometry; |
35 |
import org.gvsig.fmap.geom.primitive.Envelope; |
36 |
import org.gvsig.tools.ToolsLocator; |
37 |
import org.gvsig.tools.dataTypes.CoercionException; |
38 |
import org.gvsig.tools.dataTypes.DataType; |
39 |
import org.gvsig.tools.dynobject.DynClass; |
40 |
import org.gvsig.tools.dynobject.DynField; |
41 |
import org.gvsig.tools.dynobject.DynMethod; |
42 |
import org.gvsig.tools.dynobject.DynObject; |
43 |
import org.gvsig.tools.dynobject.DynObjectValueItem; |
44 |
import org.gvsig.tools.dynobject.DynStruct; |
45 |
import org.gvsig.tools.dynobject.exception.DynFieldIsNotAContainerException; |
46 |
import org.gvsig.tools.dynobject.exception.DynFieldNotFoundException; |
47 |
import org.gvsig.tools.dynobject.exception.DynFieldValidateException; |
48 |
import org.gvsig.tools.dynobject.exception.DynMethodException; |
49 |
import org.gvsig.tools.dynobject.exception.DynObjectValidateException; |
50 |
import org.gvsig.tools.evaluator.Evaluator; |
51 |
import org.gvsig.tools.exception.BaseException; |
52 |
import org.gvsig.tools.observer.Observer; |
53 |
import org.gvsig.tools.persistence.PersistenceManager; |
54 |
import org.gvsig.tools.persistence.PersistentState; |
55 |
import org.gvsig.tools.persistence.exception.PersistenceException; |
56 |
import org.gvsig.tools.undo.RedoException; |
57 |
import org.gvsig.tools.undo.UndoException; |
58 |
import org.gvsig.tools.visitor.Visitor; |
59 |
|
60 |
public class DummyFileFeatureStore implements FeatureStore { |
61 |
|
62 |
public static class DummyFeatureAttributeDescriptor implements |
63 |
FeatureAttributeDescriptor { |
64 |
|
65 |
public boolean allowNull() { |
66 |
// TODO Auto-generated method stub
|
67 |
return false; |
68 |
} |
69 |
|
70 |
public Object getAdditionalInfo(String infoName) { |
71 |
// TODO Auto-generated method stub
|
72 |
return null; |
73 |
} |
74 |
|
75 |
public FeatureAttributeDescriptor getCopy() {
|
76 |
// TODO Auto-generated method stub
|
77 |
return null; |
78 |
} |
79 |
|
80 |
public DataType getDataType() {
|
81 |
// TODO Auto-generated method stub
|
82 |
return null; |
83 |
} |
84 |
|
85 |
public String getDataTypeName() { |
86 |
// TODO Auto-generated method stub
|
87 |
return null; |
88 |
} |
89 |
|
90 |
public DateFormat getDateFormat() { |
91 |
// TODO Auto-generated method stub
|
92 |
return null; |
93 |
} |
94 |
|
95 |
public Object getDefaultValue() { |
96 |
// TODO Auto-generated method stub
|
97 |
return null; |
98 |
} |
99 |
|
100 |
public Evaluator getEvaluator() {
|
101 |
// TODO Auto-generated method stub
|
102 |
return null; |
103 |
} |
104 |
|
105 |
public int getGeometrySubType() { |
106 |
// TODO Auto-generated method stub
|
107 |
return 0; |
108 |
} |
109 |
|
110 |
public int getGeometryType() { |
111 |
return Geometry.TYPES.POINT;
|
112 |
} |
113 |
|
114 |
public int getIndex() { |
115 |
// TODO Auto-generated method stub
|
116 |
return 0; |
117 |
} |
118 |
|
119 |
public int getMaximumOccurrences() { |
120 |
// TODO Auto-generated method stub
|
121 |
return 0; |
122 |
} |
123 |
|
124 |
public int getMinimumOccurrences() { |
125 |
// TODO Auto-generated method stub
|
126 |
return 0; |
127 |
} |
128 |
|
129 |
public String getName() { |
130 |
// TODO Auto-generated method stub
|
131 |
return null; |
132 |
} |
133 |
|
134 |
public Class getObjectClass() { |
135 |
// TODO Auto-generated method stub
|
136 |
return null; |
137 |
} |
138 |
|
139 |
public int getPrecision() { |
140 |
// TODO Auto-generated method stub
|
141 |
return 0; |
142 |
} |
143 |
|
144 |
public IProjection getSRS() {
|
145 |
// TODO Auto-generated method stub
|
146 |
return null; |
147 |
} |
148 |
|
149 |
public int getSize() { |
150 |
// TODO Auto-generated method stub
|
151 |
return 0; |
152 |
} |
153 |
|
154 |
public int getType() { |
155 |
// TODO Auto-generated method stub
|
156 |
return 0; |
157 |
} |
158 |
|
159 |
public boolean isAutomatic() { |
160 |
// TODO Auto-generated method stub
|
161 |
return false; |
162 |
} |
163 |
|
164 |
public boolean isPrimaryKey() { |
165 |
// TODO Auto-generated method stub
|
166 |
return false; |
167 |
} |
168 |
|
169 |
public boolean isReadOnly() { |
170 |
// TODO Auto-generated method stub
|
171 |
return false; |
172 |
} |
173 |
|
174 |
public String getSubtype() { |
175 |
// TODO Auto-generated method stub
|
176 |
return null; |
177 |
} |
178 |
|
179 |
public int getTheTypeOfAvailableValues() { |
180 |
// TODO Auto-generated method stub
|
181 |
return 0; |
182 |
} |
183 |
|
184 |
public boolean isContainer() { |
185 |
// TODO Auto-generated method stub
|
186 |
return false; |
187 |
} |
188 |
|
189 |
public boolean isHidden() { |
190 |
// TODO Auto-generated method stub
|
191 |
return false; |
192 |
} |
193 |
|
194 |
public boolean isMandatory() { |
195 |
// TODO Auto-generated method stub
|
196 |
return false; |
197 |
} |
198 |
|
199 |
public boolean isPersistent() { |
200 |
// TODO Auto-generated method stub
|
201 |
return false; |
202 |
} |
203 |
|
204 |
public DynField setAvailableValues(DynObjectValueItem[] values) { |
205 |
// TODO Auto-generated method stub
|
206 |
return null; |
207 |
} |
208 |
|
209 |
public DynField setAvailableValues(List values) { |
210 |
// TODO Auto-generated method stub
|
211 |
return null; |
212 |
} |
213 |
|
214 |
public DynField setClassOfItems(Class theClass) |
215 |
throws DynFieldIsNotAContainerException {
|
216 |
// TODO Auto-generated method stub
|
217 |
return null; |
218 |
} |
219 |
|
220 |
public DynField setClassOfValue(Class theClass) |
221 |
throws DynFieldIsNotAContainerException {
|
222 |
// TODO Auto-generated method stub
|
223 |
return null; |
224 |
} |
225 |
|
226 |
public DynField setDefaultDynValue(Object defaultValue) { |
227 |
// TODO Auto-generated method stub
|
228 |
return null; |
229 |
} |
230 |
|
231 |
public DynField setDefaultFieldValue(Object defaultValue) { |
232 |
// TODO Auto-generated method stub
|
233 |
return null; |
234 |
} |
235 |
|
236 |
public DynField setDescription(String description) { |
237 |
// TODO Auto-generated method stub
|
238 |
return null; |
239 |
} |
240 |
|
241 |
public DynField setElementsType(int type) |
242 |
throws DynFieldIsNotAContainerException {
|
243 |
// TODO Auto-generated method stub
|
244 |
return null; |
245 |
} |
246 |
|
247 |
public DynField setElementsType(DynStruct type)
|
248 |
throws DynFieldIsNotAContainerException {
|
249 |
// TODO Auto-generated method stub
|
250 |
return null; |
251 |
} |
252 |
|
253 |
public DynField setGroup(String groupName) { |
254 |
// TODO Auto-generated method stub
|
255 |
return null; |
256 |
} |
257 |
|
258 |
public DynField setHidden(boolean hidden) { |
259 |
// TODO Auto-generated method stub
|
260 |
return null; |
261 |
} |
262 |
|
263 |
public DynField setMandatory(boolean mandatory) { |
264 |
// TODO Auto-generated method stub
|
265 |
return null; |
266 |
} |
267 |
|
268 |
public DynField setMaxValue(Object maxValue) { |
269 |
// TODO Auto-generated method stub
|
270 |
return null; |
271 |
} |
272 |
|
273 |
public DynField setMinValue(Object minValue) { |
274 |
// TODO Auto-generated method stub
|
275 |
return null; |
276 |
} |
277 |
|
278 |
public DynField setOrder(int order) { |
279 |
// TODO Auto-generated method stub
|
280 |
return null; |
281 |
} |
282 |
|
283 |
public DynField setPersistent(boolean persistent) { |
284 |
// TODO Auto-generated method stub
|
285 |
return null; |
286 |
} |
287 |
|
288 |
public DynField setReadOnly(boolean isReadOnly) { |
289 |
// TODO Auto-generated method stub
|
290 |
return null; |
291 |
} |
292 |
|
293 |
public DynField setSubtype(String subtype) { |
294 |
// TODO Auto-generated method stub
|
295 |
return null; |
296 |
} |
297 |
|
298 |
public DynField setTheTypeOfAvailableValues(int type) { |
299 |
// TODO Auto-generated method stub
|
300 |
return null; |
301 |
} |
302 |
|
303 |
public DynField setType(int type) { |
304 |
// TODO Auto-generated method stub
|
305 |
return null; |
306 |
} |
307 |
|
308 |
public DynField setType(DataType type) {
|
309 |
// TODO Auto-generated method stub
|
310 |
return null; |
311 |
} |
312 |
|
313 |
public void validate(Object value) throws DynFieldValidateException { |
314 |
// TODO Auto-generated method stub
|
315 |
|
316 |
} |
317 |
|
318 |
public Object coerce(Object value) throws CoercionException { |
319 |
// TODO Auto-generated method stub
|
320 |
return null; |
321 |
} |
322 |
|
323 |
public DynObjectValueItem[] getAvailableValues() { |
324 |
// TODO Auto-generated method stub
|
325 |
return null; |
326 |
} |
327 |
|
328 |
public Class getClassOfItems() { |
329 |
// TODO Auto-generated method stub
|
330 |
return null; |
331 |
} |
332 |
|
333 |
public Class getClassOfValue() { |
334 |
// TODO Auto-generated method stub
|
335 |
return null; |
336 |
} |
337 |
|
338 |
public String getDescription() { |
339 |
// TODO Auto-generated method stub
|
340 |
return null; |
341 |
} |
342 |
|
343 |
public DynField getElementsType() {
|
344 |
// TODO Auto-generated method stub
|
345 |
return null; |
346 |
} |
347 |
|
348 |
public String getGroup() { |
349 |
// TODO Auto-generated method stub
|
350 |
return null; |
351 |
} |
352 |
|
353 |
public Object getMaxValue() { |
354 |
// TODO Auto-generated method stub
|
355 |
return null; |
356 |
} |
357 |
|
358 |
public Object getMinValue() { |
359 |
// TODO Auto-generated method stub
|
360 |
return null; |
361 |
} |
362 |
|
363 |
public int getOder() { |
364 |
// TODO Auto-generated method stub
|
365 |
return 0; |
366 |
} |
367 |
|
368 |
} |
369 |
|
370 |
public static class DummyFeatureType implements FeatureType { |
371 |
|
372 |
public boolean allowAutomaticValues() { |
373 |
// TODO Auto-generated method stub
|
374 |
return false; |
375 |
} |
376 |
|
377 |
public Object get(String name) { |
378 |
// TODO Auto-generated method stub
|
379 |
return null; |
380 |
} |
381 |
|
382 |
public Object get(int index) { |
383 |
// TODO Auto-generated method stub
|
384 |
return null; |
385 |
} |
386 |
|
387 |
public FeatureAttributeDescriptor getAttributeDescriptor(String name) { |
388 |
// TODO Auto-generated method stub
|
389 |
return null; |
390 |
} |
391 |
|
392 |
public FeatureAttributeDescriptor getAttributeDescriptor(int index) { |
393 |
return new DummyFeatureAttributeDescriptor(); |
394 |
} |
395 |
|
396 |
public FeatureAttributeDescriptor[] getAttributeDescriptors() { |
397 |
// TODO Auto-generated method stub
|
398 |
return null; |
399 |
} |
400 |
|
401 |
public FeatureType getCopy() {
|
402 |
// TODO Auto-generated method stub
|
403 |
return null; |
404 |
} |
405 |
|
406 |
public FeatureAttributeDescriptor getDefaultGeometryAttribute() {
|
407 |
// TODO Auto-generated method stub
|
408 |
return null; |
409 |
} |
410 |
|
411 |
public int getDefaultGeometryAttributeIndex() { |
412 |
return 0; |
413 |
} |
414 |
|
415 |
public String getDefaultGeometryAttributeName() { |
416 |
// TODO Auto-generated method stub
|
417 |
return null; |
418 |
} |
419 |
|
420 |
public IProjection getDefaultSRS() {
|
421 |
// TODO Auto-generated method stub
|
422 |
return null; |
423 |
} |
424 |
|
425 |
public EditableFeatureType getEditable() {
|
426 |
// TODO Auto-generated method stub
|
427 |
return null; |
428 |
} |
429 |
|
430 |
public String getId() { |
431 |
// TODO Auto-generated method stub
|
432 |
return null; |
433 |
} |
434 |
|
435 |
public int getIndex(String name) { |
436 |
// TODO Auto-generated method stub
|
437 |
return 0; |
438 |
} |
439 |
|
440 |
public FeatureAttributeDescriptor[] getPrimaryKey() { |
441 |
// TODO Auto-generated method stub
|
442 |
return null; |
443 |
} |
444 |
|
445 |
public FeatureRules getRules() {
|
446 |
// TODO Auto-generated method stub
|
447 |
return null; |
448 |
} |
449 |
|
450 |
public List getSRSs() { |
451 |
// TODO Auto-generated method stub
|
452 |
return null; |
453 |
} |
454 |
|
455 |
public boolean hasEvaluators() { |
456 |
// TODO Auto-generated method stub
|
457 |
return false; |
458 |
} |
459 |
|
460 |
public boolean hasOID() { |
461 |
// TODO Auto-generated method stub
|
462 |
return false; |
463 |
} |
464 |
|
465 |
public Iterator iterator() { |
466 |
// TODO Auto-generated method stub
|
467 |
return null; |
468 |
} |
469 |
|
470 |
public int size() { |
471 |
// TODO Auto-generated method stub
|
472 |
return 0; |
473 |
} |
474 |
|
475 |
public DynClass[] getSuperDynClasses() { |
476 |
// TODO Auto-generated method stub
|
477 |
return null; |
478 |
} |
479 |
|
480 |
public void removeDynMethod(String name) { |
481 |
// TODO Auto-generated method stub
|
482 |
|
483 |
} |
484 |
|
485 |
public DynField addDynField(String name) { |
486 |
// TODO Auto-generated method stub
|
487 |
return null; |
488 |
} |
489 |
|
490 |
public DynField addDynFieldArray(String name) { |
491 |
// TODO Auto-generated method stub
|
492 |
return null; |
493 |
} |
494 |
|
495 |
public DynField addDynFieldBoolean(String name) { |
496 |
// TODO Auto-generated method stub
|
497 |
return null; |
498 |
} |
499 |
|
500 |
public DynField addDynFieldChoice(String name, int type, |
501 |
Object defaultValue, DynObjectValueItem[] values, |
502 |
boolean mandatory, boolean persistent) { |
503 |
// TODO Auto-generated method stub
|
504 |
return null; |
505 |
} |
506 |
|
507 |
public DynField addDynFieldChoice(String name, int type, |
508 |
Object defaultValue, DynObjectValueItem[] values) { |
509 |
// TODO Auto-generated method stub
|
510 |
return null; |
511 |
} |
512 |
|
513 |
public DynField addDynFieldDate(String name) { |
514 |
// TODO Auto-generated method stub
|
515 |
return null; |
516 |
} |
517 |
|
518 |
public DynField addDynFieldDouble(String name) { |
519 |
// TODO Auto-generated method stub
|
520 |
return null; |
521 |
} |
522 |
|
523 |
public DynField addDynFieldFile(String name) { |
524 |
// TODO Auto-generated method stub
|
525 |
return null; |
526 |
} |
527 |
|
528 |
public DynField addDynFieldFloat(String name) { |
529 |
// TODO Auto-generated method stub
|
530 |
return null; |
531 |
} |
532 |
|
533 |
public DynField addDynFieldFolder(String name) { |
534 |
// TODO Auto-generated method stub
|
535 |
return null; |
536 |
} |
537 |
|
538 |
public DynField addDynFieldInt(String name) { |
539 |
// TODO Auto-generated method stub
|
540 |
return null; |
541 |
} |
542 |
|
543 |
public DynField addDynFieldList(String name) { |
544 |
// TODO Auto-generated method stub
|
545 |
return null; |
546 |
} |
547 |
|
548 |
public DynField addDynFieldLong(String name) { |
549 |
// TODO Auto-generated method stub
|
550 |
return null; |
551 |
} |
552 |
|
553 |
public DynField addDynFieldMap(String name) { |
554 |
// TODO Auto-generated method stub
|
555 |
return null; |
556 |
} |
557 |
|
558 |
public DynField addDynFieldObject(String name) { |
559 |
// TODO Auto-generated method stub
|
560 |
return null; |
561 |
} |
562 |
|
563 |
public DynField addDynFieldRange(String name, int type, |
564 |
Object defaultValue, Object min, Object max, boolean mandatory, |
565 |
boolean persistent) {
|
566 |
// TODO Auto-generated method stub
|
567 |
return null; |
568 |
} |
569 |
|
570 |
public DynField addDynFieldRange(String name, int type, |
571 |
Object defaultValue, Object min, Object max) { |
572 |
// TODO Auto-generated method stub
|
573 |
return null; |
574 |
} |
575 |
|
576 |
public DynField addDynFieldSet(String name) { |
577 |
// TODO Auto-generated method stub
|
578 |
return null; |
579 |
} |
580 |
|
581 |
public DynField addDynFieldSingle(String name, int type, |
582 |
Object defaultValue, boolean mandatory, boolean persistent) { |
583 |
// TODO Auto-generated method stub
|
584 |
return null; |
585 |
} |
586 |
|
587 |
public DynField addDynFieldSingle(String name, int type, |
588 |
Object defaultValue) {
|
589 |
// TODO Auto-generated method stub
|
590 |
return null; |
591 |
} |
592 |
|
593 |
public DynField addDynFieldString(String name) { |
594 |
// TODO Auto-generated method stub
|
595 |
return null; |
596 |
} |
597 |
|
598 |
public DynField addDynFieldURI(String name) { |
599 |
// TODO Auto-generated method stub
|
600 |
return null; |
601 |
} |
602 |
|
603 |
public DynField addDynFieldURL(String name) { |
604 |
// TODO Auto-generated method stub
|
605 |
return null; |
606 |
} |
607 |
|
608 |
public void extend(DynStruct struct) { |
609 |
// TODO Auto-generated method stub
|
610 |
|
611 |
} |
612 |
|
613 |
public void extend(String namespace, String structName) { |
614 |
// TODO Auto-generated method stub
|
615 |
|
616 |
} |
617 |
|
618 |
public void extend(String structName) { |
619 |
// TODO Auto-generated method stub
|
620 |
|
621 |
} |
622 |
|
623 |
public DynField getDeclaredDynField(String name) { |
624 |
// TODO Auto-generated method stub
|
625 |
return null; |
626 |
} |
627 |
|
628 |
public DynField[] getDeclaredDynFields() { |
629 |
// TODO Auto-generated method stub
|
630 |
return null; |
631 |
} |
632 |
|
633 |
public String getDescription() { |
634 |
// TODO Auto-generated method stub
|
635 |
return null; |
636 |
} |
637 |
|
638 |
public DynField getDynField(String name) { |
639 |
// TODO Auto-generated method stub
|
640 |
return null; |
641 |
} |
642 |
|
643 |
public DynField[] getDynFields() { |
644 |
// TODO Auto-generated method stub
|
645 |
return null; |
646 |
} |
647 |
|
648 |
public String getFullName() { |
649 |
// TODO Auto-generated method stub
|
650 |
return null; |
651 |
} |
652 |
|
653 |
public String getName() { |
654 |
// TODO Auto-generated method stub
|
655 |
return null; |
656 |
} |
657 |
|
658 |
public String getNamespace() { |
659 |
// TODO Auto-generated method stub
|
660 |
return null; |
661 |
} |
662 |
|
663 |
public DynStruct[] getSuperDynStructs() { |
664 |
// TODO Auto-generated method stub
|
665 |
return null; |
666 |
} |
667 |
|
668 |
public boolean isInstance(DynObject dynObject) { |
669 |
// TODO Auto-generated method stub
|
670 |
return false; |
671 |
} |
672 |
|
673 |
public DynObject newInstance() {
|
674 |
// TODO Auto-generated method stub
|
675 |
return null; |
676 |
} |
677 |
|
678 |
public void removeDynField(String name) { |
679 |
// TODO Auto-generated method stub
|
680 |
|
681 |
} |
682 |
|
683 |
public void setDescription(String description) { |
684 |
// TODO Auto-generated method stub
|
685 |
|
686 |
} |
687 |
|
688 |
public void setNamespace(String namespace) { |
689 |
// TODO Auto-generated method stub
|
690 |
|
691 |
} |
692 |
|
693 |
public void validate(DynObject object) |
694 |
throws DynObjectValidateException {
|
695 |
// TODO Auto-generated method stub
|
696 |
|
697 |
} |
698 |
|
699 |
public void addDynMethod(DynMethod dynMethod) { |
700 |
// TODO Auto-generated method stub
|
701 |
|
702 |
} |
703 |
|
704 |
public DynMethod getDeclaredDynMethod(String name) |
705 |
throws DynMethodException {
|
706 |
// TODO Auto-generated method stub
|
707 |
return null; |
708 |
} |
709 |
|
710 |
public DynMethod[] getDeclaredDynMethods() throws DynMethodException { |
711 |
// TODO Auto-generated method stub
|
712 |
return null; |
713 |
} |
714 |
|
715 |
public DynMethod getDynMethod(String name) throws DynMethodException { |
716 |
// TODO Auto-generated method stub
|
717 |
return null; |
718 |
} |
719 |
|
720 |
public DynMethod getDynMethod(int code) throws DynMethodException { |
721 |
// TODO Auto-generated method stub
|
722 |
return null; |
723 |
} |
724 |
|
725 |
public DynMethod[] getDynMethods() throws DynMethodException { |
726 |
// TODO Auto-generated method stub
|
727 |
return null; |
728 |
} |
729 |
|
730 |
} |
731 |
|
732 |
private String name = "[empty]"; |
733 |
|
734 |
public DummyFileFeatureStore() {
|
735 |
|
736 |
} |
737 |
|
738 |
public DummyFileFeatureStore(String id) { |
739 |
name = "[FILE FEATURE STORE - " + id + "]"; |
740 |
} |
741 |
|
742 |
public boolean allowWrite() { |
743 |
// TODO Auto-generated method stub
|
744 |
return false; |
745 |
} |
746 |
|
747 |
public void beginEditingGroup(String description) |
748 |
throws NeedEditingModeException {
|
749 |
// TODO Auto-generated method stub
|
750 |
|
751 |
} |
752 |
|
753 |
public boolean canWriteGeometry(int gvSIGgeometryType) throws DataException { |
754 |
// TODO Auto-generated method stub
|
755 |
return false; |
756 |
} |
757 |
|
758 |
public void cancelEditing() throws DataException { |
759 |
// TODO Auto-generated method stub
|
760 |
|
761 |
} |
762 |
|
763 |
public FeatureQuery createFeatureQuery() {
|
764 |
// TODO Auto-generated method stub
|
765 |
return null; |
766 |
} |
767 |
|
768 |
public FeatureSelection createFeatureSelection() throws DataException { |
769 |
// TODO Auto-generated method stub
|
770 |
return null; |
771 |
} |
772 |
|
773 |
public FeatureIndex createIndex(FeatureType featureType,
|
774 |
String attributeName, String indexName) throws DataException { |
775 |
// TODO Auto-generated method stub
|
776 |
return null; |
777 |
} |
778 |
|
779 |
public FeatureIndex createIndex(FeatureType featureType,
|
780 |
String attributeName, String indexName, Observer observer) |
781 |
throws DataException {
|
782 |
// TODO Auto-generated method stub
|
783 |
return null; |
784 |
} |
785 |
|
786 |
public EditableFeature createNewFeature() throws DataException { |
787 |
// TODO Auto-generated method stub
|
788 |
return null; |
789 |
} |
790 |
|
791 |
public EditableFeature createNewFeature(FeatureType type,
|
792 |
Feature defaultValues) throws DataException {
|
793 |
// TODO Auto-generated method stub
|
794 |
return null; |
795 |
} |
796 |
|
797 |
public EditableFeature createNewFeature(FeatureType type,
|
798 |
boolean defaultValues) throws DataException { |
799 |
// TODO Auto-generated method stub
|
800 |
return null; |
801 |
} |
802 |
|
803 |
public EditableFeature createNewFeature(boolean defaultValues) |
804 |
throws DataException {
|
805 |
// TODO Auto-generated method stub
|
806 |
return null; |
807 |
} |
808 |
|
809 |
public void delete(Feature feature) throws DataException { |
810 |
// TODO Auto-generated method stub
|
811 |
|
812 |
} |
813 |
|
814 |
public void edit() throws DataException { |
815 |
// TODO Auto-generated method stub
|
816 |
|
817 |
} |
818 |
|
819 |
public void edit(int mode) throws DataException { |
820 |
// TODO Auto-generated method stub
|
821 |
|
822 |
} |
823 |
|
824 |
public void endEditingGroup() throws NeedEditingModeException { |
825 |
// TODO Auto-generated method stub
|
826 |
|
827 |
} |
828 |
|
829 |
public void finishEditing() throws DataException { |
830 |
// TODO Auto-generated method stub
|
831 |
|
832 |
} |
833 |
|
834 |
public FeatureType getDefaultFeatureType() throws DataException { |
835 |
return new DummyFeatureType(); |
836 |
} |
837 |
|
838 |
public Envelope getEnvelope() throws DataException { |
839 |
// TODO Auto-generated method stub
|
840 |
return null; |
841 |
} |
842 |
|
843 |
public Feature getFeatureByReference(FeatureReference reference)
|
844 |
throws DataException {
|
845 |
// TODO Auto-generated method stub
|
846 |
return null; |
847 |
} |
848 |
|
849 |
public Feature getFeatureByReference(FeatureReference reference,
|
850 |
FeatureType featureType) throws DataException {
|
851 |
// TODO Auto-generated method stub
|
852 |
return null; |
853 |
} |
854 |
|
855 |
public long getFeatureCount() throws DataException { |
856 |
// TODO Auto-generated method stub
|
857 |
return 0; |
858 |
} |
859 |
|
860 |
public FeatureSelection getFeatureSelection() throws DataException { |
861 |
// TODO Auto-generated method stub
|
862 |
return null; |
863 |
} |
864 |
|
865 |
public FeatureSet getFeatureSet() throws DataException { |
866 |
// TODO Auto-generated method stub
|
867 |
return null; |
868 |
} |
869 |
|
870 |
public FeatureSet getFeatureSet(FeatureQuery featureQuery)
|
871 |
throws DataException {
|
872 |
// TODO Auto-generated method stub
|
873 |
return null; |
874 |
} |
875 |
|
876 |
public void getFeatureSet(FeatureQuery featureQuery, Observer observer) |
877 |
throws DataException {
|
878 |
// TODO Auto-generated method stub
|
879 |
|
880 |
} |
881 |
|
882 |
public void getFeatureSet(Observer observer) throws DataException { |
883 |
// TODO Auto-generated method stub
|
884 |
|
885 |
} |
886 |
|
887 |
public FeatureType getFeatureType(String featureTypeId) |
888 |
throws DataException {
|
889 |
// TODO Auto-generated method stub
|
890 |
return null; |
891 |
} |
892 |
|
893 |
public List getFeatureTypes() throws DataException { |
894 |
// TODO Auto-generated method stub
|
895 |
return null; |
896 |
} |
897 |
|
898 |
public FeatureIndexes getIndexes() {
|
899 |
// TODO Auto-generated method stub
|
900 |
return null; |
901 |
} |
902 |
|
903 |
public FeatureLocks getLocks() throws DataException { |
904 |
// TODO Auto-generated method stub
|
905 |
return null; |
906 |
} |
907 |
|
908 |
public DataStoreParameters getParameters() {
|
909 |
// TODO Auto-generated method stub
|
910 |
return null; |
911 |
} |
912 |
|
913 |
public IProjection getSRSDefaultGeometry() throws DataException { |
914 |
// TODO Auto-generated method stub
|
915 |
return null; |
916 |
} |
917 |
|
918 |
public FeatureStoreTransforms getTransforms() {
|
919 |
// TODO Auto-generated method stub
|
920 |
return null; |
921 |
} |
922 |
|
923 |
public void insert(EditableFeature feature) throws DataException { |
924 |
// TODO Auto-generated method stub
|
925 |
|
926 |
} |
927 |
|
928 |
public boolean isAppendModeSupported() { |
929 |
// TODO Auto-generated method stub
|
930 |
return false; |
931 |
} |
932 |
|
933 |
public boolean isAppending() { |
934 |
// TODO Auto-generated method stub
|
935 |
return false; |
936 |
} |
937 |
|
938 |
public boolean isEditing() { |
939 |
// TODO Auto-generated method stub
|
940 |
return false; |
941 |
} |
942 |
|
943 |
public boolean isLocksSupported() { |
944 |
// TODO Auto-generated method stub
|
945 |
return false; |
946 |
} |
947 |
|
948 |
public void setSelection(FeatureSet selection) throws DataException { |
949 |
// TODO Auto-generated method stub
|
950 |
|
951 |
} |
952 |
|
953 |
public void update(EditableFeatureType featureType) throws DataException { |
954 |
// TODO Auto-generated method stub
|
955 |
|
956 |
} |
957 |
|
958 |
public void update(EditableFeature feature) throws DataException { |
959 |
// TODO Auto-generated method stub
|
960 |
|
961 |
} |
962 |
|
963 |
public void validateFeatures(int mode) throws DataException { |
964 |
// TODO Auto-generated method stub
|
965 |
|
966 |
} |
967 |
|
968 |
public DataQuery createQuery() {
|
969 |
// TODO Auto-generated method stub
|
970 |
return null; |
971 |
} |
972 |
|
973 |
public DataSet createSelection() throws DataException { |
974 |
// TODO Auto-generated method stub
|
975 |
return null; |
976 |
} |
977 |
|
978 |
public void dispose() { |
979 |
// TODO Auto-generated method stub
|
980 |
|
981 |
} |
982 |
|
983 |
public Iterator getChildren() { |
984 |
// TODO Auto-generated method stub
|
985 |
return null; |
986 |
} |
987 |
|
988 |
public DataSet getDataSet() throws DataException { |
989 |
// TODO Auto-generated method stub
|
990 |
return null; |
991 |
} |
992 |
|
993 |
public DataSet getDataSet(DataQuery dataQuery) throws DataException { |
994 |
// TODO Auto-generated method stub
|
995 |
return null; |
996 |
} |
997 |
|
998 |
public void getDataSet(Observer observer) throws DataException { |
999 |
// TODO Auto-generated method stub
|
1000 |
|
1001 |
} |
1002 |
|
1003 |
public void getDataSet(DataQuery dataQuery, Observer observer) |
1004 |
throws DataException {
|
1005 |
// TODO Auto-generated method stub
|
1006 |
|
1007 |
} |
1008 |
|
1009 |
public DataServerExplorer getExplorer() throws DataException, |
1010 |
ValidateDataParametersException { |
1011 |
// TODO Auto-generated method stub
|
1012 |
return null; |
1013 |
} |
1014 |
|
1015 |
public String getName() { |
1016 |
return name;
|
1017 |
} |
1018 |
|
1019 |
public DataSet getSelection() throws DataException { |
1020 |
// TODO Auto-generated method stub
|
1021 |
return null; |
1022 |
} |
1023 |
|
1024 |
public void refresh() throws DataException { |
1025 |
// TODO Auto-generated method stub
|
1026 |
|
1027 |
} |
1028 |
|
1029 |
public void setSelection(DataSet selection) throws DataException { |
1030 |
// TODO Auto-generated method stub
|
1031 |
|
1032 |
} |
1033 |
|
1034 |
public void beginComplexNotification() { |
1035 |
// TODO Auto-generated method stub
|
1036 |
|
1037 |
} |
1038 |
|
1039 |
public void disableNotifications() { |
1040 |
// TODO Auto-generated method stub
|
1041 |
|
1042 |
} |
1043 |
|
1044 |
public void enableNotifications() { |
1045 |
// TODO Auto-generated method stub
|
1046 |
|
1047 |
} |
1048 |
|
1049 |
public void endComplexNotification() { |
1050 |
// TODO Auto-generated method stub
|
1051 |
|
1052 |
} |
1053 |
|
1054 |
public void addObserver(Observer o) { |
1055 |
// TODO Auto-generated method stub
|
1056 |
|
1057 |
} |
1058 |
|
1059 |
public void deleteObserver(Observer o) { |
1060 |
// TODO Auto-generated method stub
|
1061 |
|
1062 |
} |
1063 |
|
1064 |
public void deleteObservers() { |
1065 |
// TODO Auto-generated method stub
|
1066 |
|
1067 |
} |
1068 |
|
1069 |
public void loadFromState(PersistentState state) |
1070 |
throws PersistenceException {
|
1071 |
name = state.getString("name");
|
1072 |
} |
1073 |
|
1074 |
public void saveToState(PersistentState state) throws PersistenceException { |
1075 |
state.set("name", name);
|
1076 |
} |
1077 |
|
1078 |
public Set getMetadataChildren() { |
1079 |
// TODO Auto-generated method stub
|
1080 |
return null; |
1081 |
} |
1082 |
|
1083 |
public Object getMetadataID() { |
1084 |
// TODO Auto-generated method stub
|
1085 |
return null; |
1086 |
} |
1087 |
|
1088 |
public String getMetadataName() { |
1089 |
// TODO Auto-generated method stub
|
1090 |
return null; |
1091 |
} |
1092 |
|
1093 |
public void delegate(DynObject dynObject) { |
1094 |
// TODO Auto-generated method stub
|
1095 |
|
1096 |
} |
1097 |
|
1098 |
public DynClass getDynClass() {
|
1099 |
// TODO Auto-generated method stub
|
1100 |
return null; |
1101 |
} |
1102 |
|
1103 |
public Object getDynValue(String name) throws DynFieldNotFoundException { |
1104 |
// TODO Auto-generated method stub
|
1105 |
return null; |
1106 |
} |
1107 |
|
1108 |
public boolean hasDynValue(String name) { |
1109 |
// TODO Auto-generated method stub
|
1110 |
return false; |
1111 |
} |
1112 |
|
1113 |
public void implement(DynClass dynClass) { |
1114 |
// TODO Auto-generated method stub
|
1115 |
|
1116 |
} |
1117 |
|
1118 |
public Object invokeDynMethod(String name, DynObject context) |
1119 |
throws DynMethodException {
|
1120 |
// TODO Auto-generated method stub
|
1121 |
return null; |
1122 |
} |
1123 |
|
1124 |
public Object invokeDynMethod(int code, DynObject context) |
1125 |
throws DynMethodException {
|
1126 |
// TODO Auto-generated method stub
|
1127 |
return null; |
1128 |
} |
1129 |
|
1130 |
public void setDynValue(String name, Object value) |
1131 |
throws DynFieldNotFoundException {
|
1132 |
// TODO Auto-generated method stub
|
1133 |
|
1134 |
} |
1135 |
|
1136 |
public boolean canRedo() { |
1137 |
// TODO Auto-generated method stub
|
1138 |
return false; |
1139 |
} |
1140 |
|
1141 |
public boolean canUndo() { |
1142 |
// TODO Auto-generated method stub
|
1143 |
return false; |
1144 |
} |
1145 |
|
1146 |
public List getRedoInfos() { |
1147 |
// TODO Auto-generated method stub
|
1148 |
return null; |
1149 |
} |
1150 |
|
1151 |
public List getUndoInfos() { |
1152 |
// TODO Auto-generated method stub
|
1153 |
return null; |
1154 |
} |
1155 |
|
1156 |
public void redo() throws RedoException { |
1157 |
// TODO Auto-generated method stub
|
1158 |
|
1159 |
} |
1160 |
|
1161 |
public void redo(int num) throws RedoException { |
1162 |
// TODO Auto-generated method stub
|
1163 |
|
1164 |
} |
1165 |
|
1166 |
public void undo() throws UndoException { |
1167 |
// TODO Auto-generated method stub
|
1168 |
|
1169 |
} |
1170 |
|
1171 |
public void undo(int num) throws UndoException { |
1172 |
// TODO Auto-generated method stub
|
1173 |
|
1174 |
} |
1175 |
|
1176 |
|
1177 |
|
1178 |
public static void registerPersistent() { |
1179 |
PersistenceManager manager = ToolsLocator.getPersistenceManager(); |
1180 |
DynStruct definition = manager.addDefinition( |
1181 |
DummyFileFeatureStore.class, |
1182 |
"DummyFileFeatureStore",
|
1183 |
"DummyFileFeatureStore Persistence definition",
|
1184 |
null,
|
1185 |
null
|
1186 |
); |
1187 |
definition.addDynFieldString("name")
|
1188 |
.setMandatory(true);
|
1189 |
} |
1190 |
|
1191 |
public void accept(Visitor visitor) throws BaseException { |
1192 |
// TODO Auto-generated method stub
|
1193 |
|
1194 |
} |
1195 |
|
1196 |
public void accept(Visitor visitor, DataQuery dataQuery) |
1197 |
throws BaseException {
|
1198 |
// TODO Auto-generated method stub
|
1199 |
|
1200 |
} |
1201 |
|
1202 |
public void createCache(String name, DynObject parameters) |
1203 |
throws DataException {
|
1204 |
// TODO Auto-generated method stub
|
1205 |
|
1206 |
} |
1207 |
|
1208 |
public FeatureCache getCache() {
|
1209 |
// TODO Auto-generated method stub
|
1210 |
return null; |
1211 |
} |
1212 |
|
1213 |
public void clear() { |
1214 |
// Nothing to do
|
1215 |
} |
1216 |
|
1217 |
public void export(DataServerExplorer explorer, String provider, |
1218 |
NewFeatureStoreParameters params) throws DataException {
|
1219 |
// TODO Auto-generated method stub
|
1220 |
|
1221 |
} |
1222 |
|
1223 |
public String getProviderName() { |
1224 |
// TODO Auto-generated method stub
|
1225 |
return null; |
1226 |
} |
1227 |
|
1228 |
public String getFullName() { |
1229 |
// TODO Auto-generated method stub
|
1230 |
return null; |
1231 |
} |
1232 |
} |