KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > daffodilwoods > daffodildb > server > sql99 > dql > resultsetmetadata > _RowReader


1 package com.daffodilwoods.daffodildb.server.sql99.dql.resultsetmetadata;
2
3 import com.daffodilwoods.database.resource.DException;
4 import java.io.Serializable JavaDoc;
5
6 /**
7  * It allows user to read the row returned by the resultset of select query.
8  * <p>Title: </p>
9  * <p>Description: </p>
10  * <p>Copyright: Copyright (c) 2003</p>
11  * <p>Company: </p>
12  * @author unascribed
13  * @version 1.0
14  */

15
16 public interface _RowReader extends Serializable JavaDoc{
17
18    /**
19     * It helps the user to retrieve the value of column representing by index
20     * from the passed row. The row may not contain value in the same order as
21     * that of selected columns are present in select list.
22     * @param index represents column index
23     * @param row
24     * @return value of column representing by index.
25     * @throws DException
26     */

27
28    Object JavaDoc getObject(int index,Object JavaDoc row) throws DException;
29
30    /**
31     * Sets the passed value of column in the passed row. The row may not contain
32     * value in the same order as that of selected columns are present in select
33     * list.
34     * @param columnIndex
35     * @param value
36     * @param row
37     * @usage UpdatableSelectIterator.
38     * @throws DException
39     */

40
41    void setObject(int columnIndex, Object JavaDoc value, Object JavaDoc row) throws DException ;
42 }
43
Popular Tags