@Override
	public CommerceCurrency findByG_P_Last(long groupId, boolean primary,
		OrderByComparator<CommerceCurrency> orderByComparator)
		throws NoSuchCurrencyException {
		CommerceCurrency commerceCurrency = fetchByG_P_Last(groupId, primary,
				orderByComparator);

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

		StringBundler msg = new StringBundler(6);

		msg.append(_NO_SUCH_ENTITY_WITH_KEY);

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

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

		msg.append("}");

		throw new NoSuchCurrencyException(msg.toString());
	}
@ Override public CommerceCurrency findByG_P_Last ( long groupId , boolean primary , OrderByComparator < CommerceCurrency > orderByComparator ) throws NoSuchCurrencyException { CommerceCurrency commerceCurrency = fetchByG_P_Last ( groupId , primary , orderByComparator ) ; if ( commerceCurrency != null ) { return commerceCurrency ; } StringBundler msg = new StringBundler ( 6 ) ; msg . append ( _NO_SUCH_ENTITY_WITH_KEY ) ; msg . append ( "groupId=" ) ; msg . append ( groupId ) ; msg . append ( ", primary=" ) ; msg . append ( primary ) ; msg . append ( "}" ) ; throw new NoSuchCurrencyException ( msg . toString ( ) ) ; }
Returns the last commerce currency in the ordered set where groupId = &#63; and primary = &#63;.

@param groupId the group ID
@param primary the primary
@param orderByComparator the comparator to order the set by (optionally <code>null</code>)
@return the last matching commerce currency
@throws NoSuchCurrencyException if a matching commerce currency could not be found