KickJava   Java API By Example, From Geeks To Geeks.

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


1 package com.daffodilwoods.daffodildb.server.datasystem.interfaces;
2
3 import com.daffodilwoods.database.resource.DException;
4 import com.daffodilwoods.database.general.QualifiedIdentifier;
5 import com.daffodilwoods.daffodildb.server.datasystem.indexsystem._IndexInformation;
6
7 /**
8  * <p>Title:_IndexDatabase</p>
9 * <p>Description: Is an interface that provides some additional operations on the
10  * database in addition to that provided by the _DataBase interface.
11  *
12  * Index Database extends Database to provide functionality over and above
13  * database for creating and deleting the temporary and permanent indexes.
14  * Indexes are maintained using BTree data structure. Indexes are dependent upon
15  * underlying database for their persistence.
16  */

17 public interface _IndexDatabase extends _Database{
18
19   /**
20    * Used to create an temporary index on the table
21    * @param tableNameName of the Table
22    * @param indexName Name of the index
23    * @param indexInformationGetter Provides information about the index on the table
24    * @throws DException
25    */

26   public void createTemporaryIndex(QualifiedIdentifier tableName,String JavaDoc indexName,
27                     _IndexInformation indexInformationGetter) throws DException;
28
29   /**
30    * Used to create a permanent index on the table.
31    * @param tableName Name of the table
32    * @param indexName Name of the index
33    * @param indexInformationGetter Provides the information about the Index on the table
34    * @throws DException
35    */

36   public void createPermanantIndex(QualifiedIdentifier tableName,String JavaDoc indexName,
37                   _IndexInformation indexInformationGetter,_DatabaseUser user) throws DException;
38
39   /**
40    * Used to drop the index from the temporary table
41    * @param tableName Name of the table
42    * @param indexName Name of the index
43    * @throws DException
44    */

45   public void dropTemporaryIndex(QualifiedIdentifier tableName,String JavaDoc indexName) throws DException;
46
47   /**
48    * Used to drop the index from the permanent table
49    * @param tableName Name of the table
50    * @param indexName Name of the index
51    * @throws DException
52    */

53   public void dropPeramanantIndex(QualifiedIdentifier tableName,String JavaDoc indexName,_DatabaseUser user) throws DException;
54
55
56    void alterTable(QualifiedIdentifier tableName,Object JavaDoc columnInfo, _AlterRecord alterRecord,Object JavaDoc defaultValue,_DatabaseUser user) throws DException ;
57
58    void createFullTextIndex(QualifiedIdentifier tableName,String JavaDoc indexName,String JavaDoc[] columnName)throws DException;
59    void dropFullTextIndex(QualifiedIdentifier tableName,String JavaDoc indexName) throws DException;
60    _Table getTable(QualifiedIdentifier tableName,_IndexInformation[] iinf) throws DException;
61 }
62
Popular Tags