@Override
	public CommerceTierPriceEntry fetchByC_LtM_Last(long commercePriceEntryId,
		int minQuantity,
		OrderByComparator<CommerceTierPriceEntry> orderByComparator) {
		int count = countByC_LtM(commercePriceEntryId, minQuantity);

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

		List<CommerceTierPriceEntry> list = findByC_LtM(commercePriceEntryId,
				minQuantity, count - 1, count, orderByComparator);

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

		return null;
	}
@ Override public CommerceTierPriceEntry fetchByC_LtM_Last ( long commercePriceEntryId , int minQuantity , OrderByComparator < CommerceTierPriceEntry > orderByComparator ) { int count = countByC_LtM ( commercePriceEntryId , minQuantity ) ; if ( count == 0 ) { return null ; } List < CommerceTierPriceEntry > list = findByC_LtM ( commercePriceEntryId , minQuantity , count - 1 , count , orderByComparator ) ; if ( ! list . isEmpty ( ) ) { return list . get ( 0 ) ; } return null ; }
Returns the last commerce tier price entry in the ordered set where commercePriceEntryId = &#63; and minQuantity &le; &#63;.

@param commercePriceEntryId the commerce price entry ID
@param minQuantity the min quantity
@param orderByComparator the comparator to order the set by (optionally <code>null</code>)
@return the last matching commerce tier price entry, or <code>null</code> if a matching commerce tier price entry could not be found