Creates a new commerce currency with the primary key. Does not add the commerce currency to the database.

@param commerceCurrencyId the primary key for the new commerce currency
@return the new commerce currency
505683
@Override
	@Transactional(enabled = false)
	public CommerceCurrency createCommerceCurrency(long commerceCurrencyId) {
		return commerceCurrencyPersistence.create(commerceCurrencyId);
	}
99188
public static CommerceCurrency removeByG_C(long groupId, String code)
		throws com.liferay.commerce.currency.exception.NoSuchCurrencyException {
		return getPersistence().removeByG_C(groupId, code);
	}
1111401
@Override
	public void cacheResult(List<CommerceCurrency> commerceCurrencies) {
		for (CommerceCurrency commerceCurrency : commerceCurrencies) {
			if (entityCache.getResult(
						CommerceCurrencyModelImpl.ENTITY_CACHE_ENABLED,
						CommerceCurrencyImpl.class,
						commerceCurrency.getPrimaryKey()) == null) {
				cacheResult(commerceCurrency);
			}
			else {
				commerceCurrency.resetOriginalValues();
			}
		}
	}
1092684
public static BitfinexCurrencyPair register(final String currency, 
			final String profitCurrency, final double minimalOrderSize) {

		final String key = buildCacheKey(currency, profitCurrency);

		final BitfinexCurrencyPair newCurrency = new BitfinexCurrencyPair(currency, profitCurrency, 
				minimalOrderSize);

		final BitfinexCurrencyPair oldCurrency = instances.putIfAbsent(key, newCurrency);

		// The currency was already registered
		if(oldCurrency != null) {
			throw new IllegalArgumentException("The currency " + key + " is already known");
		}

		return newCurrency;
	}
569659
@Override
	public CommerceTaxMethod create(long commerceTaxMethodId) {
		CommerceTaxMethod commerceTaxMethod = new CommerceTaxMethodImpl();

		commerceTaxMethod.setNew(true);
		commerceTaxMethod.setPrimaryKey(commerceTaxMethodId);

		commerceTaxMethod.setCompanyId(companyProvider.getCompanyId());

		return commerceTaxMethod;
	}
13024
public static String formatCurrency(Object data, String currencyCode, Locale locale) {
        return formatCurrency(null, data, currencyCode, locale);
    }
623796
@Override
	@Transactional(enabled = false)
	public CommerceAccountUserRel createCommerceAccountUserRel(
		CommerceAccountUserRelPK commerceAccountUserRelPK) {
		return commerceAccountUserRelPersistence.create(commerceAccountUserRelPK);
	}
226651
public static com.liferay.commerce.model.CommerceOrderNote createCommerceOrderNote(
		long commerceOrderNoteId) {
		return getService().createCommerceOrderNote(commerceOrderNoteId);
	}
339672
private function createCurrency($currencyCode)
    {
        /** @var CurrencyInterface $currency */
        $currency = $this->currencyFactory->createNew();
        $currency->setCode($currencyCode);

        return $currency;
    }
425661
@Override
	public com.liferay.commerce.model.CommerceOrderItem createCommerceOrderItem(
		long commerceOrderItemId) {
		return _commerceOrderItemLocalService.createCommerceOrderItem(commerceOrderItemId);
	}
530231
@Override
	public CommercePriceEntry create(long commercePriceEntryId) {
		CommercePriceEntry commercePriceEntry = new CommercePriceEntryImpl();

		commercePriceEntry.setNew(true);
		commercePriceEntry.setPrimaryKey(commercePriceEntryId);

		String uuid = PortalUUIDUtil.generate();

		commercePriceEntry.setUuid(uuid);

		commercePriceEntry.setCompanyId(companyProvider.getCompanyId());

		return commercePriceEntry;
	}
583131
@Override
	@Transactional(enabled = false)
	public CommerceCountry createCommerceCountry(long commerceCountryId) {
		return commerceCountryPersistence.create(commerceCountryId);
	}
400187
@Override
	public com.liferay.commerce.currency.model.CommerceCurrency addCommerceCurrency(
		com.liferay.commerce.currency.model.CommerceCurrency commerceCurrency) {
		return _commerceCurrencyLocalService.addCommerceCurrency(commerceCurrency);
	}
390562
private static Currency createCurrency(
      String commonCode, String name, String unicode, String... alternativeCodes) {

    CurrencyAttributes attributes =
        new CurrencyAttributes(commonCode, name, unicode, alternativeCodes);

    Currency currency = new Currency(commonCode, attributes);

    for (String code : attributes.codes) {
      if (commonCode.equals(code)) {
        // common code will always be part of the currencies map

        currencies.put(code, currency);

      } else if (!currencies.containsKey(code)) {
        // alternative codes will never overwrite common codes

        currencies.put(code, new Currency(code, attributes));
      }
    }

    return currency;
  }
1263673
@Override
	@Transactional(enabled = false)
	public CommercePriceList createCommercePriceList(long commercePriceListId) {
		return commercePriceListPersistence.create(commercePriceListId);
	}
1303851
@Override
	@Transactional(enabled = false)
	public CommerceRegion createCommerceRegion(long commerceRegionId) {
		return commerceRegionPersistence.create(commerceRegionId);
	}
112398
@Override
	public CommerceOrderNote create(long commerceOrderNoteId) {
		CommerceOrderNote commerceOrderNote = new CommerceOrderNoteImpl();

		commerceOrderNote.setNew(true);
		commerceOrderNote.setPrimaryKey(commerceOrderNoteId);

		commerceOrderNote.setCompanyId(companyProvider.getCompanyId());

		return commerceOrderNote;
	}