Package lotus.domino

Examples of lotus.domino.ViewNavigator


            ve = vc.getNextEntry(ve);
          }
          int nEntries = vc.getCount();
          return new Result(entries, nEntries);
        } else {
          ViewNavigator nav = view.createViewNav();
          try {
            ViewEntry ve = null;
            if (key != null) {
              int searchOptions = DominoUtils.FIND_GREATER_THAN | DominoUtils.FIND_EQUAL | DominoUtils.FIND_PARTIAL
                  | DominoUtils.FIND_CASE_INSENSITIVE;
              ve = DominoUtils.getViewEntryByKeyWithOptions(Factory.toLotus(view), key, searchOptions);
            } else {
              ve = nav.getCurrent();
            }
            if (start > 0) {
              if (nav.skip(start) != start) {
                // ok not all of them are skipped, stop the process
                count = 0;
              }
            }
            for (int i = 0; i < count && ve != null; i++) {
              if (ve instanceof ViewEntry) {
                entries.add(meta.createEntry(ve));
              }
              ve = nav.getNext(ve);
            }

            int nEntries = -1;
            return new Result(entries, nEntries);
          } finally {
            nav.recycle();
          }
        }
      } finally {
        // Recycle the view?
      }
View Full Code Here

TOP

Related Classes of lotus.domino.ViewNavigator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.