@Override
	public CommerceDiscount findByLtE_S_First(Date expirationDate, int status,
		OrderByComparator<CommerceDiscount> orderByComparator)
		throws NoSuchDiscountException {
		CommerceDiscount commerceDiscount = fetchByLtE_S_First(expirationDate,
				status, orderByComparator);

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

		StringBundler msg = new StringBundler(6);

		msg.append(_NO_SUCH_ENTITY_WITH_KEY);

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

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

		msg.append("}");

		throw new NoSuchDiscountException(msg.toString());
	}
@ Override public CommerceDiscount findByLtE_S_First ( Date expirationDate , int status , OrderByComparator < CommerceDiscount > orderByComparator ) throws NoSuchDiscountException { CommerceDiscount commerceDiscount = fetchByLtE_S_First ( expirationDate , status , orderByComparator ) ; if ( commerceDiscount != null ) { return commerceDiscount ; } StringBundler msg = new StringBundler ( 6 ) ; msg . append ( _NO_SUCH_ENTITY_WITH_KEY ) ; msg . append ( "expirationDate=" ) ; msg . append ( expirationDate ) ; msg . append ( ", status=" ) ; msg . append ( status ) ; msg . append ( "}" ) ; throw new NoSuchDiscountException ( msg . toString ( ) ) ; }
Returns the first commerce discount in the ordered set where expirationDate &lt; &#63; and status = &#63;.

@param expirationDate the expiration date
@param status the status
@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