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