svn-gvsig-desktop / branches / org.gvsig.desktop-cvsgis1 / org.gvsig.desktop / org.gvsig.desktop.compat.cdc / org.gvsig.fmap.dal / org.gvsig.fmap.dal.api / src / test / java / org / gvsig / fmap / dal / feature / DummyFetureStore.java @ 45394
History | View | Annotate | Download (18.6 KB)
1 |
|
---|---|
2 |
package org.gvsig.fmap.dal.feature; |
3 |
|
4 |
import java.util.Collection; |
5 |
import java.util.Collections; |
6 |
import java.util.Iterator; |
7 |
import java.util.List; |
8 |
import java.util.Map; |
9 |
import java.util.Set; |
10 |
import javax.json.JsonObject; |
11 |
|
12 |
import org.cresques.cts.IProjection; |
13 |
import org.gvsig.expressionevaluator.Expression; |
14 |
import org.gvsig.expressionevaluator.ExpressionBuilder; |
15 |
|
16 |
import org.gvsig.fmap.dal.DataQuery; |
17 |
import org.gvsig.fmap.dal.DataServerExplorer; |
18 |
import org.gvsig.fmap.dal.DataSet; |
19 |
import org.gvsig.fmap.dal.DataStore; |
20 |
import org.gvsig.fmap.dal.DataStoreParameters; |
21 |
import org.gvsig.fmap.dal.DataStoreProviderFactory; |
22 |
import org.gvsig.fmap.dal.StoresRepository; |
23 |
import org.gvsig.fmap.dal.exception.DataException; |
24 |
import org.gvsig.fmap.dal.exception.ValidateDataParametersException; |
25 |
import org.gvsig.fmap.dal.feature.exception.NeedEditingModeException; |
26 |
import org.gvsig.fmap.geom.SpatialIndex; |
27 |
import org.gvsig.fmap.geom.primitive.Envelope; |
28 |
import org.gvsig.metadata.exceptions.MetadataException; |
29 |
import org.gvsig.timesupport.Interval; |
30 |
import org.gvsig.tools.dynobject.DynClass; |
31 |
import org.gvsig.tools.dynobject.DynObject; |
32 |
import org.gvsig.tools.dynobject.exception.DynFieldNotFoundException; |
33 |
import org.gvsig.tools.dynobject.exception.DynMethodException; |
34 |
import org.gvsig.tools.exception.BaseException; |
35 |
import org.gvsig.tools.observer.Observer; |
36 |
import org.gvsig.tools.persistence.PersistentState; |
37 |
import org.gvsig.tools.persistence.exception.PersistenceException; |
38 |
import org.gvsig.tools.undo.RedoException; |
39 |
import org.gvsig.tools.undo.UndoException; |
40 |
import org.gvsig.tools.resourcesstorage.ResourcesStorage; |
41 |
import org.gvsig.tools.resourcesstorage.EmptyResourcesStorage; |
42 |
import org.gvsig.tools.util.GetItemWithSizeAndIterator64; |
43 |
import org.gvsig.tools.util.UnmodifiableBasicMap; |
44 |
import org.gvsig.tools.visitor.Visitor; |
45 |
|
46 |
/**
|
47 |
* This class is intended to be used in test.
|
48 |
* Use it directly or extend it and overwrite the methods you need.
|
49 |
* This class is maintained as part of the DAL API.
|
50 |
*/
|
51 |
|
52 |
|
53 |
public class DummyFetureStore implements FeatureStore { |
54 |
|
55 |
@Override
|
56 |
public Object clone() throws CloneNotSupportedException { |
57 |
return super.clone(); |
58 |
} |
59 |
|
60 |
@Override
|
61 |
public boolean allowWrite() { |
62 |
return false; |
63 |
} |
64 |
|
65 |
@Override
|
66 |
public FeatureType getDefaultFeatureType() throws DataException { |
67 |
return null; |
68 |
} |
69 |
|
70 |
@Override
|
71 |
public FeatureType getFeatureType(String featureTypeId) throws DataException { |
72 |
return null; |
73 |
} |
74 |
|
75 |
@Override
|
76 |
public List getFeatureTypes() throws DataException { |
77 |
return null; |
78 |
} |
79 |
|
80 |
@Override
|
81 |
public DataStoreParameters getParameters() {
|
82 |
return null; |
83 |
} |
84 |
|
85 |
@Override
|
86 |
public boolean canWriteGeometry(int gvSIGgeometryType) throws DataException { |
87 |
return false; |
88 |
} |
89 |
|
90 |
@Override
|
91 |
public Envelope getEnvelope() throws DataException { |
92 |
return null; |
93 |
} |
94 |
|
95 |
@Override
|
96 |
public IProjection getSRSDefaultGeometry() throws DataException { |
97 |
return null; |
98 |
} |
99 |
|
100 |
@Override
|
101 |
public void export(DataServerExplorer explorer, String provider, NewFeatureStoreParameters params) throws DataException { |
102 |
|
103 |
} |
104 |
|
105 |
@Override
|
106 |
public FeatureSet getFeatureSet() throws DataException { |
107 |
return null; |
108 |
} |
109 |
|
110 |
@Override
|
111 |
public FeatureSet getFeatureSet(FeatureQuery featureQuery) throws DataException { |
112 |
return null; |
113 |
} |
114 |
|
115 |
@Override
|
116 |
public void getFeatureSet(FeatureQuery featureQuery, Observer observer) throws DataException { |
117 |
|
118 |
} |
119 |
|
120 |
@Override
|
121 |
public void getFeatureSet(Observer observer) throws DataException { |
122 |
|
123 |
} |
124 |
|
125 |
@Override
|
126 |
public List<Feature> getFeatures(FeatureQuery query, int pageSize) { |
127 |
return null; |
128 |
} |
129 |
|
130 |
@Override
|
131 |
public Feature getFeatureByReference(FeatureReference reference) throws DataException { |
132 |
return null; |
133 |
} |
134 |
|
135 |
@Override
|
136 |
public Feature getFeatureByReference(FeatureReference reference, FeatureType featureType) throws DataException { |
137 |
return null; |
138 |
} |
139 |
|
140 |
@Override
|
141 |
public void edit() throws DataException { |
142 |
|
143 |
} |
144 |
|
145 |
@Override
|
146 |
public void edit(int mode) throws DataException { |
147 |
|
148 |
} |
149 |
|
150 |
@Override
|
151 |
public void cancelEditing() throws DataException { |
152 |
|
153 |
} |
154 |
|
155 |
@Override
|
156 |
public void finishEditing() throws DataException { |
157 |
|
158 |
} |
159 |
|
160 |
@Override
|
161 |
public void commitChanges() throws DataException { |
162 |
|
163 |
} |
164 |
|
165 |
@Override
|
166 |
public boolean canCommitChanges() throws DataException { |
167 |
return false; |
168 |
} |
169 |
|
170 |
@Override
|
171 |
public boolean isEditing() { |
172 |
return false; |
173 |
} |
174 |
|
175 |
@Override
|
176 |
public boolean isAppending() { |
177 |
return false; |
178 |
} |
179 |
|
180 |
@Override
|
181 |
public void update(EditableFeatureType featureType) throws DataException { |
182 |
|
183 |
} |
184 |
|
185 |
@Override
|
186 |
public void update(EditableFeature feature) throws DataException { |
187 |
|
188 |
} |
189 |
|
190 |
@Override
|
191 |
public void update(Object... parameters) throws DataException { |
192 |
|
193 |
} |
194 |
|
195 |
@Override
|
196 |
public void delete(Feature feature) throws DataException { |
197 |
|
198 |
} |
199 |
|
200 |
@Override
|
201 |
public void insert(EditableFeature feature) throws DataException { |
202 |
|
203 |
} |
204 |
|
205 |
@Override
|
206 |
public EditableFeature createNewFeature() throws DataException { |
207 |
return null; |
208 |
} |
209 |
|
210 |
@Override
|
211 |
public EditableFeature createNewFeature(FeatureType type, Feature defaultValues) throws DataException { |
212 |
return null; |
213 |
} |
214 |
|
215 |
@Override
|
216 |
public EditableFeature createNewFeature(FeatureType type, boolean defaultValues) throws DataException { |
217 |
return null; |
218 |
} |
219 |
|
220 |
@Override
|
221 |
public EditableFeature createNewFeature(boolean defaultValues) throws DataException { |
222 |
return null; |
223 |
} |
224 |
|
225 |
@Override
|
226 |
public EditableFeature createNewFeature(Feature defaultValues) throws DataException { |
227 |
return null; |
228 |
} |
229 |
|
230 |
@Override
|
231 |
public EditableFeature createNewFeature(JsonObject defaultValues) throws DataException { |
232 |
return null; |
233 |
} |
234 |
|
235 |
@Override
|
236 |
public void validateFeatures(int mode) throws DataException { |
237 |
|
238 |
} |
239 |
|
240 |
@Override
|
241 |
public boolean isAppendModeSupported() { |
242 |
return false; |
243 |
} |
244 |
|
245 |
@Override
|
246 |
public void beginEditingGroup(String description) throws NeedEditingModeException { |
247 |
|
248 |
} |
249 |
|
250 |
@Override
|
251 |
public void endEditingGroup() throws NeedEditingModeException { |
252 |
|
253 |
} |
254 |
|
255 |
@Override
|
256 |
public FeatureIndex createIndex(FeatureType featureType, String attributeName, String indexName) throws DataException { |
257 |
return null; |
258 |
} |
259 |
|
260 |
@Override
|
261 |
public FeatureIndex createIndex(String indexTypeName, FeatureType featureType, String attributeName, String indexName) throws DataException { |
262 |
return null; |
263 |
} |
264 |
|
265 |
@Override
|
266 |
public FeatureIndex createIndex(FeatureType featureType, String attributeName, String indexName, Observer observer) throws DataException { |
267 |
return null; |
268 |
} |
269 |
|
270 |
@Override
|
271 |
public FeatureIndex createIndex(String indexTypeName, FeatureType featureType, String attributeName, String indexName, Observer observer) throws DataException { |
272 |
return null; |
273 |
} |
274 |
|
275 |
@Override
|
276 |
public FeatureIndexes getIndexes() {
|
277 |
return null; |
278 |
} |
279 |
|
280 |
@Override
|
281 |
public void setSelection(FeatureSet selection) throws DataException { |
282 |
|
283 |
} |
284 |
|
285 |
@Override
|
286 |
public FeatureSelection createFeatureSelection() throws DataException { |
287 |
return null; |
288 |
} |
289 |
|
290 |
@Override
|
291 |
public FeatureSelection getFeatureSelection() throws DataException { |
292 |
return null; |
293 |
} |
294 |
|
295 |
@Override
|
296 |
public boolean isLocksSupported() { |
297 |
return false; |
298 |
} |
299 |
|
300 |
@Override
|
301 |
public FeatureLocks getLocks() throws DataException { |
302 |
return null; |
303 |
} |
304 |
|
305 |
@Override
|
306 |
public FeatureStoreTransforms getTransforms() {
|
307 |
return null; |
308 |
} |
309 |
|
310 |
@Override
|
311 |
public FeatureQuery createFeatureQuery() {
|
312 |
return null; |
313 |
} |
314 |
|
315 |
@Override
|
316 |
public long getFeatureCount() throws DataException { |
317 |
return 0; |
318 |
} |
319 |
|
320 |
// @Override
|
321 |
// public void createCache(String name, DynObject parameters) throws DataException {
|
322 |
//
|
323 |
// }
|
324 |
//
|
325 |
// @Override
|
326 |
// public FeatureCache getCache() {
|
327 |
// return null;
|
328 |
// }
|
329 |
|
330 |
@Override
|
331 |
public boolean isKnownEnvelope() { |
332 |
return false; |
333 |
} |
334 |
|
335 |
@Override
|
336 |
public boolean hasRetrievedFeaturesLimit() { |
337 |
return false; |
338 |
} |
339 |
|
340 |
@Override
|
341 |
public int getRetrievedFeaturesLimit() { |
342 |
return 0; |
343 |
} |
344 |
|
345 |
@Override
|
346 |
public Feature getFeature(DynObject dynobject) {
|
347 |
return null; |
348 |
} |
349 |
|
350 |
@Override
|
351 |
public Iterator iterator() { |
352 |
return null; |
353 |
} |
354 |
|
355 |
@Override
|
356 |
public String getName() { |
357 |
return null; |
358 |
} |
359 |
|
360 |
@Override
|
361 |
public String getFullName() { |
362 |
return null; |
363 |
} |
364 |
|
365 |
@Override
|
366 |
public String getProviderName() { |
367 |
return null; |
368 |
} |
369 |
|
370 |
@Override
|
371 |
public void refresh() throws DataException { |
372 |
|
373 |
} |
374 |
|
375 |
@Override
|
376 |
public DataSet getDataSet() throws DataException { |
377 |
return null; |
378 |
} |
379 |
|
380 |
@Override
|
381 |
public DataSet getDataSet(DataQuery dataQuery) throws DataException { |
382 |
return null; |
383 |
} |
384 |
|
385 |
@Override
|
386 |
public void accept(Visitor visitor) throws BaseException { |
387 |
|
388 |
} |
389 |
|
390 |
@Override
|
391 |
public void accept(Visitor visitor, DataQuery dataQuery) throws BaseException { |
392 |
|
393 |
} |
394 |
|
395 |
@Override
|
396 |
public void getDataSet(Observer observer) throws DataException { |
397 |
|
398 |
} |
399 |
|
400 |
@Override
|
401 |
public void getDataSet(DataQuery dataQuery, Observer observer) throws DataException { |
402 |
|
403 |
} |
404 |
|
405 |
@Override
|
406 |
public DataSet getSelection() throws DataException { |
407 |
return null; |
408 |
} |
409 |
|
410 |
@Override
|
411 |
public void setSelection(DataSet selection) throws DataException { |
412 |
|
413 |
} |
414 |
|
415 |
@Override
|
416 |
public DataSet createSelection() throws DataException { |
417 |
return null; |
418 |
} |
419 |
|
420 |
@Override
|
421 |
public DataServerExplorer getExplorer() throws DataException, ValidateDataParametersException { |
422 |
return null; |
423 |
} |
424 |
|
425 |
@Override
|
426 |
public DataQuery createQuery() {
|
427 |
return null; |
428 |
} |
429 |
|
430 |
@Override
|
431 |
public Interval getInterval() {
|
432 |
return null; |
433 |
} |
434 |
|
435 |
@Override
|
436 |
public Collection getTimes() { |
437 |
return null; |
438 |
} |
439 |
|
440 |
@Override
|
441 |
public Collection getTimes(Interval interval) { |
442 |
return null; |
443 |
} |
444 |
|
445 |
@Override
|
446 |
public void disableNotifications() { |
447 |
|
448 |
} |
449 |
|
450 |
@Override
|
451 |
public void enableNotifications() { |
452 |
|
453 |
} |
454 |
|
455 |
@Override
|
456 |
public void beginComplexNotification() { |
457 |
|
458 |
} |
459 |
|
460 |
@Override
|
461 |
public void endComplexNotification() { |
462 |
|
463 |
} |
464 |
|
465 |
@Override
|
466 |
public void addObserver(Observer obsrvr) { |
467 |
|
468 |
} |
469 |
|
470 |
@Override
|
471 |
public void deleteObserver(Observer obsrvr) { |
472 |
|
473 |
} |
474 |
|
475 |
@Override
|
476 |
public void deleteObservers() { |
477 |
|
478 |
} |
479 |
|
480 |
@Override
|
481 |
public void saveToState(PersistentState ps) throws PersistenceException { |
482 |
|
483 |
} |
484 |
|
485 |
@Override
|
486 |
public void loadFromState(PersistentState ps) throws PersistenceException { |
487 |
|
488 |
} |
489 |
|
490 |
@Override
|
491 |
public Object getMetadataID() throws MetadataException { |
492 |
return null; |
493 |
} |
494 |
|
495 |
@Override
|
496 |
public String getMetadataName() throws MetadataException { |
497 |
return null; |
498 |
} |
499 |
|
500 |
@Override
|
501 |
public Set getMetadataChildren() throws MetadataException { |
502 |
return null; |
503 |
} |
504 |
|
505 |
@Override
|
506 |
public DynClass getDynClass() {
|
507 |
return null; |
508 |
} |
509 |
|
510 |
@Override
|
511 |
public void implement(DynClass dc) { |
512 |
|
513 |
} |
514 |
|
515 |
@Override
|
516 |
public void delegate(DynObject d) { |
517 |
|
518 |
} |
519 |
|
520 |
@Override
|
521 |
public Object getDynValue(String string) throws DynFieldNotFoundException { |
522 |
return null; |
523 |
} |
524 |
|
525 |
@Override
|
526 |
public void setDynValue(String string, Object o) throws DynFieldNotFoundException { |
527 |
|
528 |
} |
529 |
|
530 |
@Override
|
531 |
public boolean hasDynValue(String string) { |
532 |
return false; |
533 |
} |
534 |
|
535 |
@Override
|
536 |
public Object invokeDynMethod(String string, Object[] os) throws DynMethodException { |
537 |
return null; |
538 |
} |
539 |
|
540 |
@Override
|
541 |
public Object invokeDynMethod(int i, Object[] os) throws DynMethodException { |
542 |
return null; |
543 |
} |
544 |
|
545 |
@Override
|
546 |
public void clear() { |
547 |
|
548 |
} |
549 |
|
550 |
@Override
|
551 |
public void dispose() { |
552 |
|
553 |
} |
554 |
|
555 |
@Override
|
556 |
public void undo() throws UndoException { |
557 |
|
558 |
} |
559 |
|
560 |
@Override
|
561 |
public void undo(int i) throws UndoException { |
562 |
|
563 |
} |
564 |
|
565 |
@Override
|
566 |
public void redo() throws RedoException { |
567 |
|
568 |
} |
569 |
|
570 |
@Override
|
571 |
public void redo(int i) throws RedoException { |
572 |
|
573 |
} |
574 |
|
575 |
@Override
|
576 |
public List getUndoInfos() { |
577 |
return null; |
578 |
} |
579 |
|
580 |
@Override
|
581 |
public List getRedoInfos() { |
582 |
return null; |
583 |
} |
584 |
|
585 |
@Override
|
586 |
public boolean canUndo() { |
587 |
return false; |
588 |
} |
589 |
|
590 |
@Override
|
591 |
public boolean canRedo() { |
592 |
return false; |
593 |
} |
594 |
|
595 |
@Override
|
596 |
public List<Feature> getFeatures() { |
597 |
return null; |
598 |
} |
599 |
|
600 |
@Override
|
601 |
public void createCache(String name, DynObject parameters) throws DataException { |
602 |
|
603 |
} |
604 |
|
605 |
@Override
|
606 |
public FeatureCache getCache() {
|
607 |
return null; |
608 |
} |
609 |
|
610 |
@Override
|
611 |
public void useCache(String providerName, DynObject parameters) throws DataException { |
612 |
throw new UnsupportedOperationException(); |
613 |
} |
614 |
|
615 |
@Override
|
616 |
public DataStoreProviderFactory getProviderFactory() {
|
617 |
return null; |
618 |
} |
619 |
|
620 |
@Override
|
621 |
public boolean isBroken() { |
622 |
return false; |
623 |
} |
624 |
|
625 |
@Override
|
626 |
public Throwable getBreakingsCause() { |
627 |
return null; |
628 |
} |
629 |
|
630 |
@Override
|
631 |
public boolean hasDynMethod(String name) { |
632 |
return false; |
633 |
} |
634 |
|
635 |
@Override
|
636 |
public SpatialIndex wrapSpatialIndex(SpatialIndex index) {
|
637 |
return null; |
638 |
} |
639 |
|
640 |
@Override
|
641 |
public ExpressionBuilder createExpressionBuilder() {
|
642 |
return null; |
643 |
} |
644 |
|
645 |
@Override
|
646 |
public ExpressionBuilder createExpression() {
|
647 |
return createExpressionBuilder();
|
648 |
} |
649 |
|
650 |
@Override
|
651 |
public FeatureSet getFeatureSet(String filter) throws DataException { |
652 |
return null; |
653 |
} |
654 |
|
655 |
@Override
|
656 |
public FeatureSet getFeatureSet(String filter, String sortBy) throws DataException { |
657 |
return null; |
658 |
} |
659 |
|
660 |
@Override
|
661 |
public FeatureSet getFeatureSet(String filter, String sortBy, boolean asc) throws DataException { |
662 |
return null; |
663 |
} |
664 |
|
665 |
@Override
|
666 |
public List<Feature> getFeatures(FeatureQuery query) { |
667 |
return null; |
668 |
} |
669 |
|
670 |
@Override
|
671 |
public List<Feature> getFeatures(String filter) { |
672 |
return null; |
673 |
} |
674 |
|
675 |
@Override
|
676 |
public List<Feature> getFeatures(String filter, String sortBy) { |
677 |
return null; |
678 |
} |
679 |
|
680 |
@Override
|
681 |
public List<Feature> getFeatures(String filter, String sortBy, boolean asc) { |
682 |
return null; |
683 |
} |
684 |
|
685 |
@Override
|
686 |
public Feature findFirst(String filter) throws DataException { |
687 |
return null; |
688 |
} |
689 |
|
690 |
@Override
|
691 |
public Feature findFirst(String filter, String sortBy) throws DataException { |
692 |
return null; |
693 |
} |
694 |
|
695 |
@Override
|
696 |
public Feature findFirst(String filter, String sortBy, boolean asc) throws DataException { |
697 |
return null; |
698 |
} |
699 |
|
700 |
@Override
|
701 |
public FeatureReference getFeatureReference(String code) { |
702 |
return null; |
703 |
} |
704 |
|
705 |
@Override
|
706 |
public FeatureSet getFeatureSet(Expression filter) throws DataException { |
707 |
return null; |
708 |
} |
709 |
|
710 |
@Override
|
711 |
public FeatureSet getFeatureSet(Expression filter, String sortBy) throws DataException { |
712 |
return null; |
713 |
} |
714 |
|
715 |
@Override
|
716 |
public FeatureSet getFeatureSet(Expression filter, String sortBy, boolean asc) throws DataException { |
717 |
return null; |
718 |
} |
719 |
|
720 |
@Override
|
721 |
public List<Feature> getFeatures(Expression filter) { |
722 |
return null; |
723 |
} |
724 |
|
725 |
@Override
|
726 |
public List<Feature> getFeatures(Expression filter, String sortBy) { |
727 |
return null; |
728 |
} |
729 |
|
730 |
@Override
|
731 |
public List<Feature> getFeatures(Expression filter, String sortBy, boolean asc) { |
732 |
return null; |
733 |
} |
734 |
|
735 |
@Override
|
736 |
public Feature findFirst(Expression filter) throws DataException { |
737 |
return null; |
738 |
} |
739 |
|
740 |
@Override
|
741 |
public Feature findFirst(Expression filter, String sortBy) throws DataException { |
742 |
return null; |
743 |
} |
744 |
|
745 |
@Override
|
746 |
public Feature findFirst(Expression filter, String sortBy, boolean asc) throws DataException { |
747 |
return null; |
748 |
} |
749 |
|
750 |
@Override
|
751 |
public Feature first() throws DataException { |
752 |
return null; |
753 |
} |
754 |
|
755 |
@Override
|
756 |
public long getPendingChangesCount() { |
757 |
return 0; |
758 |
} |
759 |
|
760 |
@Override
|
761 |
public ResourcesStorage getResourcesStorage() {
|
762 |
return new EmptyResourcesStorage(); |
763 |
} |
764 |
|
765 |
@Override
|
766 |
public StoresRepository getStoresRepository() {
|
767 |
return null; |
768 |
} |
769 |
|
770 |
@Override
|
771 |
public UnmodifiableBasicMap<String, DataStore> getChildren() { |
772 |
return UnmodifiableBasicMap.EMPTY_UNMODIFIABLEBASICMAP;
|
773 |
} |
774 |
|
775 |
@Override
|
776 |
public Feature findFirst(FeatureQuery query) throws DataException { |
777 |
return null; |
778 |
} |
779 |
|
780 |
@Override
|
781 |
public Feature getSampleFeature() {
|
782 |
return null; |
783 |
} |
784 |
|
785 |
@Override
|
786 |
public void copyTo(FeatureStore target) { |
787 |
} |
788 |
|
789 |
@Override
|
790 |
public FeatureQuery createFeatureQuery(String filter, String sortBy, boolean asc) { |
791 |
return null; |
792 |
} |
793 |
|
794 |
@Override
|
795 |
public FeatureQuery createFeatureQuery(Expression filter, String sortBy, boolean asc) { |
796 |
return null; |
797 |
} |
798 |
|
799 |
@Override
|
800 |
public boolean supportReferences() { |
801 |
return true; |
802 |
} |
803 |
|
804 |
@Override
|
805 |
public boolean isTemporary() { |
806 |
return false; |
807 |
} |
808 |
|
809 |
@Override
|
810 |
public FeatureType getDefaultFeatureTypeQuietly() {
|
811 |
try {
|
812 |
return this.getDefaultFeatureType(); |
813 |
} catch (DataException ex) {
|
814 |
return null; |
815 |
} |
816 |
} |
817 |
|
818 |
@Override
|
819 |
public void insert(FeatureSet set) throws DataException { |
820 |
|
821 |
} |
822 |
|
823 |
@Override
|
824 |
public long size64() { |
825 |
return 0; |
826 |
} |
827 |
|
828 |
@Override
|
829 |
public boolean cancelEditingQuietly() { |
830 |
return true; |
831 |
} |
832 |
|
833 |
@Override
|
834 |
public Object getProperty(String name) { |
835 |
return null; |
836 |
} |
837 |
|
838 |
@Override
|
839 |
public void setProperty(String name, Object value) { |
840 |
|
841 |
} |
842 |
|
843 |
@Override
|
844 |
public Map<String, Object> getProperties() { |
845 |
return Collections.EMPTY_MAP; |
846 |
} |
847 |
|
848 |
@Override
|
849 |
public boolean finishEditingQuietly() { |
850 |
return true; |
851 |
} |
852 |
|
853 |
@Override
|
854 |
public void delete(String filter) { |
855 |
} |
856 |
|
857 |
@Override
|
858 |
public void delete(Expression filter) { |
859 |
} |
860 |
|
861 |
@Override
|
862 |
public GetItemWithSizeAndIterator64<Feature> getFeatures64() {
|
863 |
return this.getFeatures64(null, -1); |
864 |
} |
865 |
|
866 |
@Override
|
867 |
public GetItemWithSizeAndIterator64<Feature> getFeatures64(String filter) { |
868 |
return this.getFeatures64(filter, null, true); |
869 |
} |
870 |
|
871 |
@Override
|
872 |
public GetItemWithSizeAndIterator64<Feature> getFeatures64(String filter, String sortBy, boolean asc) { |
873 |
FeatureQuery query = this.createFeatureQuery(filter, sortBy, asc);
|
874 |
return this.getFeatures64(query, -1); |
875 |
} |
876 |
|
877 |
@Override
|
878 |
public GetItemWithSizeAndIterator64<Feature> getFeatures64(FeatureQuery query, int pageSize) { |
879 |
return null; |
880 |
} |
881 |
|
882 |
} |