| Modifier and Type | Field and Description |
|---|---|
| private final Connection | |
| private TreeNode[] | |
| private int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private final String | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private final String | |
| private final boolean | |
| private static final int | |
| private static final int | |
| private String |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| private static Connection | |
| private void | createXMLData(String
query to be executed qry, int x)Create XML data based on the query that's passed in. The query should have exactly one parameter, which will be initialized to the statement id before the query is executed. |
| public void | createXMLFragment()
This method creates the queries such that after execution of the query it will return XML data fragments. |
| private static String | Returns: the text with special characters escapedthe text to escape text)Escape characters that have a special meaning in XML. |
| private String | Returns: modified stringattribute string to be checked text)This method is needed since in the case of XML attributes we have to filter the quotation (") marks that is compulsory. |
| private void | |
| private void | getChildren(int
level of the XML tree (0 based) of current node currentLevel, String current node's stmt_id id)
|
| public TreeNode[] | |
| public int | |
| public String | |
| public String | |
| public String | |
| public boolean | |
| public void | |
| private int | |
| private boolean | schemaExists()
Check if there is a schema in the database that matches the schema name that was passed in to this instance. |
| private void | setSchema()
Set the schema of the current connection to the XPLAIN schema in which the statistics can be found. |
| public String | |
| public String | |
| public String | |
| public boolean |
| conn | back to summary |
|---|---|
| private final Connection conn | |
| data | back to summary |
|---|---|
| private TreeNode[] data | |
| depth | back to summary |
|---|---|
| private int depth | |
| ID | back to summary |
|---|---|
| private static final int ID | |
| INPUT_ROWS | back to summary |
|---|---|
| private static final int INPUT_ROWS | |
| NEXT_QUALIFIERS | back to summary |
|---|---|
| private static final int NEXT_QUALIFIERS | |
| NO_OF_OPENS | back to summary |
|---|---|
| private static final int NO_OF_OPENS | |
| NO_OF_OUTPUT_ROWS_BY_SORTER | back to summary |
|---|---|
| private static final int NO_OF_OUTPUT_ROWS_BY_SORTER | |
| NODE_TYPE | back to summary |
|---|---|
| private static final int NODE_TYPE | |
| P_ID | back to summary |
|---|---|
| private static final int P_ID | |
| query | back to summary |
|---|---|
| private final String query | |
| RETURNED_ROWS | back to summary |
|---|---|
| private static final int RETURNED_ROWS | |
| SCAN_QUALIFIERS | back to summary |
|---|---|
| private static final int SCAN_QUALIFIERS | |
| SCAN_TYPE | back to summary |
|---|---|
| private static final int SCAN_TYPE | |
| SCANNED_OBJECT | back to summary |
|---|---|
| private static final int SCANNED_OBJECT | |
| schema | back to summary |
|---|---|
| private final String schema | |
| schemaExists | back to summary |
|---|---|
| private final boolean schemaExists | |
| SORT_TYPE | back to summary |
|---|---|
| private static final int SORT_TYPE | |
| VISITED_PAGES | back to summary |
|---|---|
| private static final int VISITED_PAGES | |
| xmlDetails | back to summary |
|---|---|
| private String xmlDetails | |
| AccessDatabase | back to summary |
|---|---|
| public AccessDatabase(String dburl, String aSchema, String aQuery) throws InstantiationException, IllegalAccessException, ClassNotFoundException, SQLException, NoSuchMethodException, InvocationTargetException | |
| AccessDatabase | back to summary |
|---|---|
| public AccessDatabase(Connection aConn, String aSchema, String aQuery) throws SQLException | |
| closeConnection | back to summary |
|---|---|
| public void closeConnection() closing the connection to the database | |
| createConnection | back to summary |
|---|---|
| private static Connection createConnection(String dbURL) throws InstantiationException, IllegalAccessException, ClassNotFoundException, SQLException, NoSuchMethodException, InvocationTargetException | |
| createXMLData | back to summary |
|---|---|
| private void createXMLData(String qry, int x) throws SQLException Create XML data based on the query that's passed in. The query should have exactly one parameter, which will be initialized to the statement id before the query is executed.
| |
| createXMLFragment | back to summary |
|---|---|
| public void createXMLFragment() throws SQLException This method creates the queries such that after execution of the query it will return XML data fragments. | |
| escapeForXML | back to summary |
|---|---|
| private static String escapeForXML(String text) Escape characters that have a special meaning in XML. | |
| escapeInAttribute | back to summary |
|---|---|
| private String escapeInAttribute(String text) This method is needed since in the case of XML attributes we have to filter the quotation (") marks that is compulsory. eg: scanned_object="A "quoted" table name"; | |
| findChildren | back to summary |
|---|---|
private void findChildren(int idx, int dep)
| |
| getChildren | back to summary |
|---|---|
private void getChildren(int currentLevel, String id)
| |
| getData | back to summary |
|---|---|
public TreeNode[] getData()
| |
| getDepth | back to summary |
|---|---|
| public int getDepth() | |
| getQuery | back to summary |
|---|---|
public String getQuery()
| |
| getXmlString | back to summary |
|---|---|
| public String getXmlString() Generating the XML tree
| |
| indent | back to summary |
|---|---|
public String indent(int j)
| |
| initializeDataArray | back to summary |
|---|---|
public boolean initializeDataArray() throws SQLException
| |
| markTheDepth | back to summary |
|---|---|
| public void markTheDepth() marking the depth of each element | |
| noOfNodes | back to summary |
|---|---|
private int noOfNodes() throws SQLException
| |
| schemaExists | back to summary |
|---|---|
| private boolean schemaExists() throws SQLException Check if there is a schema in the database that matches the schema name that was passed in to this instance. | |
| setSchema | back to summary |
|---|---|
| private void setSchema() throws SQLException Set the schema of the current connection to the XPLAIN schema in which the statistics can be found.
| |
| statement | back to summary |
|---|---|
public String statement() throws SQLException
| |
| stmtID | back to summary |
|---|---|
public String stmtID()
| |
| time | back to summary |
|---|---|
public String time() throws SQLException
| |
| verifySchemaExistance | back to summary |
|---|---|
| public boolean verifySchemaExistance() | |