@Override
	public CommerceDiscount fetchByLtE_S_Last(Date expirationDate, int status,
		OrderByComparator<CommerceDiscount> orderByComparator) {
		int count = countByLtE_S(expirationDate, status);

		if (count == 0) {
			return null;
		}

		List<CommerceDiscount> list = findByLtE_S(expirationDate, status,
				count - 1, count, orderByComparator);

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

		return null;
	}
@ Override public CommerceDiscount fetchByLtE_S_Last ( Date expirationDate , int status , OrderByComparator < CommerceDiscount > orderByComparator ) { int count = countByLtE_S ( expirationDate , status ) ; if ( count == 0 ) { return null ; } List < CommerceDiscount > list = findByLtE_S ( expirationDate , status , count - 1 , count , orderByComparator ) ; if ( ! list . isEmpty ( ) ) { return list . get ( 0 ) ; } return null ; }
Returns the last 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 last matching commerce discount, or <code>null</code> if a matching commerce discount could not be found