KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > daffodilwoods > daffodildb > server > sql99 > dql > iterator > condition > NoRecordIterator


1 package com.daffodilwoods.daffodildb.server.sql99.dql.iterator.condition;
2 import com.daffodilwoods.daffodildb.client.*;
3 import com.daffodilwoods.daffodildb.server.datasystem.interfaces.*;
4 import com.daffodilwoods.daffodildb.server.sql99.common.*;
5 import com.daffodilwoods.daffodildb.server.sql99.dql.iterator.*;
6 import com.daffodilwoods.daffodildb.server.sql99.utils.*;
7 import com.daffodilwoods.daffodildb.utils.comparator.*;
8 import com.daffodilwoods.database.resource.*;
9
10 /**
11  * <p>Title: NoRecordIterator </p>
12  * <p>Description:
13  * This Class handles retrival of the records from the table with a condition whose
14  * evaluation returns always false independent of data present in the table. For
15  * e.g Condition (col = 5 and col != 5) returns always false irrespective of
16  * data in the table. </p>
17  * <p>Copyright: Copyright (c) 2004</p>
18  * <p>Company: </p>
19  * @author not attributable
20  * @version 1.0
21  */

22 public class NoRecordIterator extends BaseExceptionSingleIterator implements _Iterator, _IndexIteratorInfo {
23
24    public NoRecordIterator() {
25    }
26
27    public Object JavaDoc[][] getFunctionalColumnMapping() throws DException {
28       return null;
29    }
30
31    public void setKeyCount(Object JavaDoc[][] tableAndKeyCount) throws DException {
32    }
33
34    public void setConditionVariableValue(_Reference[] references, Object JavaDoc[] values, int priority) throws DException {
35    }
36
37    public _KeyColumnInformation[] getKeyColumnInformations() throws DException {
38       return new _KeyColumnInformation[0];
39    }
40
41    public _ExecutionPlan getExecutionPlan() throws DException {
42       ExecutionPlan plan = new ExecutionPlan("NoRecordIterator[" + "]", null, null, null, null);
43       return plan;
44    }
45
46    public ExecutionPlanForBrowser getExecutionPlanForBrowser() throws DException {
47       ExecutionPlanForBrowser plan = new ExecutionPlanForBrowser("NoRecordIterator[" + "]", "", null, null, null, null);
48       return plan;
49    }
50
51    public Object JavaDoc[] getUniqueColumnReference() throws DException {
52       return new Object JavaDoc[] {new int[0], new String JavaDoc[0]};
53    }
54
55    /**
56     * This method returns false, since the condition return false.
57     * @return false
58     * @throws DException
59     */

60    public boolean first() throws DException {
61       return false;
62    }
63
64    /**
65     * This method returns false, since the condition return false.
66     * @return false
67     * @throws DException
68     */

69    public boolean last() throws DException {
70       return false;
71    }
72
73    /**
74     * This method returns false, since the condition return false.
75     * @return false
76     * @throws DException
77     */

78    public boolean next() throws DException {
79       return false;
80    }
81
82    /**
83     * This method returns false, since the condition return false.
84     * @return false
85     * @throws DException
86     */

87    public boolean previous() throws DException {
88       return false;
89    }
90
91    public int getBtreeIndex() throws DException {
92       /**@todo Implement this com.daffodilwoods.daffodildb.server.datasystem.interfaces._IndexIteratorInfo method*/
93       throw new java.lang.UnsupportedOperationException JavaDoc("Method getBtreeIndex() not yet implemented.");
94    }
95
96    public boolean locateKey(Object JavaDoc key, boolean top) throws DException {
97       /**@todo Implement this com.daffodilwoods.daffodildb.server.datasystem.interfaces._IndexIteratorInfo method*/
98       throw new java.lang.UnsupportedOperationException JavaDoc("Method locateKey() not yet implemented.");
99    }
100
101    public void ensureRecordInMemory() throws DException {
102       /**@todo Implement this com.daffodilwoods.daffodildb.server.datasystem.interfaces._IndexIteratorInfo method*/
103       throw new java.lang.UnsupportedOperationException JavaDoc("Method ensureRecordInMemory() not yet implemented.");
104    }
105
106    public void moveOnActualKey(Object JavaDoc key) throws DException {
107       /**@todo Implement this com.daffodilwoods.daffodildb.server.datasystem.interfaces._IndexIteratorInfo method*/
108       throw new java.lang.UnsupportedOperationException JavaDoc("Method moveOnActualKey() not yet implemented.");
109    }
110
111    public Object JavaDoc getActualKey() throws DException {
112       /**@todo Implement this com.daffodilwoods.daffodildb.server.datasystem.interfaces._IndexIteratorInfo method*/
113       throw new java.lang.UnsupportedOperationException JavaDoc("Method getActualKey() not yet implemented.");
114    }
115
116    public boolean seekKeyAddress(Object JavaDoc indexKey) throws DException {
117       /**@todo Implement this com.daffodilwoods.daffodildb.server.datasystem.interfaces._IndexIteratorInfo method*/
118       throw new java.lang.UnsupportedOperationException JavaDoc("Method seekKeyAddress() not yet implemented.");
119    }
120
121    public Object JavaDoc getPhysicalAddress() throws DException {
122       /**@todo Implement this com.daffodilwoods.daffodildb.server.datasystem.interfaces._IndexIteratorInfo method*/
123       throw new java.lang.UnsupportedOperationException JavaDoc("Method getPhysicalAddress() not yet implemented.");
124    }
125
126    public void setSpecificUnderlyingReferences(_Reference[] specificUnderlyingReferences) throws DException{
127        }
128
129    public SuperComparator getComparator() {
130       return null;
131    }
132
133    public SuperComparator getObjectComparator() throws DException {
134       return null;
135    }
136
137    public void releaseResource() throws DException {
138    }
139
140 }
141
Popular Tags