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

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


     * @param id the primary key for the new l f course
     * @return the new l f course
     */
    @Override
    public LFCourse create(long id) {
        LFCourse lfCourse = new LFCourseImpl();

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

        return lfCourse;
    }
View Full Code Here


    protected LFCourse toUnwrappedModel(LFCourse lfCourse) {
        if (lfCourse instanceof LFCourseImpl) {
            return lfCourse;
        }

        LFCourseImpl lfCourseImpl = new LFCourseImpl();

        lfCourseImpl.setNew(lfCourse.isNew());
        lfCourseImpl.setPrimaryKey(lfCourse.getPrimaryKey());

        lfCourseImpl.setId(lfCourse.getId());
        lfCourseImpl.setCourseID(lfCourse.getCourseID());
        lfCourseImpl.setUserID(lfCourse.getUserID());
        lfCourseImpl.setGrade(lfCourse.getGrade());
        lfCourseImpl.setComment(lfCourse.getComment());
        lfCourseImpl.setDate(lfCourse.getDate());

        return lfCourseImpl;
    }
View Full Code Here

TOP

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

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.