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

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


        throws SystemException {
        lfObjective = toUnwrappedModel(lfObjective);

        boolean isNew = lfObjective.isNew();

        LFObjectiveModelImpl lfObjectiveModelImpl = (LFObjectiveModelImpl) lfObjective;

        Session session = null;

        try {
            session = openSession();

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

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

        FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);

        if (isNew || !LFObjectiveModelImpl.COLUMN_BITMASK_ENABLED) {
            FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
        }
        else {
            if ((lfObjectiveModelImpl.getColumnBitmask() &
                    FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_SEQUENCINGIDANDISPRIMARY.getColumnBitmask()) != 0) {
                Object[] args = new Object[] {
                        lfObjectiveModelImpl.getOriginalSequencingID(),
                        lfObjectiveModelImpl.getOriginalIsPrimary()
                    };

                FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_SEQUENCINGIDANDISPRIMARY,
                    args);
                FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_SEQUENCINGIDANDISPRIMARY,
                    args);

                args = new Object[] {
                        lfObjectiveModelImpl.getSequencingID(),
                        lfObjectiveModelImpl.getIsPrimary()
                    };

                FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_SEQUENCINGIDANDISPRIMARY,
                    args);
                FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_SEQUENCINGIDANDISPRIMARY,
                    args);
            }

            if ((lfObjectiveModelImpl.getColumnBitmask() &
                    FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_SEQUENCINGIDISPRIMARYIDENTIFIER.getColumnBitmask()) != 0) {
                Object[] args = new Object[] {
                        lfObjectiveModelImpl.getOriginalSequencingID(),
                        lfObjectiveModelImpl.getOriginalIsPrimary(),
                        lfObjectiveModelImpl.getOriginalIdentifier()
                    };

                FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_SEQUENCINGIDISPRIMARYIDENTIFIER,
                    args);
                FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_SEQUENCINGIDISPRIMARYIDENTIFIER,
                    args);

                args = new Object[] {
                        lfObjectiveModelImpl.getSequencingID(),
                        lfObjectiveModelImpl.getIsPrimary(),
                        lfObjectiveModelImpl.getIdentifier()
                    };

                FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_SEQUENCINGIDISPRIMARYIDENTIFIER,
                    args);
                FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_SEQUENCINGIDISPRIMARYIDENTIFIER,
View Full Code Here

TOP

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

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.