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

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


            FinderCacheUtil.putResult(FINDER_PATH_COUNT_BY_TINCANID, args,
                Long.valueOf(1));
            FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_TINCANID, args,
                lfTincanActivity);
        } else {
            LFTincanActivityModelImpl lfTincanActivityModelImpl = (LFTincanActivityModelImpl) lfTincanActivity;

            if ((lfTincanActivityModelImpl.getColumnBitmask() &
                    FINDER_PATH_FETCH_BY_TINCANID.getColumnBitmask()) != 0) {
                Object[] args = new Object[] { lfTincanActivity.getTincanID() };

                FinderCacheUtil.putResult(FINDER_PATH_COUNT_BY_TINCANID, args,
                    Long.valueOf(1));
View Full Code Here


            }
        }
    }

    protected void clearUniqueFindersCache(LFTincanActivity lfTincanActivity) {
        LFTincanActivityModelImpl lfTincanActivityModelImpl = (LFTincanActivityModelImpl) lfTincanActivity;

        Object[] args = new Object[] { lfTincanActivity.getTincanID() };

        FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_TINCANID, args);
        FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_TINCANID, args);

        if ((lfTincanActivityModelImpl.getColumnBitmask() &
                FINDER_PATH_FETCH_BY_TINCANID.getColumnBitmask()) != 0) {
            args = new Object[] { lfTincanActivityModelImpl.getOriginalTincanID() };

            FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_TINCANID, args);
            FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_TINCANID, args);
        }
    }
View Full Code Here

        throws SystemException {
        lfTincanActivity = toUnwrappedModel(lfTincanActivity);

        boolean isNew = lfTincanActivity.isNew();

        LFTincanActivityModelImpl lfTincanActivityModelImpl = (LFTincanActivityModelImpl) lfTincanActivity;

        Session session = null;

        try {
            session = openSession();

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

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

        FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);

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

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

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

                FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_PACKAGEID,
                    args);
                FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_PACKAGEID,
                    args);
View Full Code Here

TOP

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

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.