Examples of populate()


Examples of edu.mit.simile.vicino.clustering.VPTreeClusterer.populate()

        int blocking_size = Integer.parseInt(args[3]);

        long vptree_start = System.currentTimeMillis();
        Clusterer vptree_clusterer = new VPTreeClusterer(distance);
        for (String s: strings) {
            vptree_clusterer.populate(s);
        }
        List<Set<Serializable>> vptree_clusters = vptree_clusterer.getClusters(radius);
        long vptree_elapsed = System.currentTimeMillis() - vptree_start;
        int vptree_distances = distance.getCount();
        distance.resetCounter();
View Full Code Here

Examples of games.stendhal.server.core.engine.StendhalRPZone.populate()

      zone.onInit();
    } catch (final Exception e) {
      logger.error(e, e);
    }
   
    zone.populate(zonedata.getLayer("objects"));

    return zone;
  }

  @SuppressWarnings("unchecked")
View Full Code Here

Examples of hendrey.orm.RecordSet.populate()

    try {
      rs = dbSess.executeQuery(con = dataSource.getConnection(), q);
      List<String> lastnames = new ArrayList<String>();
      Contact c = new Contact();
      while (rs.next()) {
        rs.populate(c);
        lastnames.add(c.getLastname());
      }
      return lastnames;
    } catch (SQLException ex) {
      throw new RuntimeException(ex);
View Full Code Here

Examples of hudson.plugins.accurev.cmd.PopulateCmd.populate()

           if (AccurevLauncher.runCommand("Reference tree update command", launcher, updatecmd, null,
                   scm.getOptionalLock(), accurevEnv, accurevWorkingSpace, listener, logger, true)) {
               listener.getLogger().println("Update completed successfully.");
             // Now get that into local filesystem
               PopulateCmd pop = new PopulateCmd();
               if ( pop.populate(scm, launcher, listener, server, accurevClientExePath, null, true, "from reftree", accurevWorkingSpace, accurevEnv) ) {
                  _startDateOfPopulate = pop.get_startDateOfPopulate();
               } else {
                  return false;
               }
               if(scm.isCleanreftree()){
View Full Code Here

Examples of javax.sql.rowset.CachedRowSet.populate()

            connection.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);
         ResultSet resultSet = statement.executeQuery(query);

         CachedRowSet crs = new CachedRowSetImpl();
         crs.setPageSize(pageList.getPageSize());
         crs.populate(resultSet, (pageList.getCurrentPage() - 1) * pageList.getPageSize() + 1);

         while (crs.next())
         {
            T bean = dao_.createInstance();
            dao_.getDBObjectMapper().mapResultSet(crs, bean);
View Full Code Here

Examples of javax.sql.rowset.CachedRowSet.populate()

    public void testDeleteRow_MultipleRowSets() throws Exception {
        // Creates a new CachedRowSet from BOOKs
        CachedRowSet crset2 = newNoInitialInstance();
        rs = st.executeQuery("select * from BOOKS");
        crset2.populate(rs);

        jrs.addRowSet(crset, 1);
        jrs.addRowSet(crset2, 1);

        int rowNum = 0;
View Full Code Here

Examples of javax.sql.rowset.CachedRowSet.populate()

    public void testInsertRow_MultipleRowSets() throws Exception {
        // Creates a new CachedRowSet from BOOKs
        CachedRowSet crset2 = newNoInitialInstance();
        rs = st.executeQuery("select * from BOOKS");
        crset2.populate(rs);

        jrs.addRowSet(crset2, 1);

        int rowNum = 0;
        jrs.beforeFirst();
View Full Code Here

Examples of javax.sql.rowset.CachedRowSet.populate()

        // fill the duplicate CachedRowSet with data, check the listener
        Listener listener = new Listener();
        crsetCopySchema.addRowSetListener(listener);
        assertNull(listener.getTag());
        rs = st.executeQuery("select * from USER_INFO");
        crsetCopySchema.populate(rs);
        assertEquals("rowSetChanged", listener.getTag());
        listener.clear();
        // the move of the original's cursor shouldn't affect the duplicate
        crset.next();
        assertNull(listener.getTag());
View Full Code Here

Examples of javax.sql.rowset.CachedRowSet.populate()

        /*
         * Add another RowSet
         */
        insertDataToCustomerTable();
        CachedRowSet thirdRs = newNoInitialInstance();
        thirdRs.populate(st.executeQuery("SELECT * FROM CUSTOMER_INFO"));
        jrs.addRowSet(thirdRs, "ID");

        // check metadata
        assertEquals(15, jrs.getMetaData().getColumnCount());
        isMetaDataEqualsInColCount(crset.getMetaData(), 2, crset.getMetaData()
View Full Code Here

Examples of javax.sql.rowset.CachedRowSet.populate()

        /*
         * Add the second CachedRowSet, populate with table CUSTOMER_INFO
         */
        insertDataToCustomerTable();
        CachedRowSet newCrset = newNoInitialInstance();
        newCrset.populate(st.executeQuery("SELECT * FROM CUSTOMER_INFO"));
        jrs.addRowSet(newCrset, "NAME");

        /*
         * TODO NOTICE The difference between RI and Harmony
         */
 
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.