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
-
Database()
-
-
close()
-
-
create(File)
-
-
createTable(String, TypeSet)
- creates a table with columns as per the specified type set
-
getTable(String)
-
-
open(File)
-
Database
public Database()
create
public static Database create(File f)
open
public static Database open(File f)
close
public void close()
createTable
public void createTable(String nm,
TypeSet t)
- creates a table with columns as per the specified type set
getTable
public Table getTable(String nm)
All Packages Class Hierarchy This Package Previous Next Index