KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > daffodilwoods > daffodildb > server > sql99 > dql > common > TableAndIndex


1 package com.daffodilwoods.daffodildb.server.sql99.dql.common;
2
3 import com.daffodilwoods.daffodildb.server.sql99.common.*;
4 import com.daffodilwoods.database.resource.*;
5
6 /**
7  * It is used to represent index and tablename of a column.
8  * @usage SelectedColumnIterator, AbstractColumnIterator
9  * <p>Title: </p>
10  * <p>Description: </p>
11  * <p>Copyright: Copyright (c) 2003</p>
12  * <p>Company: </p>
13  * @author unascribed
14  * @version 1.0
15  */

16
17 public class TableAndIndex {
18
19    /**
20     * Represents the table of column
21     */

22
23    private TableDetails tableDetails;
24
25    /**
26     * Represents the index of column.
27     */

28
29    private int index;
30
31    /**
32     * Represents the column
33     */

34
35    private ColumnDetails columnDetails;
36
37    /**
38     * Represents the column of key.
39     */

40
41    private _KeyColumnInformation keyColumn;
42
43    public TableAndIndex(TableDetails tableDetails, int index) {
44       this.tableDetails = tableDetails;
45       this.index = index;
46    }
47
48    public TableAndIndex(_KeyColumnInformation keyColumn0, int index0) {
49       keyColumn = keyColumn0;
50       index = index0;
51    }
52
53    public TableAndIndex(ColumnDetails columnDetails0, int index0) {
54       columnDetails = columnDetails0;
55       index = index0;
56    }
57
58    /**
59     * Returns the table.
60     * @return
61     * @throws DException
62     */

63
64    public TableDetails getTableDetails() throws DException {
65       return tableDetails;
66    }
67
68    /**
69     * Returns the column of key.
70     * @return
71     * @throws DException
72     */

73
74    public _KeyColumnInformation getKeyColumnInformation() throws DException {
75       return keyColumn;
76    }
77
78    /**
79     * Returns the index of column.
80     * @return
81     */

82
83    public int getIndex() {
84       return index;
85    }
86
87    /**
88     * Returns the column.
89     * @return
90     */

91
92    public ColumnDetails getColumnDetails() {
93       return columnDetails;
94    }
95 }
96
Popular Tags