Your implementation here should call the clear(record) method above. Basically you want to do something like
    
    public void clear(Collection<Long> records) {
       for(long record: records){
           clear(record);
      }
    }