forked from geodmms/xdgnjobs

?? ?
2008-03-17 7315f507c6dae697f11c4c36d17b159959163148
ximple-spatialjob/src/main/java/com/ximple/eofms/jobs/OracleConvertDgn2ShpJob.java
@@ -74,6 +74,11 @@
        }
    }
    public Log getLogger()
    {
        return logger;
    }
    public void execute(JobExecutionContext context) throws JobExecutionException
    {
        // Every job has its own job detail
@@ -95,6 +100,7 @@
            exetcuteConvert(jobContext, _orgSchema, _dataPath);
        } catch (SQLException e)
        {
            logger.warn(e.getMessage(), e);
            throw new JobExecutionException("Database error.", e);
        }
@@ -115,9 +121,12 @@
            String tableSrc = (String) pair.first;
            logger.info("begin convert:[" + order + "]-" + tableSrc);
            queryIgsetElement(jobContext, querySchema, tableSrc);
            order++;
            if (_testMode) break;
            if ((order % COMMITSIZE) == 0)
            {
@@ -127,6 +136,7 @@
            }
        }
        logger.info("end convert job:[" + order + "]");
        System.gc();
    }