@Override
	public CPRuleUserSegmentRel findByCommerceUserSegmentEntryId_Last(
		long commerceUserSegmentEntryId,
		OrderByComparator<CPRuleUserSegmentRel> orderByComparator)
		throws NoSuchCPRuleUserSegmentRelException {
		CPRuleUserSegmentRel cpRuleUserSegmentRel = fetchByCommerceUserSegmentEntryId_Last(commerceUserSegmentEntryId,
				orderByComparator);

		if (cpRuleUserSegmentRel != null) {
			return cpRuleUserSegmentRel;
		}

		StringBundler msg = new StringBundler(4);

		msg.append(_NO_SUCH_ENTITY_WITH_KEY);

		msg.append("commerceUserSegmentEntryId=");
		msg.append(commerceUserSegmentEntryId);

		msg.append("}");

		throw new NoSuchCPRuleUserSegmentRelException(msg.toString());
	}
@ Override public CPRuleUserSegmentRel findByCommerceUserSegmentEntryId_Last ( long commerceUserSegmentEntryId , OrderByComparator < CPRuleUserSegmentRel > orderByComparator ) throws NoSuchCPRuleUserSegmentRelException { CPRuleUserSegmentRel cpRuleUserSegmentRel = fetchByCommerceUserSegmentEntryId_Last ( commerceUserSegmentEntryId , orderByComparator ) ; if ( cpRuleUserSegmentRel != null ) { return cpRuleUserSegmentRel ; } StringBundler msg = new StringBundler ( 4 ) ; msg . append ( _NO_SUCH_ENTITY_WITH_KEY ) ; msg . append ( "commerceUserSegmentEntryId=" ) ; msg . append ( commerceUserSegmentEntryId ) ; msg . append ( "}" ) ; throw new NoSuchCPRuleUserSegmentRelException ( msg . toString ( ) ) ; }
Returns the last cp rule user segment rel in the ordered set where commerceUserSegmentEntryId = &#63;.

@param commerceUserSegmentEntryId the commerce user segment entry ID
@param orderByComparator the comparator to order the set by (optionally <code>null</code>)
@return the last matching cp rule user segment rel
@throws NoSuchCPRuleUserSegmentRelException if a matching cp rule user segment rel could not be found