KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > daffodilwoods > daffodildb > server > sql99 > dql > plan > condition > QualifiedBVE


1 package com.daffodilwoods.daffodildb.server.sql99.dql.plan.condition;
2
3 import com.daffodilwoods.daffodildb.server.sql99.expression.booleanvalueexpression.*;
4 import com.daffodilwoods.database.resource.*;
5 /**
6  * This class represents plan of qualified condition(condition present in
7  * outer joins). It allows user to distinguish which condition will be solved at
8  * single table level and which will be solved at qualified join level.
9  * <p>Title: </p>
10  * <p>Description: </p>
11  * <p>Copyright: Copyright (c) 2004</p>
12  * <p>Company: </p>
13  * @author not attributable
14  * @version 1.0
15  */

16 public class QualifiedBVE implements _QualifiedBVE {
17   /**
18    * It represents condition which will be shifted to single table level.
19    */

20   private _BVESingleTablePlan[] bveSingleTablePlans;
21   /**
22    * It represents condition which will be solved at qualified join level.
23    */

24   private booleanvalueexpression onCondition;
25
26    public QualifiedBVE(_BVESingleTablePlan[] bveSingleTablePlans0, booleanvalueexpression onCondition0) {
27       this.bveSingleTablePlans = bveSingleTablePlans0;
28       this.onCondition = onCondition0;
29    }
30    /**
31     * see documentation of following method in _QualifiedBVE
32     * @return
33     * @throws DException
34     */

35    public _BVESingleTablePlan[] getBVESingleTablePlans() throws DException {
36       return this.bveSingleTablePlans;
37    }
38
39    public booleanvalueexpression getOnCondition() throws DException {
40       return this.onCondition;
41    }
42
43    public String JavaDoc toString() {
44       String JavaDoc str = "QUALIFIEDBVE";
45       if (this.bveSingleTablePlans != null) {
46          for (int i = 0; i < bveSingleTablePlans.length; i++) {
47             str += "[" + bveSingleTablePlans[i] + "]";
48          }
49       }
50       if (onCondition != null) {
51          str += "[" + onCondition + "]";
52       }
53       return str;
54    }
55
56 } //end of class
57
Popular Tags