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

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


            FinderCacheUtil.putResult(FINDER_PATH_COUNT_BY_QUIZANDELEMENTID,
                args, Long.valueOf(1));
            FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_QUIZANDELEMENTID,
                args, lfQuizTreeElement);
        } else {
            LFQuizTreeElementModelImpl lfQuizTreeElementModelImpl = (LFQuizTreeElementModelImpl) lfQuizTreeElement;

            if ((lfQuizTreeElementModelImpl.getColumnBitmask() &
                    FINDER_PATH_FETCH_BY_QUIZANDELEMENTID.getColumnBitmask()) != 0) {
                Object[] args = new Object[] {
                        lfQuizTreeElement.getQuizID(),
                        lfQuizTreeElement.getElementID()
                    };
View Full Code Here


            }
        }
    }

    protected void clearUniqueFindersCache(LFQuizTreeElement lfQuizTreeElement) {
        LFQuizTreeElementModelImpl lfQuizTreeElementModelImpl = (LFQuizTreeElementModelImpl) lfQuizTreeElement;

        Object[] args = new Object[] {
                lfQuizTreeElement.getQuizID(), lfQuizTreeElement.getElementID()
            };

        FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_QUIZANDELEMENTID, args);
        FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_QUIZANDELEMENTID, args);

        if ((lfQuizTreeElementModelImpl.getColumnBitmask() &
                FINDER_PATH_FETCH_BY_QUIZANDELEMENTID.getColumnBitmask()) != 0) {
            args = new Object[] {
                    lfQuizTreeElementModelImpl.getOriginalQuizID(),
                    lfQuizTreeElementModelImpl.getOriginalElementID()
                };

            FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_QUIZANDELEMENTID,
                args);
            FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_QUIZANDELEMENTID,
View Full Code Here

        throws SystemException {
        lfQuizTreeElement = toUnwrappedModel(lfQuizTreeElement);

        boolean isNew = lfQuizTreeElement.isNew();

        LFQuizTreeElementModelImpl lfQuizTreeElementModelImpl = (LFQuizTreeElementModelImpl) lfQuizTreeElement;

        Session session = null;

        try {
            session = openSession();

            if (lfQuizTreeElement.isNew()) {
                session.save(lfQuizTreeElement);

                lfQuizTreeElement.setNew(false);
            } else {
                session.merge(lfQuizTreeElement);
            }
        } catch (Exception e) {
            throw processException(e);
        } finally {
            closeSession(session);
        }

        FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);

        if (isNew || !LFQuizTreeElementModelImpl.COLUMN_BITMASK_ENABLED) {
            FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
        }
        else {
            if ((lfQuizTreeElementModelImpl.getColumnBitmask() &
                    FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_QUIZID.getColumnBitmask()) != 0) {
                Object[] args = new Object[] {
                        lfQuizTreeElementModelImpl.getOriginalQuizID()
                    };

                FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_QUIZID, args);
                FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_QUIZID,
                    args);

                args = new Object[] { lfQuizTreeElementModelImpl.getQuizID() };

                FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_QUIZID, args);
                FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_QUIZID,
                    args);
            }
View Full Code Here

TOP

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

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.