public View getView() {
   Database database = FrameworkUtils.getDatabase(server_, filePath_);
   View view = database.getView(viewName_);
   view.setAutoUpdate(false);
   view.setEnableNoteIDsForCategories(true);
   if (category_ == null) {
     if (getResortColumn() != null) {
       view.resortView(getResortColumn(), isAscending());
     } else {
       view.resortView();
     }
   }
   return view;
 }
  public DominoModelList(
      final Database database, final String viewName, final String category, final Class<E> clazz) {
    super(clazz);

    server_ = database.getServer();
    filePath_ = database.getFilePath();
    viewName_ = viewName;
    category_ = category;

    // Gather the view info now
    View view = database.getView(viewName_);
    invalid_ = view == null;

    columnInfo_ = invalid_ ? null : DominoColumnInfo.fromView(view);
  }