org.apache.derby.tools
Class PlanExporter

java.lang.Object
  extended by org.apache.derby.tools.PlanExporter

public class PlanExporter
extends java.lang.Object

This class is the main entry point to the tool Graphical Query Explainer.


Field Summary
private static java.lang.String dbURL
           
private static int HTML
           
private static int XML
           
private static int XSL
           
private static java.lang.String xslStyleSheetName
           
 
Constructor Summary
PlanExporter()
           
 
Method Summary
private static void deleteFile(java.lang.String fileName)
           
private static void generateHTML(java.lang.String arg, java.lang.String path, java.lang.String style, boolean def)
           
private static void generateXML(AccessDatabase access, java.lang.String arg, java.lang.String stmt, java.lang.String time, java.lang.String xsl)
           
static void main(java.lang.String[] args)
           
private static void printHelp()
           
private static int selectArg(java.lang.String arg)
          Reading the user's option
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dbURL

private static java.lang.String dbURL

xslStyleSheetName

private static java.lang.String xslStyleSheetName

XML

private static final int XML
See Also:
Constant Field Values

HTML

private static final int HTML
See Also:
Constant Field Values

XSL

private static final int XSL
See Also:
Constant Field Values
Constructor Detail

PlanExporter

public PlanExporter()
Method Detail

main

public static void main(java.lang.String[] args)
Parameters:
args - 1) database URL eg: jdbc:derby:myDB --------- 2) database schema ----------------------------- 3) statement ID (36 characters) ---------------- and user specified arguments.

selectArg

private static int selectArg(java.lang.String arg)
Reading the user's option

Parameters:
arg - user's option
Returns:
the argument type

generateXML

private static void generateXML(AccessDatabase access,
                                java.lang.String arg,
                                java.lang.String stmt,
                                java.lang.String time,
                                java.lang.String xsl)
                         throws java.lang.Exception
Parameters:
access - instance of AccessDatabase class
arg - path of XML
stmt - statement executed
time - time which the statement was executed
xsl - name of the style sheet
Throws:
java.lang.Exception

generateHTML

private static void generateHTML(java.lang.String arg,
                                 java.lang.String path,
                                 java.lang.String style,
                                 boolean def)
                          throws java.lang.Exception
Parameters:
arg - path to xml
path - path of HTML
style - path to xsl
def - whether the default xsl or not
Throws:
java.lang.Exception

printHelp

private static void printHelp()

deleteFile

private static void deleteFile(java.lang.String fileName)

Built on Wed 2013-06-12 15:21:56+0000, from revision ???

Apache Derby V10.10 Internals - Copyright © 2004,2013 The Apache Software Foundation. All Rights Reserved.