Set<TimeSheetIdentifier> (TimeEntryTransaction transaction, TimeEntryParmsPerAssignment parms) { Set<TimeSheetIdentifier> affectedTimeSheetIds = new HashSet<TimeSheetIdentifier>(); for(GeneratedId assignmentId : getAssignmentIds()) { for(TimeSheetIdentifier timeSheetId : parms.getTimeSheetIdentifiersForAssignment(assignmentId)) { if(!transaction.obtainAllRows(timeSheetId).isEmpty()) { affectedTimeSheetIds.add(timeSheetId); } } } return affectedTimeSheetIds; }