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

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


            FinderCacheUtil.putResult(FINDER_PATH_COUNT_BY_STATEDOCUMENT, args,
                Long.valueOf(1));
            FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_STATEDOCUMENT, args,
                lfTincanLrsState);
        } else {
            LFTincanLrsStateModelImpl lfTincanLrsStateModelImpl = (LFTincanLrsStateModelImpl) lfTincanLrsState;

            if ((lfTincanLrsStateModelImpl.getColumnBitmask() &
                    FINDER_PATH_FETCH_BY_STATEDOCUMENT.getColumnBitmask()) != 0) {
                Object[] args = new Object[] {
                        lfTincanLrsState.getActivityId(),
                        lfTincanLrsState.getStateId(),
                        lfTincanLrsState.getAgentId(),
View Full Code Here


            }
        }
    }

    protected void clearUniqueFindersCache(LFTincanLrsState lfTincanLrsState) {
        LFTincanLrsStateModelImpl lfTincanLrsStateModelImpl = (LFTincanLrsStateModelImpl) lfTincanLrsState;

        Object[] args = new Object[] {
                lfTincanLrsState.getActivityId(), lfTincanLrsState.getStateId(),
                lfTincanLrsState.getAgentId(),
                lfTincanLrsState.getRegistration()
            };

        FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_STATEDOCUMENT, args);
        FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_STATEDOCUMENT, args);

        if ((lfTincanLrsStateModelImpl.getColumnBitmask() &
                FINDER_PATH_FETCH_BY_STATEDOCUMENT.getColumnBitmask()) != 0) {
            args = new Object[] {
                    lfTincanLrsStateModelImpl.getOriginalActivityId(),
                    lfTincanLrsStateModelImpl.getOriginalStateId(),
                    lfTincanLrsStateModelImpl.getOriginalAgentId(),
                    lfTincanLrsStateModelImpl.getOriginalRegistration()
                };

            FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_STATEDOCUMENT,
                args);
            FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_STATEDOCUMENT,
View Full Code Here

        throws SystemException {
        lfTincanLrsState = toUnwrappedModel(lfTincanLrsState);

        boolean isNew = lfTincanLrsState.isNew();

        LFTincanLrsStateModelImpl lfTincanLrsStateModelImpl = (LFTincanLrsStateModelImpl) lfTincanLrsState;

        Session session = null;

        try {
            session = openSession();

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

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

        FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);

        if (isNew || !LFTincanLrsStateModelImpl.COLUMN_BITMASK_ENABLED) {
            FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
        }
        else {
            if ((lfTincanLrsStateModelImpl.getColumnBitmask() &
                    FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_ACTIVITYID.getColumnBitmask()) != 0) {
                Object[] args = new Object[] {
                        lfTincanLrsStateModelImpl.getOriginalActivityId()
                    };

                FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_ACTIVITYID,
                    args);
                FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_ACTIVITYID,
                    args);

                args = new Object[] { lfTincanLrsStateModelImpl.getActivityId() };

                FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_ACTIVITYID,
                    args);
                FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_ACTIVITYID,
                    args);
            }

            if ((lfTincanLrsStateModelImpl.getColumnBitmask() &
                    FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_ACTIVITYIDANDSTATEID.getColumnBitmask()) != 0) {
                Object[] args = new Object[] {
                        lfTincanLrsStateModelImpl.getOriginalActivityId(),
                        lfTincanLrsStateModelImpl.getOriginalStateId()
                    };

                FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_ACTIVITYIDANDSTATEID,
                    args);
                FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_ACTIVITYIDANDSTATEID,
                    args);

                args = new Object[] {
                        lfTincanLrsStateModelImpl.getActivityId(),
                        lfTincanLrsStateModelImpl.getStateId()
                    };

                FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_ACTIVITYIDANDSTATEID,
                    args);
                FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_ACTIVITYIDANDSTATEID,
                    args);
            }

            if ((lfTincanLrsStateModelImpl.getColumnBitmask() &
                    FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_ACTIVITYIDANDAGENTID.getColumnBitmask()) != 0) {
                Object[] args = new Object[] {
                        lfTincanLrsStateModelImpl.getOriginalActivityId(),
                        lfTincanLrsStateModelImpl.getOriginalAgentId()
                    };

                FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_ACTIVITYIDANDAGENTID,
                    args);
                FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_ACTIVITYIDANDAGENTID,
                    args);

                args = new Object[] {
                        lfTincanLrsStateModelImpl.getActivityId(),
                        lfTincanLrsStateModelImpl.getAgentId()
                    };

                FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_ACTIVITYIDANDAGENTID,
                    args);
                FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_ACTIVITYIDANDAGENTID,
View Full Code Here

TOP

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

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.