rjw.dc.processes
Class ImporList

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--rjw.dc.processes.ImporList
All Implemented Interfaces:
java.lang.Runnable

public class ImporList
extends java.lang.Thread

Imports data from a external source. Needs to be a textfile! location: can be defined like this [NAME] at the end of a row, OR can be normally defined (like all other fields). If for a row a location can not be determined the last used location is used!! seperator: The fields end always with a seperator, including the last one.. like this: name > type > description > The seperators are retrieved from the ImportInformationFile

Since:
1.3
Version:
DC0.50
Author:
Robert-Jan van der Waals

Field Summary
static boolean running
          Indicates whether or not the process is running
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ImporList(java.lang.String fileName)
          Initializes the process, sets the import filename.
 
Method Summary
 void run()
          Starts the actual import of the external source.
 
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

running

public static boolean running
Indicates whether or not the process is running

Constructor Detail

ImporList

public ImporList(java.lang.String fileName)
Initializes the process, sets the import filename. A requestor is used to write the information to the log

Method Detail

run

public void run()
Starts the actual import of the external source. Data which could be imported is written to a seperated file with a comment containing the error message. After modifying the data, this error file can be used as source for a new import process The data is read by using the IIF

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread