Package org.hibernate.search.jpa

Examples of org.hibernate.search.jpa.FullTextEntityManager.purge()


            old.setEnded(ended);
            old.setStatus(STATUS_MODIFIED);
           
            // HibernateSearchのFulTextEntityManagerを用意。修正済みのものはインデックスから削除する by masuda-sensei
            final FullTextEntityManager fullTextEntityManager = Search.getFullTextEntityManager(em);
            fullTextEntityManager.purge(DocumentModel.class, parentPk);
           
            // 関連するモジュールとイメージに同じ処理を実行する
            Collection oldModules = em.createQuery("from ModuleModel m where m.document.id = :id")
            .setParameter("id", parentPk).getResultList();
            for (Iterator iter = oldModules.iterator(); iter.hasNext(); ) {
View Full Code Here


           
            long delId = delete.getId();
           
            // HibernateSearchのFulTextEntityManagerを用意。削除済みのものはインデックスから削除する
            final FullTextEntityManager fullTextEntityManager = Search.getFullTextEntityManager(em);
            fullTextEntityManager.purge(DocumentModel.class, delId);
           
            if (IInfoModel.STATUS_TMP.equals(delete.getStatus())) {
                // 仮文書の場合は抹消スル
                DocumentModel dm = em.find(DocumentModel.class, delId);
                em.remove(dm);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.