Class CommercePricingClassLocalServiceWrapper

java.lang.Object
com.liferay.commerce.pricing.service.CommercePricingClassLocalServiceWrapper
All Implemented Interfaces:
CommercePricingClassLocalService, com.liferay.portal.kernel.service.BaseLocalService, com.liferay.portal.kernel.service.change.tracking.CTService<CommercePricingClass>, com.liferay.portal.kernel.service.PersistedModelLocalService, com.liferay.portal.kernel.service.ServiceWrapper<CommercePricingClassLocalService>

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

    • CommercePricingClassLocalServiceWrapper

      public CommercePricingClassLocalServiceWrapper()
    • CommercePricingClassLocalServiceWrapper

      public CommercePricingClassLocalServiceWrapper(CommercePricingClassLocalService commercePricingClassLocalService)
  • Method Details

    • addCommercePricingClass

      public CommercePricingClass addCommercePricingClass(CommercePricingClass commercePricingClass)
      Adds the commerce pricing class to the database. Also notifies the appropriate model listeners.

      Important: Inspect CommercePricingClassLocalServiceImpl 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:
      addCommercePricingClass in interface CommercePricingClassLocalService
      Parameters:
      commercePricingClass - the commerce pricing class
      Returns:
      the commerce pricing class that was added
    • addCommercePricingClass

      public CommercePricingClass addCommercePricingClass(long userId, Map<Locale,String> titleMap, Map<Locale,String> descriptionMap, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      addCommercePricingClass in interface CommercePricingClassLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addCommercePricingClass

      public CommercePricingClass addCommercePricingClass(String externalReferenceCode, long userId, Map<Locale,String> titleMap, Map<Locale,String> descriptionMap, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      addCommercePricingClass in interface CommercePricingClassLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addOrUpdateCommercePricingClass

      public CommercePricingClass addOrUpdateCommercePricingClass(String externalReferenceCode, long commercePricingClassId, long userId, Map<Locale,String> titleMap, Map<Locale,String> descriptionMap, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      addOrUpdateCommercePricingClass in interface CommercePricingClassLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • createCommercePricingClass

      public CommercePricingClass createCommercePricingClass(long commercePricingClassId)
      Creates a new commerce pricing class with the primary key. Does not add the commerce pricing class to the database.
      Specified by:
      createCommercePricingClass in interface CommercePricingClassLocalService
      Parameters:
      commercePricingClassId - the primary key for the new commerce pricing class
      Returns:
      the new commerce pricing class
    • createPersistedModel

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

      public CommercePricingClass deleteCommercePricingClass(CommercePricingClass commercePricingClass) throws com.liferay.portal.kernel.exception.PortalException
      Deletes the commerce pricing class from the database. Also notifies the appropriate model listeners.

      Important: Inspect CommercePricingClassLocalServiceImpl 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:
      deleteCommercePricingClass in interface CommercePricingClassLocalService
      Parameters:
      commercePricingClass - the commerce pricing class
      Returns:
      the commerce pricing class that was removed
      Throws:
      PortalException
      com.liferay.portal.kernel.exception.PortalException
    • deleteCommercePricingClass

      public CommercePricingClass deleteCommercePricingClass(long commercePricingClassId) throws com.liferay.portal.kernel.exception.PortalException
      Deletes the commerce pricing class with the primary key from the database. Also notifies the appropriate model listeners.

      Important: Inspect CommercePricingClassLocalServiceImpl 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:
      deleteCommercePricingClass in interface CommercePricingClassLocalService
      Parameters:
      commercePricingClassId - the primary key of the commerce pricing class
      Returns:
      the commerce pricing class that was removed
      Throws:
      PortalException - if a commerce pricing class with the primary key could not be found
      com.liferay.portal.kernel.exception.PortalException
    • deleteCommercePricingClasses

      public void deleteCommercePricingClasses(long companyId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      deleteCommercePricingClasses in interface CommercePricingClassLocalService
      Throws:
      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 CommercePricingClassLocalService
      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 CommercePricingClassLocalService
      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 CommercePricingClassLocalService
      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 CommercePricingClassLocalService
    • 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 CommercePricingClassLocalService
      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.pricing.model.impl.CommercePricingClassModelImpl.

      Specified by:
      dynamicQuery in interface CommercePricingClassLocalService
      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.pricing.model.impl.CommercePricingClassModelImpl.

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

      public CommercePricingClass fetchCommercePricingClass(long commercePricingClassId)
      Specified by:
      fetchCommercePricingClass in interface CommercePricingClassLocalService
    • fetchCommercePricingClassByExternalReferenceCode

      public CommercePricingClass fetchCommercePricingClassByExternalReferenceCode(String externalReferenceCode, long companyId)
      Specified by:
      fetchCommercePricingClassByExternalReferenceCode in interface CommercePricingClassLocalService
    • fetchCommercePricingClassByUuidAndCompanyId

      public CommercePricingClass fetchCommercePricingClassByUuidAndCompanyId(String uuid, long companyId)
      Returns the commerce pricing class with the matching UUID and company.
      Specified by:
      fetchCommercePricingClassByUuidAndCompanyId in interface CommercePricingClassLocalService
      Parameters:
      uuid - the commerce pricing class's UUID
      companyId - the primary key of the company
      Returns:
      the matching commerce pricing class, or null if a matching commerce pricing class could not be found
    • getActionableDynamicQuery

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

      public CommercePricingClass getCommercePricingClass(long commercePricingClassId) throws com.liferay.portal.kernel.exception.PortalException
      Returns the commerce pricing class with the primary key.
      Specified by:
      getCommercePricingClass in interface CommercePricingClassLocalService
      Parameters:
      commercePricingClassId - the primary key of the commerce pricing class
      Returns:
      the commerce pricing class
      Throws:
      PortalException - if a commerce pricing class with the primary key could not be found
      com.liferay.portal.kernel.exception.PortalException
    • getCommercePricingClassByCPDefinition

      public long[] getCommercePricingClassByCPDefinition(long cpDefinitionId)
      Specified by:
      getCommercePricingClassByCPDefinition in interface CommercePricingClassLocalService
    • getCommercePricingClassByExternalReferenceCode

      public CommercePricingClass getCommercePricingClassByExternalReferenceCode(String externalReferenceCode, long companyId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getCommercePricingClassByExternalReferenceCode in interface CommercePricingClassLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCommercePricingClassByUuidAndCompanyId

      public CommercePricingClass getCommercePricingClassByUuidAndCompanyId(String uuid, long companyId) throws com.liferay.portal.kernel.exception.PortalException
      Returns the commerce pricing class with the matching UUID and company.
      Specified by:
      getCommercePricingClassByUuidAndCompanyId in interface CommercePricingClassLocalService
      Parameters:
      uuid - the commerce pricing class's UUID
      companyId - the primary key of the company
      Returns:
      the matching commerce pricing class
      Throws:
      PortalException - if a matching commerce pricing class could not be found
      com.liferay.portal.kernel.exception.PortalException
    • getCommercePricingClassCountByCPDefinitionId

      public int getCommercePricingClassCountByCPDefinitionId(long cpDefinitionId, String title)
      Specified by:
      getCommercePricingClassCountByCPDefinitionId in interface CommercePricingClassLocalService
    • getCommercePricingClasses

      public List<CommercePricingClass> getCommercePricingClasses(int start, int end)
      Returns a range of all the commerce pricing classes.

      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.pricing.model.impl.CommercePricingClassModelImpl.

      Specified by:
      getCommercePricingClasses in interface CommercePricingClassLocalService
      Parameters:
      start - the lower bound of the range of commerce pricing classes
      end - the upper bound of the range of commerce pricing classes (not inclusive)
      Returns:
      the range of commerce pricing classes
    • getCommercePricingClasses

      public List<CommercePricingClass> getCommercePricingClasses(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePricingClass> orderByComparator)
      Specified by:
      getCommercePricingClasses in interface CommercePricingClassLocalService
    • getCommercePricingClassesCount

      public int getCommercePricingClassesCount()
      Returns the number of commerce pricing classes.
      Specified by:
      getCommercePricingClassesCount in interface CommercePricingClassLocalService
      Returns:
      the number of commerce pricing classes
    • getCommercePricingClassesCount

      public int getCommercePricingClassesCount(long companyId)
      Specified by:
      getCommercePricingClassesCount in interface CommercePricingClassLocalService
    • getCommercePricingClassesCount

      public int getCommercePricingClassesCount(long cpDefinitionId, String title)
      Specified by:
      getCommercePricingClassesCount in interface CommercePricingClassLocalService
    • getExportActionableDynamicQuery

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

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

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

      public List<CommercePricingClass> searchByCPDefinitionId(long cpDefinitionId, String title, int start, int end)
      Specified by:
      searchByCPDefinitionId in interface CommercePricingClassLocalService
    • searchCommercePricingClasses

      public com.liferay.portal.kernel.search.BaseModelSearchResult<CommercePricingClass> searchCommercePricingClasses(long companyId, String keywords, int start, int end, com.liferay.portal.kernel.search.Sort sort) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      searchCommercePricingClasses in interface CommercePricingClassLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateCommercePricingClass

      public CommercePricingClass updateCommercePricingClass(CommercePricingClass commercePricingClass)
      Updates the commerce pricing class in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

      Important: Inspect CommercePricingClassLocalServiceImpl 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:
      updateCommercePricingClass in interface CommercePricingClassLocalService
      Parameters:
      commercePricingClass - the commerce pricing class
      Returns:
      the commerce pricing class that was updated
    • updateCommercePricingClass

      public CommercePricingClass updateCommercePricingClass(long commercePricingClassId, long userId, Map<Locale,String> titleMap, Map<Locale,String> descriptionMap, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      updateCommercePricingClass in interface CommercePricingClassLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateCommercePricingClassExternalReferenceCode

      public CommercePricingClass updateCommercePricingClassExternalReferenceCode(String externalReferenceCode, long commercePricingClassId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      updateCommercePricingClassExternalReferenceCode in interface CommercePricingClassLocalService
      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<CommercePricingClass> getCTPersistence()
      Specified by:
      getCTPersistence in interface CommercePricingClassLocalService
      Specified by:
      getCTPersistence in interface com.liferay.portal.kernel.service.change.tracking.CTService<CommercePricingClass>
    • getModelClass

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

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

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

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