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

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


        throws SystemException {
        lfActivityDataMap = toUnwrappedModel(lfActivityDataMap);

        boolean isNew = lfActivityDataMap.isNew();

        LFActivityDataMapModelImpl lfActivityDataMapModelImpl = (LFActivityDataMapModelImpl) lfActivityDataMap;

        Session session = null;

        try {
            session = openSession();

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

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

        FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);

        if (isNew || !LFActivityDataMapModelImpl.COLUMN_BITMASK_ENABLED) {
            FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
        }
        else {
            if ((lfActivityDataMapModelImpl.getColumnBitmask() &
                    FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_PACKAGEIDANDACTIVITYID.getColumnBitmask()) != 0) {
                Object[] args = new Object[] {
                        lfActivityDataMapModelImpl.getOriginalPackageID(),
                        lfActivityDataMapModelImpl.getOriginalActivityID()
                    };

                FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_PACKAGEIDANDACTIVITYID,
                    args);
                FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_PACKAGEIDANDACTIVITYID,
                    args);

                args = new Object[] {
                        lfActivityDataMapModelImpl.getPackageID(),
                        lfActivityDataMapModelImpl.getActivityID()
                    };

                FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_PACKAGEIDANDACTIVITYID,
                    args);
                FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_PACKAGEIDANDACTIVITYID,
View Full Code Here

TOP

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

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.