Examples of ProblemCriteria


Examples of cn.edu.zju.acm.onlinejudge.bean.request.ProblemCriteria

        long problemId = -1;
        String stringCode = this.request.getParameter("problemCode");
        String stringId = this.request.getParameter("problemId");
        if(stringCode!=null)
        {
      ProblemCriteria pc=new ProblemCriteria();
      pc.setContestId(new Long(ConfigManager.getDefaultProblemSetId()));
      pc.setCode(stringCode);
           
      ProblemPersistence problemPersistence = PersistenceManager.getInstance().getProblemPersistence();
            List problems = problemPersistence.searchProblems(pc, 0,1);
      if(problems.size()!=0)
      {
View Full Code Here

Examples of cn.edu.zju.acm.onlinejudge.bean.request.ProblemCriteria

            return contest;
        }
    }

    public List<Problem> getContestProblems(long contestId, int offset, int count) throws PersistenceException {
        ProblemCriteria criteria = new ProblemCriteria();
        criteria.setContestId(new Long(contestId));
        return this.searchProblems(criteria, offset, count);
    }
View Full Code Here

Examples of cn.edu.zju.acm.onlinejudge.bean.request.ProblemCriteria

        criteria.setContestId(new Long(contestId));
        return this.searchProblems(criteria, offset, count);
    }

    public List<Problem> getContestProblems(long contestId) throws PersistenceException {
        ProblemCriteria criteria = new ProblemCriteria();
        criteria.setContestId(new Long(contestId));
        return this.searchProblems(criteria, 0, Integer.MAX_VALUE);
    }
View Full Code Here

Examples of cn.edu.zju.acm.onlinejudge.bean.request.ProblemCriteria

    public void refreshContest(long contestId) {

        synchronized (this.contestProblemsCache) {
            for (Object key : this.contestProblemsCache.getKeys()) {
                ProblemCriteria criteria = ((List<ProblemCriteria>) key).iterator().next();
                if (criteria.getContestId() == contestId) {
                    this.contestProblemsCache.remove(key);
                }
            }
        }
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.