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
970564
@Override
	public CommerceCurrency create(long commerceCurrencyId) {
		CommerceCurrency commerceCurrency = new CommerceCurrencyImpl();

		commerceCurrency.setNew(true);
		commerceCurrency.setPrimaryKey(commerceCurrencyId);

		String uuid = PortalUUIDUtil.generate();

		commerceCurrency.setUuid(uuid);

		commerceCurrency.setCompanyId(companyProvider.getCompanyId());

		return commerceCurrency;
	}
1297680
@Override
	public CommerceTaxFixedRate create(long commerceTaxFixedRateId) {
		CommerceTaxFixedRate commerceTaxFixedRate = new CommerceTaxFixedRateImpl();

		commerceTaxFixedRate.setNew(true);
		commerceTaxFixedRate.setPrimaryKey(commerceTaxFixedRateId);

		commerceTaxFixedRate.setCompanyId(companyProvider.getCompanyId());

		return commerceTaxFixedRate;
	}
605615
public static com.liferay.commerce.model.CommerceOrderPayment createCommerceOrderPayment(
		long commerceOrderPaymentId) {
		return getService().createCommerceOrderPayment(commerceOrderPaymentId);
	}
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;
	}
849387
public static com.liferay.commerce.model.CommerceRegion createCommerceRegion(
		long commerceRegionId) {
		return getService().createCommerceRegion(commerceRegionId);
	}
897437
public static function createCurrency() {
    // If default country is Australia do not import the AUD Dollar.
    $default_country = \Drupal::config('system.date')->get('country.default');
    if ($default_country !== 'AU') {
      $currency_importer = \Drupal::service('commerce_price.currency_importer');
      $currency_importer->importByCountry('AU');
    }
  }
938340
@Override
	@Transactional(enabled = false)
	public CommerceDiscountRel createCommerceDiscountRel(
		long commerceDiscountRelId) {
		return commerceDiscountRelPersistence.create(commerceDiscountRelId);
	}
93197
@Override
	public CommerceTierPriceEntry create(long commerceTierPriceEntryId) {
		CommerceTierPriceEntry commerceTierPriceEntry = new CommerceTierPriceEntryImpl();

		commerceTierPriceEntry.setNew(true);
		commerceTierPriceEntry.setPrimaryKey(commerceTierPriceEntryId);

		String uuid = PortalUUIDUtil.generate();

		commerceTierPriceEntry.setUuid(uuid);

		commerceTierPriceEntry.setCompanyId(companyProvider.getCompanyId());

		return commerceTierPriceEntry;
	}
110034
@Override
	@Transactional(enabled = false)
	public CommerceTaxFixedRate createCommerceTaxFixedRate(
		long commerceTaxFixedRateId) {
		return commerceTaxFixedRatePersistence.create(commerceTaxFixedRateId);
	}
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;
	}
1155842
@Override
	public CommerceRegion create(long commerceRegionId) {
		CommerceRegion commerceRegion = new CommerceRegionImpl();

		commerceRegion.setNew(true);
		commerceRegion.setPrimaryKey(commerceRegionId);

		String uuid = PortalUUIDUtil.generate();

		commerceRegion.setUuid(uuid);

		commerceRegion.setCompanyId(companyProvider.getCompanyId());

		return commerceRegion;
	}
1063598
public CurrencyUnitBuilder setCurrencyCode(String currencyCode) {
        Objects.requireNonNull(currencyCode, "currencyCode required");
        this.currencyCode = currencyCode;
        this.currencyContext = CurrencyContextBuilder.of(getClass().getSimpleName()).build();
        return this;
    }
869132
private void processDefaultCurrency(Integer currencyID) throws SQLException
   {
      List<Row> rows = getRows("select * from " + m_schema + "currtype where curr_id=?", currencyID);
      if (!rows.isEmpty())
      {
         Row row = rows.get(0);
         m_reader.processDefaultCurrency(row);
      }
   }
469338
@Override
	public com.liferay.commerce.tax.engine.fixed.model.CommerceTaxFixedRate createCommerceTaxFixedRate(
		long commerceTaxFixedRateId) {
		return _commerceTaxFixedRateLocalService.createCommerceTaxFixedRate(commerceTaxFixedRateId);
	}
569659
@Override
	public CommerceTaxMethod create(long commerceTaxMethodId) {
		CommerceTaxMethod commerceTaxMethod = new CommerceTaxMethodImpl();

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

		commerceTaxMethod.setCompanyId(companyProvider.getCompanyId());

		return commerceTaxMethod;
	}
105758
@Override
	public com.liferay.commerce.model.CommerceRegion createCommerceRegion(
		long commerceRegionId) {
		return _commerceRegionLocalService.createCommerceRegion(commerceRegionId);
	}
89199
@Override
	@Transactional(enabled = false)
	public CommerceDiscount createCommerceDiscount(long commerceDiscountId) {
		return commerceDiscountPersistence.create(commerceDiscountId);
	}