CIS-552 Database Design
Fall 2009

Homework #1
Due: Monday October 5

Introduction

In this assignment you will implement a class called SlottedPage for managing pages of variable length records. The SlottedPage class is part of the java cis552 package for a rudimentary DBMS buffer and file manager. You should read the documentation for the cis552 package, paying special attention to the SlottedPage class. A zip file with the cis552 library (minus the SlottedPage class) and other materials can be downloaded here. We will discuss the design of the cis552 package and the slotted page structure in class.

 

Assignment

Write an implementation of a subclass of Page called SlottedPage. Its interface should be exactly the same as the interface as described in the documentation. Read the documentation carefully to understand how each method should behave. There are several additional requirements beyond what is stated in the API documentation:

Write a main method to thoroughly test your SlottedPage class. You will not be graded on your main method, but I will be running my own tests, and I'm good at finding errors! You should expect to write at least as much code to test your class as you do to implement it!!

 

Tips

What to turn in

Send a soft copy of your source code file, SlottedPage.java as an email attachment to pbergstein@umassd.edu.