KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > daffodilwoods > daffodildb > server > sql99 > dql > tableexpression > fromclause > tablereference


1 package com.daffodilwoods.daffodildb.server.sql99.dql.tableexpression.fromclause;
2
3 import com.daffodilwoods.daffodildb.server.serversystem.*;
4 import com.daffodilwoods.daffodildb.server.sql99.common.*;
5 import com.daffodilwoods.daffodildb.server.sql99.dql.execution.*;
6 import com.daffodilwoods.daffodildb.server.sql99.dql.listenerevents.*;
7 import com.daffodilwoods.daffodildb.server.sql99.dql.plan.*;
8 import com.daffodilwoods.daffodildb.server.sql99.dql.plan.condition.*;
9 import com.daffodilwoods.daffodildb.server.sql99.utils.*;
10 import com.daffodilwoods.database.resource.*;
11 import java.util.*;
12 import com.daffodilwoods.daffodildb.server.sql99.dql.plan.order._OrderPlan;
13 import com.daffodilwoods.daffodildb.server.sql99.dql.plan.order._SingleTableOrderPlan;
14
15 /**
16  * It represents one of the following -
17  * 1. tablename, 2. from subquery, 3. qualified join, 4. cross join, 5. natural
18  * join, 6. viewname.
19  * It is required to get the plan of tables, so as to make the resultset in
20  * optimal way.
21  * <p>Title: </p>
22  * <p>Description: </p>
23  * <p>Copyright: Copyright (c) 2003</p>
24  * <p>Company: </p>
25  * @author unascribed
26  * @version 1.0
27  */

28
29 public interface tablereference extends com.daffodilwoods.daffodildb.utils.parser.StatementExecuter,Parameters{
30
31    /**
32     * This method is required to check whether the order plan can be restricted
33     * to single table or not.
34     * @param session
35     * @param orderPlan represents order present in select query.
36     * @param bvePlan represents the plan for condition.
37     * @param queryColumns represents all the columns present in query.
38     * @param conditionArray
39     * @param isUnderLoj determines whether it is called from left/right outer
40     * join.
41     * @return array of OrderMappingWithTableRefernces.
42     * @throws DException
43     */

44
45    public OrderMappingWithTableRefernces[] checkForOrderSequencePlan( _ServerSession session , _OrderPlan orderPlan, _BVEPlan bvePlan, _QueryColumns queryColumns ,ConditionArray conditionArray, boolean isUnderLoj ) throws DException ;
46
47    /**
48     * It is required to make optimal plan for query execution. All other
49     * constructs of query like condition and order is passed to this table
50     * reference so as to make their optimal use in formation of table plan.
51     * @param session
52     * @param datedCondition
53     * @param bvePlan
54     * @param orderPlan
55     * @param queryColumns
56     * @param conditionArray
57     * @return
58     * @throws DException
59     */

60
61    public _TablePlan[] getTablePlan( _ServerSession session, _DatedFramework datedCondition, _BVEPlan bvePlan, _OrderPlan orderPlan, _QueryColumns queryColumns , ConditionArray conditionArray) throws DException;
62    public _TablePlan[] getTablePlans( _ServerSession session , _DatedFramework datedCondition, _BVEPlan bvePlan, _OrderPlan orderPlan, _QueryColumns queryColumns , ConditionArray conditionArray) throws DException ;
63
64    /**
65     * Returns the details of tables present in this tablereference.
66     * @param session
67     * @param queryColumns
68     * @return
69     * @throws DException
70     */

71
72    public TableDetails[] getTableDetails(_ServerSession session,ColumnDetails[] queryColumns) throws DException ;
73
74    /**
75     * Returns all the columns present in the condition of joins.
76     * @return
77     * @throws DException
78     */

79
80    public ColumnDetails[] getColumnDetails()throws DException;
81
82    /**
83     * This method is required to get those columns which are not in the scope
84     * of this level. These are not returned from checkSemantic because they
85     * can be solved by other peer tablereferences.
86     * @return
87     * @throws DException
88     */

89
90    public _Reference[] getUnderlyingReferences() throws DException ;
91
92    /**
93     * For documentation of underlying methods please refer to
94     * queryexpressionbody.
95     * @param variableValueOperation
96     * @throws DException
97     */

98
99    public void verifyValues(_VariableValueOperations variableValueOperation) throws DException ;
100    public void setDefaultValues(_VariableValueOperations variableValueOperations) throws DException ;
101    TableDetails[] getAllTableDetails() throws DException ;
102    TableDetails[] getViewTableDetails() throws DException ;
103    public void getColumnsIncluded(ArrayList aList) throws DException ;
104    public void getTablesIncluded(ArrayList aList) throws DException ;
105    public ParameterInfo[] getParameterInfo() throws DException ;
106    public _BVEPlan getBveExecutionPlan() throws DException;
107    TableDetails[] getTablesForBlankInsert() throws DException;
108    void setTablesForInsertion( ColumnMappingHandler mappingHandler,_VariableValueOperations vv) throws DException ;
109    public com.daffodilwoods.daffodildb.server.sql99.utils._Reference[] checkSemantic(com.daffodilwoods.daffodildb.server.serversystem._ServerSession parent, ColumnDetails[] queryColumns,boolean checkUserRight) throws DException ;
110 }
111
Popular Tags