com.nitidus.wt.fastload
Class cThreadWorker

java.lang.Object
  extended bycom.nitidus.wt.fastload.cThreadWorker

public class cThreadWorker
extends Object

Class that takes entry from the CP and calls load to Windchill methods


Field Summary
private  cLoadThreadResult fResult
           
private  cCPThreadEntry fTask
           
(package private) static boolean SERVER
           
private static String SERVICE_NAME
           
 
Constructor Summary
cThreadWorker(cCPThreadEntry task)
          Constructor
 
Method Summary
private  Hashtable createNVHashtable(String[] tokens, String[] data)
          Helper function that creates a hash table by using array of tokens and array of data
 cLoadThreadResult getResult()
          get the result of lading
private  void initiateCache()
          Initiate cashe for Windchill
 void run()
          Do the loading, invoke the methods inside the windhill Takes an entry from the java space and invokes functions specified by that entry
private  Vector tokenizeVector(Vector methodsAndArgs)
          Helper function that will take a vector of stirngs and create a Vector of Vectors(tokens)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SERVER

static final boolean SERVER

SERVICE_NAME

private static final String SERVICE_NAME
See Also:
Constant Field Values

fTask

private cCPThreadEntry fTask

fResult

private cLoadThreadResult fResult
Constructor Detail

cThreadWorker

public cThreadWorker(cCPThreadEntry task)
Constructor

Method Detail

createNVHashtable

private Hashtable createNVHashtable(String[] tokens,
                                    String[] data)
Helper function that creates a hash table by using array of tokens and array of data

Parameters:
tokens - - key words for the hash table
data -
Returns:
hashtable that is used by various load functions

getResult

public cLoadThreadResult getResult()
get the result of lading

Returns:
cLoadThreadResult

initiateCache

private void initiateCache()
                    throws WTException
Initiate cashe for Windchill

Throws:
WTException

run

public void run()
Do the loading, invoke the methods inside the windhill Takes an entry from the java space and invokes functions specified by that entry


tokenizeVector

private Vector tokenizeVector(Vector methodsAndArgs)
Helper function that will take a vector of stirngs and create a Vector of Vectors(tokens)

Parameters:
methodsAndArgs - vector of strings (shortened line from CSV file.. strarts with method name)
Returns:
Vector of tokens