Examples of load()


Examples of org.cassandraunit.DataLoader.load()

          datasetIterator = dataset.listIterator();
          DataLoader dataLoader = new DataLoader(clusterName, host + ":" + port);
          while (datasetIterator.hasNext()) {
            String next = datasetIterator.next();
            boolean dropAndCreateKeyspace = datasetIterator.previousIndex() == 0;
            dataLoader.load(new ClassPathDataSet(next), dropAndCreateKeyspace);
          }
      }
    }

  }
View Full Code Here

Examples of org.castor.persist.TransactionContext.load()

            throw new PersistenceException(Messages.message("jdo.dbClosed"));
        }
        TransactionContext tx = getTransaction();
        ClassMolder molder = _scope.getClassMolder(type);
        ProposedEntity proposedObject = new ProposedEntity(molder);
        return tx.load(new Identity(identity), proposedObject, mode);
    }

    /**
     * {@inheritDoc}
     */
 
View Full Code Here

Examples of org.cishell.reference.gui.workflow.controller.WorkflowMaker.load()

  private class LoadListener implements Listener {

    @Override
    public void handleEvent(Event event) {
      WorkflowMaker loadState = new WorkflowMaker();
      loadState.load();
    }
  }

  private class DeleteListener implements Listener {
View Full Code Here

Examples of org.clearsilver.CSFileLoader.load()

    }
    CSFileLoader aFileLoader = fileLoader;
    if (aFileLoader == null) {
      throw new NullPointerException("No fileLoader specified.");
    } else {
      String result = aFileLoader.load(this, filename);
      if (result == null) {
        throw new NullPointerException("CSFileLoader.load() returned null");
      }
      return result;
    }
View Full Code Here

Examples of org.codehaus.enunciate.config.EnunciateConfiguration.load()

      if (this.configFile != null) {
        getProject().log("Loading config " + this.configFile);
        ExpandProperties reader = new ExpandProperties(new FileReader(this.configFile));
        reader.setProject(getProject());
        config.load(reader);
        proxy.setConfigFile(this.configFile);
      }

      if (this.generateDir != null) {
        proxy.setGenerateDir(this.generateDir);
View Full Code Here

Examples of org.compass.core.CompassSession.load()

    @Transactional
    public void deleteIndex(Class<? extends Model> type, Object objectID) {
        try{
            CompassSession session = getCompassSession();
            try {
                session.delete(session.load(type, objectID));
            } catch (Exception e) {
                String info=e.getMessage();
                LOG.error("删除索引失败", e);
                LOG.error("Failed to delete index", e , Locale.ENGLISH);
                if(info.indexOf("LockObtainFailedException") != -1){
View Full Code Here

Examples of org.corrib.s3b.nlq.util.SmartProperties.load()

   */
  protected void loadRdfQueries() throws IOException{
    InputStream is = NLQueryTemplates.class.getClassLoader().getResourceAsStream(SERVICE_NLQUERIES_RDFPROPERTIES);
    SmartProperties prop = new SmartProperties();
   
    prop.load(is);
    is.close();
   
    // ------ loading list of Strings
    this.lstLangs.addAll(Arrays.asList(prop.getAsStringArray("nlq_locale")));
   
View Full Code Here

Examples of org.csu.idl.xtext.loader.IDLLoader.load()

    for(String include : includePath) {
      preprocessor.addIncludePath(include);
    }
   
    try {
      loader.load(idlFile);
    } catch (Exception e) {
      throw new WrappedException(e);
    }
   
    ctx.put(modelSlot, loader.getResource().getContents());
View Full Code Here

Examples of org.destecs.protocol.ProxyICoSimProtocol.load()

    for (int i = 0; i < RETRIES; i++)
    {
      try
      {
        protocol.load(arguments);
        couldLoad = true;
        break;
      } catch (Exception e)
      {
        try
View Full Code Here

Examples of org.directwebremoting.io.OutputStreamLoader.load()

        try
        {
            out = new ByteArrayOutputStream();
            String mimeType = transfer.getMimeType();
            loader = transfer.getOutputStreamLoader();
            loader.load(out);
            String base64data = new String(Base64.encodeBase64(out.toByteArray()));
            return "'data:" + mimeType + ";base64," + base64data + "'";
        }
        finally
        {
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.