public int Delete(ArrayList<QueryCriteria> criteria) {
        this.DBConn = new DBHelper();
        String whereClause = "", QueryStr;

        for (int i = 0; i < criteria.size(); i++) {
            if (!whereClause.equals("")) {
                whereClause += " and ";
            }
            whereClause += criteria.get(i).formatCriteria();
        }
        if (whereClause.equals("")) {
            whereClause = "1";
        }
        QueryStr = "DELETE FROM " + this.table + " WHERE " + whereClause;
        int result = this.DBConn.executeUpdate(QueryStr);
        try {
            this.DBConn.conn.close();
        } catch (SQLException ex) {
            Logger.getLogger(CRUD.class.getName()).log(Level.SEVERE, null, ex);
        }
        return result;
    }