Class PlanExporter
java.lang.Object
org.apache.derby.tools.PlanExporter
This class is the main entry point to the tool Graphical Query Explainer.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static Stringprivate static final intprivate static final LocalizedResourceprivate static final intprivate static final intprivate static String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static voiddeleteFile(String fileName) private static voidgenerateHTML(String arg, String path, String style, boolean def) private static voidgenerateXML(AccessDatabase access, String arg, String stmt, String time, String xsl) static voidprivate static voidprivate static intReading the user's option
-
Field Details
-
dbURL
-
xslStyleSheetName
-
XML
private static final int XML- See Also:
-
HTML
private static final int HTML- See Also:
-
XSL
private static final int XSL- See Also:
-
LOC_RES
-
-
Constructor Details
-
PlanExporter
public PlanExporter()
-
-
Method Details
-
main
- Parameters:
args- 1) database URL eg: jdbc:derby:myDB --------- 2) database schema ----------------------------- 3) statement ID (36 characters) ---------------- and user specified arguments.
-
selectArg
Reading the user's option- Parameters:
arg- user's option- Returns:
- the argument type
-
generateXML
private static void generateXML(AccessDatabase access, String arg, String stmt, String time, String xsl) throws IOException - Parameters:
access- instance of AccessDatabase classarg- path of XMLstmt- statement executedtime- time which the statement was executedxsl- name of the style sheet- Throws:
IOException- if an error occurs when writing the XML file
-
generateHTML
-
printHelp
private static void printHelp() -
deleteFile
-