Package org.compass.core

Examples of org.compass.core.CompassTransaction.commit()


    while (iterator.hasNext()) {
      DefaultCompassHit defaultCompassHit = (DefaultCompassHit) iterator.next();
      compassSession.delete(defaultCompassHit.getData());
    }
   
    compassTransaction.commit();
    compassSession.close();
  }
 
  private CompassItemLanguage formatItemLanguage(Item item, ItemLanguage master, Long siteDomainId) {
    CompassItemLanguage compassItemLanguage = new CompassItemLanguage();
View Full Code Here


          }
        }
      }
    }
   
    compassTransaction.commit();
    compassSession.close();
  }
 
  public void removeContent(Content content) {
    CompassSession compassSession = compass.openSession();
View Full Code Here

    while (iterator.hasNext()) {
      DefaultCompassHit defaultCompassHit = (DefaultCompassHit) iterator.next();
      compassSession.delete(defaultCompassHit.getData());
    }
   
    compassTransaction.commit();
    compassSession.close();
  }
 
  private CompassContentLanguage formatContentLanguage(Content content, ContentLanguage master) {
    CompassContentLanguage compassContentLanguage = new CompassContentLanguage();
View Full Code Here

        compassContentLanguage.setSiteProfileClassId(siteProfileClass.getSiteProfileClassId());
        compassSession.save(compassContentLanguage);
      }
    }
   
    compassTransaction.commit();
    compassSession.close();
  }
 
  public void indexAll() throws Exception {
    EntityManager em = JpaConnection.getInstance().getCurrentEntityManager();
View Full Code Here

        break;
      }
      queryHits.add(defaultCompassHit.getData());
    }
    result.setQueryHits(queryHits);
    compassTransaction.commit();
    compassSession.close();
    return result;
  }
 
  public SiteProfileClass[] getSiteProfileClasses() throws Exception {
View Full Code Here

        query.setTypes(targetClass);

        // CompassHits hits = session.find(query);
        List results = processHits(context, query.hits());

        tr.commit();
        session.close();

        return results;
    }
}
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.