Revision 11006 branches/v10/libraries/libFMap/src/com/iver/cit/gvsig/fmap/operations/strategies/ShpStrategy.java
ShpStrategy.java | ||
---|---|---|
160 | 160 |
|
161 | 161 |
long t1 = System.currentTimeMillis(); |
162 | 162 |
// logger.debug("getCapa().getRecordset().start()"); |
163 |
((FLyrVect) getCapa()).getRecordset().start(); |
|
163 |
|
|
164 |
//CHEMA |
|
165 |
// En teorioa el al hacer el adapter.start() |
|
166 |
// deja abierta las fuentes de datos |
|
167 |
// geometrica y alfanumerica (cuando no son la misma |
|
168 |
// excepto cuando se ha hecho una operacion de 'join' de la tabla |
|
169 |
// (join de las tablas de gvsig(gdbms) no join de sql), entoces |
|
170 |
// el origen alfanumerico no es el mismo en el source |
|
171 |
// que en la capa. |
|
172 |
// |
|
173 |
//((FLyrVect) getCapa()).getRecordset().start(); |
|
174 |
if (lyr.isJoined()){ |
|
175 |
lyr.getRecordset().start(); |
|
176 |
} |
|
177 |
//CHEMA |
|
164 | 178 |
|
165 | 179 |
// TODO: A revisar si es o no conveniente este sistema |
166 | 180 |
// de comunicaci?n con los drivers. |
... | ... | |
326 | 340 |
} |
327 | 341 |
|
328 | 342 |
// logger.debug("getCapa().getRecordset().stop()"); |
329 |
((FLyrVect) getCapa()).getSource().getRecordset().stop(); |
|
343 |
//CHEMA |
|
344 |
// Cerramos la fuente alfanumerica cuando se ha hecho |
|
345 |
// una operacion de 'join' |
|
346 |
//((FLyrVect) getCapa()).getSource().getRecordset().stop(); |
|
347 |
if (lyr.isJoined()){ |
|
348 |
lyr.getRecordset().stop(); |
|
349 |
} |
|
350 |
//CHEMA |
|
330 | 351 |
|
331 | 352 |
long t2 = System.currentTimeMillis(); |
332 | 353 |
// logger.debug("adapter.stop()"); |
... | ... | |
399 | 420 |
|
400 | 421 |
long t1 = System.currentTimeMillis(); |
401 | 422 |
// logger.debug("getCapa().getRecordset().start()"); |
402 |
((AlphanumericData) getCapa()).getRecordset().start(); |
|
403 |
|
|
423 |
|
|
424 |
//CHEMA |
|
425 |
// En teorioa el al hacer el adapter.start() |
|
426 |
// deja abierta las fuentes de datos |
|
427 |
// geometrica y alfanumerica (cuando no son la misma |
|
428 |
// excepto cuando se ha hecho una operacion de 'join' de la tabla |
|
429 |
// (join de las tablas de gvsig(gdbms) no join de sql), entoces |
|
430 |
// el origen alfanumerico no es el mismo en el source |
|
431 |
// que en la capa. |
|
432 |
// |
|
433 |
//((FLyrVect) getCapa()).getRecordset().start(); |
|
434 |
if (lyr.isJoined()){ |
|
435 |
lyr.getRecordset().start(); |
|
436 |
} |
|
437 |
//CHEMA |
|
438 |
|
|
439 |
|
|
404 | 440 |
// TODO: A revisar si es o no conveniente este sistema |
405 | 441 |
// de comunicaci?n con los drivers. |
406 | 442 |
DriverAttributes attr = adapter.getDriverAttributes(); |
... | ... | |
476 | 512 |
} |
477 | 513 |
|
478 | 514 |
// logger.debug("getCapa().getRecordset().stop()"); |
479 |
((AlphanumericData) getCapa()).getRecordset().stop(); |
|
515 |
//CHEMA |
|
516 |
// Cerramos la fuente alfanumerica cuando se ha hecho |
|
517 |
// una operacion de 'join' |
|
518 |
//((FLyrVect) getCapa()).getSource().getRecordset().stop(); |
|
519 |
if (lyr.isJoined()){ |
|
520 |
lyr.getRecordset().stop(); |
|
521 |
} |
|
522 |
//CHEMA |
|
480 | 523 |
|
481 | 524 |
long t2 = System.currentTimeMillis(); |
482 | 525 |
// logger.debug("adapter.stop()"); |
Also available in: Unified diff