glass
pen
clip
papers
heaphones

product_id );

                  statmt->executeUpdate ( );

                  cout << "Delete a product rown" << endl;

            }

            catch (…

product_id );

                  statmt->executeUpdate ( );

                  cout << "Delete a product rown" << endl;

            }

            catch (…

product_id );

                  statmt->executeUpdate ( );

                  cout << "Delete a product rown" << endl;

            }

            catch ( SQLException excpt )

            {

                  cout << "Exception thrown by deleteRow" << endl;

                  cout << "Error code: "<< excpt.getErrorCode ( ) << endl;

                  cout << excpt.getMessage ( ) << endl;

            }

            connect->terminateStatement ( statmt );

      }

 

      private:

            // Variables required to interact with Oracle

            Environment * environ;

            Connection * connect;

            Statement * statmt;

}; // end of class  occiIntf

 

int main (void)

{

      string dbStr = "ECET450";

      string login;

      string password;

 

      cout << "Enter your Oracle login: ";

      cin >> login;

      cout << "Enter your Oracle password: ";

      cin >> password;

      system ( "CLS" );

 

      cout << "Perform an insertion and a deletion using OCCI" << endl;

      //instantiate an occiIntf object

      occiIntf * database = new occiIntf ( login