Examples of populate()


Examples of business.BookSubject.populate()

        try {
            while( result.next() ) {
                subject = new BookSubject();
                subject.init( driver );
                subject.populate( result );
                subject.setI18nText( lexicon.get( subject.getText() ) );
                subjects.add( subject );
            }
        } catch( SQLException e ) {
View Full Code Here

Examples of business.LexiconEntry.populate()

        try {
            while( result.next() ) {
                entry = new LexiconEntry();
                entry.init( driver );
                entry.populate( result );
                lexicons.put( entry.getKey(), entry.getValue() );
            }
        } catch( SQLException e ) {

        }
View Full Code Here

Examples of business.ShoppingCartEntry.populate()

        try {
            if( result.next() ) {
                entry = new ShoppingCartEntry();
                entry.init( bzb.getDriver() );
                entry.populate( result );

                return entry.remove();
            }
        } catch( SQLException e ) {
View Full Code Here

Examples of business.ShoppingCartEntry.populate()

        try {
            while( result.next() ) {
                entry = new ShoppingCartEntry();
                entry.init( bzb.getDriver() );
                entry.populate( result );
                listings.add( entry.getListing() );
            }
        } catch( SQLException e ) {

        }
View Full Code Here

Examples of business.SystemSetting.populate()

        try {
            while( result.next() ) {
                entry = new SystemSetting();
                entry.init( driver );
                entry.populate( result );
                getSettings().put( entry.getKey(), entry.getValue() );
            }
        } catch( SQLException e ) {

        }
View Full Code Here

Examples of business.User.populate()

            /* Make sure there's a result */
            if( result.next() ) {
                user = new User();

                user.init( bzb.getDriver() );
                user.populate( result );
            }
        } catch( SQLException e ) {

        }

View Full Code Here

Examples of business.User.populate()

        try {
            if( result.next() ) {
                user = new User();
                user.init( bzb.getDriver() );
                user.populate( result );
            }
        } catch( SQLException e ) {

        }
View Full Code Here

Examples of business.User.populate()

            /* Make sure there's a result */
            if( result.next() ) {
                user = new User();

                user.init( bzb.getDriver() );
                user.populate( result );
            }
        } catch( SQLException e ) {

        }

View Full Code Here

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

        ContestForm contestForm = (ContestForm) form;

        if (contestForm.getId() == null) {
            AbstractContest contest = context.getContest();
            contestForm.populate(contest);
            return this.handleSuccess(mapping, context);
        } else {
            ContestPersistence persistence = PersistenceManager.getInstance().getContestPersistence();
            AbstractContest contest = contestForm.toContest();
            persistence.updateContest(contest, context.getUserSecurity().getId());
View Full Code Here

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

        }

        ProblemForm problemForm = (ProblemForm) form;
        if (problemForm == null || problemForm.getName() == null) {
            Problem problem = context.getProblem();
            problemForm.populate(problem, context.getContest());
            this.setReference("DescriptionRef", ReferenceType.DESCRIPTION, problem.getId(), context);
            this.setReference("InputRef", ReferenceType.INPUT, problem.getId(), context);
            this.setReference("OutputRef", ReferenceType.OUTPUT, problem.getId(), context);
            this.setReference("JudgeSolutionRef", ReferenceType.JUDGE_SOLUTION, problem.getId(), context);
            this.setReference("HeaderRef", ReferenceType.HEADER, problem.getId(), context);
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.