forked from geodmms/xdgnjobs

?? ?
2008-05-28 92fe8e29a4df7ad12b2f13661f1c326b6b78644a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
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;
    private boolean _elementLogging;
 
    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;
    }
 
    public boolean getElementLogging()
    {
        return _elementLogging;
    }
 
    public void setElementLogging(boolean elementLogging)
    {
        this._elementLogging = elementLogging;
    }
}