KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > daffodilwoods > daffodildb > server > sql99 > dql > tableexpression > whereclause


1 package com.daffodilwoods.daffodildb.server.sql99.dql.tableexpression.whereclause;
2
3 import java.util.*;
4 import com.daffodilwoods.daffodildb.server.sql99.common.*;
5 import com.daffodilwoods.daffodildb.server.sql99.dql.plan.condition.*;
6 import com.daffodilwoods.daffodildb.server.sql99.token.*;
7 import com.daffodilwoods.daffodildb.server.sql99.utils.*;
8 import com.daffodilwoods.database.resource.*;
9
10 /**
11  * This class represents optional where clause of select query in which search
12  * condition is specified. It provides functionality for filtering record.
13  * Records are filtered on basis of search criteria speciifed in where clause.
14  * e.g Select * from tablename where a=5
15  * this shown only those record which have value of a is 5.This way flitering
16  * of record are provided.
17  * <p>Title: </p>
18  * <p>Description: </p>
19  * <p>Copyright: Copyright (c) 2004</p>
20  * <p>Company: </p>
21  * @author not attributable
22  * @version 1.0
23  */

24 public class whereclause implements com.daffodilwoods.daffodildb.utils.parser.StatementExecuter, TypeConstants {
25   /**
26    * It represents search condition on which records are flitered.
27    */

28   public searchcondition _searchcondition0;
29
30    /**
31     * It represents Keyword Where.
32     */

33
34    public SRESERVEDWORD1206543922 _SRESERVEDWORD12065439221;
35
36    /**
37     * Note:- For documentation of following method refers to queryexpressionbody
38     * It delegates the call to serachcondition.
39     */

40
41    public void setDefaultValues(_VariableValueOperations variableValueOperation) throws DException {
42       _searchcondition0.setDefaultValues(variableValueOperation);
43    }
44
45    public _Reference[] getReferences(TableDetails[] tableDetails) throws DException {
46       return _searchcondition0.getReferences(tableDetails);
47    }
48
49    public whereclause() {
50    }
51
52    public com.daffodilwoods.daffodildb.server.sql99.utils._Reference[] checkSemantic(com.daffodilwoods.daffodildb.server.serversystem._ServerSession parent) throws DException {
53       return _searchcondition0.checkSemantic(parent);
54    }
55
56    public Object JavaDoc run(Object JavaDoc object) throws com.daffodilwoods.database.resource.DException {
57       return _searchcondition0.run(object);
58    }
59
60    public ColumnDetails[] getColumnDetails() throws DException {
61       return _searchcondition0.getColumnDetails();
62    }
63
64    public Object JavaDoc[] getParameters(Object JavaDoc object) throws DException {
65       return _searchcondition0.getParameters(object);
66    }
67
68    public void getColumnsIncluded(ArrayList aList) throws DException {
69       _searchcondition0.getColumnsIncluded(aList);
70    }
71
72    public void getTablesIncluded(ArrayList aList) throws DException {
73       _searchcondition0.getTablesIncluded(aList);
74    }
75
76    public ParameterInfo[] getParameterInfo() throws DException {
77       return _searchcondition0.getParameterInfo();
78    }
79
80    public _BVEPlan getExecutionPlan() throws DException {
81       return _searchcondition0.getExecutionPlan();
82    }
83
84    public boolean checkForSubquery() throws DException {
85       return _searchcondition0.checkForSubQuery();
86    }
87
88   public boolean hasContainClause() throws DException{
89     return _searchcondition0.hasContainClause();
90  }
91    public String JavaDoc toString() {
92       StringBuffer JavaDoc sb = new StringBuffer JavaDoc();
93       sb.append(" ");
94       sb.append(_SRESERVEDWORD12065439221);
95       sb.append(" ");
96       sb.append(_searchcondition0);
97       return sb.toString();
98    }
99
100    public Object JavaDoc clone() throws CloneNotSupportedException JavaDoc {
101       whereclause tempClass = new whereclause();
102       tempClass._searchcondition0 = (searchcondition) _searchcondition0.clone();
103       tempClass._SRESERVEDWORD12065439221 = (SRESERVEDWORD1206543922) _SRESERVEDWORD12065439221.clone();
104       return tempClass;
105    }
106
107 }
108
Popular Tags