|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
net.sf.dc.processes.ImportCDProcess
Imports data from a CD (or harddisk) location into the insert table of the owner module
Field Summary | |
protected java.lang.String |
cdName
|
protected boolean |
confirmEachDir
|
protected java.lang.String |
sourceDir
|
protected static WorkFlow |
wf
|
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
ImportCDProcess(java.lang.String sourceDir,
boolean confirmEachDir,
java.lang.String cdName)
Initializes (but does not run) the CD import process |
Method Summary | |
protected void |
finish()
Stops the thread |
protected abstract java.lang.Class |
getUITargetClass()
The UI class which will be updated with the results of the import |
protected abstract DCObject |
parseInformation(java.lang.String sFilename)
Parses the file for its information. |
void |
run()
Starts the CD Import process |
void |
writeOutput(java.util.Vector filenames)
Parses the source files for information and adds the parsed information to the insert table of the owner module. |
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected static final WorkFlow wf
protected java.lang.String sourceDir
protected boolean confirmEachDir
protected java.lang.String cdName
Constructor Detail |
public ImportCDProcess(java.lang.String sourceDir, boolean confirmEachDir, java.lang.String cdName)
sourceDir
- directory which is used as source for the
importconfirmEachDir
- indicates whether for each directory
confirmation should be asked if the underlying data
of this directory should be read or not.Method Detail |
public void run()
public void writeOutput(java.util.Vector filenames)
filenames
- files to be parsedprotected abstract DCObject parseInformation(java.lang.String sFilename)
sFilename
- file to be parsedprotected abstract java.lang.Class getUITargetClass()
protected void finish()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |