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 / DummyDBFeatureStore.java @ 42775
History | View | Annotate | Download (17.1 KB)
1 | 40559 | jjdelcerro | /**
|
---|---|---|---|
2 | * gvSIG. Desktop Geographic Information System.
|
||
3 | *
|
||
4 | * Copyright (C) 2007-2013 gvSIG Association.
|
||
5 | *
|
||
6 | 42292 | jjdelcerro | * This program is free software; you can redistribute it and/or modify it under
|
7 | * the terms of the GNU General Public License as published by the Free Software
|
||
8 | * Foundation; either version 3 of the License, or (at your option) any later
|
||
9 | * version.
|
||
10 | 40559 | jjdelcerro | *
|
11 | 42292 | jjdelcerro | * This program is distributed in the hope that it will be useful, but WITHOUT
|
12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||
13 | * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
||
14 | * details.
|
||
15 | 40559 | jjdelcerro | *
|
16 | 42292 | jjdelcerro | * You should have received a copy of the GNU General Public License along with
|
17 | * this program; if not, write to the Free Software Foundation, Inc., 51
|
||
18 | * Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||
19 | 40559 | jjdelcerro | *
|
20 | 42292 | jjdelcerro | * For any additional information, do not hesitate to contact us at info AT
|
21 | * gvsig.com, or visit our website www.gvsig.com.
|
||
22 | 40559 | jjdelcerro | */
|
23 | 40435 | jjdelcerro | package org.gvsig.fmap.mapcontext.persistence; |
24 | |||
25 | import java.util.Collection; |
||
26 | import java.util.Iterator; |
||
27 | import java.util.List; |
||
28 | import java.util.Set; |
||
29 | |||
30 | import org.cresques.cts.IProjection; |
||
31 | import org.gvsig.fmap.dal.DataQuery; |
||
32 | import org.gvsig.fmap.dal.DataServerExplorer; |
||
33 | import org.gvsig.fmap.dal.DataSet; |
||
34 | import org.gvsig.fmap.dal.DataStoreParameters; |
||
35 | import org.gvsig.fmap.dal.exception.DataException; |
||
36 | import org.gvsig.fmap.dal.exception.ValidateDataParametersException; |
||
37 | import org.gvsig.fmap.dal.feature.EditableFeature; |
||
38 | import org.gvsig.fmap.dal.feature.EditableFeatureType; |
||
39 | import org.gvsig.fmap.dal.feature.Feature; |
||
40 | import org.gvsig.fmap.dal.feature.FeatureCache; |
||
41 | import org.gvsig.fmap.dal.feature.FeatureIndex; |
||
42 | import org.gvsig.fmap.dal.feature.FeatureIndexes; |
||
43 | import org.gvsig.fmap.dal.feature.FeatureLocks; |
||
44 | import org.gvsig.fmap.dal.feature.FeatureQuery; |
||
45 | import org.gvsig.fmap.dal.feature.FeatureReference; |
||
46 | import org.gvsig.fmap.dal.feature.FeatureSelection; |
||
47 | import org.gvsig.fmap.dal.feature.FeatureSet; |
||
48 | import org.gvsig.fmap.dal.feature.FeatureStore; |
||
49 | import org.gvsig.fmap.dal.feature.FeatureStoreTransforms; |
||
50 | import org.gvsig.fmap.dal.feature.FeatureType; |
||
51 | import org.gvsig.fmap.dal.feature.NewFeatureStoreParameters; |
||
52 | import org.gvsig.fmap.dal.feature.exception.NeedEditingModeException; |
||
53 | import org.gvsig.fmap.geom.primitive.Envelope; |
||
54 | import org.gvsig.timesupport.Interval; |
||
55 | import org.gvsig.tools.ToolsLocator; |
||
56 | import org.gvsig.tools.dynobject.DynClass; |
||
57 | import org.gvsig.tools.dynobject.DynObject; |
||
58 | import org.gvsig.tools.dynobject.DynStruct; |
||
59 | import org.gvsig.tools.dynobject.exception.DynFieldNotFoundException; |
||
60 | import org.gvsig.tools.dynobject.exception.DynMethodException; |
||
61 | import org.gvsig.tools.exception.BaseException; |
||
62 | import org.gvsig.tools.observer.Observer; |
||
63 | import org.gvsig.tools.persistence.PersistenceManager; |
||
64 | import org.gvsig.tools.persistence.PersistentState; |
||
65 | import org.gvsig.tools.persistence.exception.PersistenceException; |
||
66 | import org.gvsig.tools.undo.RedoException; |
||
67 | import org.gvsig.tools.undo.UndoException; |
||
68 | import org.gvsig.tools.visitor.Visitor; |
||
69 | |||
70 | public class DummyDBFeatureStore implements FeatureStore { |
||
71 | |||
72 | 42292 | jjdelcerro | private String name = "[empty]"; |
73 | 40435 | jjdelcerro | |
74 | 42292 | jjdelcerro | public DummyDBFeatureStore() {
|
75 | 41818 | fdiaz | |
76 | 42292 | jjdelcerro | } |
77 | 41818 | fdiaz | |
78 | 42292 | jjdelcerro | public DummyDBFeatureStore(String id) { |
79 | name = "[DATABASE FEATURE STORE - " + id + "]"; |
||
80 | } |
||
81 | 40435 | jjdelcerro | |
82 | 42292 | jjdelcerro | public boolean allowWrite() { |
83 | // TODO Auto-generated method stub
|
||
84 | return false; |
||
85 | } |
||
86 | 40435 | jjdelcerro | |
87 | 42292 | jjdelcerro | public void beginEditingGroup(String description) |
88 | throws NeedEditingModeException {
|
||
89 | // TODO Auto-generated method stub
|
||
90 | 40435 | jjdelcerro | |
91 | 42292 | jjdelcerro | } |
92 | 40435 | jjdelcerro | |
93 | 42292 | jjdelcerro | public boolean canWriteGeometry(int gvSIGgeometryType) throws DataException { |
94 | // TODO Auto-generated method stub
|
||
95 | return false; |
||
96 | } |
||
97 | 40435 | jjdelcerro | |
98 | 42292 | jjdelcerro | public void cancelEditing() throws DataException { |
99 | // TODO Auto-generated method stub
|
||
100 | 40435 | jjdelcerro | |
101 | 42292 | jjdelcerro | } |
102 | 40435 | jjdelcerro | |
103 | 42292 | jjdelcerro | public FeatureQuery createFeatureQuery() {
|
104 | // TODO Auto-generated method stub
|
||
105 | return null; |
||
106 | } |
||
107 | 40435 | jjdelcerro | |
108 | 42292 | jjdelcerro | public FeatureSelection createFeatureSelection() throws DataException { |
109 | // TODO Auto-generated method stub
|
||
110 | return null; |
||
111 | } |
||
112 | 40435 | jjdelcerro | |
113 | 42292 | jjdelcerro | public FeatureIndex createIndex(FeatureType featureType,
|
114 | String attributeName, String indexName) throws DataException { |
||
115 | // TODO Auto-generated method stub
|
||
116 | return null; |
||
117 | } |
||
118 | 40435 | jjdelcerro | |
119 | 42292 | jjdelcerro | public FeatureIndex createIndex(FeatureType featureType,
|
120 | String attributeName, String indexName, Observer observer) |
||
121 | throws DataException {
|
||
122 | // TODO Auto-generated method stub
|
||
123 | return null; |
||
124 | } |
||
125 | 40435 | jjdelcerro | |
126 | 42292 | jjdelcerro | public EditableFeature createNewFeature() throws DataException { |
127 | // TODO Auto-generated method stub
|
||
128 | return null; |
||
129 | } |
||
130 | 40435 | jjdelcerro | |
131 | 42292 | jjdelcerro | public EditableFeature createNewFeature(FeatureType type,
|
132 | Feature defaultValues) throws DataException {
|
||
133 | // TODO Auto-generated method stub
|
||
134 | return null; |
||
135 | } |
||
136 | 40435 | jjdelcerro | |
137 | 42292 | jjdelcerro | public EditableFeature createNewFeature(FeatureType type,
|
138 | boolean defaultValues) throws DataException { |
||
139 | // TODO Auto-generated method stub
|
||
140 | return null; |
||
141 | } |
||
142 | 40435 | jjdelcerro | |
143 | 42292 | jjdelcerro | public EditableFeature createNewFeature(boolean defaultValues) |
144 | throws DataException {
|
||
145 | // TODO Auto-generated method stub
|
||
146 | return null; |
||
147 | } |
||
148 | 40435 | jjdelcerro | |
149 | 42292 | jjdelcerro | public void delete(Feature feature) throws DataException { |
150 | // TODO Auto-generated method stub
|
||
151 | 40435 | jjdelcerro | |
152 | 42292 | jjdelcerro | } |
153 | 40435 | jjdelcerro | |
154 | 42292 | jjdelcerro | public void edit() throws DataException { |
155 | // TODO Auto-generated method stub
|
||
156 | 40435 | jjdelcerro | |
157 | 42292 | jjdelcerro | } |
158 | 40435 | jjdelcerro | |
159 | 42292 | jjdelcerro | public void edit(int mode) throws DataException { |
160 | // TODO Auto-generated method stub
|
||
161 | 40435 | jjdelcerro | |
162 | 42292 | jjdelcerro | } |
163 | 40435 | jjdelcerro | |
164 | 42292 | jjdelcerro | public void endEditingGroup() throws NeedEditingModeException { |
165 | // TODO Auto-generated method stub
|
||
166 | 40435 | jjdelcerro | |
167 | 42292 | jjdelcerro | } |
168 | 40435 | jjdelcerro | |
169 | 42292 | jjdelcerro | public void export(DataServerExplorer explorer, |
170 | String providerName,
|
||
171 | NewFeatureStoreParameters params) throws DataException {
|
||
172 | // TODO Auto-generated method stub
|
||
173 | 40435 | jjdelcerro | |
174 | 42292 | jjdelcerro | } |
175 | 40435 | jjdelcerro | |
176 | 42292 | jjdelcerro | public void finishEditing() throws DataException { |
177 | // TODO Auto-generated method stub
|
||
178 | 40435 | jjdelcerro | |
179 | 42292 | jjdelcerro | } |
180 | 40435 | jjdelcerro | |
181 | 42292 | jjdelcerro | public FeatureType getDefaultFeatureType() throws DataException { |
182 | return new DummyFileFeatureStore.DummyFeatureType(); |
||
183 | } |
||
184 | 40435 | jjdelcerro | |
185 | 42292 | jjdelcerro | public Envelope getEnvelope() throws DataException { |
186 | // TODO Auto-generated method stub
|
||
187 | return null; |
||
188 | } |
||
189 | 40435 | jjdelcerro | |
190 | 42292 | jjdelcerro | public Feature getFeatureByReference(FeatureReference reference)
|
191 | throws DataException {
|
||
192 | // TODO Auto-generated method stub
|
||
193 | return null; |
||
194 | } |
||
195 | 40435 | jjdelcerro | |
196 | 42292 | jjdelcerro | public Feature getFeatureByReference(FeatureReference reference,
|
197 | FeatureType featureType) throws DataException {
|
||
198 | // TODO Auto-generated method stub
|
||
199 | return null; |
||
200 | } |
||
201 | 40435 | jjdelcerro | |
202 | 42292 | jjdelcerro | public long getFeatureCount() throws DataException { |
203 | // TODO Auto-generated method stub
|
||
204 | return 0; |
||
205 | } |
||
206 | 40435 | jjdelcerro | |
207 | 42292 | jjdelcerro | public FeatureSelection getFeatureSelection() throws DataException { |
208 | // TODO Auto-generated method stub
|
||
209 | return null; |
||
210 | } |
||
211 | 40435 | jjdelcerro | |
212 | 42292 | jjdelcerro | public FeatureSet getFeatureSet() throws DataException { |
213 | // TODO Auto-generated method stub
|
||
214 | return null; |
||
215 | } |
||
216 | 40435 | jjdelcerro | |
217 | 42292 | jjdelcerro | public FeatureSet getFeatureSet(FeatureQuery featureQuery)
|
218 | throws DataException {
|
||
219 | // TODO Auto-generated method stub
|
||
220 | return null; |
||
221 | } |
||
222 | 40435 | jjdelcerro | |
223 | 42292 | jjdelcerro | public void getFeatureSet(FeatureQuery featureQuery, Observer observer) |
224 | throws DataException {
|
||
225 | // TODO Auto-generated method stub
|
||
226 | 40435 | jjdelcerro | |
227 | 42292 | jjdelcerro | } |
228 | 40435 | jjdelcerro | |
229 | 42292 | jjdelcerro | public void getFeatureSet(Observer observer) throws DataException { |
230 | // TODO Auto-generated method stub
|
||
231 | 40435 | jjdelcerro | |
232 | 42292 | jjdelcerro | } |
233 | 40435 | jjdelcerro | |
234 | 42292 | jjdelcerro | public FeatureType getFeatureType(String featureTypeId) |
235 | throws DataException {
|
||
236 | // TODO Auto-generated method stub
|
||
237 | return null; |
||
238 | } |
||
239 | 40435 | jjdelcerro | |
240 | 42292 | jjdelcerro | public List getFeatureTypes() throws DataException { |
241 | // TODO Auto-generated method stub
|
||
242 | return null; |
||
243 | } |
||
244 | 40435 | jjdelcerro | |
245 | 42292 | jjdelcerro | public FeatureIndexes getIndexes() {
|
246 | // TODO Auto-generated method stub
|
||
247 | return null; |
||
248 | } |
||
249 | 40435 | jjdelcerro | |
250 | 42292 | jjdelcerro | public FeatureLocks getLocks() throws DataException { |
251 | // TODO Auto-generated method stub
|
||
252 | return null; |
||
253 | } |
||
254 | 40435 | jjdelcerro | |
255 | 42292 | jjdelcerro | public DataStoreParameters getParameters() {
|
256 | // TODO Auto-generated method stub
|
||
257 | return null; |
||
258 | } |
||
259 | 40435 | jjdelcerro | |
260 | 42292 | jjdelcerro | public IProjection getSRSDefaultGeometry() throws DataException { |
261 | // TODO Auto-generated method stub
|
||
262 | return null; |
||
263 | } |
||
264 | 40435 | jjdelcerro | |
265 | 42292 | jjdelcerro | public FeatureStoreTransforms getTransforms() {
|
266 | // TODO Auto-generated method stub
|
||
267 | return null; |
||
268 | } |
||
269 | 40435 | jjdelcerro | |
270 | 42292 | jjdelcerro | public void insert(EditableFeature feature) throws DataException { |
271 | // TODO Auto-generated method stub
|
||
272 | 40435 | jjdelcerro | |
273 | 42292 | jjdelcerro | } |
274 | 40435 | jjdelcerro | |
275 | 42292 | jjdelcerro | public boolean isAppendModeSupported() { |
276 | // TODO Auto-generated method stub
|
||
277 | return false; |
||
278 | } |
||
279 | 40435 | jjdelcerro | |
280 | 42292 | jjdelcerro | public boolean isAppending() { |
281 | // TODO Auto-generated method stub
|
||
282 | return false; |
||
283 | } |
||
284 | 40435 | jjdelcerro | |
285 | 42292 | jjdelcerro | public boolean isEditing() { |
286 | // TODO Auto-generated method stub
|
||
287 | return false; |
||
288 | } |
||
289 | 40435 | jjdelcerro | |
290 | 42292 | jjdelcerro | public boolean isLocksSupported() { |
291 | // TODO Auto-generated method stub
|
||
292 | return false; |
||
293 | } |
||
294 | 40435 | jjdelcerro | |
295 | 42292 | jjdelcerro | public void setSelection(FeatureSet selection) throws DataException { |
296 | // TODO Auto-generated method stub
|
||
297 | 40435 | jjdelcerro | |
298 | 42292 | jjdelcerro | } |
299 | 40435 | jjdelcerro | |
300 | 42292 | jjdelcerro | public void update(EditableFeatureType featureType) throws DataException { |
301 | // TODO Auto-generated method stub
|
||
302 | 40435 | jjdelcerro | |
303 | 42292 | jjdelcerro | } |
304 | 40435 | jjdelcerro | |
305 | 42292 | jjdelcerro | public void update(EditableFeature feature) throws DataException { |
306 | // TODO Auto-generated method stub
|
||
307 | 40435 | jjdelcerro | |
308 | 42292 | jjdelcerro | } |
309 | 40435 | jjdelcerro | |
310 | 42292 | jjdelcerro | public void validateFeatures(int mode) throws DataException { |
311 | // TODO Auto-generated method stub
|
||
312 | 40435 | jjdelcerro | |
313 | 42292 | jjdelcerro | } |
314 | 40435 | jjdelcerro | |
315 | 42292 | jjdelcerro | public DataQuery createQuery() {
|
316 | // TODO Auto-generated method stub
|
||
317 | return null; |
||
318 | } |
||
319 | 40435 | jjdelcerro | |
320 | 42292 | jjdelcerro | public DataSet createSelection() throws DataException { |
321 | // TODO Auto-generated method stub
|
||
322 | return null; |
||
323 | } |
||
324 | 40435 | jjdelcerro | |
325 | 42292 | jjdelcerro | public void dispose() { |
326 | // TODO Auto-generated method stub
|
||
327 | 40435 | jjdelcerro | |
328 | 42292 | jjdelcerro | } |
329 | 40435 | jjdelcerro | |
330 | 42292 | jjdelcerro | public Iterator getChildren() { |
331 | // TODO Auto-generated method stub
|
||
332 | return null; |
||
333 | } |
||
334 | 40435 | jjdelcerro | |
335 | 42292 | jjdelcerro | public DataSet getDataSet() throws DataException { |
336 | // TODO Auto-generated method stub
|
||
337 | return null; |
||
338 | } |
||
339 | 40435 | jjdelcerro | |
340 | 42292 | jjdelcerro | public DataSet getDataSet(DataQuery dataQuery) throws DataException { |
341 | // TODO Auto-generated method stub
|
||
342 | return null; |
||
343 | } |
||
344 | 40435 | jjdelcerro | |
345 | 42292 | jjdelcerro | public void getDataSet(Observer observer) throws DataException { |
346 | // TODO Auto-generated method stub
|
||
347 | 40435 | jjdelcerro | |
348 | 42292 | jjdelcerro | } |
349 | 40435 | jjdelcerro | |
350 | 42292 | jjdelcerro | public void getDataSet(DataQuery dataQuery, Observer observer) |
351 | throws DataException {
|
||
352 | // TODO Auto-generated method stub
|
||
353 | 40435 | jjdelcerro | |
354 | 42292 | jjdelcerro | } |
355 | 40435 | jjdelcerro | |
356 | 42292 | jjdelcerro | public DataServerExplorer getExplorer() throws DataException, |
357 | ValidateDataParametersException { |
||
358 | // TODO Auto-generated method stub
|
||
359 | return null; |
||
360 | } |
||
361 | 40435 | jjdelcerro | |
362 | 42292 | jjdelcerro | public String getName() { |
363 | // TODO Auto-generated method stub
|
||
364 | return name;
|
||
365 | } |
||
366 | 40435 | jjdelcerro | |
367 | 42292 | jjdelcerro | public DataSet getSelection() throws DataException { |
368 | // TODO Auto-generated method stub
|
||
369 | return null; |
||
370 | } |
||
371 | 40435 | jjdelcerro | |
372 | 42292 | jjdelcerro | public void refresh() throws DataException { |
373 | // TODO Auto-generated method stub
|
||
374 | 40435 | jjdelcerro | |
375 | 42292 | jjdelcerro | } |
376 | 40435 | jjdelcerro | |
377 | 42292 | jjdelcerro | public void setSelection(DataSet selection) throws DataException { |
378 | // TODO Auto-generated method stub
|
||
379 | 40435 | jjdelcerro | |
380 | 42292 | jjdelcerro | } |
381 | 40435 | jjdelcerro | |
382 | 42292 | jjdelcerro | public void beginComplexNotification() { |
383 | // TODO Auto-generated method stub
|
||
384 | 40435 | jjdelcerro | |
385 | 42292 | jjdelcerro | } |
386 | 40435 | jjdelcerro | |
387 | 42292 | jjdelcerro | public void disableNotifications() { |
388 | // TODO Auto-generated method stub
|
||
389 | 40435 | jjdelcerro | |
390 | 42292 | jjdelcerro | } |
391 | 40435 | jjdelcerro | |
392 | 42292 | jjdelcerro | public void enableNotifications() { |
393 | // TODO Auto-generated method stub
|
||
394 | 40435 | jjdelcerro | |
395 | 42292 | jjdelcerro | } |
396 | 40435 | jjdelcerro | |
397 | 42292 | jjdelcerro | public void endComplexNotification() { |
398 | // TODO Auto-generated method stub
|
||
399 | 40435 | jjdelcerro | |
400 | 42292 | jjdelcerro | } |
401 | 40435 | jjdelcerro | |
402 | 42292 | jjdelcerro | public void addObserver(Observer o) { |
403 | // TODO Auto-generated method stub
|
||
404 | 40435 | jjdelcerro | |
405 | 42292 | jjdelcerro | } |
406 | 40435 | jjdelcerro | |
407 | 42292 | jjdelcerro | public void deleteObserver(Observer o) { |
408 | // TODO Auto-generated method stub
|
||
409 | 40435 | jjdelcerro | |
410 | 42292 | jjdelcerro | } |
411 | 40435 | jjdelcerro | |
412 | 42292 | jjdelcerro | public void deleteObservers() { |
413 | // TODO Auto-generated method stub
|
||
414 | 40435 | jjdelcerro | |
415 | 42292 | jjdelcerro | } |
416 | 40435 | jjdelcerro | |
417 | 42292 | jjdelcerro | public void loadFromState(PersistentState state) throws PersistenceException { |
418 | name = state.getString("name");
|
||
419 | } |
||
420 | 40435 | jjdelcerro | |
421 | 42292 | jjdelcerro | public void saveToState(PersistentState state) throws PersistenceException { |
422 | state.set("name", name);
|
||
423 | } |
||
424 | 40435 | jjdelcerro | |
425 | 42292 | jjdelcerro | public Set getMetadataChildren() { |
426 | // TODO Auto-generated method stub
|
||
427 | return null; |
||
428 | } |
||
429 | 40435 | jjdelcerro | |
430 | 42292 | jjdelcerro | public Object getMetadataID() { |
431 | // TODO Auto-generated method stub
|
||
432 | return null; |
||
433 | } |
||
434 | 40435 | jjdelcerro | |
435 | 42292 | jjdelcerro | public String getMetadataName() { |
436 | // TODO Auto-generated method stub
|
||
437 | return null; |
||
438 | } |
||
439 | 40435 | jjdelcerro | |
440 | 42292 | jjdelcerro | public void delegate(DynObject dynObject) { |
441 | // TODO Auto-generated method stub
|
||
442 | 40435 | jjdelcerro | |
443 | 42292 | jjdelcerro | } |
444 | 40435 | jjdelcerro | |
445 | 42292 | jjdelcerro | public DynClass getDynClass() {
|
446 | // TODO Auto-generated method stub
|
||
447 | return null; |
||
448 | } |
||
449 | 40435 | jjdelcerro | |
450 | 42292 | jjdelcerro | public Object getDynValue(String name) throws DynFieldNotFoundException { |
451 | // TODO Auto-generated method stub
|
||
452 | return null; |
||
453 | } |
||
454 | 40435 | jjdelcerro | |
455 | 42292 | jjdelcerro | public boolean hasDynValue(String name) { |
456 | // TODO Auto-generated method stub
|
||
457 | return false; |
||
458 | } |
||
459 | 40435 | jjdelcerro | |
460 | 42292 | jjdelcerro | public void implement(DynClass dynClass) { |
461 | // TODO Auto-generated method stub
|
||
462 | 40435 | jjdelcerro | |
463 | 42292 | jjdelcerro | } |
464 | 40435 | jjdelcerro | |
465 | 42775 | jjdelcerro | public Object invokeDynMethod(String name, Object[] args) |
466 | 42292 | jjdelcerro | throws DynMethodException {
|
467 | // TODO Auto-generated method stub
|
||
468 | return null; |
||
469 | } |
||
470 | 40435 | jjdelcerro | |
471 | 42775 | jjdelcerro | public Object invokeDynMethod(int code, Object[] args) |
472 | 42292 | jjdelcerro | throws DynMethodException {
|
473 | // TODO Auto-generated method stub
|
||
474 | return null; |
||
475 | } |
||
476 | 40435 | jjdelcerro | |
477 | 42292 | jjdelcerro | public void setDynValue(String name, Object value) |
478 | throws DynFieldNotFoundException {
|
||
479 | // TODO Auto-generated method stub
|
||
480 | 40435 | jjdelcerro | |
481 | 42292 | jjdelcerro | } |
482 | 40435 | jjdelcerro | |
483 | 42292 | jjdelcerro | public boolean canRedo() { |
484 | // TODO Auto-generated method stub
|
||
485 | return false; |
||
486 | } |
||
487 | 40435 | jjdelcerro | |
488 | 42292 | jjdelcerro | public boolean canUndo() { |
489 | // TODO Auto-generated method stub
|
||
490 | return false; |
||
491 | } |
||
492 | 40435 | jjdelcerro | |
493 | 42292 | jjdelcerro | public List getRedoInfos() { |
494 | // TODO Auto-generated method stub
|
||
495 | return null; |
||
496 | } |
||
497 | 40435 | jjdelcerro | |
498 | 42292 | jjdelcerro | public List getUndoInfos() { |
499 | // TODO Auto-generated method stub
|
||
500 | return null; |
||
501 | } |
||
502 | 40435 | jjdelcerro | |
503 | 42292 | jjdelcerro | public void redo() throws RedoException { |
504 | // TODO Auto-generated method stub
|
||
505 | 40435 | jjdelcerro | |
506 | 42292 | jjdelcerro | } |
507 | 40435 | jjdelcerro | |
508 | 42292 | jjdelcerro | public void redo(int num) throws RedoException { |
509 | // TODO Auto-generated method stub
|
||
510 | 40435 | jjdelcerro | |
511 | 42292 | jjdelcerro | } |
512 | 40435 | jjdelcerro | |
513 | 42292 | jjdelcerro | public void undo() throws UndoException { |
514 | // TODO Auto-generated method stub
|
||
515 | 40435 | jjdelcerro | |
516 | 42292 | jjdelcerro | } |
517 | 40435 | jjdelcerro | |
518 | 42292 | jjdelcerro | public void undo(int num) throws UndoException { |
519 | // TODO Auto-generated method stub
|
||
520 | 40435 | jjdelcerro | |
521 | 42292 | jjdelcerro | } |
522 | 41818 | fdiaz | |
523 | 42292 | jjdelcerro | public static void registerPersistent() { |
524 | PersistenceManager manager = ToolsLocator.getPersistenceManager(); |
||
525 | DynStruct definition = manager.addDefinition( |
||
526 | DummyDBFeatureStore.class, |
||
527 | "DummyDBFeatureStore",
|
||
528 | "DummyDBFeatureStore Persistence definition",
|
||
529 | null,
|
||
530 | null
|
||
531 | ); |
||
532 | definition.addDynFieldString("name");
|
||
533 | } |
||
534 | 41818 | fdiaz | |
535 | 42292 | jjdelcerro | public void accept(Visitor visitor) throws BaseException { |
536 | // TODO Auto-generated method stub
|
||
537 | 40435 | jjdelcerro | |
538 | 42292 | jjdelcerro | } |
539 | 40435 | jjdelcerro | |
540 | 42292 | jjdelcerro | public void accept(Visitor visitor, DataQuery dataQuery) |
541 | throws BaseException {
|
||
542 | // TODO Auto-generated method stub
|
||
543 | 40435 | jjdelcerro | |
544 | 42292 | jjdelcerro | } |
545 | 40435 | jjdelcerro | |
546 | 42292 | jjdelcerro | public void createCache(String name, DynObject parameters) |
547 | throws DataException {
|
||
548 | // TODO Auto-generated method stub
|
||
549 | 40435 | jjdelcerro | |
550 | 42292 | jjdelcerro | } |
551 | 41818 | fdiaz | |
552 | 42292 | jjdelcerro | public FeatureCache getCache() {
|
553 | // TODO Auto-generated method stub
|
||
554 | return null; |
||
555 | } |
||
556 | 40435 | jjdelcerro | |
557 | 42292 | jjdelcerro | public void clear() { |
558 | // Nothing to do
|
||
559 | } |
||
560 | 40435 | jjdelcerro | |
561 | 42292 | jjdelcerro | public String getProviderName() { |
562 | // TODO Auto-generated method stub
|
||
563 | return null; |
||
564 | } |
||
565 | 40435 | jjdelcerro | |
566 | 42292 | jjdelcerro | public String getFullName() { |
567 | // TODO Auto-generated method stub
|
||
568 | return null; |
||
569 | } |
||
570 | 40435 | jjdelcerro | |
571 | public boolean isKnownEnvelope() { |
||
572 | // TODO Auto-generated method stub
|
||
573 | return false; |
||
574 | } |
||
575 | |||
576 | public boolean hasRetrievedFeaturesLimit() { |
||
577 | // TODO Auto-generated method stub
|
||
578 | return false; |
||
579 | } |
||
580 | |||
581 | public int getRetrievedFeaturesLimit() { |
||
582 | // TODO Auto-generated method stub
|
||
583 | return 0; |
||
584 | } |
||
585 | |||
586 | public Interval getInterval() {
|
||
587 | // TODO Auto-generated method stub
|
||
588 | return null; |
||
589 | } |
||
590 | |||
591 | public Collection getTimes() { |
||
592 | // TODO Auto-generated method stub
|
||
593 | return null; |
||
594 | } |
||
595 | |||
596 | public Collection getTimes(Interval interval) { |
||
597 | // TODO Auto-generated method stub
|
||
598 | return null; |
||
599 | } |
||
600 | |||
601 | public FeatureIndex createIndex(String indexTypeName, |
||
602 | 42292 | jjdelcerro | FeatureType featureType, String attributeName, String indexName) |
603 | throws DataException {
|
||
604 | 40435 | jjdelcerro | // TODO Auto-generated method stub
|
605 | return null; |
||
606 | } |
||
607 | |||
608 | public FeatureIndex createIndex(String indexTypeName, |
||
609 | 42292 | jjdelcerro | FeatureType featureType, String attributeName, String indexName, |
610 | Observer observer) throws DataException { |
||
611 | 40435 | jjdelcerro | // TODO Auto-generated method stub
|
612 | return null; |
||
613 | } |
||
614 | 41818 | fdiaz | |
615 | 40435 | jjdelcerro | /* (non-Javadoc)
|
616 | * @see java.lang.Object#clone()
|
||
617 | */
|
||
618 | public Object clone() throws CloneNotSupportedException { |
||
619 | // TODO Auto-generated method stub
|
||
620 | return super.clone(); |
||
621 | } |
||
622 | |||
623 | /* (non-Javadoc)
|
||
624 | * @see org.gvsig.fmap.dal.feature.FeatureStore#commitChanges()
|
||
625 | */
|
||
626 | public void commitChanges() throws DataException { |
||
627 | // TODO Auto-generated method stub
|
||
628 | 41818 | fdiaz | |
629 | 40435 | jjdelcerro | } |
630 | |||
631 | /* (non-Javadoc)
|
||
632 | * @see org.gvsig.fmap.dal.feature.FeatureStore#canCommitChanges()
|
||
633 | */
|
||
634 | public boolean canCommitChanges() throws DataException { |
||
635 | // TODO Auto-generated method stub
|
||
636 | return false; |
||
637 | } |
||
638 | 41818 | fdiaz | |
639 | public Feature getFeature(DynObject dynobject) {
|
||
640 | // TODO Auto-generated method stub
|
||
641 | return null; |
||
642 | } |
||
643 | 42293 | jjdelcerro | |
644 | public EditableFeature createNewFeature(Feature defaultValues) throws DataException { |
||
645 | return null; |
||
646 | } |
||
647 | |||
648 | public Iterator iterator() { |
||
649 | return null; |
||
650 | } |
||
651 | |||
652 | 42292 | jjdelcerro | } |