Package easyJ.business.proxy

Examples of easyJ.business.proxy.SingleDataProxy.update()


                    finalsolution.setProblemsolutionId(pse
                            .getProblemsolutionId());
                    finalsolution = (Finalsolution) sdp.get(finalsolution);
                    finalsolution.setFinalgoodNum(new Long(finalsolution
                            .getFinalgoodNum().intValue() + 1));
                    sdp.update(finalsolution);
                    FinalsolutionEvaluation fse = new FinalsolutionEvaluation();
                    fse.setFinalsolutionId(finalsolution.getFinalsolutionId());
                    fse.setIsGood("Y");
                    sdp.create(fse);
                    xml
View Full Code Here


                    finalsolution.setProblemsolutionId(pse
                            .getProblemsolutionId());
                    finalsolution = (Finalsolution) sdp.get(finalsolution);
                    finalsolution.setFinalbadNum(new Long(finalsolution
                            .getFinalbadNum().intValue() + 1));
                    sdp.update(finalsolution);
                    FinalsolutionEvaluation fse = new FinalsolutionEvaluation();
                    fse.setFinalsolutionId(finalsolution.getFinalsolutionId());
                    fse.setIsGood("N");
                    sdp.create(fse);
                    xml
View Full Code Here

        try {
            if (request.getParameter("decision") != null) {
                if (request.getParameter("decision").equals("voting")) {
                    ps.setIsVoting("Y");
                    sdp.update(ps);

                } else if (request.getParameter("decision").equals("best")) {
                    ps.setIsVoting("C");
                    Finalsolution fs = new Finalsolution();
                    fs.setProblemId(ps.getProblemId());
View Full Code Here

                    fs.setProblemsolutionId(ps.getProblemsolutionId());
                    fs.setCreatorId(userId);
                    fs.setFinalgoodNum(new Long("0"));
                    fs.setFinalbadNum(new Long("0"));
                    sdp.create(fs);
                    sdp.update(ps);
                }

            }
        } catch (EasyJException e) {
            xml.append("<message>failure</message></result>");
View Full Code Here

        msg.setMessageId(messageId);
        msg = (Message) sdp.get(msg);
        if (msg.getIsRead().equals("N")) {

            msg.setIsRead("Y");
            sdp.update(msg);
        }
    }

    public void writeMessageToFriend() throws EasyJException {
        Message message = new Message();
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.