@Override
	public CommerceCurrency findByPrimaryKey(Serializable primaryKey)
		throws NoSuchCurrencyException {
		CommerceCurrency commerceCurrency = fetchByPrimaryKey(primaryKey);

		if (commerceCurrency == null) {
			if (_log.isDebugEnabled()) {
				_log.debug(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey);
			}

			throw new NoSuchCurrencyException(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY +
				primaryKey);
		}

		return commerceCurrency;
	}
@ Override public CommerceCurrency findByPrimaryKey ( Serializable primaryKey ) throws NoSuchCurrencyException { CommerceCurrency commerceCurrency = fetchByPrimaryKey ( primaryKey ) ; if ( commerceCurrency == null ) { if ( _log . isDebugEnabled ( ) ) { _log . debug ( _NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey ) ; } throw new NoSuchCurrencyException ( _NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey ) ; } return commerceCurrency ; }
Returns the commerce currency with the primary key or throws a {@link com.liferay.portal.kernel.exception.NoSuchModelException} if it could not be found.

@param primaryKey the primary key of the commerce currency
@return the commerce currency
@throws NoSuchCurrencyException if a commerce currency with the primary key could not be found