Examples of populate()


Examples of cn.edu.zju.acm.onlinejudge.form.ProfileForm.populate()

        UserPersistence userPersistence = PersistenceManager.getInstance().getUserPersistence();
        ProfileForm profileForm = (ProfileForm) form;
        UserProfile profile = context.getUserProfile();
        UserPreference perference = userPersistence.getUserPreference(profile.getId());
        if (profileForm.getHandle() == null) {
            profileForm.populate(profile, perference);
            context.setAttribute("ProfileForm", profileForm);
            return this.handleSuccess(mapping, context, "failure");
        }

        if (userPersistence.login(profileForm.getHandle(), profileForm.getPassword()) == null) {
View Full Code Here

Examples of cn.edu.zju.acm.onlinejudge.form.RoleForm.populate()

            // TODO add forums
            Map<Long, String> forumNames = new TreeMap<Long, String>();
            forumNames.put(1L, "ZOJ Forum");
            context.setAttribute("ForumNames", forumNames);

            roleForm.populate(role);
            return this.handleSuccess(mapping, context, "failure");
        }

        RoleSecurity role = roleForm.toRole();
        authorizationPersistence.updateRole(role, context.getUserProfile().getId());
View Full Code Here

Examples of com.bleujin.framework.db.Rows.populate()

  }


  protected final Rows populate(ResultSet rs) throws SQLException {
    Rows result = RowsUtils.create(this);
    result.populate(rs, getPage().getStartLoc(), getPage().getListNum());
    return result;
  }
   
  public IParameterQueryable addParam(boolean param) {
    addParam(idx++, param);
View Full Code Here

Examples of com.hp.gloze.www_w3_org_2001_XMLSchema.schema.populate()

        // add to the cache before continuing with imports
        GlozeURL.schemaCache.put(url, xs);
        // required to break loops in mutually imported schema
        xs.set_url(url);
        xs.set_location(parent(url));
        xs.populate();
      }
    }
    return xs;
  }
View Full Code Here

Examples of com.hp.gloze.www_w3_org_2001_XMLSchema.schema.populate()

        // add to the cache before continuing with imports
        Gloze.schemaCache.put(url, xs);
        // required to break loops in mutually imported schema
        xs.set_url(url);
        xs.set_location(parent(url));
        xs.populate();
      }
    }
    return xs;
  }
View Full Code Here

Examples of com.mysema.query.sql.dml.SQLInsertClause.populate()

//        sic.populate(f1).addBatch();
//        sic.execute();
        QEmployee employee = QEmployee.employee;
        SQLInsertClause sic = insert(employee);
        Employee e = new Employee();
        sic.populate(e, mapper).addBatch();
        e = new Employee();
        e.setFirstname("X");
        sic.populate(e, mapper).addBatch();
        sic.execute();
View Full Code Here

Examples of com.sun.rowset.CachedRowSetImpl.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 ec.Population.populate()

        be called once typically in a run. */

    public Population initialPopulation(final EvolutionState state, int thread)
        {
        Population p = setupPopulation(state, thread);
        p.populate(state, thread);
        return p;
        }
               
    public Population setupPopulation(final EvolutionState state, int thread)
        {
View Full Code Here

Examples of edu.mit.simile.vicino.clustering.Clusterer.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 edu.mit.simile.vicino.clustering.NGramClusterer.populate()

        distance.resetCounter();
       
        long ngram_start = System.currentTimeMillis();
        Clusterer ngram_clusterer = new NGramClusterer(distance,blocking_size);
        for (String s: strings) {
            ngram_clusterer.populate(s);
        }
        List<Set<Serializable>> ngram_clusters = ngram_clusterer.getClusters(radius);
        long ngram_elapsed = System.currentTimeMillis() - ngram_start;
        int ngram_distances = distance.getCount();
        distance.resetCounter();
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.