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