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