KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > daffodilwoods > daffodildb > server > sql99 > dql > plan > condition > _AllTablesJoinRelation


1 package com.daffodilwoods.daffodildb.server.sql99.dql.plan.condition;
2
3 import com.daffodilwoods.daffodildb.server.sql99.dql.plan.table._JoinRelation;
4 import com.daffodilwoods.daffodildb.server.sql99.dql.plan.*;
5 import com.daffodilwoods.daffodildb.server.sql99.expression.booleanvalueexpression.*;
6 import com.daffodilwoods.daffodildb.server.sql99.dql.*;
7 import com.daffodilwoods.daffodildb.server.sql99.dql.tableexpression.*;
8 import com.daffodilwoods.database.resource.*;
9 import com.daffodilwoods.daffodildb.server.sql99.common.TableDetails;
10 import com.daffodilwoods.daffodildb.server.serversystem._ServerSession;
11
12 /**
13  * It represents all the join condition present in select query. It is required
14  * in creation of plan for execution of select query.
15  * <p>Title: </p>
16  * <p>Description: </p>
17  * <p>Copyright: Copyright (c) 2003</p>
18  * <p>Company: </p>
19  * @author unascribed
20  * @version 1.0
21  */

22
23 public interface _AllTablesJoinRelation {
24
25    /**
26     * It is required to obtain all the join realtions present in query.
27     * @return array of join relation
28     * @throws DException
29     */

30
31    public _JoinRelation[] getRelations() throws DException;
32
33    /**
34     * It allows user to add join condition with other join conditions present.
35     * It is assumed that they are separated with 'And' operation.
36     * @param relations
37     * @throws DException
38     */

39
40    public void andRelation(_JoinRelation[] relations) throws DException ;
41
42    /**
43     * It allows user to perform 'Or' operation of passed join relations with
44     * other join relations.
45     * @param relations
46     * @return
47     * @throws DException
48     */

49
50    public boolean orRelation(_JoinRelation[] relations) throws DException ;
51
52    /**
53     * It helps in sorting of join relation for optimal execution of select query.
54     * @param tableAndQualifiedPlan
55     * @param session
56     * @return
57     * @throws DException
58     */

59
60    public _JoinRelation[] sort(Object JavaDoc [][]tableAndQualifiedPlan,_ServerSession session) throws DException;
61 }
62
Popular Tags