Caches the commerce shipment in the entity cache if it is enabled.

@param commerceShipment the commerce shipment
168878
@Override
	public void cacheResult(CommerceShipment commerceShipment) {
		entityCache.putResult(CommerceShipmentModelImpl.ENTITY_CACHE_ENABLED,
			CommerceShipmentImpl.class, commerceShipment.getPrimaryKey(),
			commerceShipment);

		commerceShipment.resetOriginalValues();
	}
834005
@Override
	public void clearCache(CommerceShipmentItem commerceShipmentItem) {
		entityCache.removeResult(CommerceShipmentItemModelImpl.ENTITY_CACHE_ENABLED,
			CommerceShipmentItemImpl.class, commerceShipmentItem.getPrimaryKey());

		finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
		finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
	}
95013
@Override
	public void clearCache(
		CommerceShippingFixedOption commerceShippingFixedOption) {
		entityCache.removeResult(CommerceShippingFixedOptionModelImpl.ENTITY_CACHE_ENABLED,
			CommerceShippingFixedOptionImpl.class,
			commerceShippingFixedOption.getPrimaryKey());

		finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
		finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
	}
641298
@Override
	public void clearCache(CommerceOrder commerceOrder) {
		entityCache.removeResult(CommerceOrderModelImpl.ENTITY_CACHE_ENABLED,
			CommerceOrderImpl.class, commerceOrder.getPrimaryKey());

		finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
		finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);

		clearUniqueFindersCache((CommerceOrderModelImpl)commerceOrder, true);
	}
1044
@Override
	public void cacheResult(CommerceTierPriceEntry commerceTierPriceEntry) {
		entityCache.putResult(CommerceTierPriceEntryModelImpl.ENTITY_CACHE_ENABLED,
			CommerceTierPriceEntryImpl.class,
			commerceTierPriceEntry.getPrimaryKey(), commerceTierPriceEntry);

		finderCache.putResult(FINDER_PATH_FETCH_BY_UUID_G,
			new Object[] {
				commerceTierPriceEntry.getUuid(),
				commerceTierPriceEntry.getGroupId()
			}, commerceTierPriceEntry);

		finderCache.putResult(FINDER_PATH_FETCH_BY_C_M,
			new Object[] {
				commerceTierPriceEntry.getCommercePriceEntryId(),
				commerceTierPriceEntry.getMinQuantity()
			}, commerceTierPriceEntry);

		finderCache.putResult(FINDER_PATH_FETCH_BY_C_ERC,
			new Object[] {
				commerceTierPriceEntry.getCompanyId(),
				commerceTierPriceEntry.getExternalReferenceCode()
			}, commerceTierPriceEntry);

		commerceTierPriceEntry.resetOriginalValues();
	}
26568
@Override
	public void cacheResult(List<CommerceOrderNote> commerceOrderNotes) {
		for (CommerceOrderNote commerceOrderNote : commerceOrderNotes) {
			if (entityCache.getResult(
						CommerceOrderNoteModelImpl.ENTITY_CACHE_ENABLED,
						CommerceOrderNoteImpl.class,
						commerceOrderNote.getPrimaryKey()) == null) {
				cacheResult(commerceOrderNote);
			}
			else {
				commerceOrderNote.resetOriginalValues();
			}
		}
	}
766249
@Override
	public void cacheResult(CommerceWarehouseItem commerceWarehouseItem) {
		entityCache.putResult(CommerceWarehouseItemModelImpl.ENTITY_CACHE_ENABLED,
			CommerceWarehouseItemImpl.class,
			commerceWarehouseItem.getPrimaryKey(), commerceWarehouseItem);

		finderCache.putResult(FINDER_PATH_FETCH_BY_CWI_CPIU,
			new Object[] {
				commerceWarehouseItem.getCommerceWarehouseId(),
				commerceWarehouseItem.getCPInstanceUuid()
			}, commerceWarehouseItem);

		commerceWarehouseItem.resetOriginalValues();
	}
267795
@Override
	public void cacheResult(CommerceOrderNote commerceOrderNote) {
		entityCache.putResult(CommerceOrderNoteModelImpl.ENTITY_CACHE_ENABLED,
			CommerceOrderNoteImpl.class, commerceOrderNote.getPrimaryKey(),
			commerceOrderNote);

		finderCache.putResult(FINDER_PATH_FETCH_BY_C_ERC,
			new Object[] {
				commerceOrderNote.getCompanyId(),
				commerceOrderNote.getExternalReferenceCode()
			}, commerceOrderNote);

		commerceOrderNote.resetOriginalValues();
	}
434664
public static com.liferay.commerce.model.CommerceShipmentItem updateCommerceShipmentItem(
		com.liferay.commerce.model.CommerceShipmentItem commerceShipmentItem) {
		return getService().updateCommerceShipmentItem(commerceShipmentItem);
	}
70801
public static com.liferay.commerce.model.CommerceShipment createCommerceShipment(
		long commerceShipmentId) {
		return getService().createCommerceShipment(commerceShipmentId);
	}
771510
@Override
	public void clearCache() {
		entityCache.clearCache(CommerceOrderImpl.class);

		finderCache.clearCache(FINDER_CLASS_NAME_ENTITY);
		finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
		finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
	}
349174
@Override
	public void cacheResult(CommerceShippingMethod commerceShippingMethod) {
		entityCache.putResult(CommerceShippingMethodModelImpl.ENTITY_CACHE_ENABLED,
			CommerceShippingMethodImpl.class,
			commerceShippingMethod.getPrimaryKey(), commerceShippingMethod);

		finderCache.putResult(FINDER_PATH_FETCH_BY_G_E,
			new Object[] {
				commerceShippingMethod.getGroupId(),
				commerceShippingMethod.getEngineKey()
			}, commerceShippingMethod);

		commerceShippingMethod.resetOriginalValues();
	}
720736
@Override
	public void clearCache() {
		entityCache.clearCache(CommerceOrderNoteImpl.class);

		finderCache.clearCache(FINDER_CLASS_NAME_ENTITY);
		finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
		finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
	}
478705
@Override
	public void clearCache() {
		entityCache.clearCache(CommerceOrderPaymentImpl.class);

		finderCache.clearCache(FINDER_CLASS_NAME_ENTITY);
		finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITH_PAGINATION);
		finderCache.clearCache(FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION);
	}
1311251
@Indexable(type = IndexableType.REINDEX)
	@Override
	public CommerceShippingMethod addCommerceShippingMethod(
		CommerceShippingMethod commerceShippingMethod) {
		commerceShippingMethod.setNew(true);

		return commerceShippingMethodPersistence.update(commerceShippingMethod);
	}
232751
@Override
	public void cacheResult(CommerceCountry commerceCountry) {
		entityCache.putResult(CommerceCountryModelImpl.ENTITY_CACHE_ENABLED,
			CommerceCountryImpl.class, commerceCountry.getPrimaryKey(),
			commerceCountry);

		finderCache.putResult(FINDER_PATH_FETCH_BY_UUID_G,
			new Object[] { commerceCountry.getUuid(), commerceCountry.getGroupId() },
			commerceCountry);

		finderCache.putResult(FINDER_PATH_FETCH_BY_G_TW,
			new Object[] {
				commerceCountry.getGroupId(),
				commerceCountry.getTwoLettersISOCode()
			}, commerceCountry);

		finderCache.putResult(FINDER_PATH_FETCH_BY_G_N,
			new Object[] {
				commerceCountry.getGroupId(),
				commerceCountry.getNumericISOCode()
			}, commerceCountry);

		commerceCountry.resetOriginalValues();
	}
1340249
@Override
	public void cacheResult(List<CommerceCountry> commerceCountries) {
		for (CommerceCountry commerceCountry : commerceCountries) {
			if (entityCache.getResult(
						CommerceCountryModelImpl.ENTITY_CACHE_ENABLED,
						CommerceCountryImpl.class,
						commerceCountry.getPrimaryKey()) == null) {
				cacheResult(commerceCountry);
			}
			else {
				commerceCountry.resetOriginalValues();
			}
		}
	}