public Set < Integer > getOutlinkIDs ( ) { Set < Integer > tmpSet = new HashSet < Integer > ( ) ; Session session = wiki . __getHibernateSession ( ) ; session . beginTransaction ( ) ; session . buildLockRequest ( LockOptions . NONE ) . lock ( hibernatePage ) ; tmpSet . addAll ( hibernatePage . getOutLinks ( ) ) ; session . getTransaction ( ) . commit ( ) ; return tmpSet ; }
The result set may also contain links from non - existing pages . It is in the responsibility of the user to check whether the page exists .