Class CPInstanceUnitOfMeasureLocalServiceWrapper

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

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

    • CPInstanceUnitOfMeasureLocalServiceWrapper

      public CPInstanceUnitOfMeasureLocalServiceWrapper()
    • CPInstanceUnitOfMeasureLocalServiceWrapper

      public CPInstanceUnitOfMeasureLocalServiceWrapper(CPInstanceUnitOfMeasureLocalService cpInstanceUnitOfMeasureLocalService)
  • Method Details

    • addCPInstanceUnitOfMeasure

      public CPInstanceUnitOfMeasure addCPInstanceUnitOfMeasure(CPInstanceUnitOfMeasure cpInstanceUnitOfMeasure)
      Adds the cp instance unit of measure to the database. Also notifies the appropriate model listeners.

      Important: Inspect CPInstanceUnitOfMeasureLocalServiceImpl 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:
      addCPInstanceUnitOfMeasure in interface CPInstanceUnitOfMeasureLocalService
      Parameters:
      cpInstanceUnitOfMeasure - the cp instance unit of measure
      Returns:
      the cp instance unit of measure that was added
    • addCPInstanceUnitOfMeasure

      public CPInstanceUnitOfMeasure addCPInstanceUnitOfMeasure(long userId, long cpInstanceId, boolean active, BigDecimal incrementalOrderQuantity, String key, Map<Locale,String> nameMap, int precision, BigDecimal pricingQuantity, boolean primary, double priority, BigDecimal rate, String sku) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      addCPInstanceUnitOfMeasure in interface CPInstanceUnitOfMeasureLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addOrUpdateCPInstanceUnitOfMeasure

      public CPInstanceUnitOfMeasure addOrUpdateCPInstanceUnitOfMeasure(long userId, long cpInstanceId, boolean active, BigDecimal incrementalOrderQuantity, String key, Map<Locale,String> nameMap, int precision, BigDecimal pricingQuantity, boolean primary, double priority, BigDecimal rate, String sku) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      addOrUpdateCPInstanceUnitOfMeasure in interface CPInstanceUnitOfMeasureLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • createCPInstanceUnitOfMeasure

      public CPInstanceUnitOfMeasure createCPInstanceUnitOfMeasure(long CPInstanceUnitOfMeasureId)
      Creates a new cp instance unit of measure with the primary key. Does not add the cp instance unit of measure to the database.
      Specified by:
      createCPInstanceUnitOfMeasure in interface CPInstanceUnitOfMeasureLocalService
      Parameters:
      CPInstanceUnitOfMeasureId - the primary key for the new cp instance unit of measure
      Returns:
      the new cp instance unit of measure
    • createPersistedModel

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

      public CPInstanceUnitOfMeasure deleteCPInstanceUnitOfMeasure(CPInstanceUnitOfMeasure cpInstanceUnitOfMeasure)
      Deletes the cp instance unit of measure from the database. Also notifies the appropriate model listeners.

      Important: Inspect CPInstanceUnitOfMeasureLocalServiceImpl 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:
      deleteCPInstanceUnitOfMeasure in interface CPInstanceUnitOfMeasureLocalService
      Parameters:
      cpInstanceUnitOfMeasure - the cp instance unit of measure
      Returns:
      the cp instance unit of measure that was removed
    • deleteCPInstanceUnitOfMeasure

      public CPInstanceUnitOfMeasure deleteCPInstanceUnitOfMeasure(long CPInstanceUnitOfMeasureId) throws com.liferay.portal.kernel.exception.PortalException
      Deletes the cp instance unit of measure with the primary key from the database. Also notifies the appropriate model listeners.

      Important: Inspect CPInstanceUnitOfMeasureLocalServiceImpl 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:
      deleteCPInstanceUnitOfMeasure in interface CPInstanceUnitOfMeasureLocalService
      Parameters:
      CPInstanceUnitOfMeasureId - the primary key of the cp instance unit of measure
      Returns:
      the cp instance unit of measure that was removed
      Throws:
      PortalException - if a cp instance unit of measure 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 CPInstanceUnitOfMeasureLocalService
      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 CPInstanceUnitOfMeasureLocalService
      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 CPInstanceUnitOfMeasureLocalService
      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 CPInstanceUnitOfMeasureLocalService
    • 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 CPInstanceUnitOfMeasureLocalService
      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.CPInstanceUnitOfMeasureModelImpl.

      Specified by:
      dynamicQuery in interface CPInstanceUnitOfMeasureLocalService
      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.CPInstanceUnitOfMeasureModelImpl.

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

      public CPInstanceUnitOfMeasure fetchCPInstanceUnitOfMeasure(long CPInstanceUnitOfMeasureId)
      Specified by:
      fetchCPInstanceUnitOfMeasure in interface CPInstanceUnitOfMeasureLocalService
    • fetchCPInstanceUnitOfMeasure

      public CPInstanceUnitOfMeasure fetchCPInstanceUnitOfMeasure(long cpInstanceId, String key)
      Specified by:
      fetchCPInstanceUnitOfMeasure in interface CPInstanceUnitOfMeasureLocalService
    • fetchCPInstanceUnitOfMeasure

      public CPInstanceUnitOfMeasure fetchCPInstanceUnitOfMeasure(long companyId, String key, String sku)
      Specified by:
      fetchCPInstanceUnitOfMeasure in interface CPInstanceUnitOfMeasureLocalService
    • fetchCPInstanceUnitOfMeasureByUuidAndCompanyId

      public CPInstanceUnitOfMeasure fetchCPInstanceUnitOfMeasureByUuidAndCompanyId(String uuid, long companyId)
      Returns the cp instance unit of measure with the matching UUID and company.
      Specified by:
      fetchCPInstanceUnitOfMeasureByUuidAndCompanyId in interface CPInstanceUnitOfMeasureLocalService
      Parameters:
      uuid - the cp instance unit of measure's UUID
      companyId - the primary key of the company
      Returns:
      the matching cp instance unit of measure, or null if a matching cp instance unit of measure could not be found
    • fetchPrimaryCPInstanceUnitOfMeasure

      public CPInstanceUnitOfMeasure fetchPrimaryCPInstanceUnitOfMeasure(long cpInstanceId)
      Specified by:
      fetchPrimaryCPInstanceUnitOfMeasure in interface CPInstanceUnitOfMeasureLocalService
    • getActionableDynamicQuery

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

      public List<CPInstanceUnitOfMeasure> getActiveCPInstanceUnitOfMeasures(long cpInstanceId)
      Specified by:
      getActiveCPInstanceUnitOfMeasures in interface CPInstanceUnitOfMeasureLocalService
    • getActiveCPInstanceUnitOfMeasuresCount

      public int getActiveCPInstanceUnitOfMeasuresCount(long cpInstanceId)
      Specified by:
      getActiveCPInstanceUnitOfMeasuresCount in interface CPInstanceUnitOfMeasureLocalService
    • getCPInstanceUnitOfMeasure

      public CPInstanceUnitOfMeasure getCPInstanceUnitOfMeasure(long CPInstanceUnitOfMeasureId) throws com.liferay.portal.kernel.exception.PortalException
      Returns the cp instance unit of measure with the primary key.
      Specified by:
      getCPInstanceUnitOfMeasure in interface CPInstanceUnitOfMeasureLocalService
      Parameters:
      CPInstanceUnitOfMeasureId - the primary key of the cp instance unit of measure
      Returns:
      the cp instance unit of measure
      Throws:
      PortalException - if a cp instance unit of measure with the primary key could not be found
      com.liferay.portal.kernel.exception.PortalException
    • getCPInstanceUnitOfMeasure

      public CPInstanceUnitOfMeasure getCPInstanceUnitOfMeasure(long cpInstanceId, String key) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getCPInstanceUnitOfMeasure in interface CPInstanceUnitOfMeasureLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCPInstanceUnitOfMeasureByUuidAndCompanyId

      public CPInstanceUnitOfMeasure getCPInstanceUnitOfMeasureByUuidAndCompanyId(String uuid, long companyId) throws com.liferay.portal.kernel.exception.PortalException
      Returns the cp instance unit of measure with the matching UUID and company.
      Specified by:
      getCPInstanceUnitOfMeasureByUuidAndCompanyId in interface CPInstanceUnitOfMeasureLocalService
      Parameters:
      uuid - the cp instance unit of measure's UUID
      companyId - the primary key of the company
      Returns:
      the matching cp instance unit of measure
      Throws:
      PortalException - if a matching cp instance unit of measure could not be found
      com.liferay.portal.kernel.exception.PortalException
    • getCPInstanceUnitOfMeasures

      public List<CPInstanceUnitOfMeasure> getCPInstanceUnitOfMeasures(int start, int end)
      Returns a range of all the cp instance unit of measures.

      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.CPInstanceUnitOfMeasureModelImpl.

      Specified by:
      getCPInstanceUnitOfMeasures in interface CPInstanceUnitOfMeasureLocalService
      Parameters:
      start - the lower bound of the range of cp instance unit of measures
      end - the upper bound of the range of cp instance unit of measures (not inclusive)
      Returns:
      the range of cp instance unit of measures
    • getCPInstanceUnitOfMeasures

      public List<CPInstanceUnitOfMeasure> getCPInstanceUnitOfMeasures(long cpInstanceId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPInstanceUnitOfMeasure> orderByComparator)
      Specified by:
      getCPInstanceUnitOfMeasures in interface CPInstanceUnitOfMeasureLocalService
    • getCPInstanceUnitOfMeasures

      public List<CPInstanceUnitOfMeasure> getCPInstanceUnitOfMeasures(long companyId, String sku)
      Specified by:
      getCPInstanceUnitOfMeasures in interface CPInstanceUnitOfMeasureLocalService
    • getCPInstanceUnitOfMeasuresCount

      public int getCPInstanceUnitOfMeasuresCount()
      Returns the number of cp instance unit of measures.
      Specified by:
      getCPInstanceUnitOfMeasuresCount in interface CPInstanceUnitOfMeasureLocalService
      Returns:
      the number of cp instance unit of measures
    • getCPInstanceUnitOfMeasuresCount

      public int getCPInstanceUnitOfMeasuresCount(long cpInstanceId)
      Specified by:
      getCPInstanceUnitOfMeasuresCount in interface CPInstanceUnitOfMeasureLocalService
    • getCPInstanceUnitOfMeasuresCount

      public int getCPInstanceUnitOfMeasuresCount(long companyId, String sku)
      Specified by:
      getCPInstanceUnitOfMeasuresCount in interface CPInstanceUnitOfMeasureLocalService
    • getExportActionableDynamicQuery

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

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

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

      public CPInstanceUnitOfMeasure updateCPInstanceUnitOfMeasure(CPInstanceUnitOfMeasure cpInstanceUnitOfMeasure)
      Updates the cp instance unit of measure in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

      Important: Inspect CPInstanceUnitOfMeasureLocalServiceImpl 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:
      updateCPInstanceUnitOfMeasure in interface CPInstanceUnitOfMeasureLocalService
      Parameters:
      cpInstanceUnitOfMeasure - the cp instance unit of measure
      Returns:
      the cp instance unit of measure that was updated
    • updateCPInstanceUnitOfMeasure

      public CPInstanceUnitOfMeasure updateCPInstanceUnitOfMeasure(long cpInstanceUnitOfMeasureId, long cpInstanceId, boolean active, BigDecimal incrementalOrderQuantity, String key, Map<Locale,String> nameMap, int precision, BigDecimal pricingQuantity, boolean primary, double priority, BigDecimal rate, String sku) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      updateCPInstanceUnitOfMeasure in interface CPInstanceUnitOfMeasureLocalService
      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<CPInstanceUnitOfMeasure> getCTPersistence()
      Specified by:
      getCTPersistence in interface CPInstanceUnitOfMeasureLocalService
      Specified by:
      getCTPersistence in interface com.liferay.portal.kernel.service.change.tracking.CTService<CPInstanceUnitOfMeasure>
    • getModelClass

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

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

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

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