public static CommerceNotificationTemplateUserSegmentRel findByCommerceNotificationTemplateId_First(
		long commerceNotificationTemplateId,
		OrderByComparator<CommerceNotificationTemplateUserSegmentRel> orderByComparator)
		throws com.liferay.commerce.notification.exception.NoSuchNotificationTemplateUserSegmentRelException {
		return getPersistence()
				   .findByCommerceNotificationTemplateId_First(commerceNotificationTemplateId,
			orderByComparator);
	}
public static CommerceNotificationTemplateUserSegmentRel findByCommerceNotificationTemplateId_First ( long commerceNotificationTemplateId , OrderByComparator < CommerceNotificationTemplateUserSegmentRel > orderByComparator ) throws com . liferay . commerce . notification . exception . NoSuchNotificationTemplateUserSegmentRelException { return getPersistence ( ) . findByCommerceNotificationTemplateId_First ( commerceNotificationTemplateId , orderByComparator ) ; }
Returns the first commerce notification template user segment rel 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 template user segment rel
@throws NoSuchNotificationTemplateUserSegmentRelException if a matching commerce notification template user segment rel could not be found