| | |
| | | |
| | | try |
| | | { |
| | | exetcuteConvert(jobContext, _orgSchema, _dataPath); |
| | | //exetcuteConvert(jobContext, _orgSchema, _dataPath); |
| | | exetcuteConvert(jobContext, "CMMS_SPATIALDB", _dataPath); |
| | | |
| | | //close all open filewriter instance |
| | | jobContext.closeFeatureWrite(); |
| | | } catch (SQLException e) |
| | | { |
| | | logger.warn(e.getMessage(), e); |
| | | throw new JobExecutionException("Database error.", e); |
| | | } catch (IOException ex) { |
| | | ex.printStackTrace(); //To change body of catch statement use File | Settings | File Templates. |
| | | } |
| | | |
| | | } |
| | |
| | | jobContext.getExecutionContext().put("ConvertDgn2ShpJobProgress", 100); |
| | | |
| | | jobContext.commitTransaction(); |
| | | try { |
| | | jobContext.closeFeatureWrite(); |
| | | } catch (IOException e) { |
| | | e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates. |
| | | } |
| | | |
| | | logger.info("end convert job:[" + order + "]"); |
| | | System.gc(); |
| | | } |