Package org.apache.derby.tools
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 String
private static final int
private static final LocalizedResource
private static final int
private static final int
private static String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static void
deleteFile
(String fileName) private static void
generateHTML
(String arg, String path, String style, boolean def) private static void
generateXML
(AccessDatabase access, String arg, String stmt, String time, String xsl) static void
private static void
private static int
Reading 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
private static void generateHTML(String arg, String path, String style, boolean def) throws Exception - Parameters:
arg
- path to xmlpath
- path of HTMLstyle
- path to xsldef
- whether the default xsl or not- Throws:
Exception
-
printHelp
private static void printHelp() -
deleteFile
-