class MetaData implements WikiConstants {

	public long getNumberOfCategories()
	{
		Session session = this.wiki.__getHibernateSession();
		session.beginTransaction();
		session.lock(hibernateMetaData, LockMode.NONE);
		long nrofCategories = hibernateMetaData.getNrofCategories();
		session.getTransaction().commit();
		return nrofCategories;
	}

	protected  MetaData(Wikipedia wiki);

}