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

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


        }
    }

    protected void clearUniqueFindersCache(
        LFTincanLrsStatement lfTincanLrsStatement) {
        LFTincanLrsStatementModelImpl lfTincanLrsStatementModelImpl = (LFTincanLrsStatementModelImpl) lfTincanLrsStatement;

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

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

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

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


        throws SystemException {
        lfTincanLrsStatement = toUnwrappedModel(lfTincanLrsStatement);

        boolean isNew = lfTincanLrsStatement.isNew();

        LFTincanLrsStatementModelImpl lfTincanLrsStatementModelImpl = (LFTincanLrsStatementModelImpl) lfTincanLrsStatement;

        Session session = null;

        try {
            session = openSession();

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

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

        FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);

        if (isNew || !LFTincanLrsStatementModelImpl.COLUMN_BITMASK_ENABLED) {
            FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
        }
        else {
            if ((lfTincanLrsStatementModelImpl.getColumnBitmask() &
                    FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_OBJTYPEANDOBJID.getColumnBitmask()) != 0) {
                Object[] args = new Object[] {
                        lfTincanLrsStatementModelImpl.getOriginalObjType(),
                        lfTincanLrsStatementModelImpl.getOriginalObjID()
                    };

                FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_OBJTYPEANDOBJID,
                    args);
                FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_OBJTYPEANDOBJID,
                    args);

                args = new Object[] {
                        lfTincanLrsStatementModelImpl.getObjType(),
                        lfTincanLrsStatementModelImpl.getObjID()
                    };

                FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_OBJTYPEANDOBJID,
                    args);
                FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_OBJTYPEANDOBJID,
                    args);
            }

            if ((lfTincanLrsStatementModelImpl.getColumnBitmask() &
                    FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_ACTORID.getColumnBitmask()) != 0) {
                Object[] args = new Object[] {
                        lfTincanLrsStatementModelImpl.getOriginalActorID()
                    };

                FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_ACTORID, args);
                FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_ACTORID,
                    args);

                args = new Object[] { lfTincanLrsStatementModelImpl.getActorID() };

                FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_ACTORID, args);
                FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_ACTORID,
                    args);
            }

            if ((lfTincanLrsStatementModelImpl.getColumnBitmask() &
                    FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_VERBID.getColumnBitmask()) != 0) {
                Object[] args = new Object[] {
                        lfTincanLrsStatementModelImpl.getOriginalVerbID()
                    };

                FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_VERBID, args);
                FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_VERBID,
                    args);

                args = new Object[] { lfTincanLrsStatementModelImpl.getVerbID() };

                FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_VERBID, args);
                FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_VERBID,
                    args);
            }
View Full Code Here

            FinderCacheUtil.putResult(FINDER_PATH_COUNT_BY_TINCANID, args,
                Long.valueOf(1));
            FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_TINCANID, args,
                lfTincanLrsStatement);
        } else {
            LFTincanLrsStatementModelImpl lfTincanLrsStatementModelImpl = (LFTincanLrsStatementModelImpl) lfTincanLrsStatement;

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

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

TOP

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

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.