KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > daffodilwoods > daffodildb > server > sql99 > dql > listenerevents > TableAlias


1 package com.daffodilwoods.daffodildb.server.sql99.dql.listenerevents;
2
3 import com.daffodilwoods.daffodildb.server.sql99.dql.execution.*;
4 import com.daffodilwoods.database.resource.*;
5
6 /**
7  * TableAlias is required for the chained column work. It provides the alias
8  * name of table and array of String containing the name of tables as well as the
9  * last String which represents the column name.
10  * <p>Title: </p>
11  * <p>Description: </p>
12  * <p>Copyright: Copyright (c) 2003</p>
13  * <p>Company: </p>
14  * @author unascribed
15  * @version 1.0
16  */

17
18 public class TableAlias implements _TableAlias {
19
20    /**
21     * Represents the alias name of table.
22     */

23
24    private String JavaDoc aliasName;
25
26    /**
27     * Represents all the name of tables as well as column involved in
28     * chained column.
29     */

30
31    private String JavaDoc[] columnName;
32
33    public TableAlias(String JavaDoc aliasName0, String JavaDoc[] columnName0) {
34       columnName = columnName0;
35       aliasName = aliasName0;
36    }
37
38    /**
39     * Returns all the table names involved in chained column as well as the
40     * column name which is at last position.
41     * @throws DException
42     */

43
44    public String JavaDoc[] getColumnName() throws DException {
45       return columnName;
46    }
47
48    /**
49     * Returns the alias name of table.
50     * @return
51     * @throws DException
52     */

53
54    public String JavaDoc getAliasName() throws DException {
55       return aliasName;
56    }
57 }
58
Popular Tags