KickJava   Java API By Example, From Geeks To Geeks.

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


1 package com.daffodilwoods.daffodildb.server.datasystem.interfaces;
2
3 import com.daffodilwoods.database.resource.*;
4 import com.daffodilwoods.daffodildb.server.sql99.utils._Reference;
5 import com.daffodilwoods.daffodildb.server.datasystem.interfaces._DatabaseUser;
6 import com.daffodilwoods.daffodildb.server.datasystem.utility.*;
7 import com.daffodilwoods.daffodildb.utils.field.FieldBase;
8
9 public interface _Navigator {
10     /**
11      * sets the current pointer to first record in the table.
12      * @return true if the first record exists in the table
13      * @throws DException
14      */

15     boolean first() throws DException;
16
17     /**
18      * sets the current pointer of the iterator to the last record in the table
19      * @return true if the record is found in the table.
20      * @throws DException
21      */

22     boolean last() throws DException;
23
24     /**
25      * sets the current pointer of the iterator to the next record in te table
26      * @return true if nextrecord exists in the table.
27      * @throws DException
28      */

29     boolean next() throws DException;
30
31     /**
32      * sets the current pointer of the iterator to the previous record in the table.
33      * @return true if the previous record exists in the table
34      * @throws DException
35      */

36     boolean previous() throws DException;
37
38     /**
39      * used to retreive the current position of the iterator
40      * @return the current position of the iterator.
41      * @throws DException
42      */

43     Object JavaDoc getKey() throws DException;
44
45     /**
46      * Used to set the pointer of the iterator to the given position.
47      * @param key the key to which the pointer is to be moved.
48      * @throws DException
49      */

50     void move(Object JavaDoc key) throws DException;
51
52     /**
53      * Used to get the values of the record at the current position of the iterator.
54      * @param columns is an array of columns whose value is to be retreived
55      * @return an array of values of that record.
56      * @throws DException
57      */

58     _Record getRecord() throws DException;
59
60
61     Object JavaDoc getColumnValues() throws DException;
62
63
64     Object JavaDoc getColumnValues(int[] columns) throws DException;
65
66
67   public byte[] getByteKey() throws DException;
68
69   public void moveByteKey(byte[] key) throws DException;
70
71 }
72
Popular Tags