KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > daffodilwoods > daffodildb > server > sql99 > dql > plan > table > _JoinRelation


1 package com.daffodilwoods.daffodildb.server.sql99.dql.plan.table;
2
3 import com.daffodilwoods.daffodildb.server.sql99.expression.booleanvalueexpression.*;
4 import com.daffodilwoods.daffodildb.server.sql99.expression.booleanvalueexpression.predicates.predicate;
5 import com.daffodilwoods.daffodildb.server.sql99.dql.*;
6 import com.daffodilwoods.database.resource.*;
7 import com.daffodilwoods.daffodildb.server.sql99.common.TableDetails;
8 import com.daffodilwoods.daffodildb.server.serversystem._ServerSession;
9
10 /**
11  * It represents a join condition. It is needed to build plan for condition.
12  * <p>Title: </p>
13  * <p>Description: </p>
14  * <p>Copyright: Copyright (c) 2003</p>
15  * <p>Company: </p>
16  * @author unascribed
17  * @version 1.0
18  */

19
20 public interface _JoinRelation {
21
22    /**
23     * Sets the join condition.
24     * @param condition
25     * @throws DException
26     */

27
28    public void setCondition(booleanvalueexpression condition) throws DException;
29
30    /**
31     * Returns the join condition.
32     * @return
33     * @throws DException
34     */

35
36    public booleanvalueexpression getCondition() throws DException;
37
38    /**
39     * Returns the tables to which join condition belongs.
40     * @return
41     * @throws DException
42     */

43
44    public TableDetails[] getTableDetails() throws DException;
45
46    /**
47     * It is required to check whether index present on any column of the join
48     * condition. It helps in sorting of join conditions present in query.
49     * @param session
50     * @return
51     * @throws DException
52     */

53
54    public boolean isIndexPossible(_ServerSession session) throws DException;
55
56 }
57
Popular Tags