@Override
 public String getSearchString() {
   DisplayStudyEventBean thisEvent = (DisplayStudyEventBean) bean;
   return thisEvent.getStudyEvent().getStudyEventDefinition().getName()
       + " "
       + thisEvent.getStudyEvent().getLocation();
 }
  /*
   * (non-Javadoc)
   *
   * @see org.akaza.openclinica.core.EntityBeanRow#compareColumn(java.lang.Object,
   *      int)
   */
  @Override
  protected int compareColumn(Object row, int sortingColumn) {
    if (!row.getClass().equals(DisplayStudyEventRow.class)) {
      return 0;
    }

    DisplayStudyEventBean thisEvent = (DisplayStudyEventBean) bean;
    DisplayStudyEventBean argEvent = (DisplayStudyEventBean) ((DisplayStudyEventRow) row).bean;

    int answer = 0;
    switch (sortingColumn) {
      case COL_EVENT:
        answer =
            thisEvent
                .getStudyEvent()
                .getStudyEventDefinition()
                .getName()
                .toLowerCase()
                .compareTo(
                    argEvent.getStudyEvent().getStudyEventDefinition().getName().toLowerCase());
        break;
      case COL_START_DATE:
        answer =
            compareDate(
                thisEvent.getStudyEvent().getDateStarted(),
                argEvent.getStudyEvent().getDateStarted());
        break;
        // case COL_LAST_UPDATED:
        // answer =
        // compareDate(thisEvent.getStudyEvent().getUpdatedDate(),argEvent.getStudyEvent().getUpdatedDate());
        // break;
      case COL_LOCATION:
        answer =
            thisEvent
                .getStudyEvent()
                .getLocation()
                .toLowerCase()
                .compareTo(argEvent.getStudyEvent().getLocation().toLowerCase());
        break;
      case COL_SUBJECT_EVENT_STATUS:
        answer =
            thisEvent
                .getStudyEvent()
                .getSubjectEventStatus()
                .compareTo(argEvent.getStudyEvent().getSubjectEventStatus());
        break;
      case COL_STATUS:
        answer =
            thisEvent.getStudyEvent().getStatus().compareTo(argEvent.getStudyEvent().getStatus());
        break;
    }

    return answer;
  }