Package com.arcusys.learn.persistence.liferay.model.impl

Examples of com.arcusys.learn.persistence.liferay.model.impl.LFAnswerImpl


     * @param id the primary key for the new l f answer
     * @return the new l f answer
     */
    @Override
    public LFAnswer create(long id) {
        LFAnswer lfAnswer = new LFAnswerImpl();

        lfAnswer.setNew(true);
        lfAnswer.setPrimaryKey(id);

        return lfAnswer;
    }
View Full Code Here


    protected LFAnswer toUnwrappedModel(LFAnswer lfAnswer) {
        if (lfAnswer instanceof LFAnswerImpl) {
            return lfAnswer;
        }

        LFAnswerImpl lfAnswerImpl = new LFAnswerImpl();

        lfAnswerImpl.setNew(lfAnswer.isNew());
        lfAnswerImpl.setPrimaryKey(lfAnswer.getPrimaryKey());

        lfAnswerImpl.setId(lfAnswer.getId());
        lfAnswerImpl.setDescription(lfAnswer.getDescription());
        lfAnswerImpl.setCorrect(lfAnswer.isCorrect());
        lfAnswerImpl.setQuestionId(lfAnswer.getQuestionId());
        lfAnswerImpl.setRangeFrom(lfAnswer.getRangeFrom());
        lfAnswerImpl.setRangeTo(lfAnswer.getRangeTo());
        lfAnswerImpl.setMatchingText(lfAnswer.getMatchingText());
        lfAnswerImpl.setAnswerPosition(lfAnswer.getAnswerPosition());
        lfAnswerImpl.setAnswerType(lfAnswer.getAnswerType());

        return lfAnswerImpl;
    }
View Full Code Here

TOP

Related Classes of com.arcusys.learn.persistence.liferay.model.impl.LFAnswerImpl

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.