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

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


            FinderCacheUtil.putResult(FINDER_PATH_COUNT_BY_TINCANID, args,
                Long.valueOf(1));
            FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_TINCANID, args,
                lfTincanActor);
        } else {
            LFTincanActorModelImpl lfTincanActorModelImpl = (LFTincanActorModelImpl) lfTincanActor;

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

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


            }
        }
    }

    protected void clearUniqueFindersCache(LFTincanActor lfTincanActor) {
        LFTincanActorModelImpl lfTincanActorModelImpl = (LFTincanActorModelImpl) lfTincanActor;

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

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

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

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

        throws SystemException {
        lfTincanActor = toUnwrappedModel(lfTincanActor);

        boolean isNew = lfTincanActor.isNew();

        LFTincanActorModelImpl lfTincanActorModelImpl = (LFTincanActorModelImpl) lfTincanActor;

        Session session = null;

        try {
            session = openSession();

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

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

        FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);

        if (isNew || !LFTincanActorModelImpl.COLUMN_BITMASK_ENABLED) {
            FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
        }
        else {
            if ((lfTincanActorModelImpl.getColumnBitmask() &
                    FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_MEMBEROF.getColumnBitmask()) != 0) {
                Object[] args = new Object[] {
                        lfTincanActorModelImpl.getOriginalMemberOf()
                    };

                FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_MEMBEROF, args);
                FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_MEMBEROF,
                    args);

                args = new Object[] { lfTincanActorModelImpl.getMemberOf() };

                FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_MEMBEROF, args);
                FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_MEMBEROF,
                    args);
            }

            if ((lfTincanActorModelImpl.getColumnBitmask() &
                    FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_AGENT.getColumnBitmask()) != 0) {
                Object[] args = new Object[] {
                        lfTincanActorModelImpl.getOriginalObjectType(),
                        lfTincanActorModelImpl.getOriginalMbox(),
                        lfTincanActorModelImpl.getOriginalMbox_sha1sum(),
                        lfTincanActorModelImpl.getOriginalOpenid(),
                        lfTincanActorModelImpl.getOriginalAccount()
                    };

                FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_AGENT, args);
                FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_AGENT,
                    args);

                args = new Object[] {
                        lfTincanActorModelImpl.getObjectType(),
                        lfTincanActorModelImpl.getMbox(),
                        lfTincanActorModelImpl.getMbox_sha1sum(),
                        lfTincanActorModelImpl.getOpenid(),
                        lfTincanActorModelImpl.getAccount()
                    };

                FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_AGENT, args);
                FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_AGENT,
                    args);
View Full Code Here

TOP

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

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.