package com.ximple.eofms.jobs;
|
|
import java.io.File;
|
|
public class GeneralDgnConvertJobContext extends AbstractDgnFileJobContext
|
{
|
private final static String SHPOUTPATH = "shpout";
|
private String dataOut = null;
|
|
public GeneralDgnConvertJobContext(String dataPath)
|
{
|
super(dataPath);
|
}
|
|
public void startTransaction()
|
{
|
}
|
|
public void commitTransaction()
|
{
|
}
|
|
public void rollbackTransaction()
|
{
|
}
|
|
public String getDataOutPath()
|
{
|
if (dataOut == null)
|
{
|
File outPath = new File(getDataPath(), SHPOUTPATH);
|
if (!outPath.exists())
|
{
|
outPath.mkdir();
|
} else if (!outPath.isDirectory())
|
{
|
outPath.mkdir();
|
}
|
dataOut = getDataPath() + SHPOUTPATH;
|
}
|
return dataOut;
|
}
|
}
|