KickJava   Java API By Example, From Geeks To Geeks.

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


1 package com.daffodilwoods.daffodildb.server.datasystem.interfaces;
2
3 import com.daffodilwoods.database.resource.*;
4 import java.util.Properties JavaDoc;
5
6 /**
7  *
8  * <p>Title:_DatSystem</p>
9  * <p>Description: Is an inerface that provides all the operations on the database
10  */

11 public interface _DataSystem {
12
13   /**
14    * Used to retreive a database with given name from the dataSystem
15    * @param databaseURL Name of the database
16    * @return database with given name from the DataSystem
17    * @throws DException
18    */

19   public _Database getDatabase(String JavaDoc databaseURL) throws DException;
20
21   /**
22    * Used to create the database with given name in the dataSystem
23    * @param databaseName Name of the database
24    * @param initialSize Initial size of the database
25    * @param incrementFactor - Factor by which database size would be increased when Existing file is fully used
26    * @param unicodeSupport Whether unicode support is required or not.
27    * @param multifileSupport Whether new files should be created or old file size has to increase in case of existing file is fully used
28    * @throws DException
29    */

30   public void createDatabase(String JavaDoc databaseName,Properties JavaDoc prop )throws DException ;
31
32   /**
33    * Used to drop the database with given name from the dataSystem.
34    * @param databaseURL name of the database
35    * @throws DException
36    */

37   public void dropDatabase(String JavaDoc databaseURL) throws DException;
38   void removeDatabase(String JavaDoc string) throws DException;
39
40
41 }
42
Popular Tags