KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > daffodilwoods > daffodildb > server > datasystem > interfaces > _TableCharacteristics


1 package com.daffodilwoods.daffodildb.server.datasystem.interfaces;
2
3 import com.daffodilwoods.database.resource.DException;
4 import com.daffodilwoods.daffodildb.utils.BufferRange;
5
6 /**
7  *
8  * <p>Title:_TableCharacteristics</p>
9  * <p>Description: Interface that provides information about the table
10  */

11 public interface _TableCharacteristics extends java.io.Serializable JavaDoc{
12
13   /**
14    * Used to get the number of columns in the table
15    * @return int corresponding to the number of columns in the table.
16    * @throws DException
17    */

18   int getColumnCount() throws DException;
19
20   /**
21    * Used to get the values of passed columns from the bytes
22    * @param columns
23    * @param bytes
24    * @return values of columns passed in form of their objects
25    * @throws DException
26    */

27
28    /**
29     * Used to get the information about the columns in the table.
30     * @return columnInformation
31     */

32    public Object JavaDoc getColumnInformation();
33
34    /**
35     * Used to get the values of passed column from the bytes
36     * @param columnIndex
37     * @param bytes
38     * @return
39     * @throws DException
40     */

41
42
43    /**
44     * Used to get the values from the bytes
45     * @param bytes
46     * @return Object
47     * @throws DException
48     */

49
50
51    /**
52     * used to get the value of a specific column in form of bytes
53     * @param columnIndex
54     * @param values
55     * @return
56     * @throws DException
57     */

58
59
60    /**
61     * used to get the values of some specific columns in form of bytes
62     * @param columnIndexes
63     * @param values
64     * @return bytes
65     * @throws DException
66     */

67
68    /**
69     * used to get the values in form of bytes
70     * @param values
71     * @return bytes
72     * @throws DException
73     */

74
75    /**
76     * used to get the names of the columns in the table
77     * @return the names of the columns in the form of an array.
78     * @throws DException
79     */

80    String JavaDoc[] getColumnNames() throws DException;
81
82    /**
83     * Used to retreive the sizes of the columns in the table.
84     * @return the sizes of the different columns in the form of an array.
85     * @throws DException
86     */

87    int[] getColumnSizes() throws DException;
88
89    /**
90     * Used to retreive the types of the different columns of the table
91     * @return the types of the columns in the form of an array
92     * @throws DException
93     */

94    int[] getColumnTypes() throws DException;
95
96    /**
97     * Used to find the memory used by these values
98     * @param values values for those memory used is to be determined
99     * @return an integer corresponding to the memory used.
100     * @throws DException
101     */

102
103    int getMemoryUsage(Object JavaDoc[] values)throws DException;
104
105    /**
106     * Used to get the index for the given columnname
107     * @param columnName anme of the column.
108     * @return integer corresponding to the index of that column.
109     * @throws DException
110     */

111    int getIndexForColumnName(String JavaDoc columnName) throws DException;
112    int[] getColumnTypes(int[] indexes) throws DException;
113    int getColumnType(int index) throws DException;
114    int isBlobClobTable()throws DException;
115    public boolean isBlobClob(int index) ;
116
117    Object JavaDoc getObject(int columnIndex, BufferRange bytes)throws DException;
118    Object JavaDoc getObject(BufferRange[] bytes)throws DException;
119    Object JavaDoc getObject(int[] columns,BufferRange[] bytes)throws DException;
120
121    BufferRange getBufferRange(int columnIndex,Object JavaDoc values)throws DException;
122    BufferRange[] getBufferRange(int[] columnIndexes,Object JavaDoc[] values)throws DException;
123    BufferRange[] getBufferRange(Object JavaDoc[] values)throws DException;
124    java.text.Collator JavaDoc getCollator();
125 }
126
Popular Tags