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

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


        throws SystemException {
        lfQuizQuestionCategory = toUnwrappedModel(lfQuizQuestionCategory);

        boolean isNew = lfQuizQuestionCategory.isNew();

        LFQuizQuestionCategoryModelImpl lfQuizQuestionCategoryModelImpl = (LFQuizQuestionCategoryModelImpl) lfQuizQuestionCategory;

        Session session = null;

        try {
            session = openSession();

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

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

        FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);

        if (isNew || !LFQuizQuestionCategoryModelImpl.COLUMN_BITMASK_ENABLED) {
            FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
        }
        else {
            if ((lfQuizQuestionCategoryModelImpl.getColumnBitmask() &
                    FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_QUIZIDANDPARENTID.getColumnBitmask()) != 0) {
                Object[] args = new Object[] {
                        lfQuizQuestionCategoryModelImpl.getOriginalQuizId(),
                        lfQuizQuestionCategoryModelImpl.getOriginalParentId()
                    };

                FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_QUIZIDANDPARENTID,
                    args);
                FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_QUIZIDANDPARENTID,
                    args);

                args = new Object[] {
                        lfQuizQuestionCategoryModelImpl.getQuizId(),
                        lfQuizQuestionCategoryModelImpl.getParentId()
                    };

                FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_QUIZIDANDPARENTID,
                    args);
                FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_QUIZIDANDPARENTID,
                    args);
            }

            if ((lfQuizQuestionCategoryModelImpl.getColumnBitmask() &
                    FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_QUIZID.getColumnBitmask()) != 0) {
                Object[] args = new Object[] {
                        lfQuizQuestionCategoryModelImpl.getOriginalQuizId()
                    };

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

                args = new Object[] { lfQuizQuestionCategoryModelImpl.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.LFQuizQuestionCategoryModelImpl

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.