KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > daffodilwoods > daffodildb > server > sql99 > dql > resultsetmetadata > _SelectColumnCharacteristics


1 package com.daffodilwoods.daffodildb.server.sql99.dql.resultsetmetadata;
2
3 import com.daffodilwoods.daffodildb.server.datadictionarysystem._ColumnCharacteristics;
4 import com.daffodilwoods.database.resource.*;
5 import java.io.Serializable JavaDoc;
6 import com.daffodilwoods.daffodildb.server.sql99.common.ColumnDetails;
7
8 /**
9  * It represents the columncharacteristics of selected columns present in select
10  * query.
11  * <p>Title: </p>
12  * <p>Description: </p>
13  * <p>Copyright: Copyright (c) 2003</p>
14  * <p>Company: </p>
15  * @author unascribed
16  * @version 1.0
17  */

18
19 public interface _SelectColumnCharacteristics extends _ColumnCharacteristics,Serializable JavaDoc {
20
21    /**
22     * It is used to check whether column at passed index is updatable or not. it
23     * is required to check whether user can perform updation on that column or
24     * not.
25     * @param columnIndex
26     * @return
27     * @throws DException
28     */

29
30    boolean isColumnUpdatable(int columnIndex) throws DException;
31
32    /**
33     * It is used to check whether the whole row of select query is updatable
34     * or not. If all the columns are not updatable then the select query is not
35     * updatable.
36     * @return
37     * @throws DException
38     */

39
40    boolean isUpdatable() throws DException;
41
42    /**
43     * It allows user to check whether column is selected or not. It is needed
44     * in listener work.
45     * @param columnIndex
46     * @return
47     * @throws DException
48     */

49
50    boolean isColumnSelectable(int columnIndex) throws DException;
51
52    /**
53     * Return the columncharacteristics of actual table refered in chained
54     * column.
55     * @param index
56     * @return
57     * @throws DException
58     */

59
60    _SelectColumnCharacteristics getColumnCharacteristics(int index) throws DException;
61
62    /**
63     * Used to check whether the column at the passed index is chained column or
64     * not.
65     * @param index
66     * @return
67     * @throws DException
68     */

69
70    boolean isForeignTableRecordFetched(int index) throws DException;
71
72    /**
73     * This method is used to obtain the expression(if any) for any particular
74     * column representing by passed index.
75     * @param index
76     * @return
77     * @throws DException
78     */

79
80    String JavaDoc getExpression( int index ) throws DException;
81
82    /**
83     * This method is required to obtain all underlying columns of passed column
84     * without performing semantic checking. It is required in case of view or
85     * 'from subquery'.
86     * @param column
87     * @return
88     * @throws DException
89     */

90
91    Object JavaDoc[] getCorresspondingColumnsForFromSubQueryColumn(Object JavaDoc column) throws DException;
92 }
93
Popular Tags