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

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


        throws SystemException {
        lfTincanLrsAgentProfile = toUnwrappedModel(lfTincanLrsAgentProfile);

        boolean isNew = lfTincanLrsAgentProfile.isNew();

        LFTincanLrsAgentProfileModelImpl lfTincanLrsAgentProfileModelImpl = (LFTincanLrsAgentProfileModelImpl) lfTincanLrsAgentProfile;

        Session session = null;

        try {
            session = openSession();

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

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

        FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);

        if (isNew || !LFTincanLrsAgentProfileModelImpl.COLUMN_BITMASK_ENABLED) {
            FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
        }
        else {
            if ((lfTincanLrsAgentProfileModelImpl.getColumnBitmask() &
                    FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_PROFILEID.getColumnBitmask()) != 0) {
                Object[] args = new Object[] {
                        lfTincanLrsAgentProfileModelImpl.getOriginalProfileId()
                    };

                FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_PROFILEID,
                    args);
                FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_PROFILEID,
                    args);

                args = new Object[] {
                        lfTincanLrsAgentProfileModelImpl.getProfileId()
                    };

                FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_PROFILEID,
                    args);
                FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_PROFILEID,
                    args);
            }

            if ((lfTincanLrsAgentProfileModelImpl.getColumnBitmask() &
                    FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_AGENTID.getColumnBitmask()) != 0) {
                Object[] args = new Object[] {
                        lfTincanLrsAgentProfileModelImpl.getOriginalAgentId()
                    };

                FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_AGENTID, args);
                FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_AGENTID,
                    args);

                args = new Object[] {
                        lfTincanLrsAgentProfileModelImpl.getAgentId()
                    };

                FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_AGENTID, args);
                FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_AGENTID,
                    args);
View Full Code Here


            FinderCacheUtil.putResult(FINDER_PATH_COUNT_BY_AGENTIDANDPROFILEID,
                args, Long.valueOf(1));
            FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_AGENTIDANDPROFILEID,
                args, lfTincanLrsAgentProfile);
        } else {
            LFTincanLrsAgentProfileModelImpl lfTincanLrsAgentProfileModelImpl = (LFTincanLrsAgentProfileModelImpl) lfTincanLrsAgentProfile;

            if ((lfTincanLrsAgentProfileModelImpl.getColumnBitmask() &
                    FINDER_PATH_FETCH_BY_AGENTIDANDPROFILEID.getColumnBitmask()) != 0) {
                Object[] args = new Object[] {
                        lfTincanLrsAgentProfile.getAgentId(),
                        lfTincanLrsAgentProfile.getProfileId()
                    };
View Full Code Here

        }
    }

    protected void clearUniqueFindersCache(
        LFTincanLrsAgentProfile lfTincanLrsAgentProfile) {
        LFTincanLrsAgentProfileModelImpl lfTincanLrsAgentProfileModelImpl = (LFTincanLrsAgentProfileModelImpl) lfTincanLrsAgentProfile;

        Object[] args = new Object[] {
                lfTincanLrsAgentProfile.getAgentId(),
                lfTincanLrsAgentProfile.getProfileId()
            };

        FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_AGENTIDANDPROFILEID,
            args);
        FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_AGENTIDANDPROFILEID,
            args);

        if ((lfTincanLrsAgentProfileModelImpl.getColumnBitmask() &
                FINDER_PATH_FETCH_BY_AGENTIDANDPROFILEID.getColumnBitmask()) != 0) {
            args = new Object[] {
                    lfTincanLrsAgentProfileModelImpl.getOriginalAgentId(),
                    lfTincanLrsAgentProfileModelImpl.getOriginalProfileId()
                };

            FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_AGENTIDANDPROFILEID,
                args);
            FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_AGENTIDANDPROFILEID,
View Full Code Here

TOP

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

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.