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

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


            FinderCacheUtil.putResult(FINDER_PATH_COUNT_BY_CERTIFICATEIDANDVERBANDOBJECT,
                args, Long.valueOf(1));
            FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_CERTIFICATEIDANDVERBANDOBJECT,
                args, lfCertificateTincanStatement);
        } else {
            LFCertificateTincanStatementModelImpl lfCertificateTincanStatementModelImpl =
                (LFCertificateTincanStatementModelImpl) lfCertificateTincanStatement;

            if ((lfCertificateTincanStatementModelImpl.getColumnBitmask() &
                    FINDER_PATH_FETCH_BY_CERTIFICATEIDANDVERBANDOBJECT.getColumnBitmask()) != 0) {
                Object[] args = new Object[] {
                        lfCertificateTincanStatement.getCertificateID(),
                        lfCertificateTincanStatement.getVerb(),
                        lfCertificateTincanStatement.getObject()
View Full Code Here


        }
    }

    protected void clearUniqueFindersCache(
        LFCertificateTincanStatement lfCertificateTincanStatement) {
        LFCertificateTincanStatementModelImpl lfCertificateTincanStatementModelImpl =
            (LFCertificateTincanStatementModelImpl) lfCertificateTincanStatement;

        Object[] args = new Object[] {
                lfCertificateTincanStatement.getCertificateID(),
                lfCertificateTincanStatement.getVerb(),
                lfCertificateTincanStatement.getObject()
            };

        FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_CERTIFICATEIDANDVERBANDOBJECT,
            args);
        FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_CERTIFICATEIDANDVERBANDOBJECT,
            args);

        if ((lfCertificateTincanStatementModelImpl.getColumnBitmask() &
                FINDER_PATH_FETCH_BY_CERTIFICATEIDANDVERBANDOBJECT.getColumnBitmask()) != 0) {
            args = new Object[] {
                    lfCertificateTincanStatementModelImpl.getOriginalCertificateID(),
                    lfCertificateTincanStatementModelImpl.getOriginalVerb(),
                    lfCertificateTincanStatementModelImpl.getOriginalObject()
                };

            FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_CERTIFICATEIDANDVERBANDOBJECT,
                args);
            FinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_CERTIFICATEIDANDVERBANDOBJECT,
View Full Code Here

        throws SystemException {
        lfCertificateTincanStatement = toUnwrappedModel(lfCertificateTincanStatement);

        boolean isNew = lfCertificateTincanStatement.isNew();

        LFCertificateTincanStatementModelImpl lfCertificateTincanStatementModelImpl =
            (LFCertificateTincanStatementModelImpl) lfCertificateTincanStatement;

        Session session = null;

        try {
            session = openSession();

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

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

        FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);

        if (isNew ||
                !LFCertificateTincanStatementModelImpl.COLUMN_BITMASK_ENABLED) {
            FinderCacheUtil.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
        }
        else {
            if ((lfCertificateTincanStatementModelImpl.getColumnBitmask() &
                    FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_CERTIFICATEID.getColumnBitmask()) != 0) {
                Object[] args = new Object[] {
                        lfCertificateTincanStatementModelImpl.getOriginalCertificateID()
                    };

                FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_CERTIFICATEID,
                    args);
                FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_CERTIFICATEID,
                    args);

                args = new Object[] {
                        lfCertificateTincanStatementModelImpl.getCertificateID()
                    };

                FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_CERTIFICATEID,
                    args);
                FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_CERTIFICATEID,
                    args);
            }

            if ((lfCertificateTincanStatementModelImpl.getColumnBitmask() &
                    FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_VERB.getColumnBitmask()) != 0) {
                Object[] args = new Object[] {
                        lfCertificateTincanStatementModelImpl.getOriginalVerb()
                    };

                FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_VERB, args);
                FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_VERB,
                    args);

                args = new Object[] {
                        lfCertificateTincanStatementModelImpl.getVerb()
                    };

                FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_VERB, args);
                FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_VERB,
                    args);
            }

            if ((lfCertificateTincanStatementModelImpl.getColumnBitmask() &
                    FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_OBJECT.getColumnBitmask()) != 0) {
                Object[] args = new Object[] {
                        lfCertificateTincanStatementModelImpl.getOriginalObject()
                    };

                FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_OBJECT, args);
                FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_OBJECT,
                    args);

                args = new Object[] {
                        lfCertificateTincanStatementModelImpl.getObject()
                    };

                FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_OBJECT, args);
                FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_OBJECT,
                    args);
            }

            if ((lfCertificateTincanStatementModelImpl.getColumnBitmask() &
                    FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_VERBANDOBJECT.getColumnBitmask()) != 0) {
                Object[] args = new Object[] {
                        lfCertificateTincanStatementModelImpl.getOriginalVerb(),
                        lfCertificateTincanStatementModelImpl.getOriginalObject()
                    };

                FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_VERBANDOBJECT,
                    args);
                FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_VERBANDOBJECT,
                    args);

                args = new Object[] {
                        lfCertificateTincanStatementModelImpl.getVerb(),
                        lfCertificateTincanStatementModelImpl.getObject()
                    };

                FinderCacheUtil.removeResult(FINDER_PATH_COUNT_BY_VERBANDOBJECT,
                    args);
                FinderCacheUtil.removeResult(FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_VERBANDOBJECT,
View Full Code Here

TOP

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

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.