All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class benno.toydb.Database

java.lang.Object
   |
   +----benno.toydb.Database

public class Database
extends Object
Represents a database at the top level. At this point databases contain only Tables but in the future, may contain other objects such as constraints. File format: Header Linked list of objects Blocks HEADER format 0x87435467 MAGIC

Version:
$Revision: 1.10 $
Author:
Ben Clifford

Constructor Index

 o Database()

Method Index

 o close()
 o create(File)
 o createTable(String, TypeSet)
creates a table with columns as per the specified type set
 o getTable(String)
 o open(File)

Constructors

 o Database
 public Database()

Methods

 o create
 public static Database create(File f)
 o open
 public static Database open(File f)
 o close
 public void close()
 o createTable
 public void createTable(String nm,
                         TypeSet t)
creates a table with columns as per the specified type set

 o getTable
 public Table getTable(String nm)

All Packages  Class Hierarchy  This Package  Previous  Next  Index