You need to provide Id
of the item as an instance of RowId
class.
Try this:
(Assumming Id
of the item is of type Integer
)
try {
SQLContainer deleteContainer = new SQLContainer(new TableQuery("tbl_grade", connectionPool));
RowId itemID = new RowId(new Integer[] { 10 });
deleteContainer.removeItem(itemID);
deleteContainer.commit();
} catch (SQLException ex) {
ex.printStackTrace();
}