|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.effectivity.LoadEffectivity
Creates and persists effectivity objects based on input from a comma seperated value
(csv) file. Method names and parameters are defined in csvmapfile.txt.
wt.load.StandardLoadService.load
reads records from a .csv file
and passes the fields in a hashtable to methods defined in this class.
These methods then create and persist effectivity objects.
StandardLoadService
Field Summary | |
private static String |
CURRENT_PART
|
private static ResourceBundle |
rb
Resource bundle object for localizing message text |
private static String |
RESOURCE
|
private static boolean |
VERBOSE
Verbose flag. |
Constructor Summary | |
LoadEffectivity()
|
Method Summary | |
static boolean |
createConfigurationItem(Hashtable fileFields,
Hashtable cmd_line,
Vector return_objects)
Processes "ConfigurationItem" lines from a csv load file. |
static boolean |
createWTDatedEffectivity(Hashtable fileFields,
Hashtable cmd_line,
Vector return_objects)
Processes "WTDatedEffectivity" lines from a csv load file. |
static boolean |
createWTLotEffectivity(Hashtable fileFields,
Hashtable cmd_line,
Vector return_objects)
Processes "WTLotEffectivity" lines from a csv load file. |
static boolean |
createWTSerialNumberedEffectivity(Hashtable fileFields,
Hashtable cmd_line,
Vector return_objects)
Processes "WTSerialNumberedEffectivity" lines from a csv load file. |
static String |
getStringValue(Hashtable fileFields,
Hashtable cmd_line,
String fieldName,
boolean nullValueOk)
Obtains string value from input file. |
protected static void |
printException(String methodName,
Exception e)
Helper method to print stack trace of exception to Method Server log. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static String CURRENT_PART
private static String RESOURCE
private static final boolean VERBOSE
private static final ResourceBundle rb
Constructor Detail |
public LoadEffectivity()
Method Detail |
public static boolean createConfigurationItem(Hashtable fileFields, Hashtable cmd_line, Vector return_objects)
cmd_line
- command line argument that can contain supplemental load datareturn_objects
- Vector
of the object(s) created by this method.
Used by wt.load.StandardLoadService
for accurate user feedback messages.public static boolean createWTDatedEffectivity(Hashtable fileFields, Hashtable cmd_line, Vector return_objects)
cmd_line
- command line argument that can contain supplemental load datareturn_objects
- Vector
of the object(s) created by this method.
Used by wt.load.StandardLoadService
for accurate user feedback messages.public static boolean createWTLotEffectivity(Hashtable fileFields, Hashtable cmd_line, Vector return_objects)
cmd_line
- command line argument that can contain supplemental load datareturn_objects
- Vector
of the object(s) created by this method.
Used by wt.load.StandardLoadService
for accurate user feedback messages.public static boolean createWTSerialNumberedEffectivity(Hashtable fileFields, Hashtable cmd_line, Vector return_objects)
cmd_line
- command line argument that can contain supplemental load datareturn_objects
- Vector
of the object(s) created by this method.
Used by wt.load.StandardLoadService
for accurate user feedback messages.public static String getStringValue(Hashtable fileFields, Hashtable cmd_line, String fieldName, boolean nullValueOk) throws EffectivityException
fileFields
- Hashtable containing the values read from the
input file.fieldName
- Name of the input fieldnullValueOk
- true if a null value for the parameter is acceptable,
false otherwise
EffectivityException
- if a null value is not
acceptable and was discoveredwt.load.StandardLoadService.load
protected static void printException(String methodName, Exception e)
methodName
- Name of the calling method.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |