Examples of load()


Examples of org.hibernate.search.FullTextSession.load()

    // now creating and deleting the "same" (as by pk) entity several times in same transaction:
    {
      session.beginTransaction();
      session.persist( new Domain( 8, "mysql.org" ) );
      Domain mysqlDomain = (Domain) session.load( Domain.class, 8 );
      session.delete( mysqlDomain );
      Domain newDomain = new Domain( 8, "something.org" );
      session.persist( newDomain );
      session.delete( newDomain );
      session.persist( new Domain( 8, "somethingnew.org" ) );
View Full Code Here

Examples of org.hibernate.search.engine.Loader.load()

      DocumentExtractor extractor = new DocumentExtractor( searchFactoryImplementor, indexProjection );
      for (int index = first; index <= max; index++) {
        infos.add( extractor.extract( hits, index ) );
      }
      Loader loader = getLoader( sess, searchFactoryImplementor );
      List list = loader.load( infos.toArray( new EntityInfo[infos.size()] ) );
      if ( resultTransformer == null || loader instanceof ProjectionLoader) {
        //stay consistent with transformTuple which can only be executed during a projection
        return list;
      }
      else {
View Full Code Here

Examples of org.hornetq.core.journal.Journal.load()

      ArrayList<PreparedTransactionInfo> list = new ArrayList<>();

      HornetQServerLogger.LOGGER.debug("Reading jms bindings journal from " + config.getBindingsDirectory());

      jmsJournal.load(data, list, null);

      for (RecordInfo record : data)
      {
         long id = record.id;
View Full Code Here

Examples of org.hornetq.core.journal.impl.JournalImpl.load()

                                        new NIOSequentialFileFactory(getJournalDir()),
                                        "hornetq-data",
                                        "hq",
                                        1);
      jrn.start();
      jrn.load(records, list, null);

      // Delete everything from the journal
      for (RecordInfo info : records)
      {
         if (!info.isUpdate)
View Full Code Here

Examples of org.hornetq.core.postoffice.DuplicateIDCache.load()

         DuplicateIDCache cache = postOffice.getDuplicateIDCache(address);

         if (configuration.isPersistIDCache())
         {
            cache.load(entry.getValue());
         }
      }

      return journalInfo;
   }
View Full Code Here

Examples of org.hornetq.core.postoffice.impl.DuplicateIDCacheImpl.load()

         List<Pair<byte[], Long>> values = mapDups.get(ADDRESS);

         Assert.assertEquals(10, values.size());

         cacheID = new DuplicateIDCacheImpl(ADDRESS, 10, journal, true);
         cacheID.load(values);

         for (int i = 0; i < 100; i++)
         {
            cacheID.addToCache(RandomUtil.randomBytes(), null);
         }
View Full Code Here

Examples of org.hsqldb.persist.HsqlProperties.load()

        }

        HsqlProperties p = new HsqlProperties(path);

        try {
            p.load();
        } catch (Exception e) {}

        return p;
    }
View Full Code Here

Examples of org.ictclas4j.bean.Thesaurus.load()

    if(fileName!=null){
      File file=new File(fileName);
      if(file.exists() && file.isFile()){
        logger.info("start load thesaurus ...");
        thesaurus = new Thesaurus( );
        thesaurus.load(fileName);
        logger.info("++ load thesaurus is over");
      }
    }
   
    return thesaurus;
View Full Code Here

Examples of org.infinispan.commons.util.TypedProperties.load()

   protected static TypedProperties toTypedProperties(String s) {
      TypedProperties tp = new TypedProperties();
      if (s != null && s.trim().length() > 0) {
         InputStream stream = new ByteArrayInputStream(s.getBytes());
         try {
            tp.load(stream);
         } catch (IOException e) {
            throw new CacheConfigurationException("Unable to parse properties string " + s, e);
         }
      }
      return tp;
View Full Code Here

Examples of org.infinispan.loaders.CacheLoader.load()

   protected <KIn, KOut> KOut loadValueFromCacheLoader(KIn key) {     
      KOut value = null;
      CacheLoader cl = resolveCacheLoader();
      if (cl != null) {
         try {
            InternalCacheEntry entry = cl.load(key);
            if (entry != null) {              
               Object loadedValue = entry.getValue();
               if (loadedValue instanceof MarshalledValue) {
                  value = (KOut) ((MarshalledValue) loadedValue).get();
               } else {
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.