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

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


            FinderCacheUtil.putResult(FINDER_PATH_COUNT_BY_ACTIVITYIDANDPROFILEID,
                args, Long.valueOf(1));
            FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_ACTIVITYIDANDPROFILEID,
                args, lfTincanActProfile);
        } else {
            LFTincanActProfileModelImpl lfTincanActProfileModelImpl = (LFTincanActProfileModelImpl) lfTincanActProfile;

            if ((lfTincanActProfileModelImpl.getColumnBitmask() &
                    FINDER_PATH_FETCH_BY_ACTIVITYIDANDPROFILEID.getColumnBitmask()) != 0) {
                Object[] args = new Object[] {
                        lfTincanActProfile.getActivityId(),
                        lfTincanActProfile.getProfileId()
                    };
View Full Code Here


        }
    }

    protected void clearUniqueFindersCache(
        LFTincanActProfile lfTincanActProfile) {
        LFTincanActProfileModelImpl lfTincanActProfileModelImpl = (LFTincanActProfileModelImpl) lfTincanActProfile;

        Object[] args = new Object[] {
                lfTincanActProfile.getActivityId(),
                lfTincanActProfile.getProfileId()
            };

        FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_ACTIVITYIDANDPROFILEID,
            args);
        FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_ACTIVITYIDANDPROFILEID,
            args);

        if ((lfTincanActProfileModelImpl.getColumnBitmask() &
                FINDER_PATH_FETCH_BY_ACTIVITYIDANDPROFILEID.getColumnBitmask()) != 0) {
            args = new Object[] {
                    lfTincanActProfileModelImpl.getOriginalActivityId(),
                    lfTincanActProfileModelImpl.getOriginalProfileId()
                };

            FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_ACTIVITYIDANDPROFILEID,
                args);
            FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_ACTIVITYIDANDPROFILEID,
View Full Code Here

        throws SystemException {
        lfTincanActProfile = toUnwrappedModel(lfTincanActProfile);

        boolean isNew = lfTincanActProfile.isNew();

        LFTincanActProfileModelImpl lfTincanActProfileModelImpl = (LFTincanActProfileModelImpl) lfTincanActProfile;

        Session session = null;

        try {
            session = openSession();

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

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

        FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);

        if (isNew || !LFTincanActProfileModelImpl.COLUMN_BITMASK_ENABLED) {
            FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
        }
        else {
            if ((lfTincanActProfileModelImpl.getColumnBitmask() &
                    FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_ACTIVITYID.getColumnBitmask()) != 0) {
                Object[] args = new Object[] {
                        lfTincanActProfileModelImpl.getOriginalActivityId()
                    };

                FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_ACTIVITYID,
                    args);
                FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_ACTIVITYID,
                    args);

                args = new Object[] { lfTincanActProfileModelImpl.getActivityId() };

                FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_ACTIVITYID,
                    args);
                FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_ACTIVITYID,
                    args);
View Full Code Here

TOP

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

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.