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

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


            FinderCacheUtil.putResult(FINDER_PATH_COUNT_BY_PACKAGEANDID, args,
                Long.valueOf(1));
            FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_PACKAGEANDID, args,
                lfActivity);
        } else {
            LFActivityModelImpl lfActivityModelImpl = (LFActivityModelImpl) lfActivity;

            if ((lfActivityModelImpl.getColumnBitmask() &
                    FINDER_PATH_FETCH_BY_PACKAGEANDID.getColumnBitmask()) != 0) {
                Object[] args = new Object[] {
                        lfActivity.getPackageID(), lfActivity.getId()
                    };
View Full Code Here


            }
        }
    }

    protected void clearUniqueFindersCache(LFActivity lfActivity) {
        LFActivityModelImpl lfActivityModelImpl = (LFActivityModelImpl) lfActivity;

        Object[] args = new Object[] {
                lfActivity.getPackageID(), lfActivity.getId()
            };

        FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_PACKAGEANDID, args);
        FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_PACKAGEANDID, args);

        if ((lfActivityModelImpl.getColumnBitmask() &
                FINDER_PATH_FETCH_BY_PACKAGEANDID.getColumnBitmask()) != 0) {
            args = new Object[] {
                    lfActivityModelImpl.getOriginalPackageID(),
                    lfActivityModelImpl.getOriginalId()
                };

            FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_PACKAGEANDID, args);
            FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_PACKAGEANDID, args);
        }
View Full Code Here

        throws SystemException {
        lfActivity = toUnwrappedModel(lfActivity);

        boolean isNew = lfActivity.isNew();

        LFActivityModelImpl lfActivityModelImpl = (LFActivityModelImpl) lfActivity;

        Session session = null;

        try {
            session = openSession();

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

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

        FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);

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

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

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

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

            if ((lfActivityModelImpl.getColumnBitmask() &
                    FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_PACKAGEIDANDORGANIZATIONID.getColumnBitmask()) != 0) {
                Object[] args = new Object[] {
                        lfActivityModelImpl.getOriginalPackageID(),
                        lfActivityModelImpl.getOriginalOrganizationID()
                    };

                FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_PACKAGEIDANDORGANIZATIONID,
                    args);
                FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_PACKAGEIDANDORGANIZATIONID,
                    args);

                args = new Object[] {
                        lfActivityModelImpl.getPackageID(),
                        lfActivityModelImpl.getOrganizationID()
                    };

                FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_PACKAGEIDANDORGANIZATIONID,
                    args);
                FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_PACKAGEIDANDORGANIZATIONID,
                    args);
            }

            if ((lfActivityModelImpl.getColumnBitmask() &
                    FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_PACKAGEIDANDPARENTID.getColumnBitmask()) != 0) {
                Object[] args = new Object[] {
                        lfActivityModelImpl.getOriginalPackageID(),
                        lfActivityModelImpl.getOriginalParentID()
                    };

                FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_PACKAGEIDANDPARENTID,
                    args);
                FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_PACKAGEIDANDPARENTID,
                    args);

                args = new Object[] {
                        lfActivityModelImpl.getPackageID(),
                        lfActivityModelImpl.getParentID()
                    };

                FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_PACKAGEIDANDPARENTID,
                    args);
                FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_PACKAGEIDANDPARENTID,
View Full Code Here

TOP

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

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.