code: @Override
  	public CommerceOrderNote[] findByCommerceOrderId_PrevAndNext(
  		long commerceOrderNoteId, long commerceOrderId,
  		OrderByComparator<CommerceOrderNote> orderByComparator)
  		throws NoSuchOrderNoteException {
  		CommerceOrderNote commerceOrderNote = findByPrimaryKey(commerceOrderNoteId);
  
  		Session session = null;
  
  		try {
  			session = openSession();
  
  			CommerceOrderNote[] array = new CommerceOrderNoteImpl[3];
  
  			array[0] = getByCommerceOrderId_PrevAndNext(session,
  					commerceOrderNote, commerceOrderId, orderByComparator, true);
  
  			array[1] = commerceOrderNote;
  
  			array[2] = getByCommerceOrderId_PrevAndNext(session,
  					commerceOrderNote, commerceOrderId, orderByComparator, false);
  
  			return array;
  		}
  		catch (Exception e) {
  			throw processException(e);
  		}
  		finally {
  			closeSession(session);
  		}
  	}
docs: Returns the commerce order notes before and after the current commerce order note in the ordered set where commerceOrderId = &#63;.
  
  @param commerceOrderNoteId the primary key of the current commerce order note
  @param commerceOrderId the commerce order ID
  @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