class Page implements WikiConstants {

	public int getNumberOfInlinks()
	{
		BigInteger nrOfInlinks = new BigInteger("0");

		long id = __getId();
		Session session = wiki.__getHibernateSession();
		session.beginTransaction();
		Object returnValue = session
				.createNativeQuery("select count(pi.inLinks) from page_inlinks as pi where pi.id = :piid")
				.setParameter("piid", id, LongType.INSTANCE).uniqueResult();
		session.getTransaction().commit();

		if (returnValue != null) {
			nrOfInlinks = (BigInteger) returnValue;
		}
		return nrOfInlinks.intValue();
	}

	protected  Page(Wikipedia wiki, long id);
	protected  Page(Wikipedia wiki, int pageID);
	public  Page(Wikipedia wiki, String pName);
	public  Page(Wikipedia wiki, String pName, boolean useExactTitle);
	protected  Page(Wikipedia wiki, long id,
			de.tudarmstadt.ukp.wikipedia.api.hibernate.Page hibernatePage);

}