All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class cube.database.Database

java.lang.Object
   |
   +----cube.database.Database

public class Database
extends Object
The Database class encapsulates a database. The database consists of tables of persistent associative arrays, so it is a really very simple. In our implementation the database is a directory, and the tables within it are Dbm files.

For more information on the cube see the cube Overview.
Copyright © 1997 Curtis E. Dyreson. All rights reserved. Please be aware of the Licence and Version.

See Also:
Dbm, Table, Tuple

Constructor Index

 o Database(String)
This constructor just stores the name of the database as the directory.

Method Index

 o createNewTable(String)
Creates a new database table.
 o createTable(String)
Creates a database table.

Constructors

 o Database
  public Database(String name)
This constructor just stores the name of the database as the directory. It does not open any files, nor check to make sure the directory exists.

Parameters:
name - - The name of the database (a directory name).

Methods

 o createTable
  public Table createTable(String t)
Creates a database table. A table is a database relation.

Parameters:
name - The name of the table (Dbm file).
 o createNewTable
  public Table createNewTable(String t)
Creates a new database table. A table is a database relation.

Parameters:
name - The name of the table (Dbm file).

All Packages  Class Hierarchy  This Package  Previous  Next  Index