code: public List<Integer> getPageIds(String title) throws WikiApiException {
      	Session session = this.__getHibernateSession();
          session.beginTransaction();
          Iterator results = session.createQuery(
          "select p.pageID from PageMapLine as p where p.name = :pName").setParameter("pName", title, StringType.INSTANCE).list().iterator();
  
          session.getTransaction().commit();
  
          if(!results.hasNext()){
          	throw new WikiPageNotFoundException();
          }
          List<Integer> resultList = new LinkedList<Integer>();
          while(results.hasNext()){
          	resultList.add((Integer)results.next());
          }
          return resultList;
      }
docs: Gets the page ids for a given title.<br>
  
  
  @param title The title of the page.
  @return The id for the page with the given title.
  @throws WikiApiException Thrown if errors occurred.