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

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


        throws SystemException {
        lfActivityState = toUnwrappedModel(lfActivityState);

        boolean isNew = lfActivityState.isNew();

        LFActivityStateModelImpl lfActivityStateModelImpl = (LFActivityStateModelImpl) lfActivityState;

        Session session = null;

        try {
            session = openSession();

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

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

        FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);

        if (isNew || !LFActivityStateModelImpl.COLUMN_BITMASK_ENABLED) {
            FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
        }
        else {
            if ((lfActivityStateModelImpl.getColumnBitmask() &
                    FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_ACTIVITYSTATENODEIDACTIVITYID.getColumnBitmask()) != 0) {
                Object[] args = new Object[] {
                        lfActivityStateModelImpl.getOriginalActivityStateNodeID(),
                        lfActivityStateModelImpl.getOriginalActivityID()
                    };

                FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_ACTIVITYSTATENODEIDACTIVITYID,
                    args);
                FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_ACTIVITYSTATENODEIDACTIVITYID,
                    args);

                args = new Object[] {
                        lfActivityStateModelImpl.getActivityStateNodeID(),
                        lfActivityStateModelImpl.getActivityID()
                    };

                FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_ACTIVITYSTATENODEIDACTIVITYID,
                    args);
                FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_ACTIVITYSTATENODEIDACTIVITYID,
                    args);
            }

            if ((lfActivityStateModelImpl.getColumnBitmask() &
                    FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_ACTIDACTSTATENODEACTSTATETREE.getColumnBitmask()) != 0) {
                Object[] args = new Object[] {
                        lfActivityStateModelImpl.getOriginalActivityID(),
                        lfActivityStateModelImpl.getOriginalActivityStateNodeID(),
                        lfActivityStateModelImpl.getOriginalActivityStateTreeID()
                    };

                FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_ACTIDACTSTATENODEACTSTATETREE,
                    args);
                FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_ACTIDACTSTATENODEACTSTATETREE,
                    args);

                args = new Object[] {
                        lfActivityStateModelImpl.getActivityID(),
                        lfActivityStateModelImpl.getActivityStateNodeID(),
                        lfActivityStateModelImpl.getActivityStateTreeID()
                    };

                FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_ACTIDACTSTATENODEACTSTATETREE,
                    args);
                FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_ACTIDACTSTATENODEACTSTATETREE,
                    args);
            }

            if ((lfActivityStateModelImpl.getColumnBitmask() &
                    FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_ACTIVITYSTATENODEID.getColumnBitmask()) != 0) {
                Object[] args = new Object[] {
                        lfActivityStateModelImpl.getOriginalActivityStateNodeID()
                    };

                FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_ACTIVITYSTATENODEID,
                    args);
                FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_ACTIVITYSTATENODEID,
                    args);

                args = new Object[] {
                        lfActivityStateModelImpl.getActivityStateNodeID()
                    };

                FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_ACTIVITYSTATENODEID,
                    args);
                FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_ACTIVITYSTATENODEID,
View Full Code Here

TOP

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

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.