Examples of LFRollupContribution


Examples of com.arcusys.learn.persistence.liferay.model.LFRollupContribution

        if (!(obj instanceof LFRollupContribution)) {
            return false;
        }

        LFRollupContribution lfRollupContribution = (LFRollupContribution) obj;

        long primaryKey = lfRollupContribution.getPrimaryKey();

        if (getPrimaryKey() == primaryKey) {
            return true;
        } else {
            return false;
View Full Code Here

Examples of com.arcusys.learn.persistence.liferay.model.LFRollupContribution

     * @throws SystemException if a system exception occurred
     */
    @Override
    public LFRollupContribution findBySequencingID(Integer sequencingID)
        throws NoSuchLFRollupContributionException, SystemException {
        LFRollupContribution lfRollupContribution = fetchBySequencingID(sequencingID);

        if (lfRollupContribution == null) {
            StringBundler msg = new StringBundler(4);

            msg.append(_NO_SUCH_ENTITY_WITH_KEY);
View Full Code Here

Examples of com.arcusys.learn.persistence.liferay.model.LFRollupContribution

            result = FinderCacheUtil.getResult(FINDER_PATH_FETCH_BY_SEQUENCINGID,
                    finderArgs, this);
        }

        if (result instanceof LFRollupContribution) {
            LFRollupContribution lfRollupContribution = (LFRollupContribution) result;

            if (!Validator.equals(sequencingID,
                        lfRollupContribution.getSequencingID())) {
                result = null;
            }
        }

        if (result == null) {
            StringBundler query = new StringBundler(3);

            query.append(_SQL_SELECT_LFROLLUPCONTRIBUTION_WHERE);

            if (sequencingID == null) {
                query.append(_FINDER_COLUMN_SEQUENCINGID_SEQUENCINGID_NULL_2);
            } else {
                query.append(_FINDER_COLUMN_SEQUENCINGID_SEQUENCINGID_2);
            }

            String sql = query.toString();

            Session session = null;

            try {
                session = openSession();

                Query q = session.createQuery(sql);

                QueryPos qPos = QueryPos.getInstance(q);

                if (sequencingID != null) {
                    qPos.add(sequencingID.intValue());
                }

                List<LFRollupContribution> list = q.list();

                if (list.isEmpty()) {
                    FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_SEQUENCINGID,
                        finderArgs, list);
                } else {
                    if ((list.size() > 1) && _log.isWarnEnabled()) {
                        _log.warn(
                            "LFRollupContributionPersistenceImpl.fetchBySequencingID(Integer, boolean) with parameters (" +
                            StringUtil.merge(finderArgs) +
                            ") yields a result set with more than 1 result. This violates the logical unique restriction. There is no order guarantee on which result is returned by this finder.");
                    }

                    LFRollupContribution lfRollupContribution = list.get(0);

                    result = lfRollupContribution;

                    cacheResult(lfRollupContribution);

                    if ((lfRollupContribution.getSequencingID() != sequencingID)) {
                        FinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_SEQUENCINGID,
                            finderArgs, lfRollupContribution);
                    }
                }
            } catch (Exception e) {
View Full Code Here

Examples of com.arcusys.learn.persistence.liferay.model.LFRollupContribution

     * @throws SystemException if a system exception occurred
     */
    @Override
    public LFRollupContribution removeBySequencingID(Integer sequencingID)
        throws NoSuchLFRollupContributionException, SystemException {
        LFRollupContribution lfRollupContribution = findBySequencingID(sequencingID);

        return remove(lfRollupContribution);
    }
View Full Code Here

Examples of com.arcusys.learn.persistence.liferay.model.LFRollupContribution

     * @param id the primary key for the new l f rollup contribution
     * @return the new l f rollup contribution
     */
    @Override
    public LFRollupContribution create(long id) {
        LFRollupContribution lfRollupContribution = new LFRollupContributionImpl();

        lfRollupContribution.setNew(true);
        lfRollupContribution.setPrimaryKey(id);

        return lfRollupContribution;
    }
View Full Code Here

Examples of com.arcusys.learn.persistence.liferay.model.LFRollupContribution

        Session session = null;

        try {
            session = openSession();

            LFRollupContribution lfRollupContribution = (LFRollupContribution) session.get(LFRollupContributionImpl.class,
                    primaryKey);

            if (lfRollupContribution == null) {
                if (_log.isWarnEnabled()) {
                    _log.warn(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey);
View Full Code Here

Examples of com.arcusys.learn.persistence.liferay.model.LFRollupContribution

     * @throws SystemException if a system exception occurred
     */
    @Override
    public LFRollupContribution findByPrimaryKey(Serializable primaryKey)
        throws NoSuchLFRollupContributionException, SystemException {
        LFRollupContribution lfRollupContribution = fetchByPrimaryKey(primaryKey);

        if (lfRollupContribution == null) {
            if (_log.isWarnEnabled()) {
                _log.warn(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey);
            }
View Full Code Here

Examples of com.arcusys.learn.persistence.liferay.model.LFRollupContribution

     * @throws SystemException if a system exception occurred
     */
    @Override
    public LFRollupContribution fetchByPrimaryKey(Serializable primaryKey)
        throws SystemException {
        LFRollupContribution lfRollupContribution = (LFRollupContribution) EntityCacheUtil.getResult(LFRollupContributionModelImpl.ENTITY_CACHE_ENABLED,
                LFRollupContributionImpl.class, primaryKey);

        if (lfRollupContribution == _nullLFRollupContribution) {
            return null;
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.