TestTheDatabase
Class BasicPerson

java.lang.Object
  extended byTestTheDatabase.BasicPerson
All Implemented Interfaces:
DB.Record

public class BasicPerson
extends java.lang.Object
implements DB.Record

BasicPerson models a simple person that knows the person's name, some private information, and a Key object that identifies the person


Constructor Summary
BasicPerson(DB.Key j, java.lang.String name, java.lang.String info)
          BasicPerson constructs the person's record
 
Method Summary
 java.lang.String getInfo()
          getInfo returns the person's private inforamation
 DB.Key getKey()
          getKey returns the key that uniquely identifies the record
 java.lang.String getName()
          getName returns the person's name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicPerson

public BasicPerson(DB.Key j,
                   java.lang.String name,
                   java.lang.String info)
BasicPerson constructs the person's record

Parameters:
j - - the person's key
name - - the person's name
info - - private information about the person
Method Detail

getName

public java.lang.String getName()
getName returns the person's name


getInfo

public java.lang.String getInfo()
getInfo returns the person's private inforamation


getKey

public DB.Key getKey()
Description copied from interface: DB.Record
getKey returns the key that uniquely identifies the record

Specified by:
getKey in interface DB.Record
Returns:
the key