public static CommerceNotificationTemplateUserSegmentRel[] findByCommerceUserSegmentEntryId_PrevAndNext(
		long commerceNotificationTemplateUserSegmentRelId,
		long commerceUserSegmentEntryId,
		OrderByComparator<CommerceNotificationTemplateUserSegmentRel> orderByComparator)
		throws com.liferay.commerce.notification.exception.NoSuchNotificationTemplateUserSegmentRelException {
		return getPersistence()
				   .findByCommerceUserSegmentEntryId_PrevAndNext(commerceNotificationTemplateUserSegmentRelId,
			commerceUserSegmentEntryId, orderByComparator);
	}
public static CommerceNotificationTemplateUserSegmentRel [ ] findByCommerceUserSegmentEntryId_PrevAndNext ( long commerceNotificationTemplateUserSegmentRelId , long commerceUserSegmentEntryId , OrderByComparator < CommerceNotificationTemplateUserSegmentRel > orderByComparator ) throws com . liferay . commerce . notification . exception . NoSuchNotificationTemplateUserSegmentRelException { return getPersistence ( ) . findByCommerceUserSegmentEntryId_PrevAndNext ( commerceNotificationTemplateUserSegmentRelId , commerceUserSegmentEntryId , orderByComparator ) ; }
Returns the commerce notification template user segment rels before and after the current commerce notification template user segment rel in the ordered set where commerceUserSegmentEntryId = &#63;.

@param commerceNotificationTemplateUserSegmentRelId the primary key of the current commerce notification template user segment rel
@param commerceUserSegmentEntryId the commerce user segment entry ID
@param orderByComparator the comparator to order the set by (optionally <code>null</code>)
@return the previous, current, and next commerce notification template user segment rel
@throws NoSuchNotificationTemplateUserSegmentRelException if a commerce notification template user segment rel with the primary key could not be found