wt.vc.views
Class LoadView

java.lang.Object
  extended bywt.vc.views.LoadView

public class LoadView
extends Object

Creates and persists views and view associations 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 view and view association objects.

See Also:
StandardLoadService

Constructor Summary
LoadView()
           
 
Method Summary
static boolean associateViews(Hashtable nv, Hashtable cmd_line, Vector return_objects)
          Processes "ViewAssociation" lines from a csv load file.
static boolean createView(Hashtable nv, Hashtable cmd_line, Vector return_objects)
          Processes "View" lines from a csv load file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoadView

public LoadView()
Method Detail

createView

public static boolean createView(Hashtable nv,
                                 Hashtable cmd_line,
                                 Vector return_objects)
Processes "View" lines from a csv load file. Creates a new view using the attributes contained in the Hashtable parameter.

Parameters:
nv - Name/Value pairs of view attributes. The attributes are as follows:
  • viewName
cmd_line - command line argument that can contain supplemental load data
return_objects - Vector of the object(s) created by this method. Used by wt.load.StandardLoadService for accurate user feedback messages.

associateViews

public static boolean associateViews(Hashtable nv,
                                     Hashtable cmd_line,
                                     Vector return_objects)
Processes "ViewAssociation" lines from a csv load file. Creates a view association between the parent and child view using the attributes contained in the Hashtable parameter.

Parameters:
nv - Name/Value pairs of view attributes. The attributes are as follows:
  • parentView
  • childView
cmd_line - command line argument that can contain supplemental load data
return_objects - Vector of the object(s) created by this method. Used by wt.load.StandardLoadService for accurate user feedback messages.