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

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


            FinderCacheUtil.putResult(FINDER_PATH_COUNT_BY_GRADE, args,
                Long.valueOf(1));
            FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_GRADE, args, lfCourse);
        } else {
            LFCourseModelImpl lfCourseModelImpl = (LFCourseModelImpl) lfCourse;

            if ((lfCourseModelImpl.getColumnBitmask() &
                    FINDER_PATH_FETCH_BY_COURSEIDANDUSERID.getColumnBitmask()) != 0) {
                Object[] args = new Object[] {
                        lfCourse.getCourseID(), lfCourse.getUserID()
                    };

                FinderCacheUtil.putResult(FINDER_PATH_COUNT_BY_COURSEIDANDUSERID,
                    args, Long.valueOf(1));
                FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_COURSEIDANDUSERID,
                    args, lfCourse);
            }

            if ((lfCourseModelImpl.getColumnBitmask() &
                    FINDER_PATH_FETCH_BY_GRADE.getColumnBitmask()) != 0) {
                Object[] args = new Object[] { lfCourse.getGrade() };

                FinderCacheUtil.putResult(FINDER_PATH_COUNT_BY_GRADE, args,
                    Long.valueOf(1));
View Full Code Here


            }
        }
    }

    protected void clearUniqueFindersCache(LFCourse lfCourse) {
        LFCourseModelImpl lfCourseModelImpl = (LFCourseModelImpl) lfCourse;

        Object[] args = new Object[] {
                lfCourse.getCourseID(), lfCourse.getUserID()
            };

        FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_COURSEIDANDUSERID,
            args);
        FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_COURSEIDANDUSERID,
            args);

        if ((lfCourseModelImpl.getColumnBitmask() &
                FINDER_PATH_FETCH_BY_COURSEIDANDUSERID.getColumnBitmask()) != 0) {
            args = new Object[] {
                    lfCourseModelImpl.getOriginalCourseID(),
                    lfCourseModelImpl.getOriginalUserID()
                };

            FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_COURSEIDANDUSERID,
                args);
            FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_COURSEIDANDUSERID,
                args);
        }

        args = new Object[] { lfCourse.getGrade() };

        FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_GRADE, args);
        FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_GRADE, args);

        if ((lfCourseModelImpl.getColumnBitmask() &
                FINDER_PATH_FETCH_BY_GRADE.getColumnBitmask()) != 0) {
            args = new Object[] { lfCourseModelImpl.getOriginalGrade() };

            FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_GRADE, args);
            FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_GRADE, args);
        }
    }
View Full Code Here

TOP

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

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.