forked from geodmms/xdgnjobs

?? ?
2008-08-22 961a6df7bdd2877daff6b64e6d140684717feb4b
update for EOFM-152
4 files modified
21 ■■■■■ changed files
xdgnjobs/ximple-spatialjob/src/main/java/com/ximple/eofms/jobs/OracleConvertDgn2MySQLJob.java 5 ●●●●● patch | view | raw | blame | history
xdgnjobs/ximple-spatialjob/src/main/java/com/ximple/eofms/jobs/OracleConvertDgn2OraSDOJob.java 5 ●●●●● patch | view | raw | blame | history
xdgnjobs/ximple-spatialjob/src/main/java/com/ximple/eofms/jobs/OracleConvertDgn2ShpJob.java 6 ●●●●● patch | view | raw | blame | history
xdgnjobs/ximple-spatialjob/src/main/java/com/ximple/eofms/jobs/OracleUpgradeBlob2UDTJob.java 5 ●●●●● patch | view | raw | blame | history
xdgnjobs/ximple-spatialjob/src/main/java/com/ximple/eofms/jobs/OracleConvertDgn2MySQLJob.java
@@ -104,7 +104,7 @@
        return logger;
    }
    protected AbstractOracleJobContext prepareJobContext(String filterPath)
    protected AbstractOracleJobContext prepareJobContext(String targetSchemaName, String filterPath)
    {
        return new OracleConvertMySQLJobContext(getDataPath(), getTargetDataStore(), filterPath);
    }
@@ -182,6 +182,7 @@
        // The name is defined in the job definition
        String jobName = jobDetail.getName();
        String targetSchemaName = null;
        // Log the time the job started
        logger.info(jobName + " fired at " + new Date());
@@ -213,7 +214,7 @@
                for (String orgSchema : _orgSchema)
                {
                    OracleConvertMySQLJobContext jobContext =
                            (OracleConvertMySQLJobContext) prepareJobContext(_filterPath);
                            (OracleConvertMySQLJobContext) prepareJobContext(targetSchemaName, _filterPath);
                    jobContext.setSourceDataStore(getSourceDataStore());
                    // jobContext.setConvertElementIn(_convertElementIn);
                    jobContext.setElementLogging(checkElementLogging());
xdgnjobs/ximple-spatialjob/src/main/java/com/ximple/eofms/jobs/OracleConvertDgn2OraSDOJob.java
@@ -104,7 +104,7 @@
        return logger;
    }
    protected AbstractOracleJobContext prepareJobContext(String filterPath)
    protected AbstractOracleJobContext prepareJobContext(String targetSchemaName, String filterPath)
    {
        return new OracleConvertOraSDOJobContext(getDataPath(), getTargetDataStore(), filterPath);
    }
@@ -182,6 +182,7 @@
        // The name is defined in the job definition
        String jobName = jobDetail.getName();
        String targetSchemaName = null;
        // Log the time the job started
        logger.info(jobName + " fired at " + new Date());
@@ -213,7 +214,7 @@
                for (String orgSchema : _orgSchema)
                {
                    OracleConvertOraSDOJobContext jobContext =
                            (OracleConvertOraSDOJobContext) prepareJobContext(_filterPath);
                            (OracleConvertOraSDOJobContext) prepareJobContext(targetSchemaName, _filterPath);
                    jobContext.setSourceDataStore(getSourceDataStore());
                    // jobContext.setConvertElementIn(_convertElementIn);
                    jobContext.setElementLogging(checkElementLogging());
xdgnjobs/ximple-spatialjob/src/main/java/com/ximple/eofms/jobs/OracleConvertDgn2ShpJob.java
@@ -81,7 +81,7 @@
        return logger;
    }
    protected AbstractOracleJobContext prepareJobContext(String filterPath)
    protected AbstractOracleJobContext prepareJobContext(String targetSchemaName, String filterPath)
    {
        return new OracleConvertShapefilesJobContext(filterPath);
    }
@@ -98,6 +98,8 @@
        // The name is defined in the job definition
        String jobName = jobDetail.getName();
        String targetSchemaName = null;
        // Log the time the job started
        logger.info(jobName + " fired at " + new Date());
@@ -119,7 +121,7 @@
                for (String orgSchema : _orgSchema)
                {
                    OracleConvertShapefilesJobContext jobContext = (OracleConvertShapefilesJobContext) prepareJobContext(_filterPath);
                    OracleConvertShapefilesJobContext jobContext = (OracleConvertShapefilesJobContext) prepareJobContext(targetSchemaName, _filterPath);
                    jobContext.setSourceDataStore(getSourceDataStore());
                    jobContext.setDataPath(_dataPath);
                    jobContext.setConvertElementIn(_convertElementIn);
xdgnjobs/ximple-spatialjob/src/main/java/com/ximple/eofms/jobs/OracleUpgradeBlob2UDTJob.java
@@ -28,6 +28,7 @@
        // The name is defined in the job definition
        String jobName = jobDetail.getName();
        String targetSchemaName = null;
        // Log the time the job started
        logger.info(jobName + " fired at " + new Date());
@@ -38,7 +39,7 @@
            throw new JobExecutionException("Cannot connect source oracle database.");
        }
        AbstractOracleJobContext jobContext = prepareJobContext(_filterPath);
        AbstractOracleJobContext jobContext = prepareJobContext(targetSchemaName, _filterPath);
        jobContext.setSourceDataStore(getSourceDataStore());
        try
@@ -58,7 +59,7 @@
        return logger;
    }
    protected AbstractOracleJobContext prepareJobContext(String filterPath)
    protected AbstractOracleJobContext prepareJobContext(String targetSchemaName, String filterPath)
    {
        return new OracleUpgradeJobContext();
    }