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

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


            FinderCacheUtil.putResult(FINDER_PATH_COUNT_BY_TREEIDANDMAPKEY,
                args, Long.valueOf(1));
            FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_TREEIDANDMAPKEY,
                args, lfGlobalObjectiveState);
        } else {
            LFGlobalObjectiveStateModelImpl lfGlobalObjectiveStateModelImpl = (LFGlobalObjectiveStateModelImpl) lfGlobalObjectiveState;

            if ((lfGlobalObjectiveStateModelImpl.getColumnBitmask() &
                    FINDER_PATH_FETCH_BY_TREEIDANDMAPKEY.getColumnBitmask()) != 0) {
                Object[] args = new Object[] {
                        lfGlobalObjectiveState.getTreeID(),
                        lfGlobalObjectiveState.getMapKey()
                    };
View Full Code Here


        }
    }

    protected void clearUniqueFindersCache(
        LFGlobalObjectiveState lfGlobalObjectiveState) {
        LFGlobalObjectiveStateModelImpl lfGlobalObjectiveStateModelImpl = (LFGlobalObjectiveStateModelImpl) lfGlobalObjectiveState;

        Object[] args = new Object[] {
                lfGlobalObjectiveState.getTreeID(),
                lfGlobalObjectiveState.getMapKey()
            };

        FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_TREEIDANDMAPKEY, args);
        FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_TREEIDANDMAPKEY, args);

        if ((lfGlobalObjectiveStateModelImpl.getColumnBitmask() &
                FINDER_PATH_FETCH_BY_TREEIDANDMAPKEY.getColumnBitmask()) != 0) {
            args = new Object[] {
                    lfGlobalObjectiveStateModelImpl.getOriginalTreeID(),
                    lfGlobalObjectiveStateModelImpl.getOriginalMapKey()
                };

            FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_TREEIDANDMAPKEY,
                args);
            FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_TREEIDANDMAPKEY,
View Full Code Here

        throws SystemException {
        lfGlobalObjectiveState = toUnwrappedModel(lfGlobalObjectiveState);

        boolean isNew = lfGlobalObjectiveState.isNew();

        LFGlobalObjectiveStateModelImpl lfGlobalObjectiveStateModelImpl = (LFGlobalObjectiveStateModelImpl) lfGlobalObjectiveState;

        Session session = null;

        try {
            session = openSession();

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

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

        FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);

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

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

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

                FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_TREEID, args);
                FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_TREEID,
                    args);
            }
View Full Code Here

TOP

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

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.