code: public static CommerceOrderNote[] findByC_R_PrevAndNext(
  		long commerceOrderNoteId, long commerceOrderId, boolean restricted,
  		OrderByComparator<CommerceOrderNote> orderByComparator)
  		throws com.liferay.commerce.exception.NoSuchOrderNoteException {
  		return getPersistence()
  				   .findByC_R_PrevAndNext(commerceOrderNoteId, commerceOrderId,
  			restricted, orderByComparator);
  	}
docs: Returns the commerce order notes before and after the current commerce order note in the ordered set where commerceOrderId = &#63; and restricted = &#63;.
  
  @param commerceOrderNoteId the primary key of the current commerce order note
  @param commerceOrderId the commerce order ID
  @param restricted the restricted
  @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
  @return the previous, current, and next commerce order note
  @throws NoSuchOrderNoteException if a commerce order note with the primary key could not be found