@Override
	public CommerceAddressRestriction findByCommerceCountryId_Last(
		long commerceCountryId,
		OrderByComparator<CommerceAddressRestriction> orderByComparator)
		throws NoSuchAddressRestrictionException {
		CommerceAddressRestriction commerceAddressRestriction = fetchByCommerceCountryId_Last(commerceCountryId,
				orderByComparator);

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

		StringBundler msg = new StringBundler(4);

		msg.append(_NO_SUCH_ENTITY_WITH_KEY);

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

		msg.append("}");

		throw new NoSuchAddressRestrictionException(msg.toString());
	}
@ Override public CommerceAddressRestriction findByCommerceCountryId_Last ( long commerceCountryId , OrderByComparator < CommerceAddressRestriction > orderByComparator ) throws NoSuchAddressRestrictionException { CommerceAddressRestriction commerceAddressRestriction = fetchByCommerceCountryId_Last ( commerceCountryId , orderByComparator ) ; if ( commerceAddressRestriction != null ) { return commerceAddressRestriction ; } StringBundler msg = new StringBundler ( 4 ) ; msg . append ( _NO_SUCH_ENTITY_WITH_KEY ) ; msg . append ( "commerceCountryId=" ) ; msg . append ( commerceCountryId ) ; msg . append ( "}" ) ; throw new NoSuchAddressRestrictionException ( msg . toString ( ) ) ; }
Returns the last commerce address restriction in the ordered set where commerceCountryId = &#63;.

@param commerceCountryId the commerce country ID
@param orderByComparator the comparator to order the set by (optionally <code>null</code>)
@return the last matching commerce address restriction
@throws NoSuchAddressRestrictionException if a matching commerce address restriction could not be found