Returns all the cp rule user segment rels where commerceUserSegmentEntryId = &#63;.

@param commerceUserSegmentEntryId the commerce user segment entry ID
@return the matching cp rule user segment rels
170961
@Override
	public List<CPRuleUserSegmentRel> findByCommerceUserSegmentEntryId(
		long commerceUserSegmentEntryId) {
		return findByCommerceUserSegmentEntryId(commerceUserSegmentEntryId,
			QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
	}
764312
public void setCommerceNotificationTemplateUserSegmentRelLocalService(
		com.liferay.commerce.notification.service.CommerceNotificationTemplateUserSegmentRelLocalService commerceNotificationTemplateUserSegmentRelLocalService) {
		this.commerceNotificationTemplateUserSegmentRelLocalService = commerceNotificationTemplateUserSegmentRelLocalService;
	}
741288
@Override
	public int countByCommerceAccountUserId(long commerceAccountUserId) {
		FinderPath finderPath = FINDER_PATH_COUNT_BY_COMMERCEACCOUNTUSERID;

		Object[] finderArgs = new Object[] { commerceAccountUserId };

		Long count = (Long)finderCache.getResult(finderPath, finderArgs, this);

		if (count == null) {
			StringBundler query = new StringBundler(2);

			query.append(_SQL_COUNT_COMMERCEACCOUNTUSERREL_WHERE);

			query.append(_FINDER_COLUMN_COMMERCEACCOUNTUSERID_COMMERCEACCOUNTUSERID_2);

			String sql = query.toString();

			Session session = null;

			try {
				session = openSession();

				Query q = session.createQuery(sql);

				QueryPos qPos = QueryPos.getInstance(q);

				qPos.add(commerceAccountUserId);

				count = (Long)q.uniqueResult();

				finderCache.putResult(finderPath, finderArgs, count);
			}
			catch (Exception e) {
				finderCache.removeResult(finderPath, finderArgs);

				throw processException(e);
			}
			finally {
				closeSession(session);
			}
		}

		return count.intValue();
	}
1371068
@Override
	public List<CommerceAccountUserRel> findByCommerceAccountUserId(
		long commerceAccountUserId) {
		return findByCommerceAccountUserId(commerceAccountUserId,
			QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
	}
1105651
public static com.liferay.commerce.user.segment.model.CommerceUserSegmentEntry deleteCommerceUserSegmentEntry(
		com.liferay.commerce.user.segment.model.CommerceUserSegmentEntry commerceUserSegmentEntry)
		throws com.liferay.portal.kernel.exception.PortalException {
		return getService()
				   .deleteCommerceUserSegmentEntry(commerceUserSegmentEntry);
	}
838087
@Override
	public List<CommerceDiscountUsageEntry> findByGroupId(long groupId) {
		return findByGroupId(groupId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
	}
383878
@Override
	public List<CommerceUserSegmentEntry> findByGroupId(long groupId) {
		return findByGroupId(groupId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
	}
1304365
@Override
	@Transactional(enabled = false)
	public CPRuleUserSegmentRel createCPRuleUserSegmentRel(
		long CPRuleUserSegmentRelId) {
		return cpRuleUserSegmentRelPersistence.create(CPRuleUserSegmentRelId);
	}
44892
@Override
	public List<CommerceNotificationQueueEntry> findByCommerceNotificationTemplateId(
		long commerceNotificationTemplateId) {
		return findByCommerceNotificationTemplateId(commerceNotificationTemplateId,
			QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
	}
945345
@Override
	public List<CommerceUserSegmentCriterion> findAll() {
		return findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);
	}
169275
public static com.liferay.commerce.product.model.CPRuleUserSegmentRel deleteCPRuleUserSegmentRel(
		com.liferay.commerce.product.model.CPRuleUserSegmentRel cpRuleUserSegmentRel)
		throws com.liferay.portal.kernel.exception.PortalException {
		return getService().deleteCPRuleUserSegmentRel(cpRuleUserSegmentRel);
	}
480967
@Override
	public List<CommerceOrderItem> findByC_I(long commerceOrderId,
		long CPInstanceId) {
		return findByC_I(commerceOrderId, CPInstanceId, QueryUtil.ALL_POS,
			QueryUtil.ALL_POS, null);
	}
886099
@Override
	public List<CommerceAddressRestriction> findByCommerceCountryId(
		long commerceCountryId) {
		return findByCommerceCountryId(commerceCountryId, QueryUtil.ALL_POS,
			QueryUtil.ALL_POS, null);
	}
672756
@Override
	public List<CommerceOrderNote> findByCommerceOrderId(long commerceOrderId) {
		return findByCommerceOrderId(commerceOrderId, QueryUtil.ALL_POS,
			QueryUtil.ALL_POS, null);
	}
1360173
@Indexable(type = IndexableType.DELETE)
	@Override
	public CommerceUserSegmentEntry deleteCommerceUserSegmentEntry(
		CommerceUserSegmentEntry commerceUserSegmentEntry)
		throws PortalException {
		return commerceUserSegmentEntryPersistence.remove(commerceUserSegmentEntry);
	}
4264
public static com.liferay.commerce.user.segment.model.CommerceUserSegmentEntry addCommerceUserSegmentEntry(
		com.liferay.commerce.user.segment.model.CommerceUserSegmentEntry commerceUserSegmentEntry) {
		return getService().addCommerceUserSegmentEntry(commerceUserSegmentEntry);
	}
91679
@Override
	public void cacheResult(
		List<CommerceUserSegmentEntry> commerceUserSegmentEntries) {
		for (CommerceUserSegmentEntry commerceUserSegmentEntry : commerceUserSegmentEntries) {
			if (entityCache.getResult(
						CommerceUserSegmentEntryModelImpl.ENTITY_CACHE_ENABLED,
						CommerceUserSegmentEntryImpl.class,
						commerceUserSegmentEntry.getPrimaryKey()) == null) {
				cacheResult(commerceUserSegmentEntry);
			}
			else {
				commerceUserSegmentEntry.resetOriginalValues();
			}
		}
	}