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

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


            FinderCacheUtil.putResult(FINDER_PATH_COUNT_BY_MAPKEYANDACTIVITYSTATEID,
                args, Long.valueOf(1));
            FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_MAPKEYANDACTIVITYSTATEID,
                args, lfObjectiveState);
        } else {
            LFObjectiveStateModelImpl lfObjectiveStateModelImpl = (LFObjectiveStateModelImpl) lfObjectiveState;

            if ((lfObjectiveStateModelImpl.getColumnBitmask() &
                    FINDER_PATH_FETCH_BY_MAPKEYANDACTIVITYSTATEID.getColumnBitmask()) != 0) {
                Object[] args = new Object[] {
                        lfObjectiveState.getMapKey(),
                        lfObjectiveState.getActivityStateID()
                    };
View Full Code Here


            }
        }
    }

    protected void clearUniqueFindersCache(LFObjectiveState lfObjectiveState) {
        LFObjectiveStateModelImpl lfObjectiveStateModelImpl = (LFObjectiveStateModelImpl) lfObjectiveState;

        Object[] args = new Object[] {
                lfObjectiveState.getMapKey(),
                lfObjectiveState.getActivityStateID()
            };

        FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_MAPKEYANDACTIVITYSTATEID,
            args);
        FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_MAPKEYANDACTIVITYSTATEID,
            args);

        if ((lfObjectiveStateModelImpl.getColumnBitmask() &
                FINDER_PATH_FETCH_BY_MAPKEYANDACTIVITYSTATEID.getColumnBitmask()) != 0) {
            args = new Object[] {
                    lfObjectiveStateModelImpl.getOriginalMapKey(),
                    lfObjectiveStateModelImpl.getOriginalActivityStateID()
                };

            FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_MAPKEYANDACTIVITYSTATEID,
                args);
            FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_MAPKEYANDACTIVITYSTATEID,
View Full Code Here

        throws SystemException {
        lfObjectiveState = toUnwrappedModel(lfObjectiveState);

        boolean isNew = lfObjectiveState.isNew();

        LFObjectiveStateModelImpl lfObjectiveStateModelImpl = (LFObjectiveStateModelImpl) lfObjectiveState;

        Session session = null;

        try {
            session = openSession();

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

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

        FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);

        if (isNew || !LFObjectiveStateModelImpl.COLUMN_BITMASK_ENABLED) {
            FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
        }
        else {
            if ((lfObjectiveStateModelImpl.getColumnBitmask() &
                    FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_ACTIVITYSTATEID.getColumnBitmask()) != 0) {
                Object[] args = new Object[] {
                        lfObjectiveStateModelImpl.getOriginalActivityStateID()
                    };

                FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_ACTIVITYSTATEID,
                    args);
                FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_ACTIVITYSTATEID,
                    args);

                args = new Object[] {
                        lfObjectiveStateModelImpl.getActivityStateID()
                    };

                FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_ACTIVITYSTATEID,
                    args);
                FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_ACTIVITYSTATEID,
View Full Code Here

TOP

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

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.