code: public int deleteByIdCascade(Long id) throws SQLException {
  		int count = 0;
  		if (id != null) {
  			Metadata metadata = queryForId(id);
  			if (metadata != null) {
  				count = deleteCascade(metadata);
  			}
  		}
  		return count;
  	}
docs: Delete a Metadata by id, cascading
  
  @param id
  id
  @return deleted count
  @throws SQLException
  upon failure