Class CProductLocalServiceWrapper

java.lang.Object
com.liferay.commerce.product.service.CProductLocalServiceWrapper
All Implemented Interfaces:
CProductLocalService, com.liferay.portal.kernel.service.BaseLocalService, com.liferay.portal.kernel.service.change.tracking.CTService<CProduct>, com.liferay.portal.kernel.service.PersistedModelLocalService, com.liferay.portal.kernel.service.ServiceWrapper<CProductLocalService>

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

    • CProductLocalServiceWrapper

      public CProductLocalServiceWrapper()
    • CProductLocalServiceWrapper

      public CProductLocalServiceWrapper(CProductLocalService cProductLocalService)
  • Method Details

    • addCProduct

      public CProduct addCProduct(CProduct cProduct)
      Adds the c product to the database. Also notifies the appropriate model listeners.

      Important: Inspect CProductLocalServiceImpl 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:
      addCProduct in interface CProductLocalService
      Parameters:
      cProduct - the c product
      Returns:
      the c product that was added
    • addCProduct

      public CProduct addCProduct(String externalReferenceCode, long groupId, long userId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      addCProduct in interface CProductLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • createCProduct

      public CProduct createCProduct(long CProductId)
      Creates a new c product with the primary key. Does not add the c product to the database.
      Specified by:
      createCProduct in interface CProductLocalService
      Parameters:
      CProductId - the primary key for the new c product
      Returns:
      the new c product
    • createPersistedModel

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

      public CProduct deleteCProduct(CProduct cProduct) throws com.liferay.portal.kernel.exception.PortalException
      Deletes the c product from the database. Also notifies the appropriate model listeners.

      Important: Inspect CProductLocalServiceImpl 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:
      deleteCProduct in interface CProductLocalService
      Parameters:
      cProduct - the c product
      Returns:
      the c product that was removed
      Throws:
      PortalException
      com.liferay.portal.kernel.exception.PortalException
    • deleteCProduct

      public CProduct deleteCProduct(long CProductId) throws com.liferay.portal.kernel.exception.PortalException
      Deletes the c product with the primary key from the database. Also notifies the appropriate model listeners.

      Important: Inspect CProductLocalServiceImpl 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:
      deleteCProduct in interface CProductLocalService
      Parameters:
      CProductId - the primary key of the c product
      Returns:
      the c product that was removed
      Throws:
      PortalException - if a c product with the primary key could not be found
      com.liferay.portal.kernel.exception.PortalException
    • 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 CProductLocalService
      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 CProductLocalService
      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 CProductLocalService
      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 CProductLocalService
    • 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 CProductLocalService
      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.product.model.impl.CProductModelImpl.

      Specified by:
      dynamicQuery in interface CProductLocalService
      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.product.model.impl.CProductModelImpl.

      Specified by:
      dynamicQuery in interface CProductLocalService
      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 CProductLocalService
      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 CProductLocalService
      Parameters:
      dynamicQuery - the dynamic query
      projection - the projection to apply to the query
      Returns:
      the number of rows matching the dynamic query
    • fetchCProduct

      public CProduct fetchCProduct(long CProductId)
      Specified by:
      fetchCProduct in interface CProductLocalService
    • fetchCProductByExternalReferenceCode

      public CProduct fetchCProductByExternalReferenceCode(String externalReferenceCode, long companyId)
      Specified by:
      fetchCProductByExternalReferenceCode in interface CProductLocalService
    • fetchCProductByUuidAndGroupId

      public CProduct fetchCProductByUuidAndGroupId(String uuid, long groupId)
      Returns the c product matching the UUID and group.
      Specified by:
      fetchCProductByUuidAndGroupId in interface CProductLocalService
      Parameters:
      uuid - the c product's UUID
      groupId - the primary key of the group
      Returns:
      the matching c product, or null if a matching c product could not be found
    • getActionableDynamicQuery

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

      public CProduct getCProduct(long CProductId) throws com.liferay.portal.kernel.exception.PortalException
      Returns the c product with the primary key.
      Specified by:
      getCProduct in interface CProductLocalService
      Parameters:
      CProductId - the primary key of the c product
      Returns:
      the c product
      Throws:
      PortalException - if a c product with the primary key could not be found
      com.liferay.portal.kernel.exception.PortalException
    • getCProductByCPInstanceUuid

      public CProduct getCProductByCPInstanceUuid(String cpInstanceUuid) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getCProductByCPInstanceUuid in interface CProductLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCProductByExternalReferenceCode

      public CProduct getCProductByExternalReferenceCode(String externalReferenceCode, long companyId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getCProductByExternalReferenceCode in interface CProductLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCProductByUuidAndGroupId

      public CProduct getCProductByUuidAndGroupId(String uuid, long groupId) throws com.liferay.portal.kernel.exception.PortalException
      Returns the c product matching the UUID and group.
      Specified by:
      getCProductByUuidAndGroupId in interface CProductLocalService
      Parameters:
      uuid - the c product's UUID
      groupId - the primary key of the group
      Returns:
      the matching c product
      Throws:
      PortalException - if a matching c product could not be found
      com.liferay.portal.kernel.exception.PortalException
    • getCProducts

      public List<CProduct> getCProducts(int start, int end)
      Returns a range of all the c products.

      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.product.model.impl.CProductModelImpl.

      Specified by:
      getCProducts in interface CProductLocalService
      Parameters:
      start - the lower bound of the range of c products
      end - the upper bound of the range of c products (not inclusive)
      Returns:
      the range of c products
    • getCProductsByUuidAndCompanyId

      public List<CProduct> getCProductsByUuidAndCompanyId(String uuid, long companyId)
      Returns all the c products matching the UUID and company.
      Specified by:
      getCProductsByUuidAndCompanyId in interface CProductLocalService
      Parameters:
      uuid - the UUID of the c products
      companyId - the primary key of the company
      Returns:
      the matching c products, or an empty list if no matches were found
    • getCProductsByUuidAndCompanyId

      public List<CProduct> getCProductsByUuidAndCompanyId(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CProduct> orderByComparator)
      Returns a range of c products matching the UUID and company.
      Specified by:
      getCProductsByUuidAndCompanyId in interface CProductLocalService
      Parameters:
      uuid - the UUID of the c products
      companyId - the primary key of the company
      start - the lower bound of the range of c products
      end - the upper bound of the range of c products (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the range of matching c products, or an empty list if no matches were found
    • getCProductsCount

      public int getCProductsCount()
      Returns the number of c products.
      Specified by:
      getCProductsCount in interface CProductLocalService
      Returns:
      the number of c products
    • getExportActionableDynamicQuery

      public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext)
      Specified by:
      getExportActionableDynamicQuery in interface CProductLocalService
    • getIndexableActionableDynamicQuery

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

      public String getOSGiServiceIdentifier()
      Returns the OSGi service identifier.
      Specified by:
      getOSGiServiceIdentifier in interface CProductLocalService
      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 CProductLocalService
      Specified by:
      getPersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalService
      Throws:
      PortalException
      com.liferay.portal.kernel.exception.PortalException
    • increment

      public int increment(long cProductId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      increment in interface CProductLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateCProduct

      public CProduct updateCProduct(CProduct cProduct)
      Updates the c product in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

      Important: Inspect CProductLocalServiceImpl 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:
      updateCProduct in interface CProductLocalService
      Parameters:
      cProduct - the c product
      Returns:
      the c product that was updated
    • updateCProductExternalReferenceCode

      public CProduct updateCProductExternalReferenceCode(String externalReferenceCode, long cProductId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      updateCProductExternalReferenceCode in interface CProductLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updatePublishedCPDefinitionId

      public CProduct updatePublishedCPDefinitionId(long cProductId, long publishedCPDefinitionId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      updatePublishedCPDefinitionId in interface CProductLocalService
      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
    • getCTPersistence

      public com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<CProduct> getCTPersistence()
      Specified by:
      getCTPersistence in interface CProductLocalService
      Specified by:
      getCTPersistence in interface com.liferay.portal.kernel.service.change.tracking.CTService<CProduct>
    • getModelClass

      public Class<CProduct> getModelClass()
      Specified by:
      getModelClass in interface CProductLocalService
      Specified by:
      getModelClass in interface com.liferay.portal.kernel.service.change.tracking.CTService<CProduct>
    • updateWithUnsafeFunction

      public <R, E extends Throwable> R updateWithUnsafeFunction(com.liferay.petra.function.UnsafeFunction<com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<CProduct>,R,E> updateUnsafeFunction) throws E
      Specified by:
      updateWithUnsafeFunction in interface CProductLocalService
      Specified by:
      updateWithUnsafeFunction in interface com.liferay.portal.kernel.service.change.tracking.CTService<CProduct>
      Throws:
      E extends Throwable
    • getWrappedService

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

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