1 package com.daffodilwoods.daffodildb.client; 2 public class ExecutionPlan implements _ExecutionPlan { 3 4 private String nameOfIterator; 5 private _ExecutionPlan[] childPlans; 6 private String condition; 7 private String order; 8 private String indexName; 9 10 public ExecutionPlan(String nameOfIterator0,_ExecutionPlan[] childPlans0,String condition0,String order0,String 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 getCondtion() { 23 return condition == null ? null : ("Condition : "+condition); 24 } 25 26 public String getOrder() { 27 return order == null ? null : ("Order : "+order); 28 } 29 30 public String getIndexName() { 31 return indexName == null ? null : ("IndexName : "+indexName); 32 } 33 34 public void setCondtion(String condition0) { 35 condition = condition0; 36 } 37 38 public void setOrder(String order0) { 39 order = order0; 40 } 41 42 public void setIndexName(String indexName0) { 43 indexName = indexName0; 44 } 45 46 public void setChildPlan(_ExecutionPlan[] childPlans0) { 47 childPlans = childPlans0; 48 } 49 50 public void setName(String nameOfIterator0){ 51 nameOfIterator = nameOfIterator0; 52 } 53 54 public String toString(){ 55 return nameOfIterator; 56 } 57 58 public Object 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 |