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

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


            FinderCacheUtil.putResult(FINDER_PATH_COUNT_BY_TINCANID, args,
                Long.valueOf(1));
            FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_TINCANID, args,
                lfTincanManifestAct);
        } else {
            LFTincanManifestActModelImpl lfTincanManifestActModelImpl = (LFTincanManifestActModelImpl) lfTincanManifestAct;

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

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


        }
    }

    protected void clearUniqueFindersCache(
        LFTincanManifestAct lfTincanManifestAct) {
        LFTincanManifestActModelImpl lfTincanManifestActModelImpl = (LFTincanManifestActModelImpl) lfTincanManifestAct;

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

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

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

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

        throws SystemException {
        lfTincanManifestAct = toUnwrappedModel(lfTincanManifestAct);

        boolean isNew = lfTincanManifestAct.isNew();

        LFTincanManifestActModelImpl lfTincanManifestActModelImpl = (LFTincanManifestActModelImpl) lfTincanManifestAct;

        Session session = null;

        try {
            session = openSession();

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

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

        FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);

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

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

                args = new Object[] { lfTincanManifestActModelImpl.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.LFTincanManifestActModelImpl

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.