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

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


        throws SystemException {
        lfActivityStateNode = toUnwrappedModel(lfActivityStateNode);

        boolean isNew = lfActivityStateNode.isNew();

        LFActivityStateNodeModelImpl lfActivityStateNodeModelImpl = (LFActivityStateNodeModelImpl) lfActivityStateNode;

        Session session = null;

        try {
            session = openSession();

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

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

        FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);

        if (isNew || !LFActivityStateNodeModelImpl.COLUMN_BITMASK_ENABLED) {
            FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
        }
        else {
            if ((lfActivityStateNodeModelImpl.getColumnBitmask() &
                    FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_TREEID.getColumnBitmask()) != 0) {
                Object[] args = new Object[] {
                        lfActivityStateNodeModelImpl.getOriginalTreeID()
                    };

                FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_TREEID, args);
                FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_TREEID,
                    args);

                args = new Object[] { lfActivityStateNodeModelImpl.getTreeID() };

                FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_TREEID, args);
                FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_TREEID,
                    args);
            }

            if ((lfActivityStateNodeModelImpl.getColumnBitmask() &
                    FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_TREEIDANDPARENTID.getColumnBitmask()) != 0) {
                Object[] args = new Object[] {
                        lfActivityStateNodeModelImpl.getOriginalTreeID(),
                        lfActivityStateNodeModelImpl.getOriginalParentID()
                    };

                FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_TREEIDANDPARENTID,
                    args);
                FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_TREEIDANDPARENTID,
                    args);

                args = new Object[] {
                        lfActivityStateNodeModelImpl.getTreeID(),
                        lfActivityStateNodeModelImpl.getParentID()
                    };

                FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_TREEIDANDPARENTID,
                    args);
                FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_TREEIDANDPARENTID,
View Full Code Here

TOP

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

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.