KickJava   Java API By Example, From Geeks To Geeks.

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


1 package com.daffodilwoods.daffodildb.server.sql99.dql.plan.condition;
2
3 import com.daffodilwoods.daffodildb.server.sql99.common.*;
4 import com.daffodilwoods.daffodildb.server.sql99.expression.booleanvalueexpression.*;
5 import com.daffodilwoods.daffodildb.server.sql99.expression.booleanvalueexpression.predicates.*;
6 import com.daffodilwoods.database.resource.*;
7
8 /**
9  * This class represents plan of singletable level condition.
10  * It contains condition which presents at singleTable like Orders.OrderId = 11
11  * and Orders.EmployeesId = 1
12  * <p>Title: </p>
13  * <p>Description: </p>
14  * <p>Copyright: Copyright (c) 2003</p>
15  * <p>Company: </p>
16  * @author unascribed
17  * @version 1.0
18  */

19 public class BVESingleTablePlan implements _BVEPlan, ExecutionPlanConstants, _BVESingleTablePlan {
20   /**
21    * It represents single table level condition.
22    */

23   private booleanvalueexpression condition;
24   /**
25    * It represents table on which condition will be solved.
26    */

27   private TableDetails tableDetail;
28
29    public BVESingleTablePlan(booleanvalueexpression condition0, TableDetails tabledetail0) {
30       condition = condition0;
31       tableDetail = tabledetail0;
32    }
33    /**
34     * This method is required to get table involved in codition.
35     * @return TableDetails
36     * @throws DException
37     */

38    public TableDetails[] getTableDetails() throws DException {
39       return new TableDetails[] {tableDetail};
40    }
41    /**
42     * See documentation of following method in _BvePlan
43     * @return
44     * @throws DException
45     */

46    public booleanvalueexpression getCondition() throws DException {
47       return condition;
48    }
49
50    public void setCondition(booleanvalueexpression condition0) throws DException {
51       condition = condition0;
52    }
53
54    public int getType() throws DException {
55       return BVEConstants.BVESINGLETABLEPLAN;
56    }
57
58    public booleanvalueexpression getRemainingCondition() throws DException {
59       return null;
60    }
61
62    public String JavaDoc toString() {
63       return "BVESINGLETABLEPLAN[" + condition + "][" + tableDetail + "]";
64    }
65
66    public booleanvalueexpression getAggregateCondition() throws com.daffodilwoods.database.resource.DException {
67       return null;
68    }
69
70    public _AllTablesJoinRelation getAllTableJoinRelation() throws com.daffodilwoods.database.resource.DException {
71       return null;
72    }
73
74    public _BVESingleTablePlan[] getBVESingleTablePlans() throws com.daffodilwoods.database.resource.DException {
75       return new _BVESingleTablePlan[] {this};
76    }
77
78    public void setBVESingleTablePlans(_BVESingleTablePlan[] bveSingleTablePlans) throws DException {
79       throw new UnsupportedOperationException JavaDoc();
80    }
81
82    public void setRemainingCondition(booleanvalueexpression remainingCondition) throws DException {
83       throw new UnsupportedOperationException JavaDoc();
84    }
85 }
86
Popular Tags