KickJava   Java API By Example, From Geeks To Geeks.

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


1 package com.daffodilwoods.daffodildb.server.sql99.dql.tableexpression.fromclause;
2
3 import java.util.*;
4
5 import com.daffodilwoods.daffodildb.server.datadictionarysystem.*;
6 import com.daffodilwoods.daffodildb.server.sql99.common.*;
7 import com.daffodilwoods.daffodildb.server.sql99.utils.*;
8 import com.daffodilwoods.database.resource.*;
9
10 /**
11  * <p>Title: </p>
12  * <p>Description: This class represent 'from subquery'. It is responsible for
13  * providing plan which in turn helps in obtaining the resultset.
14  * e.g select * from (select * from A) as Test
15  * <p>Copyright: Copyright (c) 2003</p>
16  * <p>Company: </p>
17  * @author unascribed
18  * @version 1.0
19  */

20 public class derivedtable implements com.daffodilwoods.daffodildb.utils.parser.StatementExecuter {
21   /**
22    * It represents tablesubquery
23    */

24   public tablesubquery _derivedtable0;
25
26    /**
27     * Note:-For documentation of following method refers to queryexpressionbody.
28     * @param variableValueOperation
29     * @throws DException
30     */

31    public void setDefaultValues(_VariableValueOperations variableValueOperation) throws DException {
32    }
33
34    public _Reference[] getReferences(TableDetails[] tableDetails) throws DException {
35       throw new DException("DSE565", new Object JavaDoc[] {"getReferences()"});
36    }
37
38    public Object JavaDoc run(Object JavaDoc object) throws com.daffodilwoods.database.resource.DException {
39       return _derivedtable0.run(object);
40    }
41
42    public ColumnDetails[] getColumnDetails() throws DException {
43       return _derivedtable0.getColumnDetails();
44    }
45
46    public Object JavaDoc[] getParameters(Object JavaDoc object) throws DException {
47       return _derivedtable0.getParameters(object);
48    }
49
50    /**
51     * It checks the semantic of tablesubQuery
52     * it call check semantic method of table subQuery class
53     * @param parent
54     * @return _References[]
55     * @throws DException
56     */

57    public com.daffodilwoods.daffodildb.server.sql99.utils._Reference[] checkSemantic(com.daffodilwoods.daffodildb.server.serversystem._ServerSession parent, boolean checkUserRight) throws DException {
58       return _derivedtable0.checkSemantic(parent, checkUserRight);
59    }
60
61    public _ColumnCharacteristics getColumnCharacteristics(Object JavaDoc object) throws DException {
62       return _derivedtable0.getColumnCharacteristics(object);
63    }
64
65    public void getColumnsIncluded(ArrayList aList) throws DException {
66       _derivedtable0.getColumnsIncluded(aList);
67    }
68
69    public void getTablesIncluded(ArrayList aList) throws DException {
70       _derivedtable0.getTablesIncluded(aList);
71    }
72
73    public ParameterInfo[] getParameterInfo() throws DException {
74       return _derivedtable0.getParameterInfo();
75    }
76
77    public String JavaDoc toString() {
78       StringBuffer JavaDoc sb = new StringBuffer JavaDoc();
79       sb.append(" ");
80       sb.append(_derivedtable0);
81       return sb.toString();
82    }
83
84    public Object JavaDoc clone() throws CloneNotSupportedException JavaDoc {
85       derivedtable tempClass = new derivedtable();
86       tempClass._derivedtable0 = (tablesubquery) _derivedtable0.clone();
87       return tempClass;
88    }
89
90 }
91
Popular Tags