code: protected Set<Integer> __getPages() {
          Session session = this.__getHibernateSession();
          session.beginTransaction();
          List<Integer> idList = session.createQuery(
              "select page.pageId from Page as page", Integer.class).list();
          Set<Integer> pageSet = new HashSet<Integer>(idList);
          session.getTransaction().commit();
  
          return pageSet;
      }
docs: Protected method that is much faster than the public version, but exposes too much implementation details.
  Get a set with all {@code pageIDs}. Returning all page objects is much too expensive.
  Does not include redirects, as they are only pointers to real pages.
  
  As ids can be useful for several application (e.g. in combination with
  the RevisionMachine, they have been made publicly available via
  {@link #getPageIds()}.
  
  @return A set with all {@code pageIDs}. Returning all pages is much to expensive.