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

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


            FinderCacheUtil.putResult(FINDER_PATH_COUNT_BY_CERTIFICATEIDANDACTIVITYNAME,
                args, Long.valueOf(1));
            FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_CERTIFICATEIDANDACTIVITYNAME,
                args, lfCertificateActivity);
        } else {
            LFCertificateActivityModelImpl lfCertificateActivityModelImpl = (LFCertificateActivityModelImpl) lfCertificateActivity;

            if ((lfCertificateActivityModelImpl.getColumnBitmask() &
                    FINDER_PATH_FETCH_BY_CERTIFICATEIDANDACTIVITYNAME.getColumnBitmask()) != 0) {
                Object[] args = new Object[] {
                        lfCertificateActivity.getCertificateID(),
                        lfCertificateActivity.getActivityName()
                    };
View Full Code Here


        }
    }

    protected void clearUniqueFindersCache(
        LFCertificateActivity lfCertificateActivity) {
        LFCertificateActivityModelImpl lfCertificateActivityModelImpl = (LFCertificateActivityModelImpl) lfCertificateActivity;

        Object[] args = new Object[] {
                lfCertificateActivity.getCertificateID(),
                lfCertificateActivity.getActivityName()
            };

        FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_CERTIFICATEIDANDACTIVITYNAME,
            args);
        FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_CERTIFICATEIDANDACTIVITYNAME,
            args);

        if ((lfCertificateActivityModelImpl.getColumnBitmask() &
                FINDER_PATH_FETCH_BY_CERTIFICATEIDANDACTIVITYNAME.getColumnBitmask()) != 0) {
            args = new Object[] {
                    lfCertificateActivityModelImpl.getOriginalCertificateID(),
                    lfCertificateActivityModelImpl.getOriginalActivityName()
                };

            FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_CERTIFICATEIDANDACTIVITYNAME,
                args);
            FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_CERTIFICATEIDANDACTIVITYNAME,
View Full Code Here

        throws SystemException {
        lfCertificateActivity = toUnwrappedModel(lfCertificateActivity);

        boolean isNew = lfCertificateActivity.isNew();

        LFCertificateActivityModelImpl lfCertificateActivityModelImpl = (LFCertificateActivityModelImpl) lfCertificateActivity;

        Session session = null;

        try {
            session = openSession();

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

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

        FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);

        if (isNew || !LFCertificateActivityModelImpl.COLUMN_BITMASK_ENABLED) {
            FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
        }
        else {
            if ((lfCertificateActivityModelImpl.getColumnBitmask() &
                    FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_CERTIFICATEID.getColumnBitmask()) != 0) {
                Object[] args = new Object[] {
                        lfCertificateActivityModelImpl.getOriginalCertificateID()
                    };

                FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_CERTIFICATEID,
                    args);
                FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_CERTIFICATEID,
                    args);

                args = new Object[] {
                        lfCertificateActivityModelImpl.getCertificateID()
                    };

                FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_CERTIFICATEID,
                    args);
                FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_CERTIFICATEID,
                    args);
            }

            if ((lfCertificateActivityModelImpl.getColumnBitmask() &
                    FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_ACTIVITYNAME.getColumnBitmask()) != 0) {
                Object[] args = new Object[] {
                        lfCertificateActivityModelImpl.getOriginalActivityName()
                    };

                FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_ACTIVITYNAME,
                    args);
                FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_ACTIVITYNAME,
                    args);

                args = new Object[] {
                        lfCertificateActivityModelImpl.getActivityName()
                    };

                FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_ACTIVITYNAME,
                    args);
                FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_ACTIVITYNAME,
View Full Code Here

TOP

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

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.