com.liferay.commerce.service.CommerceShipmentItemLocalServiceWrapper Maven / Gradle / Ivy
/**
* SPDX-FileCopyrightText: (c) 2000 Liferay, Inc. https://liferay.com
* SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06
*/
package com.liferay.commerce.service;
import com.liferay.portal.kernel.service.ServiceWrapper;
import com.liferay.portal.kernel.service.persistence.BasePersistence;
/**
* Provides a wrapper for {@link CommerceShipmentItemLocalService}.
*
* @author Alessio Antonio Rendina
* @see CommerceShipmentItemLocalService
* @generated
*/
public class CommerceShipmentItemLocalServiceWrapper
implements CommerceShipmentItemLocalService,
ServiceWrapper {
public CommerceShipmentItemLocalServiceWrapper() {
this(null);
}
public CommerceShipmentItemLocalServiceWrapper(
CommerceShipmentItemLocalService commerceShipmentItemLocalService) {
_commerceShipmentItemLocalService = commerceShipmentItemLocalService;
}
/**
* Adds the commerce shipment item to the database. Also notifies the appropriate model listeners.
*
*
* Important: Inspect CommerceShipmentItemLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
*
*
* @param commerceShipmentItem the commerce shipment item
* @return the commerce shipment item that was added
*/
@Override
public com.liferay.commerce.model.CommerceShipmentItem
addCommerceShipmentItem(
com.liferay.commerce.model.CommerceShipmentItem
commerceShipmentItem) {
return _commerceShipmentItemLocalService.addCommerceShipmentItem(
commerceShipmentItem);
}
@Override
public com.liferay.commerce.model.CommerceShipmentItem
addCommerceShipmentItem(
String externalReferenceCode, long commerceShipmentId,
long commerceOrderItemId, long commerceInventoryWarehouseId,
java.math.BigDecimal quantity, String unitOfMeasureKey,
boolean validateInventory,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException {
return _commerceShipmentItemLocalService.addCommerceShipmentItem(
externalReferenceCode, commerceShipmentId, commerceOrderItemId,
commerceInventoryWarehouseId, quantity, unitOfMeasureKey,
validateInventory, serviceContext);
}
@Override
public com.liferay.commerce.model.CommerceShipmentItem
addDeliverySubscriptionCommerceShipmentItem(
long groupId, long userId, long commerceShipmentId,
long commerceOrderItemId)
throws com.liferay.portal.kernel.exception.PortalException {
return _commerceShipmentItemLocalService.
addDeliverySubscriptionCommerceShipmentItem(
groupId, userId, commerceShipmentId, commerceOrderItemId);
}
@Override
public com.liferay.commerce.model.CommerceShipmentItem
addOrUpdateCommerceShipmentItem(
String externalReferenceCode, long commerceShipmentId,
long commerceOrderItemId, long commerceInventoryWarehouseId,
java.math.BigDecimal quantity, String unitOfMeasureKey,
boolean validateInventory,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException {
return _commerceShipmentItemLocalService.
addOrUpdateCommerceShipmentItem(
externalReferenceCode, commerceShipmentId, commerceOrderItemId,
commerceInventoryWarehouseId, quantity, unitOfMeasureKey,
validateInventory, serviceContext);
}
/**
* Creates a new commerce shipment item with the primary key. Does not add the commerce shipment item to the database.
*
* @param commerceShipmentItemId the primary key for the new commerce shipment item
* @return the new commerce shipment item
*/
@Override
public com.liferay.commerce.model.CommerceShipmentItem
createCommerceShipmentItem(long commerceShipmentItemId) {
return _commerceShipmentItemLocalService.createCommerceShipmentItem(
commerceShipmentItemId);
}
/**
* @throws PortalException
*/
@Override
public com.liferay.portal.kernel.model.PersistedModel createPersistedModel(
java.io.Serializable primaryKeyObj)
throws com.liferay.portal.kernel.exception.PortalException {
return _commerceShipmentItemLocalService.createPersistedModel(
primaryKeyObj);
}
/**
* Deletes the commerce shipment item from the database. Also notifies the appropriate model listeners.
*
*
* Important: Inspect CommerceShipmentItemLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
*
*
* @param commerceShipmentItem the commerce shipment item
* @return the commerce shipment item that was removed
*/
@Override
public com.liferay.commerce.model.CommerceShipmentItem
deleteCommerceShipmentItem(
com.liferay.commerce.model.CommerceShipmentItem
commerceShipmentItem) {
return _commerceShipmentItemLocalService.deleteCommerceShipmentItem(
commerceShipmentItem);
}
@Override
public com.liferay.commerce.model.CommerceShipmentItem
deleteCommerceShipmentItem(
com.liferay.commerce.model.CommerceShipmentItem
commerceShipmentItem,
boolean restoreStockQuantity)
throws com.liferay.portal.kernel.exception.PortalException {
return _commerceShipmentItemLocalService.deleteCommerceShipmentItem(
commerceShipmentItem, restoreStockQuantity);
}
/**
* Deletes the commerce shipment item with the primary key from the database. Also notifies the appropriate model listeners.
*
*
* Important: Inspect CommerceShipmentItemLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
*
*
* @param commerceShipmentItemId the primary key of the commerce shipment item
* @return the commerce shipment item that was removed
* @throws PortalException if a commerce shipment item with the primary key could not be found
*/
@Override
public com.liferay.commerce.model.CommerceShipmentItem
deleteCommerceShipmentItem(long commerceShipmentItemId)
throws com.liferay.portal.kernel.exception.PortalException {
return _commerceShipmentItemLocalService.deleteCommerceShipmentItem(
commerceShipmentItemId);
}
@Override
public void deleteCommerceShipmentItem(
long commerceShipmentItemId, boolean restoreStockQuantity)
throws com.liferay.portal.kernel.exception.PortalException {
_commerceShipmentItemLocalService.deleteCommerceShipmentItem(
commerceShipmentItemId, restoreStockQuantity);
}
@Override
public void deleteCommerceShipmentItems(
long commerceShipmentId, boolean restoreStockQuantity)
throws com.liferay.portal.kernel.exception.PortalException {
_commerceShipmentItemLocalService.deleteCommerceShipmentItems(
commerceShipmentId, restoreStockQuantity);
}
/**
* @throws PortalException
*/
@Override
public com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(
com.liferay.portal.kernel.model.PersistedModel persistedModel)
throws com.liferay.portal.kernel.exception.PortalException {
return _commerceShipmentItemLocalService.deletePersistedModel(
persistedModel);
}
@Override
public T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) {
return _commerceShipmentItemLocalService.dslQuery(dslQuery);
}
@Override
public int dslQueryCount(
com.liferay.petra.sql.dsl.query.DSLQuery dslQuery) {
return _commerceShipmentItemLocalService.dslQueryCount(dslQuery);
}
@Override
public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
return _commerceShipmentItemLocalService.dynamicQuery();
}
/**
* Performs a dynamic query on the database and returns the matching rows.
*
* @param dynamicQuery the dynamic query
* @return the matching rows
*/
@Override
public java.util.List dynamicQuery(
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
return _commerceShipmentItemLocalService.dynamicQuery(dynamicQuery);
}
/**
* Performs a dynamic query on the database and returns a range of the matching rows.
*
*
* Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from com.liferay.commerce.model.impl.CommerceShipmentItemModelImpl
.
*
*
* @param dynamicQuery the dynamic query
* @param start the lower bound of the range of model instances
* @param end the upper bound of the range of model instances (not inclusive)
* @return the range of matching rows
*/
@Override
public java.util.List dynamicQuery(
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
int end) {
return _commerceShipmentItemLocalService.dynamicQuery(
dynamicQuery, start, end);
}
/**
* Performs a dynamic query on the database and returns an ordered range of the matching rows.
*
*
* Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from com.liferay.commerce.model.impl.CommerceShipmentItemModelImpl
.
*
*
* @param dynamicQuery the dynamic query
* @param start the lower bound of the range of model instances
* @param end the upper bound of the range of model instances (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally null
)
* @return the ordered range of matching rows
*/
@Override
public java.util.List dynamicQuery(
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator) {
return _commerceShipmentItemLocalService.dynamicQuery(
dynamicQuery, start, end, orderByComparator);
}
/**
* Returns the number of rows matching the dynamic query.
*
* @param dynamicQuery the dynamic query
* @return the number of rows matching the dynamic query
*/
@Override
public long dynamicQueryCount(
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
return _commerceShipmentItemLocalService.dynamicQueryCount(
dynamicQuery);
}
/**
* Returns the number of rows matching the dynamic query.
*
* @param dynamicQuery the dynamic query
* @param projection the projection to apply to the query
* @return the number of rows matching the dynamic query
*/
@Override
public long dynamicQueryCount(
com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
com.liferay.portal.kernel.dao.orm.Projection projection) {
return _commerceShipmentItemLocalService.dynamicQueryCount(
dynamicQuery, projection);
}
@Override
public com.liferay.commerce.model.CommerceShipmentItem
fetchCommerceShipmentItem(long commerceShipmentItemId) {
return _commerceShipmentItemLocalService.fetchCommerceShipmentItem(
commerceShipmentItemId);
}
@Override
public com.liferay.commerce.model.CommerceShipmentItem
fetchCommerceShipmentItem(
long commerceShipmentId, long commerceOrderItemId,
long commerceInventoryWarehouseId) {
return _commerceShipmentItemLocalService.fetchCommerceShipmentItem(
commerceShipmentId, commerceOrderItemId,
commerceInventoryWarehouseId);
}
@Override
public com.liferay.commerce.model.CommerceShipmentItem
fetchCommerceShipmentItemByExternalReferenceCode(
String externalReferenceCode, long companyId) {
return _commerceShipmentItemLocalService.
fetchCommerceShipmentItemByExternalReferenceCode(
externalReferenceCode, companyId);
}
/**
* Returns the commerce shipment item matching the UUID and group.
*
* @param uuid the commerce shipment item's UUID
* @param groupId the primary key of the group
* @return the matching commerce shipment item, or null
if a matching commerce shipment item could not be found
*/
@Override
public com.liferay.commerce.model.CommerceShipmentItem
fetchCommerceShipmentItemByUuidAndGroupId(String uuid, long groupId) {
return _commerceShipmentItemLocalService.
fetchCommerceShipmentItemByUuidAndGroupId(uuid, groupId);
}
@Override
public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery
getActionableDynamicQuery() {
return _commerceShipmentItemLocalService.getActionableDynamicQuery();
}
/**
* Returns the commerce shipment item with the primary key.
*
* @param commerceShipmentItemId the primary key of the commerce shipment item
* @return the commerce shipment item
* @throws PortalException if a commerce shipment item with the primary key could not be found
*/
@Override
public com.liferay.commerce.model.CommerceShipmentItem
getCommerceShipmentItem(long commerceShipmentItemId)
throws com.liferay.portal.kernel.exception.PortalException {
return _commerceShipmentItemLocalService.getCommerceShipmentItem(
commerceShipmentItemId);
}
@Override
public com.liferay.commerce.model.CommerceShipmentItem
getCommerceShipmentItemByExternalReferenceCode(
String externalReferenceCode, long companyId)
throws com.liferay.portal.kernel.exception.PortalException {
return _commerceShipmentItemLocalService.
getCommerceShipmentItemByExternalReferenceCode(
externalReferenceCode, companyId);
}
/**
* Returns the commerce shipment item matching the UUID and group.
*
* @param uuid the commerce shipment item's UUID
* @param groupId the primary key of the group
* @return the matching commerce shipment item
* @throws PortalException if a matching commerce shipment item could not be found
*/
@Override
public com.liferay.commerce.model.CommerceShipmentItem
getCommerceShipmentItemByUuidAndGroupId(String uuid, long groupId)
throws com.liferay.portal.kernel.exception.PortalException {
return _commerceShipmentItemLocalService.
getCommerceShipmentItemByUuidAndGroupId(uuid, groupId);
}
/**
* Returns a range of all the commerce shipment items.
*
*
* Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from com.liferay.commerce.model.impl.CommerceShipmentItemModelImpl
.
*
*
* @param start the lower bound of the range of commerce shipment items
* @param end the upper bound of the range of commerce shipment items (not inclusive)
* @return the range of commerce shipment items
*/
@Override
public java.util.List
getCommerceShipmentItems(int start, int end) {
return _commerceShipmentItemLocalService.getCommerceShipmentItems(
start, end);
}
/**
* @deprecated As of Athanasius (7.3.x)
*/
@Deprecated
@Override
public java.util.List
getCommerceShipmentItems(long commerceOrderItemId) {
return _commerceShipmentItemLocalService.getCommerceShipmentItems(
commerceOrderItemId);
}
@Override
public java.util.List
getCommerceShipmentItems(
long commerceShipmentId, int start, int end,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator) {
return _commerceShipmentItemLocalService.getCommerceShipmentItems(
commerceShipmentId, start, end, orderByComparator);
}
@Override
public java.util.List
getCommerceShipmentItems(
long commerceShipmentId, long commerceOrderItemId, int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator) {
return _commerceShipmentItemLocalService.getCommerceShipmentItems(
commerceShipmentId, commerceOrderItemId, start, end,
orderByComparator);
}
@Override
public java.util.List
getCommerceShipmentItemsByCommerceOrderItemId(
long commerceOrderItemId) {
return _commerceShipmentItemLocalService.
getCommerceShipmentItemsByCommerceOrderItemId(commerceOrderItemId);
}
/**
* Returns all the commerce shipment items matching the UUID and company.
*
* @param uuid the UUID of the commerce shipment items
* @param companyId the primary key of the company
* @return the matching commerce shipment items, or an empty list if no matches were found
*/
@Override
public java.util.List
getCommerceShipmentItemsByUuidAndCompanyId(
String uuid, long companyId) {
return _commerceShipmentItemLocalService.
getCommerceShipmentItemsByUuidAndCompanyId(uuid, companyId);
}
/**
* Returns a range of commerce shipment items matching the UUID and company.
*
* @param uuid the UUID of the commerce shipment items
* @param companyId the primary key of the company
* @param start the lower bound of the range of commerce shipment items
* @param end the upper bound of the range of commerce shipment items (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally null
)
* @return the range of matching commerce shipment items, or an empty list if no matches were found
*/
@Override
public java.util.List
getCommerceShipmentItemsByUuidAndCompanyId(
String uuid, long companyId, int start, int end,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator) {
return _commerceShipmentItemLocalService.
getCommerceShipmentItemsByUuidAndCompanyId(
uuid, companyId, start, end, orderByComparator);
}
/**
* Returns the number of commerce shipment items.
*
* @return the number of commerce shipment items
*/
@Override
public int getCommerceShipmentItemsCount() {
return _commerceShipmentItemLocalService.
getCommerceShipmentItemsCount();
}
@Override
public int getCommerceShipmentItemsCount(long commerceShipmentId) {
return _commerceShipmentItemLocalService.getCommerceShipmentItemsCount(
commerceShipmentId);
}
@Override
public int getCommerceShipmentItemsCountByCommerceOrderItemId(
long commerceOrderItemId) {
return _commerceShipmentItemLocalService.
getCommerceShipmentItemsCountByCommerceOrderItemId(
commerceOrderItemId);
}
@Override
public java.math.BigDecimal getCommerceShipmentOrderItemsQuantity(
long commerceShipmentId, long commerceOrderItemId) {
return _commerceShipmentItemLocalService.
getCommerceShipmentOrderItemsQuantity(
commerceShipmentId, commerceOrderItemId);
}
@Override
public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery
getExportActionableDynamicQuery(
com.liferay.exportimport.kernel.lar.PortletDataContext
portletDataContext) {
return _commerceShipmentItemLocalService.
getExportActionableDynamicQuery(portletDataContext);
}
@Override
public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery
getIndexableActionableDynamicQuery() {
return _commerceShipmentItemLocalService.
getIndexableActionableDynamicQuery();
}
/**
* Returns the OSGi service identifier.
*
* @return the OSGi service identifier
*/
@Override
public String getOSGiServiceIdentifier() {
return _commerceShipmentItemLocalService.getOSGiServiceIdentifier();
}
/**
* @throws PortalException
*/
@Override
public com.liferay.portal.kernel.model.PersistedModel getPersistedModel(
java.io.Serializable primaryKeyObj)
throws com.liferay.portal.kernel.exception.PortalException {
return _commerceShipmentItemLocalService.getPersistedModel(
primaryKeyObj);
}
/**
* Updates the commerce shipment item in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
*
*
* Important: Inspect CommerceShipmentItemLocalServiceImpl for overloaded versions of the method. If provided, use these entry points to the API, as the implementation logic may require the additional parameters defined there.
*
*
* @param commerceShipmentItem the commerce shipment item
* @return the commerce shipment item that was updated
*/
@Override
public com.liferay.commerce.model.CommerceShipmentItem
updateCommerceShipmentItem(
com.liferay.commerce.model.CommerceShipmentItem
commerceShipmentItem) {
return _commerceShipmentItemLocalService.updateCommerceShipmentItem(
commerceShipmentItem);
}
@Override
public com.liferay.commerce.model.CommerceShipmentItem
updateCommerceShipmentItem(
long commerceShipmentItemId, long commerceInventoryWarehouseId,
java.math.BigDecimal quantity, boolean validateInventory)
throws com.liferay.portal.kernel.exception.PortalException {
return _commerceShipmentItemLocalService.updateCommerceShipmentItem(
commerceShipmentItemId, commerceInventoryWarehouseId, quantity,
validateInventory);
}
@Override
public com.liferay.commerce.model.CommerceShipmentItem
updateExternalReferenceCode(
long commerceShipmentItemId, String externalReferenceCode)
throws com.liferay.portal.kernel.exception.PortalException {
return _commerceShipmentItemLocalService.updateExternalReferenceCode(
commerceShipmentItemId, externalReferenceCode);
}
@Override
public BasePersistence> getBasePersistence() {
return _commerceShipmentItemLocalService.getBasePersistence();
}
@Override
public CommerceShipmentItemLocalService getWrappedService() {
return _commerceShipmentItemLocalService;
}
@Override
public void setWrappedService(
CommerceShipmentItemLocalService commerceShipmentItemLocalService) {
_commerceShipmentItemLocalService = commerceShipmentItemLocalService;
}
private CommerceShipmentItemLocalService _commerceShipmentItemLocalService;
}