@Override
	public CommerceNotificationQueueEntry fetchByCommerceNotificationTemplateId_First(
		long commerceNotificationTemplateId,
		OrderByComparator<CommerceNotificationQueueEntry> orderByComparator) {
		List<CommerceNotificationQueueEntry> list = findByCommerceNotificationTemplateId(commerceNotificationTemplateId,
				0, 1, orderByComparator);

		if (!list.isEmpty()) {
			return list.get(0);
		}

		return null;
	}
@ Override public CommerceNotificationQueueEntry fetchByCommerceNotificationTemplateId_First ( long commerceNotificationTemplateId , OrderByComparator < CommerceNotificationQueueEntry > orderByComparator ) { List < CommerceNotificationQueueEntry > list = findByCommerceNotificationTemplateId ( commerceNotificationTemplateId , 0 , 1 , orderByComparator ) ; if ( ! list . isEmpty ( ) ) { return list . get ( 0 ) ; } return null ; }
Returns the first commerce notification queue entry in the ordered set where commerceNotificationTemplateId = &#63;.

@param commerceNotificationTemplateId the commerce notification template ID
@param orderByComparator the comparator to order the set by (optionally <code>null</code>)
@return the first matching commerce notification queue entry, or <code>null</code> if a matching commerce notification queue entry could not be found