Class CommerceWishListItemLocalServiceWrapper

java.lang.Object
com.liferay.commerce.wish.list.service.CommerceWishListItemLocalServiceWrapper
All Implemented Interfaces:
CommerceWishListItemLocalService, com.liferay.portal.kernel.service.BaseLocalService, com.liferay.portal.kernel.service.PersistedModelLocalService, com.liferay.portal.kernel.service.ServiceWrapper<CommerceWishListItemLocalService>

public class CommerceWishListItemLocalServiceWrapper extends Object implements CommerceWishListItemLocalService, com.liferay.portal.kernel.service.ServiceWrapper<CommerceWishListItemLocalService>
Provides a wrapper for CommerceWishListItemLocalService.
See Also:
Generated:
  • Constructor Details

    • CommerceWishListItemLocalServiceWrapper

      public CommerceWishListItemLocalServiceWrapper()
    • CommerceWishListItemLocalServiceWrapper

      public CommerceWishListItemLocalServiceWrapper(CommerceWishListItemLocalService commerceWishListItemLocalService)
  • Method Details

    • addCommerceWishListItem

      public CommerceWishListItem addCommerceWishListItem(CommerceWishListItem commerceWishListItem)
      Adds the commerce wish list item to the database. Also notifies the appropriate model listeners.

      Important: Inspect CommerceWishListItemLocalServiceImpl 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.

      Specified by:
      addCommerceWishListItem in interface CommerceWishListItemLocalService
      Parameters:
      commerceWishListItem - the commerce wish list item
      Returns:
      the commerce wish list item that was added
    • addCommerceWishListItem

      public CommerceWishListItem addCommerceWishListItem(long userId, long commerceWishListId, String cpInstanceUuid, long cProductId, String json) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      addCommerceWishListItem in interface CommerceWishListItemLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addOrUpdateCommerceWishListItem

      public CommerceWishListItem addOrUpdateCommerceWishListItem(long userId, long commerceWishListId, String cpInstanceUuid, long cProductId, String json) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      addOrUpdateCommerceWishListItem in interface CommerceWishListItemLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • createCommerceWishListItem

      public CommerceWishListItem createCommerceWishListItem(long commerceWishListItemId)
      Creates a new commerce wish list item with the primary key. Does not add the commerce wish list item to the database.
      Specified by:
      createCommerceWishListItem in interface CommerceWishListItemLocalService
      Parameters:
      commerceWishListItemId - the primary key for the new commerce wish list item
      Returns:
      the new commerce wish list item
    • createPersistedModel

      public com.liferay.portal.kernel.model.PersistedModel createPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      createPersistedModel in interface CommerceWishListItemLocalService
      Specified by:
      createPersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalService
      Throws:
      PortalException
      com.liferay.portal.kernel.exception.PortalException
    • deleteCommerceWishListItem

      public CommerceWishListItem deleteCommerceWishListItem(CommerceWishListItem commerceWishListItem)
      Deletes the commerce wish list item from the database. Also notifies the appropriate model listeners.

      Important: Inspect CommerceWishListItemLocalServiceImpl 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.

      Specified by:
      deleteCommerceWishListItem in interface CommerceWishListItemLocalService
      Parameters:
      commerceWishListItem - the commerce wish list item
      Returns:
      the commerce wish list item that was removed
    • deleteCommerceWishListItem

      public CommerceWishListItem deleteCommerceWishListItem(long commerceWishListItemId) throws com.liferay.portal.kernel.exception.PortalException
      Deletes the commerce wish list item with the primary key from the database. Also notifies the appropriate model listeners.

      Important: Inspect CommerceWishListItemLocalServiceImpl 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.

      Specified by:
      deleteCommerceWishListItem in interface CommerceWishListItemLocalService
      Parameters:
      commerceWishListItemId - the primary key of the commerce wish list item
      Returns:
      the commerce wish list item that was removed
      Throws:
      PortalException - if a commerce wish list item with the primary key could not be found
      com.liferay.portal.kernel.exception.PortalException
    • deleteCommerceWishListItems

      public void deleteCommerceWishListItems(long commerceWishListId)
      Specified by:
      deleteCommerceWishListItems in interface CommerceWishListItemLocalService
    • deleteCommerceWishListItemsByCPDefinitionId

      @Deprecated public void deleteCommerceWishListItemsByCPDefinitionId(long cpDefinitionId)
      Deprecated.
      As of Mueller (7.2.x)
      Specified by:
      deleteCommerceWishListItemsByCPDefinitionId in interface CommerceWishListItemLocalService
    • deleteCommerceWishListItemsByCPInstanceId

      @Deprecated public void deleteCommerceWishListItemsByCPInstanceId(long cpInstanceId)
      Deprecated.
      As of Mueller (7.2.x)
      Specified by:
      deleteCommerceWishListItemsByCPInstanceId in interface CommerceWishListItemLocalService
    • deletePersistedModel

      public com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      deletePersistedModel in interface CommerceWishListItemLocalService
      Specified by:
      deletePersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalService
      Throws:
      PortalException
      com.liferay.portal.kernel.exception.PortalException
    • dslQuery

      public <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
      Specified by:
      dslQuery in interface CommerceWishListItemLocalService
      Specified by:
      dslQuery in interface com.liferay.portal.kernel.service.PersistedModelLocalService
    • dslQueryCount

      public int dslQueryCount(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
      Specified by:
      dslQueryCount in interface CommerceWishListItemLocalService
      Specified by:
      dslQueryCount in interface com.liferay.portal.kernel.service.PersistedModelLocalService
    • dynamicQuery

      public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()
      Specified by:
      dynamicQuery in interface CommerceWishListItemLocalService
    • dynamicQuery

      public <T> List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      Performs a dynamic query on the database and returns the matching rows.
      Specified by:
      dynamicQuery in interface CommerceWishListItemLocalService
      Parameters:
      dynamicQuery - the dynamic query
      Returns:
      the matching rows
    • dynamicQuery

      public <T> List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
      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.wish.list.model.impl.CommerceWishListItemModelImpl.

      Specified by:
      dynamicQuery in interface CommerceWishListItemLocalService
      Parameters:
      dynamicQuery - the dynamic query
      start - the lower bound of the range of model instances
      end - the upper bound of the range of model instances (not inclusive)
      Returns:
      the range of matching rows
    • dynamicQuery

      public <T> List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator)
      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.wish.list.model.impl.CommerceWishListItemModelImpl.

      Specified by:
      dynamicQuery in interface CommerceWishListItemLocalService
      Parameters:
      dynamicQuery - the dynamic query
      start - the lower bound of the range of model instances
      end - the upper bound of the range of model instances (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching rows
    • dynamicQueryCount

      public long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      Returns the number of rows matching the dynamic query.
      Specified by:
      dynamicQueryCount in interface CommerceWishListItemLocalService
      Parameters:
      dynamicQuery - the dynamic query
      Returns:
      the number of rows matching the dynamic query
    • dynamicQueryCount

      public long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, com.liferay.portal.kernel.dao.orm.Projection projection)
      Returns the number of rows matching the dynamic query.
      Specified by:
      dynamicQueryCount in interface CommerceWishListItemLocalService
      Parameters:
      dynamicQuery - the dynamic query
      projection - the projection to apply to the query
      Returns:
      the number of rows matching the dynamic query
    • fetchCommerceWishListItem

      public CommerceWishListItem fetchCommerceWishListItem(long commerceWishListItemId)
      Specified by:
      fetchCommerceWishListItem in interface CommerceWishListItemLocalService
    • fetchCommerceWishListItem

      public CommerceWishListItem fetchCommerceWishListItem(long commerceWishListId, String cpInstanceUuid, long cProductId)
      Specified by:
      fetchCommerceWishListItem in interface CommerceWishListItemLocalService
    • getActionableDynamicQuery

      public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()
      Specified by:
      getActionableDynamicQuery in interface CommerceWishListItemLocalService
    • getCommerceWishListItem

      public CommerceWishListItem getCommerceWishListItem(long commerceWishListItemId) throws com.liferay.portal.kernel.exception.PortalException
      Returns the commerce wish list item with the primary key.
      Specified by:
      getCommerceWishListItem in interface CommerceWishListItemLocalService
      Parameters:
      commerceWishListItemId - the primary key of the commerce wish list item
      Returns:
      the commerce wish list item
      Throws:
      PortalException - if a commerce wish list item with the primary key could not be found
      com.liferay.portal.kernel.exception.PortalException
    • getCommerceWishListItem

      public CommerceWishListItem getCommerceWishListItem(long commerceWishListId, String cpInstanceUuid, long cProductId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getCommerceWishListItem in interface CommerceWishListItemLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCommerceWishListItemByContainsCPInstanceCount

      public int getCommerceWishListItemByContainsCPInstanceCount(long commerceWishListId, String cpInstanceUuid)
      Specified by:
      getCommerceWishListItemByContainsCPInstanceCount in interface CommerceWishListItemLocalService
    • getCommerceWishListItemByContainsCProductCount

      public int getCommerceWishListItemByContainsCProductCount(long commerceWishListId, long cProductId)
      Specified by:
      getCommerceWishListItemByContainsCProductCount in interface CommerceWishListItemLocalService
    • getCommerceWishListItems

      public List<CommerceWishListItem> getCommerceWishListItems(int start, int end)
      Returns a range of all the commerce wish list 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.wish.list.model.impl.CommerceWishListItemModelImpl.

      Specified by:
      getCommerceWishListItems in interface CommerceWishListItemLocalService
      Parameters:
      start - the lower bound of the range of commerce wish list items
      end - the upper bound of the range of commerce wish list items (not inclusive)
      Returns:
      the range of commerce wish list items
    • getCommerceWishListItems

      public List<CommerceWishListItem> getCommerceWishListItems(long commerceWishListId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceWishListItem> orderByComparator)
      Specified by:
      getCommerceWishListItems in interface CommerceWishListItemLocalService
    • getCommerceWishListItemsCount

      public int getCommerceWishListItemsCount()
      Returns the number of commerce wish list items.
      Specified by:
      getCommerceWishListItemsCount in interface CommerceWishListItemLocalService
      Returns:
      the number of commerce wish list items
    • getCommerceWishListItemsCount

      public int getCommerceWishListItemsCount(long commerceWishListId)
      Specified by:
      getCommerceWishListItemsCount in interface CommerceWishListItemLocalService
    • getIndexableActionableDynamicQuery

      public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
      Specified by:
      getIndexableActionableDynamicQuery in interface CommerceWishListItemLocalService
    • getOSGiServiceIdentifier

      public String getOSGiServiceIdentifier()
      Returns the OSGi service identifier.
      Specified by:
      getOSGiServiceIdentifier in interface CommerceWishListItemLocalService
      Returns:
      the OSGi service identifier
    • getPersistedModel

      public com.liferay.portal.kernel.model.PersistedModel getPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getPersistedModel in interface CommerceWishListItemLocalService
      Specified by:
      getPersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalService
      Throws:
      PortalException
      com.liferay.portal.kernel.exception.PortalException
    • updateCommerceWishListItem

      public CommerceWishListItem updateCommerceWishListItem(CommerceWishListItem commerceWishListItem)
      Updates the commerce wish list item in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

      Important: Inspect CommerceWishListItemLocalServiceImpl 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.

      Specified by:
      updateCommerceWishListItem in interface CommerceWishListItemLocalService
      Parameters:
      commerceWishListItem - the commerce wish list item
      Returns:
      the commerce wish list item that was updated
    • updateCommerceWishListItem

      public CommerceWishListItem updateCommerceWishListItem(long commerceWishListId, String cpInstanceUuid, long cProductId, String json) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      updateCommerceWishListItem in interface CommerceWishListItemLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getBasePersistence

      public com.liferay.portal.kernel.service.persistence.BasePersistence<?> getBasePersistence()
      Specified by:
      getBasePersistence in interface com.liferay.portal.kernel.service.PersistedModelLocalService
    • getWrappedService

      public CommerceWishListItemLocalService getWrappedService()
      Specified by:
      getWrappedService in interface com.liferay.portal.kernel.service.ServiceWrapper<CommerceWishListItemLocalService>
    • setWrappedService

      public void setWrappedService(CommerceWishListItemLocalService commerceWishListItemLocalService)
      Specified by:
      setWrappedService in interface com.liferay.portal.kernel.service.ServiceWrapper<CommerceWishListItemLocalService>