| | |
| | | public abstract class AbstractOracleDatabaseJob implements Job |
| | | { |
| | | private static final String SHPDATA_DIR = "SHPDATA_DIR"; |
| | | private static final String CONFSHPFILTER = "SHPFILTER_CONF"; |
| | | private static final String SPATAILSCHEMA = "ORGSCHEMA"; |
| | | private static final String ORAHOST = "ORAHOST"; |
| | | private static final String ORAINST = "ORAINST"; |
| | |
| | | private static final String ORAUSER = "ORAUSER"; |
| | | private static final String ORAPASS = "ORAPASS"; |
| | | private static final String TESTMODE = "TESTMODE"; |
| | | private static final String TESTCOUNT = "TESTCOUNT"; |
| | | |
| | | protected String _dataPath; |
| | | protected String _filterPath; |
| | | protected String _oracleHost; |
| | | protected String _oracleInstance; |
| | | protected String _oraclePort; |
| | |
| | | protected String _password; |
| | | protected String _orgSchema; |
| | | protected boolean _testMode = false; |
| | | protected int _testCount = -1; |
| | | |
| | | public abstract void execute(JobExecutionContext context) throws JobExecutionException; |
| | | |
| | |
| | | // The directory to scan is stored in the job map |
| | | JobDataMap dataMap = jobDetail.getJobDataMap(); |
| | | _dataPath = dataMap.getString(SHPDATA_DIR); |
| | | _filterPath = dataMap.getString(CONFSHPFILTER); |
| | | _oracleHost = dataMap.getString(ORAHOST); |
| | | _oracleInstance = dataMap.getString(ORAINST); |
| | | _oraclePort = dataMap.getString(ORAPORT); |
| | |
| | | _password = dataMap.getString(ORAPASS); |
| | | _orgSchema = dataMap.getString(SPATAILSCHEMA); |
| | | _testMode = dataMap.getBooleanFromString(TESTMODE); |
| | | _testCount = dataMap.getIntFromString(TESTCOUNT); |
| | | |
| | | // Validate the required input |
| | | if (_dataPath == null) |