Examples of load()


Examples of com.knowgate.marketing.ActivityAttachment.load()

   * @since 5.5
   */
  public boolean removeAttachment(JDCConnection oConn, int iPgAttachment)
    throws SQLException {
    ActivityAttachment oAttach = new ActivityAttachment();
    if (oAttach.load(oConn, new Object[]{get(DB.gu_activity),new Integer(iPgAttachment)}))
      return oAttach.delete(oConn);
    else
      return false;
  } // removeAttachment

View Full Code Here

Examples of com.log4jviewer.logfile.LogFileLoader.load()

                String logFilePattern = store.getString(DefaultPreferences.LogFilePreferences.getId());
                logger.debug("Log file pattern: {} was loaded.", logFilePattern);

                LogFileLoader logFileLoader = new LogFileLoader();
                logFileLoader.addListener(logView.getLogList());
                logFileLoader.load(selectedFile, logFilePattern);
                logFileLoader.removeListener(logView.getLogList());
            }
        } catch (FileNotFoundException e) {
            String errorMessage = "Log file wasn't found!";
            logView.getErrorManager().addError(errorMessage);
View Full Code Here

Examples of com.mojang.minecraft.render.TextureManager.load()

            GL11.glTranslatef(1.0F, 0.5F, 0.0F);
            GL11.glRotatef(-30.0F, 1.0F, 0.0F, 0.0F);
            GL11.glRotatef(45.0F, 0.0F, 1.0F, 0.0F);
            GL11.glTranslatef(-1.5F, 0.5F, 0.5F);
            GL11.glScalef(-1.0F, -1.0F, -1.0F);
            int var20 = var6.load("/terrain.png");
            GL11.glBindTexture(3553, var20);
            var7.begin();
            Block.blocks[var15].renderFullbright(var7);
            var7.end();
            GL11.glPopMatrix();
View Full Code Here

Examples of com.mrbussy.ratp.io.PlanningFileHandler.load()

      // Open the filestream with the file
      stream = new FileInputStream(filename);

      // Load the planning into this window
      pfh.load(stream);

      // Close the current stream
      stream.close();

      // When loaded: Discard the file handler;
View Full Code Here

Examples of com.naef.jnlua.LuaState.load()

        System.out.println("Handler::callback()");
        // Create a Lua state
        LuaState luaState = new LuaState();
        try {
            // Define a function
            luaState.load("function add(a, b) return a + b end", "=simple");

            // Evaluate the chunk, thus defining the function
            luaState.call(0, 0); // No arguments, no returns

            // Prepare a function call
View Full Code Here

Examples of com.nigelsmall.geoff.loader.NeoLoader.load()

    @Override
    public ElementCounter load(Reader reader, Reporter reporter, Config config) throws IOException {
        try (Transaction tx = db.beginTx())  {
            NeoLoader loader = new NeoLoader(db);
            Subgraph subgraph = new GeoffReader(reader).readSubgraph();
            Map<String, Node> result = loader.load(subgraph);
            tx.success();
            reporter.update(result.size(),0,0); // todo more insights
        }
        return reporter.getTotal();
    }
View Full Code Here

Examples of com.opengamma.engine.calcnode.stats.InMemoryFunctionCostsMaster.load()

    doc2.setDataInputCost(20.2);
    doc2.setDataOutputCost(30.3);
   
    // check empty
    InMemoryFunctionCostsMaster test = new InMemoryFunctionCostsMaster();
    assertNull(test.load("Conf1", "Func1", null));
    assertNull(test.load("Conf2", "Func2", null));
   
    // store1
    FunctionCostsDocument stored1 = test.store(doc1);
    assertNotNull(stored1);
View Full Code Here

Examples of com.orientechnologies.orient.core.config.OStorageConfiguration.load()

      // POST OPEN
      openRemoteDatabase();

      final OStorageConfiguration storageConfiguration = new OStorageRemoteConfiguration(this, ODatabaseDocumentTx
          .getDefaultSerializer().toString());
      storageConfiguration.load();

      configuration = storageConfiguration;

      componentsFactory = new OCurrentStorageComponentsFactory(configuration);
    } catch (Exception e) {
View Full Code Here

Examples of com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.load()

    db.commit();

    db.close();
    db.open("admin", "admin");

    ODocument loadedJack = db.load(jack.getIdentity());
    Assert.assertEquals(loadedJack.field("name"), "Jack");
    Collection<ODocument> jackFollowings = loadedJack.field("following");
    Assert.assertNotNull(jackFollowings.size());
    Assert.assertEquals(jackFollowings.size(), 1);
View Full Code Here

Examples of com.orientechnologies.orient.core.db.record.ODatabaseFlat.load()

    ORecordFlat record1 = new ORecordFlat(db1);
    record1.value("This is the first version").save();

    // RE-READ THE RECORD
    record1.reload();
    ORecordFlat record2 = db2.load(record1.getIdentity());

    record2.value("This is the second version").save();
    record2.value("This is the third version").save();

    record1.reload(null, true);
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.