TestTheDatabase
Class InsertController

java.lang.Object
  extended byTestTheDatabase.InsertController
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener

public class InsertController
extends java.lang.Object
implements java.awt.event.ActionListener

InsertController implements the algorithm that inserts persons into a database


Constructor Summary
InsertController(DB.Database m, TestFrame v)
          Constructor InsertController initializes the controller
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent evt)
          actionPerformed attempts to insert a new person record into the database and display the result
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InsertController

public InsertController(DB.Database m,
                        TestFrame v)
Constructor InsertController initializes the controller

Parameters:
m - - the address of the model object
v - - the address of the view object
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent evt)
actionPerformed attempts to insert a new person record into the database and display the result

Specified by:
actionPerformed in interface java.awt.event.ActionListener