KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > daffodilwoods > daffodildb > client > ExecutionPlan


1 package com.daffodilwoods.daffodildb.client;
2 public class ExecutionPlan implements _ExecutionPlan {
3
4    private String JavaDoc nameOfIterator;
5    private _ExecutionPlan[] childPlans;
6    private String JavaDoc condition;
7    private String JavaDoc order;
8    private String JavaDoc indexName;
9
10    public ExecutionPlan(String JavaDoc nameOfIterator0,_ExecutionPlan[] childPlans0,String JavaDoc condition0,String JavaDoc order0,String JavaDoc indexName0) {
11       nameOfIterator = nameOfIterator0;
12       childPlans = childPlans0;
13       condition = condition0;
14       order = order0;
15       indexName = indexName0;
16    }
17
18    public _ExecutionPlan[] getChildPlan() {
19       return childPlans;
20    }
21
22    public String JavaDoc getCondtion() {
23       return condition == null ? null : ("Condition : "+condition);
24    }
25
26    public String JavaDoc getOrder() {
27       return order == null ? null : ("Order : "+order);
28    }
29
30    public String JavaDoc getIndexName() {
31       return indexName == null ? null : ("IndexName : "+indexName);
32    }
33
34    public void setCondtion(String JavaDoc condition0) {
35       condition = condition0;
36    }
37
38    public void setOrder(String JavaDoc order0) {
39       order = order0;
40    }
41
42    public void setIndexName(String JavaDoc indexName0) {
43       indexName = indexName0;
44    }
45
46    public void setChildPlan(_ExecutionPlan[] childPlans0) {
47       childPlans = childPlans0;
48    }
49
50    public void setName(String JavaDoc nameOfIterator0){
51       nameOfIterator = nameOfIterator0;
52    }
53
54    public String JavaDoc toString(){
55       return nameOfIterator;
56    }
57
58    public Object JavaDoc clone(){
59       int length = childPlans == null ? 0 : childPlans.length;
60       _ExecutionPlan[] chp = length == 0 ? null : new _ExecutionPlan[length];
61       for (int i = 0; i < length; i++)
62          chp[i] = (_ExecutionPlan)((ExecutionPlan)childPlans[i]).clone();
63       return new ExecutionPlan(nameOfIterator,chp,condition,order,indexName);
64    }
65 }
66
Popular Tags