Examples of searchProblems()


Examples of cn.edu.zju.acm.onlinejudge.persistence.ProblemPersistence.searchProblems()

      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)
      {
        problemId = ((Problem)(problems.get(0))).getId();
        stringId=""+problemId;
      }
View Full Code Here

Examples of cn.edu.zju.acm.onlinejudge.persistence.ProblemPersistence.searchProblems()

        key.add(new Integer(count));
        synchronized (this.contestProblemsCache) {
            List<Problem> problems = this.contestProblemsCache.get(key);
            if (problems == null) {
                ProblemPersistence problemPersistence = PersistenceManager.getInstance().getProblemPersistence();
                problems = problemPersistence.searchProblems(criteria, offset, count);
                this.contestProblemsCache.put(key, problems);
            }
            return problems;
        }
    }
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.