Package cn.edu.zju.acm.onlinejudge.persistence

Examples of cn.edu.zju.acm.onlinejudge.persistence.LanguagePersistence


        }
        if (this.timeEnd != null && this.timeEnd.trim().length() > 0) {
            criteria.setTimeEnd(Utility.parseTimestamp(this.timeEnd));
        }
        if (this.languageIds != null && this.languageIds.length > 0) {
            LanguagePersistence persistence = PersistenceManager.getInstance().getLanguagePersistence();
            List<Language> languages = new ArrayList<Language>();
            for (int i = 0; i < this.languageIds.length; ++i) {
                languages.add(persistence.getLanguage(Long.parseLong(this.languageIds[i])));
            }
            criteria.setLanguages(languages);
        }
        if (this.judgeReplyIds != null && this.judgeReplyIds.length > 0) {
            List<JudgeReply> judgeReplies = new ArrayList<JudgeReply>();
View Full Code Here


        }
        contest.setLimit(limit);
        contest.setForumId(Long.parseLong(this.forumId));

        List<Language> languages = new ArrayList<Language>();
        LanguagePersistence languagePersistence = PersistenceManager.getInstance().getLanguagePersistence();
        if (this.languageIds != null) {
            for (int i = 0; i < this.languageIds.length; ++i) {
                Language language = languagePersistence.getLanguage(Long.parseLong(this.languageIds[i]));
                if (language != null) {
                    languages.add(language);
                }
            }
        }
View Full Code Here

TOP

Related Classes of cn.edu.zju.acm.onlinejudge.persistence.LanguagePersistence

Copyright © 2018 www.massapicom. 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.