@Override
	public CommerceDiscount findByUuid_C_First(String uuid, long companyId,
		OrderByComparator<CommerceDiscount> orderByComparator)
		throws NoSuchDiscountException {
		CommerceDiscount commerceDiscount = fetchByUuid_C_First(uuid,
				companyId, orderByComparator);

		if (commerceDiscount != null) {
			return commerceDiscount;
		}

		StringBundler msg = new StringBundler(6);

		msg.append(_NO_SUCH_ENTITY_WITH_KEY);

		msg.append("uuid=");
		msg.append(uuid);

		msg.append(", companyId=");
		msg.append(companyId);

		msg.append("}");

		throw new NoSuchDiscountException(msg.toString());
	}
@ Override public CommerceDiscount findByUuid_C_First ( String uuid , long companyId , OrderByComparator < CommerceDiscount > orderByComparator ) throws NoSuchDiscountException { CommerceDiscount commerceDiscount = fetchByUuid_C_First ( uuid , companyId , orderByComparator ) ; if ( commerceDiscount != null ) { return commerceDiscount ; } StringBundler msg = new StringBundler ( 6 ) ; msg . append ( _NO_SUCH_ENTITY_WITH_KEY ) ; msg . append ( "uuid=" ) ; msg . append ( uuid ) ; msg . append ( ", companyId=" ) ; msg . append ( companyId ) ; msg . append ( "}" ) ; throw new NoSuchDiscountException ( msg . toString ( ) ) ; }
Returns the first commerce discount in the ordered set where uuid = &#63; and companyId = &#63;.

@param uuid the uuid
@param companyId the company ID
@param orderByComparator the comparator to order the set by (optionally <code>null</code>)
@return the first matching commerce discount
@throws NoSuchDiscountException if a matching commerce discount could not be found