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

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


            FinderCacheUtil.putResult(FINDER_PATH_COUNT_BY_PACKAGEIDANDSCOPE,
                args, Long.valueOf(1));
            FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_PACKAGEIDANDSCOPE,
                args, lfPackageScopeRule);
        } else {
            LFPackageScopeRuleModelImpl lfPackageScopeRuleModelImpl = (LFPackageScopeRuleModelImpl) lfPackageScopeRule;

            if ((lfPackageScopeRuleModelImpl.getColumnBitmask() &
                    FINDER_PATH_FETCH_BY_SCOPEANDISDEFAULT.getColumnBitmask()) != 0) {
                Object[] args = new Object[] {
                        lfPackageScopeRule.getScope(),
                        lfPackageScopeRule.getScopeID(),
                        lfPackageScopeRule.getIsDefault()
                    };

                FinderCacheUtil.putResult(FINDER_PATH_COUNT_BY_SCOPEANDISDEFAULT,
                    args, Long.valueOf(1));
                FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_SCOPEANDISDEFAULT,
                    args, lfPackageScopeRule);
            }

            if ((lfPackageScopeRuleModelImpl.getColumnBitmask() &
                    FINDER_PATH_FETCH_BY_PACKAGEIDANDSCOPE.getColumnBitmask()) != 0) {
                Object[] args = new Object[] {
                        lfPackageScopeRule.getPackageID(),
                        lfPackageScopeRule.getScope(),
                        lfPackageScopeRule.getScopeID()
View Full Code Here


        }
    }

    protected void clearUniqueFindersCache(
        LFPackageScopeRule lfPackageScopeRule) {
        LFPackageScopeRuleModelImpl lfPackageScopeRuleModelImpl = (LFPackageScopeRuleModelImpl) lfPackageScopeRule;

        Object[] args = new Object[] {
                lfPackageScopeRule.getScope(), lfPackageScopeRule.getScopeID(),
                lfPackageScopeRule.getIsDefault()
            };

        FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_SCOPEANDISDEFAULT,
            args);
        FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_SCOPEANDISDEFAULT,
            args);

        if ((lfPackageScopeRuleModelImpl.getColumnBitmask() &
                FINDER_PATH_FETCH_BY_SCOPEANDISDEFAULT.getColumnBitmask()) != 0) {
            args = new Object[] {
                    lfPackageScopeRuleModelImpl.getOriginalScope(),
                    lfPackageScopeRuleModelImpl.getOriginalScopeID(),
                    lfPackageScopeRuleModelImpl.getOriginalIsDefault()
                };

            FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_SCOPEANDISDEFAULT,
                args);
            FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_SCOPEANDISDEFAULT,
                args);
        }

        args = new Object[] {
                lfPackageScopeRule.getPackageID(), lfPackageScopeRule.getScope(),
                lfPackageScopeRule.getScopeID()
            };

        FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_PACKAGEIDANDSCOPE,
            args);
        FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_PACKAGEIDANDSCOPE,
            args);

        if ((lfPackageScopeRuleModelImpl.getColumnBitmask() &
                FINDER_PATH_FETCH_BY_PACKAGEIDANDSCOPE.getColumnBitmask()) != 0) {
            args = new Object[] {
                    lfPackageScopeRuleModelImpl.getOriginalPackageID(),
                    lfPackageScopeRuleModelImpl.getOriginalScope(),
                    lfPackageScopeRuleModelImpl.getOriginalScopeID()
                };

            FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_PACKAGEIDANDSCOPE,
                args);
            FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_PACKAGEIDANDSCOPE,
View Full Code Here

        throws SystemException {
        lfPackageScopeRule = toUnwrappedModel(lfPackageScopeRule);

        boolean isNew = lfPackageScopeRule.isNew();

        LFPackageScopeRuleModelImpl lfPackageScopeRuleModelImpl = (LFPackageScopeRuleModelImpl) lfPackageScopeRule;

        Session session = null;

        try {
            session = openSession();

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

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

        FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);

        if (isNew || !LFPackageScopeRuleModelImpl.COLUMN_BITMASK_ENABLED) {
            FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
        }
        else {
            if ((lfPackageScopeRuleModelImpl.getColumnBitmask() &
                    FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_PACKAGEID.getColumnBitmask()) != 0) {
                Object[] args = new Object[] {
                        lfPackageScopeRuleModelImpl.getOriginalPackageID()
                    };

                FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_PACKAGEID,
                    args);
                FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_PACKAGEID,
                    args);

                args = new Object[] { lfPackageScopeRuleModelImpl.getPackageID() };

                FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_PACKAGEID,
                    args);
                FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_PACKAGEID,
                    args);
            }

            if ((lfPackageScopeRuleModelImpl.getColumnBitmask() &
                    FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_SCOPE.getColumnBitmask()) != 0) {
                Object[] args = new Object[] {
                        lfPackageScopeRuleModelImpl.getOriginalScope(),
                        lfPackageScopeRuleModelImpl.getOriginalScopeID()
                    };

                FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_SCOPE, args);
                FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_SCOPE,
                    args);

                args = new Object[] {
                        lfPackageScopeRuleModelImpl.getScope(),
                        lfPackageScopeRuleModelImpl.getScopeID()
                    };

                FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_SCOPE, args);
                FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_SCOPE,
                    args);
            }

            if ((lfPackageScopeRuleModelImpl.getColumnBitmask() &
                    FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_ALLBYPACKAGEIDANDSCOPE.getColumnBitmask()) != 0) {
                Object[] args = new Object[] {
                        lfPackageScopeRuleModelImpl.getOriginalPackageID(),
                        lfPackageScopeRuleModelImpl.getOriginalScope(),
                        lfPackageScopeRuleModelImpl.getOriginalScopeID()
                    };

                FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_ALLBYPACKAGEIDANDSCOPE,
                    args);
                FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_ALLBYPACKAGEIDANDSCOPE,
                    args);

                args = new Object[] {
                        lfPackageScopeRuleModelImpl.getPackageID(),
                        lfPackageScopeRuleModelImpl.getScope(),
                        lfPackageScopeRuleModelImpl.getScopeID()
                    };

                FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_ALLBYPACKAGEIDANDSCOPE,
                    args);
                FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_ALLBYPACKAGEIDANDSCOPE,
                    args);
            }

            if ((lfPackageScopeRuleModelImpl.getColumnBitmask() &
                    FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_VISIBILITY.getColumnBitmask()) != 0) {
                Object[] args = new Object[] {
                        lfPackageScopeRuleModelImpl.getOriginalScope(),
                        lfPackageScopeRuleModelImpl.getOriginalScopeID(),
                        lfPackageScopeRuleModelImpl.getOriginalVisibility()
                    };

                FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_VISIBILITY,
                    args);
                FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_VISIBILITY,
                    args);

                args = new Object[] {
                        lfPackageScopeRuleModelImpl.getScope(),
                        lfPackageScopeRuleModelImpl.getScopeID(),
                        lfPackageScopeRuleModelImpl.getVisibility()
                    };

                FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_VISIBILITY,
                    args);
                FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_VISIBILITY,
View Full Code Here

TOP

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

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.