KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > daffodilwoods > daffodildb > server > sql99 > dql > resultset > _QueryExecuter


1 package com.daffodilwoods.daffodildb.server.sql99.dql.resultset;
2
3 import com.daffodilwoods.daffodildb.server.sql99.dql.queryexpression.*;
4 import com.daffodilwoods.daffodildb.server.sql99.dql.iterator._Iterator;
5
6 import com.daffodilwoods.database.resource.DException;
7 import com.daffodilwoods.daffodildb.server.serversystem._ServerSession;
8 import com.daffodilwoods.daffodildb.server.sql99.utils._VariableValues;
9
10 /**
11  * It is used to obtain the resultset from select query. It provides the
12  * functionality to retrieve different type of resultsets based on the resultset
13  * type(SCROLLABLE,UPDTABLE,NONSCROLLABLE).
14  * <p>Title: </p>
15  * <p>Description: </p>
16  * <p>Copyright: Copyright (c) 2003</p>
17  * <p>Company: </p>
18  * @author unascribed
19  * @version 1.0
20  */

21
22 public interface _QueryExecuter {
23
24    /**
25     * These methods are required to obtain resultset based on the type of
26     * resultset(SCROLLABLE,UPDTABLE,NONSCROLLABLE). The values of parameters
27     * are passed in variablevalues.
28     * @param variableValues
29     * @return resultset.
30     * @throws DException
31     */

32
33    Object JavaDoc executeNonScrollable(_VariableValues variableValues) throws DException;
34    Object JavaDoc executeScrollable(_VariableValues variableValues) throws DException;
35    Object JavaDoc executeUpdatable(_VariableValues variableValues) throws DException;
36
37    /**
38     * These methods are required to obtain resultset based on the type of
39     * resultset(SCROLLABLE,UPDTABLE,NONSCROLLABLE). The values of parameters
40     * are passed.
41     * @param values
42     * @return resultset.
43     * @throws DException
44     */

45
46    Object JavaDoc executeNonScrollable(Object JavaDoc[] values) throws DException;
47    Object JavaDoc executeScrollable(Object JavaDoc[] values) throws DException;
48    Object JavaDoc executeUpdatable(Object JavaDoc[] values) throws DException;
49
50    /**
51     * These methods are required to obtain resultset based on the type of
52     * resultset(SCROLLABLE,UPDTABLE,NONSCROLLABLE). These are needed when we
53     * want to share queryplan among different users.
54     * @param variableValues contains values of parameters
55     * @return resultset.
56     * @throws DException
57     */

58
59    Object JavaDoc executeNonScrollableFresh(_VariableValues variableValues) throws DException;
60    Object JavaDoc executeScrollableFresh(_VariableValues variableValues) throws DException;
61    Object JavaDoc executeUpdatableFresh(_VariableValues variableValues) throws DException;
62
63    /**
64     * These methods are required to obtain resultset based on the type of
65     * resultset(SCROLLABLE,UPDTABLE,NONSCROLLABLE). These are needed when we
66     * want to share queryplan among different users.
67     * @param values represents values of parameters.
68     * @return resultset.
69     * @throws DException
70     */

71
72    Object JavaDoc executeNonScrollableFresh(Object JavaDoc[] values) throws DException;
73    Object JavaDoc executeScrollableFresh(Object JavaDoc[] values) throws DException;
74    Object JavaDoc executeUpdatableFresh(Object JavaDoc[] values) throws DException;
75    Object JavaDoc executeForFresh(_VariableValues parm1) throws DException;
76 }
77
Popular Tags