Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ObjectContainer db = Db4o.openFile(DB4OFILENAME);
- try {
- ObjectSet result = db.queryByExample(new Employee(this.txtName.getText(),this.txtDesignation.getText(),
- this.txtDepartment.getText(),this.txtAddress.getText(),
- this.txtMailid.getText()));
- Employee found = (Employee) result.next();
- //deleting the Employee 'found' object in the database
- db.delete(found);
- System.out.println("Deleted " + found);
- } finally {
- db.close();
- }
Add Comment
Please, Sign In to add comment