KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > daffodilwoods > daffodildb > server > sql99 > fulltext > dml > DaffodilFullTextIndexInformation


1 package com.daffodilwoods.daffodildb.server.sql99.fulltext.dml;
2
3 import com.daffodilwoods.database.general.QualifiedIdentifier;
4
5 /**
6  * <p>Title: DaffodilFullTextIndexInformation </p>
7  * <p>Description: This Class is required to retrieve the full-text related
8  * information related with table and columns on which full-text index is created
9  * and information regarding internal tables and indexes created for full-text
10  * search. </p>
11  * <p>Copyright: Copyright (c) 2003</p>
12  * <p>Company: </p>
13  * @author not attributable
14  * @version 1.0
15  */

16
17 public class DaffodilFullTextIndexInformation
18     implements _FullTextIndexInformation {
19   private QualifiedIdentifier tableName, tokenTableName, locationTableName;
20   private String JavaDoc indexName;
21   private String JavaDoc[] columnName;
22   private int[] columnIndex;
23
24   public DaffodilFullTextIndexInformation(QualifiedIdentifier tableName0,
25                                           QualifiedIdentifier tokenTableName0,
26                                           QualifiedIdentifier
27                                           locationTableName0, String JavaDoc indexName0,
28                                           String JavaDoc[] columnName0, int[] columnIndex0) {
29     tableName = tableName0;
30     tokenTableName = tokenTableName0;
31     locationTableName = locationTableName0;
32     indexName = indexName0;
33     columnName = columnName0;
34     columnIndex = columnIndex0;
35
36   }
37
38   /**
39    * The method is required to retrieve the full-text enabled column name.
40    * @return name on column on which full-text is enabled.
41    * @throws DException
42    */

43   public String JavaDoc[] getColumnName() {
44     return this.columnName;
45   }
46
47   /**
48    * The method is required to retrieve the corresponding index created for
49    * full-text enabled column (created on token table or location table correspondingly) .
50    * @return name of index created on token/location table.
51    * @throws DException
52    */

53   public String JavaDoc getIndexName() {
54     return this.indexName;
55   }
56
57   /**
58    * The method is required to retrieve the token table name.
59    * @return name of token table.
60    * @throws DException
61    */

62   public QualifiedIdentifier getTokenTableName() {
63     return this.tokenTableName;
64   }
65
66   /**
67    * The method is required to retrieve the location table name.
68    * @return name of location table.
69    * @throws DException
70    */

71   public QualifiedIdentifier getLocationTableName() {
72     return this.locationTableName;
73   }
74
75   /**
76    * The method is required to retrieve the table name having full-text
77    * enabled column.
78    * @return name of table on which full-text is applied.
79    * @throws DException
80    */

81   public QualifiedIdentifier getTableName() {
82     return this.tableName;
83   }
84
85   /**
86    * The method is required to retrieve the index of full-text enabled column.
87    * @return index of full text indexed column
88    * @throws DException
89    */

90   public int[] getColumnIndex() {
91     return this.columnIndex;
92   }
93
94 }
95
Popular Tags