Revision 44362

View differences:

trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.api/src/main/java/org/gvsig/fmap/dal/DatabaseWorkspaceManager.java
161 161
     */
162 162
    public void create(String id, String description);
163 163

  
164
    public void drop();
164 165
}
trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.impl/src/main/java/org/gvsig/fmap/dal/impl/DefaultDatabaseWorkspaceManager.java
415 415
        }
416 416
        return this.alternativeResourcesStorage.getValue();
417 417
    }
418

  
419
    @Override
420
    public void drop() {
421
        if( !this.existsTable(TABLE_RESOURCES) ) {
422
            this.dropTable(TABLE_RESOURCES);
423
        }
424
        if( !this.existsTable(TABLE_CONFIGURATION) ) {
425
            this.dropTable(TABLE_CONFIGURATION);
426
        }
427
        if( !this.existsTable(TABLE_REPOSITORY) ) {
428
            this.dropTable(TABLE_REPOSITORY);
429
        }
430
    }
418 431
    
432
   
433
    @Override
419 434
    public void create(String id, String description) {
420 435
        if( !this.existsTable(TABLE_RESOURCES) ) {
421 436
            this.createTable(TABLE_RESOURCES);

Also available in: Unified diff