daily pastebin goal
71%
SHARE
TWEET

Untitled

a guest Jul 11th, 2018 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ObjectContainer db = Db4o.openFile(DB4OFILENAME);
  2.         try {
  3.             ObjectSet result = db.queryByExample(new Employee(this.txtName.getText(),this.txtDesignation.getText(),
  4.                         this.txtDepartment.getText(),this.txtAddress.getText(),
  5.                         this.txtMailid.getText()));
  6.             Employee found = (Employee) result.next();
  7.             //deleting the Employee 'found' object in the database
  8.             db.delete(found);
  9.             System.out.println("Deleted " + found);
  10.  
  11.         } finally {
  12.             db.close();
  13.         }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top