KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > daffodilwoods > daffodildb > server > datasystem > interfaces > _SqlIndexIterator


1 package com.daffodilwoods.daffodildb.server.datasystem.interfaces;
2
3 import com.daffodilwoods.database.resource.DException;
4 import com.daffodilwoods.daffodildb.server.sql99.utils._IndexPredicate;
5 import com.daffodilwoods.daffodildb.server.sql99.common._KeyColumnInformation;
6 import com.daffodilwoods.daffodildb.server.sql99.utils._Reference;
7 import com.daffodilwoods.daffodildb.utils.field.FieldBase;
8
9 public interface _SqlIndexIterator {
10     /**
11      * Used to search the particular record from the table while traversing from top to bottom
12      * @param condition Condition on which the search is made.
13      * @return true if that record is found in the table
14      * @throws DException
15      */

16     boolean seekFromTop(_IndexPredicate[] condition) throws DException;
17
18     /**
19      * Used to search the particular record from the table while traversing from top to bottom
20      * @param condition Condition on which the search is made.
21      * @return true if the record or a record close to that record is found.
22      * @throws DException
23      */

24     boolean seekFromTopRelative( Object JavaDoc indexKey ) throws DException;
25
26     /**
27      * Used to search a record in the table while traversing from bottom to top.
28      * @param condition Condition on which the search is made.
29      * @return true if the record is found in the table
30      * @throws DException
31      */

32     boolean seekFromBottom(_IndexPredicate[] condition ) throws DException;
33
34     /**
35      * Used to search a record from the table while traversing from bottom to top
36      * @param condition Condition on which the search is made.
37      * @return true if the record or a record close to that record is found in the table.
38      * @throws DException
39      */

40     boolean seekFromBottomRelative( Object JavaDoc indexKey ) throws DException;
41
42     _KeyColumnInformation[] getKeyColumnInformations() throws DException;
43
44     Object JavaDoc[] getUniqueColumnReference() throws DException;
45
46     boolean seek(Object JavaDoc indexKey) throws DException;
47
48     /**
49      * These method of getColumnValues return the value of the passed references
50      * in the form of Wrapper Java objects(Number/String/Date etc).
51      * @param reference
52      * @return
53      * @throws DException
54      */

55     Object JavaDoc getColumnValues(_Reference[] reference) throws DException;
56     Object JavaDoc getColumnValues(_Reference reference) throws DException;
57
58
59     /**
60      * This method return the shared FieldBase for the passed reference. By Shared
61      * FieldBase we mean, the FieldBase object for all row of a column of a table
62      * is same, just the bufferRange inside it is changed according to current
63      * record.
64      * @param reference
65      * @return
66      * @throws DException
67      */

68
69     FieldBase field(_Reference reference) throws com.daffodilwoods.database.resource.DException ;
70     FieldBase[] fields(_Reference[] references) throws com.daffodilwoods.database.resource.DException ;
71
72     public FieldBase[] fields(int[] columns) throws com.daffodilwoods.database.resource.DException ;
73 }
74
Popular Tags