code: public static CPRule[] findByGroupId_PrevAndNext(long CPRuleId,
  		long groupId, OrderByComparator<CPRule> orderByComparator)
  		throws com.liferay.commerce.product.exception.NoSuchCPRuleException {
  		return getPersistence()
  				   .findByGroupId_PrevAndNext(CPRuleId, groupId,
  			orderByComparator);
  	}
docs: Returns the cp rules before and after the current cp rule in the ordered set where groupId = &#63;.
  
  @param CPRuleId the primary key of the current cp rule
  @param groupId the group ID
  @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
  @return the previous, current, and next cp rule
  @throws NoSuchCPRuleException if a cp rule with the primary key could not be found