|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.datatools.sqltools.plan.treeplan.PlanTreeBuilder
public class PlanTreeBuilder
The plan tree builder is useful for constructing a execution plan tree
Constructor Summary | |
---|---|
PlanTreeBuilder()
|
|
PlanTreeBuilder(java.lang.String name,
java.lang.String tip,
java.lang.String detail,
java.lang.Object data,
java.lang.String label1,
boolean isLabel1Highlighted,
java.lang.String label2,
boolean isLabel2Highlighted)
|
Method Summary | |
---|---|
boolean |
addChild()
Adds an empty child node to current node, and the newly added node will become the current node |
boolean |
addChild(java.lang.String name,
java.lang.String tip,
java.lang.String detail,
java.lang.Object data,
java.lang.String label1,
boolean isLabel1Highlighted,
java.lang.String label2,
boolean isLabel2Highlighted)
Adds an child node with the specified information to current node, and the newly added node will become the current node |
boolean |
addSibling()
Adds a sibling node for current node, and the newly added node will become the current node |
boolean |
addSibling(java.lang.String name,
java.lang.String tip,
java.lang.String detail,
java.lang.Object data,
java.lang.String label1,
boolean isLabel1Highlighted,
java.lang.String label2,
boolean isLabel2Highlighted)
Adds a sibling node with specified information for current node, and the newly added node will become the current node |
boolean |
addTo(TreePlanNodeComponent parent)
Adds a child node to the specified node, and the newly added node will become the current node |
boolean |
addTo(TreePlanNodeComponent parent,
java.lang.String name,
java.lang.String tip,
java.lang.String detail,
java.lang.Object data,
java.lang.String label1,
boolean isLabel1Highlighted,
java.lang.String label2,
boolean isLabel2Highlighted)
Adds a child node with specified information to the specified node, and the newly added node will become the current node |
void |
findNodes(java.lang.String name,
java.util.List nodes)
Finds all the nodes with the given name, this is useful if a node needs to be added to a specific parent node (Not the current node) |
TreePlanNodeComponent |
getCurrentNode()
|
TreePlanNodeComponent |
getRoot()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PlanTreeBuilder()
public PlanTreeBuilder(java.lang.String name, java.lang.String tip, java.lang.String detail, java.lang.Object data, java.lang.String label1, boolean isLabel1Highlighted, java.lang.String label2, boolean isLabel2Highlighted)
Method Detail |
---|
public TreePlanNodeComponent getCurrentNode()
public TreePlanNodeComponent getRoot()
public boolean addChild(java.lang.String name, java.lang.String tip, java.lang.String detail, java.lang.Object data, java.lang.String label1, boolean isLabel1Highlighted, java.lang.String label2, boolean isLabel2Highlighted)
name
- name of the nodetip
- tooltip of the nodedetail
- detail information of the nodedata
- the data objectlabel1
- label 1isLabel1Highlighted
- is label 1 highlightedlabel2
- label 2isLabel2Highlighted
- is label 2 highlighted
true
if a new child is successfully addedpublic boolean addChild()
true
if a new child is successfully addedpublic boolean addSibling(java.lang.String name, java.lang.String tip, java.lang.String detail, java.lang.Object data, java.lang.String label1, boolean isLabel1Highlighted, java.lang.String label2, boolean isLabel2Highlighted)
name
- name of the nodetip
- tooltip of the nodedetail
- detail information of the nodedata
- the data objectlabel1
- label 1isLabel1Highlighted
- is label 1 highlightedlabel2
- label 2isLabel2Highlighted
- is label 2 highlighted
true
if a new child is successfully addedpublic boolean addSibling()
true
if a new child is successfully addedpublic boolean addTo(TreePlanNodeComponent parent, java.lang.String name, java.lang.String tip, java.lang.String detail, java.lang.Object data, java.lang.String label1, boolean isLabel1Highlighted, java.lang.String label2, boolean isLabel2Highlighted)
name
- name of the nodetip
- tooltip of the nodedetail
- detail information of the nodedata
- the data objectlabel1
- label 1isLabel1Highlighted
- is label 1 highlightedlabel2
- label 2isLabel2Highlighted
- is label 2 highlighted
true
if a new child is successfully addedpublic boolean addTo(TreePlanNodeComponent parent)
true
if a new child is successfully addedpublic void findNodes(java.lang.String name, java.util.List nodes)
name
- name of the nodenodes
- the search result will be stored in the list
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |