@Override
	public CommercePriceList fetchByCommerceCurrencyId_Last(
		long commerceCurrencyId,
		OrderByComparator<CommercePriceList> orderByComparator) {
		int count = countByCommerceCurrencyId(commerceCurrencyId);

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

		List<CommercePriceList> list = findByCommerceCurrencyId(commerceCurrencyId,
				count - 1, count, orderByComparator);

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

		return null;
	}
@ Override public CommercePriceList fetchByCommerceCurrencyId_Last ( long commerceCurrencyId , OrderByComparator < CommercePriceList > orderByComparator ) { int count = countByCommerceCurrencyId ( commerceCurrencyId ) ; if ( count == 0 ) { return null ; } List < CommercePriceList > list = findByCommerceCurrencyId ( commerceCurrencyId , count - 1 , count , orderByComparator ) ; if ( ! list . isEmpty ( ) ) { return list . get ( 0 ) ; } return null ; }
Returns the last commerce price list in the ordered set where commerceCurrencyId = &#63;.

@param commerceCurrencyId the commerce currency ID
@param orderByComparator the comparator to order the set by (optionally <code>null</code>)
@return the last matching commerce price list, or <code>null</code> if a matching commerce price list could not be found