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
-
Database(String)
- This constructor just stores the name of the database as
the directory.
-
createNewTable(String)
- Creates a new database table.
-
createTable(String)
- Creates a database table.
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).
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).
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