code: @Override
  	public CommerceNotificationTemplate[] filterFindByG_T_E_PrevAndNext(
  		long commerceNotificationTemplateId, long groupId, String type,
  		boolean enabled,
  		OrderByComparator<CommerceNotificationTemplate> orderByComparator)
  		throws NoSuchNotificationTemplateException {
  		if (!InlineSQLHelperUtil.isEnabled(groupId)) {
  			return findByG_T_E_PrevAndNext(commerceNotificationTemplateId,
  				groupId, type, enabled, orderByComparator);
  		}
  
  		CommerceNotificationTemplate commerceNotificationTemplate = findByPrimaryKey(commerceNotificationTemplateId);
  
  		Session session = null;
  
  		try {
  			session = openSession();
  
  			CommerceNotificationTemplate[] array = new CommerceNotificationTemplateImpl[3];
  
  			array[0] = filterGetByG_T_E_PrevAndNext(session,
  					commerceNotificationTemplate, groupId, type, enabled,
  					orderByComparator, true);
  
  			array[1] = commerceNotificationTemplate;
  
  			array[2] = filterGetByG_T_E_PrevAndNext(session,
  					commerceNotificationTemplate, groupId, type, enabled,
  					orderByComparator, false);
  
  			return array;
  		}
  		catch (Exception e) {
  			throw processException(e);
  		}
  		finally {
  			closeSession(session);
  		}
  	}
docs: Returns the commerce notification templates before and after the current commerce notification template in the ordered set of commerce notification templates that the user has permission to view where groupId = &#63; and type = &#63; and enabled = &#63;.
  
  @param commerceNotificationTemplateId the primary key of the current commerce notification template
  @param groupId the group ID
  @param type the type
  @param enabled the enabled
  @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