package com.ximple.eofms.jobs;
|
|
import java.util.Properties;
|
|
import org.quartz.JobExecutionContext;
|
|
import com.ximple.io.dgn7.Dgn7fileReader;
|
|
public abstract class AbstractDgnFileJobContext
|
{
|
/**
|
* Encoding of URL path.
|
*/
|
protected static final String ENCODING = "UTF-8";
|
|
private JobExecutionContext executionContext = null;
|
|
protected String _dataPath = null;
|
protected Properties properties = null;
|
|
private Dgn7fileReader reader = null;
|
private String filename = null;
|
|
public AbstractDgnFileJobContext(String dataPath)
|
{
|
_dataPath = dataPath;
|
}
|
|
public String getDataPath()
|
{
|
return _dataPath;
|
}
|
|
public JobExecutionContext getExecutionContext()
|
{
|
return executionContext;
|
}
|
|
public void setExecutionContext(JobExecutionContext context)
|
{
|
executionContext = context;
|
}
|
|
public abstract void startTransaction();
|
|
public abstract void commitTransaction();
|
|
public abstract void rollbackTransaction();
|
|
public abstract String getDataOutPath();
|
|
public Dgn7fileReader getReader()
|
{
|
return this.reader;
|
}
|
|
public void setReader(Dgn7fileReader reader)
|
{
|
this.reader = reader;
|
}
|
|
public String getFilename()
|
{
|
return filename;
|
}
|
|
public void setFilename(String filename)
|
{
|
this.filename = filename;
|
}
|
}
|