/*********************************************************************/
/*                                                                   */
/* (c) Copyright IBM Corp. 1998                                      */
/* All Rights Reserved                                               */
/* Licensed Materials - Property of IBM                              */
/*                                                                   */
/* DISCLAIMER OF WARRANTIES.                                         */
/*                                                                   */
/* The following [enclosed] code is generated by a software product  */
/* of IBM Corporation.                                               */
/* This generated code is provided to you solely for the purpose of  */
/* assisting you in the development of your applications.            */
/* The code is provided "AS IS." IBM MAKES NO WARRANTIES, EXPRESS    */
/* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES   */
/* OF NONINFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR  */
/* PURPOSE, REGARDING THE FUNCTION OR PERFORMANCE OF THIS CODE.      */
/* IBM shall not be liable for any damages arising out of your use   */
/* of the generated code, even if it has been advised of the         */
/* possibility of such damages.                                      */
/*                                                                   */
/* DISTRIBUTION.                                                     */
/*                                                                   */
/* This generated code can be freely distributed, copied, altered,   */
/* and incorporated into other software, provided that:              */
/*   - It bears the above Copyright notice and DISCLAIMER intact     */
/*   - The software is not offered for resale                        */
/*                                                                   */
/*********************************************************************/

#include <iostream.h>
#include <stdlib.h>
#include <process.h>
#include "PBEPO.ih"


/********************/
/*   MAIN PROGRAM   */
/********************/

int main (int argc, char *argv[])
{
  PBEPO *pbepo = new PBEPO();


  cout << "inserting ... " << endl;
  pbepo->setNAME1("McGuire");
  pbepo->setNAME2("Mark");
  pbepo->setEXT_ ("1988");
  pbepo->setZIP  ("0");
  pbepo->insert();


  cout << "retrieving ... " << endl;
  pbepo = new PBEPO();
  pbepo->setNAME1("McGuire");
  pbepo->retrieve();
  cout << pbepo->getNAME2();
  cout << pbepo->getEXT_();
  cout << pbepo->getZIP() << endl;


  cout << "updating ... " << endl;
  pbepo = new PBEPO();
  pbepo->setNAME1("McGuire");
  pbepo->setNAME2("Sammy");
  pbepo->setEXT_ ("30000");
  pbepo->setZIP  ("EMS862");
  pbepo->update();


  cout << "retrieving ... " << endl;
  pbepo = new PBEPO();
  pbepo->setNAME1("McGuire");
  pbepo->retrieve();
  cout << pbepo->getNAME2();
  cout << pbepo->getEXT_();
  cout << pbepo->getZIP() << endl;


  cout << "deleting ... " << endl;
  pbepo = new PBEPO();
  pbepo->setNAME1("McGuire");
  pbepo->del();


  cout << "retrieving ... " << endl;
  pbepo = new PBEPO();
  pbepo->setNAME1("McGuire");
  pbepo->retrieve();

  cout << pbepo->getNAME2();
  cout << pbepo->getEXT_();
  cout << pbepo->getZIP();

  return 0;

}
