docs: public synchronized List<NodeId> getAllNodeIds(NodeId bigger, int maxCount)
              throws ItemStateException, RepositoryException {
          ResultSet rs = null;
          try {
              String sql = bundleSelectAllIdsSQL;
              NodeId lowId = null;
              Object[] keys = new Object[0];
              if (bigger != null) {
                  sql = bundleSelectAllIdsFromSQL;
                  lowId = bigger;
                  keys = getKey(bigger);
              }
              if (getStorageModel() == SM_LONGLONG_KEYS  && maxCount > 0) {
                  // get some more rows, in case the first row is smaller
                  // only required for SM_LONGLONG_KEYS
                  // probability is very low to get get the wrong first key, < 1 : 2^64
                  // see also bundleSelectAllIdsFrom SQL statement
                  maxCount += 10;
              }
              rs = conHelper.exec(sql, keys, false, maxCount);
              ArrayList<NodeId> result = new ArrayList<NodeId>();
              while ((maxCount == 0 || result.size() < maxCount) && rs.next()) {
                  NodeId current;
                  if (getStorageModel() == SM_BINARY_KEYS) {
                      current = new NodeId(rs.getBytes(1));
                  } else {
                      long high = rs.getLong(1);
                      long low = rs.getLong(2);
                      current = new NodeId(high, low);
                      if (lowId != null) {
                          // skip the keys that are smaller or equal (see above, maxCount += 10)
                          // only required for SM_LONGLONG_KEYS
                          if (current.compareTo(lowId) <= 0) {
                              continue;
                          }
                      }
                  }
                  result.add(current);
              }
              return result;
          } catch (SQLException e) {
              String msg = "getAllNodeIds failed.";
              log.error(msg, e);
              throw new ItemStateException(msg, e);
          } finally {
              DbUtility.close(rs);
          }
      }