Guest User

Untitled

a guest
Jul 11th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  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. }
Add Comment
Please, Sign In to add comment