Revision 42292 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
DummyDBFeatureStore.java | ||
---|---|---|
3 | 3 |
* |
4 | 4 |
* Copyright (C) 2007-2013 gvSIG Association. |
5 | 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.
|
|
6 |
* 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 | 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.
|
|
11 |
* 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 | 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. |
|
16 |
* 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. |
|
20 | 19 |
* |
21 |
* For any additional information, do not hesitate to contact us |
|
22 |
* at info AT gvsig.com, or visit our website www.gvsig.com.
|
|
20 |
* For any additional information, do not hesitate to contact us at info AT
|
|
21 |
* gvsig.com, or visit our website www.gvsig.com. |
|
23 | 22 |
*/ |
24 | 23 |
package org.gvsig.fmap.mapcontext.persistence; |
25 | 24 |
|
... | ... | |
70 | 69 |
|
71 | 70 |
public class DummyDBFeatureStore implements FeatureStore { |
72 | 71 |
|
73 |
private String name = "[empty]";
|
|
72 |
private String name = "[empty]";
|
|
74 | 73 |
|
75 |
public DummyDBFeatureStore() {
|
|
74 |
public DummyDBFeatureStore() {
|
|
76 | 75 |
|
77 |
}
|
|
76 |
}
|
|
78 | 77 |
|
79 |
public DummyDBFeatureStore(String id) {
|
|
80 |
name = "[DATABASE FEATURE STORE - " + id + "]";
|
|
81 |
}
|
|
78 |
public DummyDBFeatureStore(String id) {
|
|
79 |
name = "[DATABASE FEATURE STORE - " + id + "]";
|
|
80 |
}
|
|
82 | 81 |
|
83 |
public boolean allowWrite() {
|
|
84 |
// TODO Auto-generated method stub
|
|
85 |
return false;
|
|
86 |
}
|
|
82 |
public boolean allowWrite() {
|
|
83 |
// TODO Auto-generated method stub
|
|
84 |
return false;
|
|
85 |
}
|
|
87 | 86 |
|
88 |
public void beginEditingGroup(String description)
|
|
89 |
throws NeedEditingModeException {
|
|
90 |
// TODO Auto-generated method stub
|
|
87 |
public void beginEditingGroup(String description)
|
|
88 |
throws NeedEditingModeException {
|
|
89 |
// TODO Auto-generated method stub
|
|
91 | 90 |
|
92 |
}
|
|
91 |
}
|
|
93 | 92 |
|
94 |
public boolean canWriteGeometry(int gvSIGgeometryType) throws DataException {
|
|
95 |
// TODO Auto-generated method stub
|
|
96 |
return false;
|
|
97 |
}
|
|
93 |
public boolean canWriteGeometry(int gvSIGgeometryType) throws DataException {
|
|
94 |
// TODO Auto-generated method stub
|
|
95 |
return false;
|
|
96 |
}
|
|
98 | 97 |
|
99 |
public void cancelEditing() throws DataException {
|
|
100 |
// TODO Auto-generated method stub
|
|
98 |
public void cancelEditing() throws DataException {
|
|
99 |
// TODO Auto-generated method stub
|
|
101 | 100 |
|
102 |
}
|
|
101 |
}
|
|
103 | 102 |
|
104 |
public FeatureQuery createFeatureQuery() {
|
|
105 |
// TODO Auto-generated method stub
|
|
106 |
return null;
|
|
107 |
}
|
|
103 |
public FeatureQuery createFeatureQuery() {
|
|
104 |
// TODO Auto-generated method stub
|
|
105 |
return null;
|
|
106 |
}
|
|
108 | 107 |
|
109 |
public FeatureSelection createFeatureSelection() throws DataException {
|
|
110 |
// TODO Auto-generated method stub
|
|
111 |
return null;
|
|
112 |
}
|
|
108 |
public FeatureSelection createFeatureSelection() throws DataException {
|
|
109 |
// TODO Auto-generated method stub
|
|
110 |
return null;
|
|
111 |
}
|
|
113 | 112 |
|
114 |
public FeatureIndex createIndex(FeatureType featureType,
|
|
115 |
String attributeName, String indexName) throws DataException {
|
|
116 |
// TODO Auto-generated method stub
|
|
117 |
return null;
|
|
118 |
}
|
|
113 |
public FeatureIndex createIndex(FeatureType featureType,
|
|
114 |
String attributeName, String indexName) throws DataException {
|
|
115 |
// TODO Auto-generated method stub
|
|
116 |
return null;
|
|
117 |
}
|
|
119 | 118 |
|
120 |
public FeatureIndex createIndex(FeatureType featureType,
|
|
121 |
String attributeName, String indexName, Observer observer)
|
|
122 |
throws DataException {
|
|
123 |
// TODO Auto-generated method stub
|
|
124 |
return null;
|
|
125 |
}
|
|
119 |
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 |
}
|
|
126 | 125 |
|
127 |
public EditableFeature createNewFeature() throws DataException {
|
|
128 |
// TODO Auto-generated method stub
|
|
129 |
return null;
|
|
130 |
}
|
|
126 |
public EditableFeature createNewFeature() throws DataException {
|
|
127 |
// TODO Auto-generated method stub
|
|
128 |
return null;
|
|
129 |
}
|
|
131 | 130 |
|
132 |
public EditableFeature createNewFeature(FeatureType type,
|
|
133 |
Feature defaultValues) throws DataException {
|
|
134 |
// TODO Auto-generated method stub
|
|
135 |
return null;
|
|
136 |
}
|
|
131 |
public EditableFeature createNewFeature(FeatureType type,
|
|
132 |
Feature defaultValues) throws DataException {
|
|
133 |
// TODO Auto-generated method stub
|
|
134 |
return null;
|
|
135 |
}
|
|
137 | 136 |
|
138 |
public EditableFeature createNewFeature(FeatureType type,
|
|
139 |
boolean defaultValues) throws DataException {
|
|
140 |
// TODO Auto-generated method stub
|
|
141 |
return null;
|
|
142 |
}
|
|
137 |
public EditableFeature createNewFeature(FeatureType type,
|
|
138 |
boolean defaultValues) throws DataException {
|
|
139 |
// TODO Auto-generated method stub
|
|
140 |
return null;
|
|
141 |
}
|
|
143 | 142 |
|
144 |
public EditableFeature createNewFeature(boolean defaultValues)
|
|
145 |
throws DataException {
|
|
146 |
// TODO Auto-generated method stub
|
|
147 |
return null;
|
|
148 |
}
|
|
143 |
public EditableFeature createNewFeature(boolean defaultValues)
|
|
144 |
throws DataException {
|
|
145 |
// TODO Auto-generated method stub
|
|
146 |
return null;
|
|
147 |
}
|
|
149 | 148 |
|
150 |
public void delete(Feature feature) throws DataException {
|
|
151 |
// TODO Auto-generated method stub
|
|
149 |
public void delete(Feature feature) throws DataException {
|
|
150 |
// TODO Auto-generated method stub
|
|
152 | 151 |
|
153 |
}
|
|
152 |
}
|
|
154 | 153 |
|
155 |
public void edit() throws DataException {
|
|
156 |
// TODO Auto-generated method stub
|
|
154 |
public void edit() throws DataException {
|
|
155 |
// TODO Auto-generated method stub
|
|
157 | 156 |
|
158 |
}
|
|
157 |
}
|
|
159 | 158 |
|
160 |
public void edit(int mode) throws DataException {
|
|
161 |
// TODO Auto-generated method stub
|
|
159 |
public void edit(int mode) throws DataException {
|
|
160 |
// TODO Auto-generated method stub
|
|
162 | 161 |
|
163 |
}
|
|
162 |
}
|
|
164 | 163 |
|
165 |
public void endEditingGroup() throws NeedEditingModeException {
|
|
166 |
// TODO Auto-generated method stub
|
|
164 |
public void endEditingGroup() throws NeedEditingModeException {
|
|
165 |
// TODO Auto-generated method stub
|
|
167 | 166 |
|
168 |
}
|
|
167 |
}
|
|
169 | 168 |
|
170 |
public void export(DataServerExplorer explorer,
|
|
171 |
String providerName,
|
|
172 |
NewFeatureStoreParameters params) throws DataException {
|
|
173 |
// TODO Auto-generated method stub
|
|
169 |
public void export(DataServerExplorer explorer,
|
|
170 |
String providerName,
|
|
171 |
NewFeatureStoreParameters params) throws DataException {
|
|
172 |
// TODO Auto-generated method stub
|
|
174 | 173 |
|
175 |
}
|
|
174 |
}
|
|
176 | 175 |
|
177 |
public void finishEditing() throws DataException {
|
|
178 |
// TODO Auto-generated method stub
|
|
176 |
public void finishEditing() throws DataException {
|
|
177 |
// TODO Auto-generated method stub
|
|
179 | 178 |
|
180 |
}
|
|
179 |
}
|
|
181 | 180 |
|
182 |
public FeatureType getDefaultFeatureType() throws DataException {
|
|
183 |
return new DummyFileFeatureStore.DummyFeatureType();
|
|
184 |
}
|
|
181 |
public FeatureType getDefaultFeatureType() throws DataException {
|
|
182 |
return new DummyFileFeatureStore.DummyFeatureType();
|
|
183 |
}
|
|
185 | 184 |
|
186 |
public Envelope getEnvelope() throws DataException {
|
|
187 |
// TODO Auto-generated method stub
|
|
188 |
return null;
|
|
189 |
}
|
|
185 |
public Envelope getEnvelope() throws DataException {
|
|
186 |
// TODO Auto-generated method stub
|
|
187 |
return null;
|
|
188 |
}
|
|
190 | 189 |
|
191 |
public Feature getFeatureByReference(FeatureReference reference)
|
|
192 |
throws DataException {
|
|
193 |
// TODO Auto-generated method stub
|
|
194 |
return null;
|
|
195 |
}
|
|
190 |
public Feature getFeatureByReference(FeatureReference reference)
|
|
191 |
throws DataException {
|
|
192 |
// TODO Auto-generated method stub
|
|
193 |
return null;
|
|
194 |
}
|
|
196 | 195 |
|
197 |
public Feature getFeatureByReference(FeatureReference reference,
|
|
198 |
FeatureType featureType) throws DataException {
|
|
199 |
// TODO Auto-generated method stub
|
|
200 |
return null;
|
|
201 |
}
|
|
196 |
public Feature getFeatureByReference(FeatureReference reference,
|
|
197 |
FeatureType featureType) throws DataException {
|
|
198 |
// TODO Auto-generated method stub
|
|
199 |
return null;
|
|
200 |
}
|
|
202 | 201 |
|
203 |
public long getFeatureCount() throws DataException {
|
|
204 |
// TODO Auto-generated method stub
|
|
205 |
return 0;
|
|
206 |
}
|
|
202 |
public long getFeatureCount() throws DataException {
|
|
203 |
// TODO Auto-generated method stub
|
|
204 |
return 0;
|
|
205 |
}
|
|
207 | 206 |
|
208 |
public FeatureSelection getFeatureSelection() throws DataException {
|
|
209 |
// TODO Auto-generated method stub
|
|
210 |
return null;
|
|
211 |
}
|
|
207 |
public FeatureSelection getFeatureSelection() throws DataException {
|
|
208 |
// TODO Auto-generated method stub
|
|
209 |
return null;
|
|
210 |
}
|
|
212 | 211 |
|
213 |
public FeatureSet getFeatureSet() throws DataException {
|
|
214 |
// TODO Auto-generated method stub
|
|
215 |
return null;
|
|
216 |
}
|
|
212 |
public FeatureSet getFeatureSet() throws DataException {
|
|
213 |
// TODO Auto-generated method stub
|
|
214 |
return null;
|
|
215 |
}
|
|
217 | 216 |
|
218 |
public FeatureSet getFeatureSet(FeatureQuery featureQuery)
|
|
219 |
throws DataException {
|
|
220 |
// TODO Auto-generated method stub
|
|
221 |
return null;
|
|
222 |
}
|
|
217 |
public FeatureSet getFeatureSet(FeatureQuery featureQuery)
|
|
218 |
throws DataException {
|
|
219 |
// TODO Auto-generated method stub
|
|
220 |
return null;
|
|
221 |
}
|
|
223 | 222 |
|
224 |
public void getFeatureSet(FeatureQuery featureQuery, Observer observer)
|
|
225 |
throws DataException {
|
|
226 |
// TODO Auto-generated method stub
|
|
223 |
public void getFeatureSet(FeatureQuery featureQuery, Observer observer)
|
|
224 |
throws DataException {
|
|
225 |
// TODO Auto-generated method stub
|
|
227 | 226 |
|
228 |
}
|
|
227 |
}
|
|
229 | 228 |
|
230 |
public void getFeatureSet(Observer observer) throws DataException {
|
|
231 |
// TODO Auto-generated method stub
|
|
229 |
public void getFeatureSet(Observer observer) throws DataException {
|
|
230 |
// TODO Auto-generated method stub
|
|
232 | 231 |
|
233 |
}
|
|
232 |
}
|
|
234 | 233 |
|
235 |
public FeatureType getFeatureType(String featureTypeId)
|
|
236 |
throws DataException {
|
|
237 |
// TODO Auto-generated method stub
|
|
238 |
return null;
|
|
239 |
}
|
|
234 |
public FeatureType getFeatureType(String featureTypeId)
|
|
235 |
throws DataException {
|
|
236 |
// TODO Auto-generated method stub
|
|
237 |
return null;
|
|
238 |
}
|
|
240 | 239 |
|
241 |
public List getFeatureTypes() throws DataException {
|
|
242 |
// TODO Auto-generated method stub
|
|
243 |
return null;
|
|
244 |
}
|
|
240 |
public List getFeatureTypes() throws DataException {
|
|
241 |
// TODO Auto-generated method stub
|
|
242 |
return null;
|
|
243 |
}
|
|
245 | 244 |
|
246 |
public FeatureIndexes getIndexes() {
|
|
247 |
// TODO Auto-generated method stub
|
|
248 |
return null;
|
|
249 |
}
|
|
245 |
public FeatureIndexes getIndexes() {
|
|
246 |
// TODO Auto-generated method stub
|
|
247 |
return null;
|
|
248 |
}
|
|
250 | 249 |
|
251 |
public FeatureLocks getLocks() throws DataException {
|
|
252 |
// TODO Auto-generated method stub
|
|
253 |
return null;
|
|
254 |
}
|
|
250 |
public FeatureLocks getLocks() throws DataException {
|
|
251 |
// TODO Auto-generated method stub
|
|
252 |
return null;
|
|
253 |
}
|
|
255 | 254 |
|
256 |
public DataStoreParameters getParameters() {
|
|
257 |
// TODO Auto-generated method stub
|
|
258 |
return null;
|
|
259 |
}
|
|
255 |
public DataStoreParameters getParameters() {
|
|
256 |
// TODO Auto-generated method stub
|
|
257 |
return null;
|
|
258 |
}
|
|
260 | 259 |
|
261 |
public IProjection getSRSDefaultGeometry() throws DataException {
|
|
262 |
// TODO Auto-generated method stub
|
|
263 |
return null;
|
|
264 |
}
|
|
260 |
public IProjection getSRSDefaultGeometry() throws DataException {
|
|
261 |
// TODO Auto-generated method stub
|
|
262 |
return null;
|
|
263 |
}
|
|
265 | 264 |
|
266 |
public FeatureStoreTransforms getTransforms() {
|
|
267 |
// TODO Auto-generated method stub
|
|
268 |
return null;
|
|
269 |
}
|
|
265 |
public FeatureStoreTransforms getTransforms() {
|
|
266 |
// TODO Auto-generated method stub
|
|
267 |
return null;
|
|
268 |
}
|
|
270 | 269 |
|
271 |
public void insert(EditableFeature feature) throws DataException {
|
|
272 |
// TODO Auto-generated method stub
|
|
270 |
public void insert(EditableFeature feature) throws DataException {
|
|
271 |
// TODO Auto-generated method stub
|
|
273 | 272 |
|
274 |
}
|
|
273 |
}
|
|
275 | 274 |
|
276 |
public boolean isAppendModeSupported() {
|
|
277 |
// TODO Auto-generated method stub
|
|
278 |
return false;
|
|
279 |
}
|
|
275 |
public boolean isAppendModeSupported() {
|
|
276 |
// TODO Auto-generated method stub
|
|
277 |
return false;
|
|
278 |
}
|
|
280 | 279 |
|
281 |
public boolean isAppending() {
|
|
282 |
// TODO Auto-generated method stub
|
|
283 |
return false;
|
|
284 |
}
|
|
280 |
public boolean isAppending() {
|
|
281 |
// TODO Auto-generated method stub
|
|
282 |
return false;
|
|
283 |
}
|
|
285 | 284 |
|
286 |
public boolean isEditing() {
|
|
287 |
// TODO Auto-generated method stub
|
|
288 |
return false;
|
|
289 |
}
|
|
285 |
public boolean isEditing() {
|
|
286 |
// TODO Auto-generated method stub
|
|
287 |
return false;
|
|
288 |
}
|
|
290 | 289 |
|
291 |
public boolean isLocksSupported() {
|
|
292 |
// TODO Auto-generated method stub
|
|
293 |
return false;
|
|
294 |
}
|
|
290 |
public boolean isLocksSupported() {
|
|
291 |
// TODO Auto-generated method stub
|
|
292 |
return false;
|
|
293 |
}
|
|
295 | 294 |
|
296 |
public void setSelection(FeatureSet selection) throws DataException {
|
|
297 |
// TODO Auto-generated method stub
|
|
295 |
public void setSelection(FeatureSet selection) throws DataException {
|
|
296 |
// TODO Auto-generated method stub
|
|
298 | 297 |
|
299 |
}
|
|
298 |
}
|
|
300 | 299 |
|
301 |
public void update(EditableFeatureType featureType) throws DataException {
|
|
302 |
// TODO Auto-generated method stub
|
|
300 |
public void update(EditableFeatureType featureType) throws DataException {
|
|
301 |
// TODO Auto-generated method stub
|
|
303 | 302 |
|
304 |
}
|
|
303 |
}
|
|
305 | 304 |
|
306 |
public void update(EditableFeature feature) throws DataException {
|
|
307 |
// TODO Auto-generated method stub
|
|
305 |
public void update(EditableFeature feature) throws DataException {
|
|
306 |
// TODO Auto-generated method stub
|
|
308 | 307 |
|
309 |
}
|
|
308 |
}
|
|
310 | 309 |
|
311 |
public void validateFeatures(int mode) throws DataException {
|
|
312 |
// TODO Auto-generated method stub
|
|
310 |
public void validateFeatures(int mode) throws DataException {
|
|
311 |
// TODO Auto-generated method stub
|
|
313 | 312 |
|
314 |
}
|
|
313 |
}
|
|
315 | 314 |
|
316 |
public DataQuery createQuery() {
|
|
317 |
// TODO Auto-generated method stub
|
|
318 |
return null;
|
|
319 |
}
|
|
315 |
public DataQuery createQuery() {
|
|
316 |
// TODO Auto-generated method stub
|
|
317 |
return null;
|
|
318 |
}
|
|
320 | 319 |
|
321 |
public DataSet createSelection() throws DataException {
|
|
322 |
// TODO Auto-generated method stub
|
|
323 |
return null;
|
|
324 |
}
|
|
320 |
public DataSet createSelection() throws DataException {
|
|
321 |
// TODO Auto-generated method stub
|
|
322 |
return null;
|
|
323 |
}
|
|
325 | 324 |
|
326 |
public void dispose() {
|
|
327 |
// TODO Auto-generated method stub
|
|
325 |
public void dispose() {
|
|
326 |
// TODO Auto-generated method stub
|
|
328 | 327 |
|
329 |
}
|
|
328 |
}
|
|
330 | 329 |
|
331 |
public Iterator getChildren() {
|
|
332 |
// TODO Auto-generated method stub
|
|
333 |
return null;
|
|
334 |
}
|
|
330 |
public Iterator getChildren() {
|
|
331 |
// TODO Auto-generated method stub
|
|
332 |
return null;
|
|
333 |
}
|
|
335 | 334 |
|
336 |
public DataSet getDataSet() throws DataException {
|
|
337 |
// TODO Auto-generated method stub
|
|
338 |
return null;
|
|
339 |
}
|
|
335 |
public DataSet getDataSet() throws DataException {
|
|
336 |
// TODO Auto-generated method stub
|
|
337 |
return null;
|
|
338 |
}
|
|
340 | 339 |
|
341 |
public DataSet getDataSet(DataQuery dataQuery) throws DataException {
|
|
342 |
// TODO Auto-generated method stub
|
|
343 |
return null;
|
|
344 |
}
|
|
340 |
public DataSet getDataSet(DataQuery dataQuery) throws DataException {
|
|
341 |
// TODO Auto-generated method stub
|
|
342 |
return null;
|
|
343 |
}
|
|
345 | 344 |
|
346 |
public void getDataSet(Observer observer) throws DataException {
|
|
347 |
// TODO Auto-generated method stub
|
|
345 |
public void getDataSet(Observer observer) throws DataException {
|
|
346 |
// TODO Auto-generated method stub
|
|
348 | 347 |
|
349 |
}
|
|
348 |
}
|
|
350 | 349 |
|
351 |
public void getDataSet(DataQuery dataQuery, Observer observer)
|
|
352 |
throws DataException {
|
|
353 |
// TODO Auto-generated method stub
|
|
350 |
public void getDataSet(DataQuery dataQuery, Observer observer)
|
|
351 |
throws DataException {
|
|
352 |
// TODO Auto-generated method stub
|
|
354 | 353 |
|
355 |
}
|
|
354 |
}
|
|
356 | 355 |
|
357 |
public DataServerExplorer getExplorer() throws DataException,
|
|
358 |
ValidateDataParametersException {
|
|
359 |
// TODO Auto-generated method stub
|
|
360 |
return null;
|
|
361 |
}
|
|
356 |
public DataServerExplorer getExplorer() throws DataException,
|
|
357 |
ValidateDataParametersException {
|
|
358 |
// TODO Auto-generated method stub
|
|
359 |
return null;
|
|
360 |
}
|
|
362 | 361 |
|
363 |
public String getName() {
|
|
364 |
// TODO Auto-generated method stub
|
|
365 |
return name;
|
|
366 |
}
|
|
362 |
public String getName() {
|
|
363 |
// TODO Auto-generated method stub
|
|
364 |
return name;
|
|
365 |
}
|
|
367 | 366 |
|
368 |
public DataSet getSelection() throws DataException {
|
|
369 |
// TODO Auto-generated method stub
|
|
370 |
return null;
|
|
371 |
}
|
|
367 |
public DataSet getSelection() throws DataException {
|
|
368 |
// TODO Auto-generated method stub
|
|
369 |
return null;
|
|
370 |
}
|
|
372 | 371 |
|
373 |
public void refresh() throws DataException {
|
|
374 |
// TODO Auto-generated method stub
|
|
372 |
public void refresh() throws DataException {
|
|
373 |
// TODO Auto-generated method stub
|
|
375 | 374 |
|
376 |
}
|
|
375 |
}
|
|
377 | 376 |
|
378 |
public void setSelection(DataSet selection) throws DataException {
|
|
379 |
// TODO Auto-generated method stub
|
|
377 |
public void setSelection(DataSet selection) throws DataException {
|
|
378 |
// TODO Auto-generated method stub
|
|
380 | 379 |
|
381 |
}
|
|
380 |
}
|
|
382 | 381 |
|
383 |
public void beginComplexNotification() {
|
|
384 |
// TODO Auto-generated method stub
|
|
382 |
public void beginComplexNotification() {
|
|
383 |
// TODO Auto-generated method stub
|
|
385 | 384 |
|
386 |
}
|
|
385 |
}
|
|
387 | 386 |
|
388 |
public void disableNotifications() {
|
|
389 |
// TODO Auto-generated method stub
|
|
387 |
public void disableNotifications() {
|
|
388 |
// TODO Auto-generated method stub
|
|
390 | 389 |
|
391 |
}
|
|
390 |
}
|
|
392 | 391 |
|
393 |
public void enableNotifications() {
|
|
394 |
// TODO Auto-generated method stub
|
|
392 |
public void enableNotifications() {
|
|
393 |
// TODO Auto-generated method stub
|
|
395 | 394 |
|
396 |
}
|
|
395 |
}
|
|
397 | 396 |
|
398 |
public void endComplexNotification() {
|
|
399 |
// TODO Auto-generated method stub
|
|
397 |
public void endComplexNotification() {
|
|
398 |
// TODO Auto-generated method stub
|
|
400 | 399 |
|
401 |
}
|
|
400 |
}
|
|
402 | 401 |
|
403 |
public void addObserver(Observer o) {
|
|
404 |
// TODO Auto-generated method stub
|
|
402 |
public void addObserver(Observer o) {
|
|
403 |
// TODO Auto-generated method stub
|
|
405 | 404 |
|
406 |
}
|
|
405 |
}
|
|
407 | 406 |
|
408 |
public void deleteObserver(Observer o) {
|
|
409 |
// TODO Auto-generated method stub
|
|
407 |
public void deleteObserver(Observer o) {
|
|
408 |
// TODO Auto-generated method stub
|
|
410 | 409 |
|
411 |
}
|
|
410 |
}
|
|
412 | 411 |
|
413 |
public void deleteObservers() {
|
|
414 |
// TODO Auto-generated method stub
|
|
412 |
public void deleteObservers() {
|
|
413 |
// TODO Auto-generated method stub
|
|
415 | 414 |
|
416 |
}
|
|
415 |
}
|
|
417 | 416 |
|
418 |
public void loadFromState(PersistentState state) throws PersistenceException {
|
|
419 |
name = state.getString("name");
|
|
420 |
}
|
|
417 |
public void loadFromState(PersistentState state) throws PersistenceException {
|
|
418 |
name = state.getString("name");
|
|
419 |
}
|
|
421 | 420 |
|
422 |
public void saveToState(PersistentState state) throws PersistenceException {
|
|
423 |
state.set("name", name);
|
|
424 |
}
|
|
421 |
public void saveToState(PersistentState state) throws PersistenceException {
|
|
422 |
state.set("name", name);
|
|
423 |
}
|
|
425 | 424 |
|
426 |
public Set getMetadataChildren() {
|
|
427 |
// TODO Auto-generated method stub
|
|
428 |
return null;
|
|
429 |
}
|
|
425 |
public Set getMetadataChildren() {
|
|
426 |
// TODO Auto-generated method stub
|
|
427 |
return null;
|
|
428 |
}
|
|
430 | 429 |
|
431 |
public Object getMetadataID() {
|
|
432 |
// TODO Auto-generated method stub
|
|
433 |
return null;
|
|
434 |
}
|
|
430 |
public Object getMetadataID() {
|
|
431 |
// TODO Auto-generated method stub
|
|
432 |
return null;
|
|
433 |
}
|
|
435 | 434 |
|
436 |
public String getMetadataName() {
|
|
437 |
// TODO Auto-generated method stub
|
|
438 |
return null;
|
|
439 |
}
|
|
435 |
public String getMetadataName() {
|
|
436 |
// TODO Auto-generated method stub
|
|
437 |
return null;
|
|
438 |
}
|
|
440 | 439 |
|
441 |
public void delegate(DynObject dynObject) {
|
|
442 |
// TODO Auto-generated method stub
|
|
440 |
public void delegate(DynObject dynObject) {
|
|
441 |
// TODO Auto-generated method stub
|
|
443 | 442 |
|
444 |
}
|
|
443 |
}
|
|
445 | 444 |
|
446 |
public DynClass getDynClass() {
|
|
447 |
// TODO Auto-generated method stub
|
|
448 |
return null;
|
|
449 |
}
|
|
445 |
public DynClass getDynClass() {
|
|
446 |
// TODO Auto-generated method stub
|
|
447 |
return null;
|
|
448 |
}
|
|
450 | 449 |
|
451 |
public Object getDynValue(String name) throws DynFieldNotFoundException {
|
|
452 |
// TODO Auto-generated method stub
|
|
453 |
return null;
|
|
454 |
}
|
|
450 |
public Object getDynValue(String name) throws DynFieldNotFoundException {
|
|
451 |
// TODO Auto-generated method stub
|
|
452 |
return null;
|
|
453 |
}
|
|
455 | 454 |
|
456 |
public boolean hasDynValue(String name) {
|
|
457 |
// TODO Auto-generated method stub
|
|
458 |
return false;
|
|
459 |
}
|
|
455 |
public boolean hasDynValue(String name) {
|
|
456 |
// TODO Auto-generated method stub
|
|
457 |
return false;
|
|
458 |
}
|
|
460 | 459 |
|
461 |
public void implement(DynClass dynClass) {
|
|
462 |
// TODO Auto-generated method stub
|
|
460 |
public void implement(DynClass dynClass) {
|
|
461 |
// TODO Auto-generated method stub
|
|
463 | 462 |
|
464 |
}
|
|
463 |
}
|
|
465 | 464 |
|
466 |
public Object invokeDynMethod(String name, DynObject context)
|
|
467 |
throws DynMethodException {
|
|
468 |
// TODO Auto-generated method stub
|
|
469 |
return null;
|
|
470 |
}
|
|
465 |
public Object invokeDynMethod(String name, DynObject context)
|
|
466 |
throws DynMethodException {
|
|
467 |
// TODO Auto-generated method stub
|
|
468 |
return null;
|
|
469 |
}
|
|
471 | 470 |
|
472 |
public Object invokeDynMethod(int code, DynObject context)
|
|
473 |
throws DynMethodException {
|
|
474 |
// TODO Auto-generated method stub
|
|
475 |
return null;
|
|
476 |
}
|
|
471 |
public Object invokeDynMethod(int code, DynObject context)
|
|
472 |
throws DynMethodException {
|
|
473 |
// TODO Auto-generated method stub
|
|
474 |
return null;
|
|
475 |
}
|
|
477 | 476 |
|
478 |
public void setDynValue(String name, Object value)
|
|
479 |
throws DynFieldNotFoundException {
|
|
480 |
// TODO Auto-generated method stub
|
|
477 |
public void setDynValue(String name, Object value)
|
|
478 |
throws DynFieldNotFoundException {
|
|
479 |
// TODO Auto-generated method stub
|
|
481 | 480 |
|
482 |
}
|
|
481 |
}
|
|
483 | 482 |
|
484 |
public boolean canRedo() {
|
|
485 |
// TODO Auto-generated method stub
|
|
486 |
return false;
|
|
487 |
}
|
|
483 |
public boolean canRedo() {
|
|
484 |
// TODO Auto-generated method stub
|
|
485 |
return false;
|
|
486 |
}
|
|
488 | 487 |
|
489 |
public boolean canUndo() {
|
|
490 |
// TODO Auto-generated method stub
|
|
491 |
return false;
|
|
492 |
}
|
|
488 |
public boolean canUndo() {
|
|
489 |
// TODO Auto-generated method stub
|
|
490 |
return false;
|
|
491 |
}
|
|
493 | 492 |
|
494 |
public List getRedoInfos() {
|
|
495 |
// TODO Auto-generated method stub
|
|
496 |
return null;
|
|
497 |
}
|
|
493 |
public List getRedoInfos() {
|
|
494 |
// TODO Auto-generated method stub
|
|
495 |
return null;
|
|
496 |
}
|
|
498 | 497 |
|
499 |
public List getUndoInfos() {
|
|
500 |
// TODO Auto-generated method stub
|
|
501 |
return null;
|
|
502 |
}
|
|
498 |
public List getUndoInfos() {
|
|
499 |
// TODO Auto-generated method stub
|
|
500 |
return null;
|
|
501 |
}
|
|
503 | 502 |
|
504 |
public void redo() throws RedoException {
|
|
505 |
// TODO Auto-generated method stub
|
|
503 |
public void redo() throws RedoException {
|
|
504 |
// TODO Auto-generated method stub
|
|
506 | 505 |
|
507 |
}
|
|
506 |
}
|
|
508 | 507 |
|
509 |
public void redo(int num) throws RedoException {
|
|
510 |
// TODO Auto-generated method stub
|
|
508 |
public void redo(int num) throws RedoException {
|
|
509 |
// TODO Auto-generated method stub
|
|
511 | 510 |
|
512 |
}
|
|
511 |
}
|
|
513 | 512 |
|
514 |
public void undo() throws UndoException {
|
|
515 |
// TODO Auto-generated method stub
|
|
513 |
public void undo() throws UndoException {
|
|
514 |
// TODO Auto-generated method stub
|
|
516 | 515 |
|
517 |
}
|
|
516 |
}
|
|
518 | 517 |
|
519 |
public void undo(int num) throws UndoException {
|
|
520 |
// TODO Auto-generated method stub
|
|
518 |
public void undo(int num) throws UndoException {
|
|
519 |
// TODO Auto-generated method stub
|
|
521 | 520 |
|
522 |
}
|
|
521 |
}
|
|
523 | 522 |
|
523 |
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 |
} |
|
524 | 534 |
|
525 |
public static void registerPersistent() { |
|
526 |
PersistenceManager manager = ToolsLocator.getPersistenceManager(); |
|
527 |
DynStruct definition = manager.addDefinition( |
|
528 |
DummyDBFeatureStore.class, |
|
529 |
"DummyDBFeatureStore", |
|
530 |
"DummyDBFeatureStore Persistence definition", |
|
531 |
null, |
|
532 |
null |
|
533 |
); |
|
534 |
definition.addDynFieldString("name"); |
|
535 |
} |
|
535 |
public void accept(Visitor visitor) throws BaseException { |
|
536 |
// TODO Auto-generated method stub |
|
536 | 537 |
|
537 |
public void accept(Visitor visitor) throws BaseException { |
|
538 |
// TODO Auto-generated method stub |
|
538 |
} |
|
539 | 539 |
|
540 |
} |
|
540 |
public void accept(Visitor visitor, DataQuery dataQuery) |
|
541 |
throws BaseException { |
|
542 |
// TODO Auto-generated method stub |
|
541 | 543 |
|
542 |
public void accept(Visitor visitor, DataQuery dataQuery) |
|
543 |
throws BaseException { |
|
544 |
// TODO Auto-generated method stub |
|
544 |
} |
|
545 | 545 |
|
546 |
} |
|
546 |
public void createCache(String name, DynObject parameters) |
|
547 |
throws DataException { |
|
548 |
// TODO Auto-generated method stub |
|
547 | 549 |
|
548 |
public void createCache(String name, DynObject parameters) |
|
549 |
throws DataException { |
|
550 |
// TODO Auto-generated method stub |
|
550 |
} |
|
551 | 551 |
|
552 |
} |
|
552 |
public FeatureCache getCache() { |
|
553 |
// TODO Auto-generated method stub |
|
554 |
return null; |
|
555 |
} |
|
553 | 556 |
|
554 |
public FeatureCache getCache() { |
|
555 |
// TODO Auto-generated method stub |
|
556 |
return null; |
|
557 |
} |
|
557 |
public void clear() { |
|
558 |
// Nothing to do |
|
559 |
} |
|
558 | 560 |
|
559 |
public void clear() { |
|
560 |
// Nothing to do |
|
561 |
} |
|
561 |
public String getProviderName() { |
|
562 |
// TODO Auto-generated method stub |
|
563 |
return null; |
|
564 |
} |
|
562 | 565 |
|
563 |
public String getProviderName() {
|
|
564 |
// TODO Auto-generated method stub
|
|
565 |
return null;
|
|
566 |
}
|
|
566 |
public String getFullName() {
|
|
567 |
// TODO Auto-generated method stub
|
|
568 |
return null;
|
|
569 |
}
|
|
567 | 570 |
|
568 |
public String getFullName() { |
|
569 |
// TODO Auto-generated method stub |
|
570 |
return null; |
|
571 |
} |
|
572 |
|
|
573 | 571 |
public boolean isKnownEnvelope() { |
574 | 572 |
// TODO Auto-generated method stub |
575 | 573 |
return false; |
... | ... | |
601 | 599 |
} |
602 | 600 |
|
603 | 601 |
public FeatureIndex createIndex(String indexTypeName, |
604 |
FeatureType featureType, String attributeName, String indexName) |
|
605 |
throws DataException { |
|
602 |
FeatureType featureType, String attributeName, String indexName)
|
|
603 |
throws DataException {
|
|
606 | 604 |
// TODO Auto-generated method stub |
607 | 605 |
return null; |
608 | 606 |
} |
609 | 607 |
|
610 | 608 |
public FeatureIndex createIndex(String indexTypeName, |
611 |
FeatureType featureType, String attributeName, String indexName, |
|
612 |
Observer observer) throws DataException { |
|
609 |
FeatureType featureType, String attributeName, String indexName,
|
|
610 |
Observer observer) throws DataException {
|
|
613 | 611 |
// TODO Auto-generated method stub |
614 | 612 |
return null; |
615 | 613 |
} |
... | ... | |
642 | 640 |
// TODO Auto-generated method stub |
643 | 641 |
return null; |
644 | 642 |
} |
645 |
} |
|
643 |
} |
Also available in: Unified diff