34,333
edits
Changes
→The Delete Handler Method
The deletion method will be named deleteProduct() and will accept as an argument the entry to be deleted in the form of a Product object. The method will use a SQL SELECT statement to search for the entry based on the product name and, if located, delete it from the table. The success or otherwise of the deletion will be reflected in a Boolean return value:
public boolean deleteProduct(String productname) {
boolean result = false;