code: public static CPRuleUserSegmentRel[] findByCommerceUserSegmentEntryId_PrevAndNext(
  		long CPRuleUserSegmentRelId, long commerceUserSegmentEntryId,
  		OrderByComparator<CPRuleUserSegmentRel> orderByComparator)
  		throws com.liferay.commerce.product.exception.NoSuchCPRuleUserSegmentRelException {
  		return getPersistence()
  				   .findByCommerceUserSegmentEntryId_PrevAndNext(CPRuleUserSegmentRelId,
  			commerceUserSegmentEntryId, orderByComparator);
  	}
docs: Returns the cp rule user segment rels before and after the current cp rule user segment rel in the ordered set where commerceUserSegmentEntryId = &#63;.
  
  @param CPRuleUserSegmentRelId the primary key of the current cp rule 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 cp rule user segment rel
  @throws NoSuchCPRuleUserSegmentRelException if a cp rule user segment rel with the primary key could not be found