|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectwt.query.template.LoadReportTemplate
public class LoadReportTemplate
Creates and persists ReportTemplate objects based on input from a comma separated 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 part objects.
The standalone version will use csvmapfile.txt and the .csv file will be loaded from command line as specified below:
The replace option "-replace" can be used to update existing reports if they exist. If the report exists, then all attributes are set (except for folder location) and the object is updated. If the report does not exist, then the normal create is done.
Standalone Usages:
java wt.query.template.LoadReportTemplate (default path)
java wt.query.template.LoadReportTemplate c:\loadReports.csv (absolute path)
java wt.query.template.LoadReportTemplate loadReports.csv (relative path)
java wt.query.template.LoadReportTemplate c:\loadReports.csv -replace (absolute path with replace)
XML File:
Within the .csv file specify the XML source with an absolute path or the default directory will be searched (wt.loadFiles.reports). Also if the folder to store the reports in does not exist, one will be created.
Supported API: true
Extendable: false
ExportReportTemplate| Method Summary |
|---|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||