Class CPOptionValueLocalServiceWrapper

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

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

    • CPOptionValueLocalServiceWrapper

      public CPOptionValueLocalServiceWrapper()
    • CPOptionValueLocalServiceWrapper

      public CPOptionValueLocalServiceWrapper(CPOptionValueLocalService cpOptionValueLocalService)
  • Method Details

    • addCPOptionValue

      public CPOptionValue addCPOptionValue(CPOptionValue cpOptionValue)
      Adds the cp option value to the database. Also notifies the appropriate model listeners.

      Important: Inspect CPOptionValueLocalServiceImpl 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:
      addCPOptionValue in interface CPOptionValueLocalService
      Parameters:
      cpOptionValue - the cp option value
      Returns:
      the cp option value that was added
    • addCPOptionValue

      public CPOptionValue addCPOptionValue(long cpOptionId, Map<Locale,String> nameMap, double priority, String key, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      addCPOptionValue in interface CPOptionValueLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addCPOptionValue

      public CPOptionValue addCPOptionValue(String externalReferenceCode, long cpOptionId, Map<Locale,String> nameMap, double priority, String key, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      addCPOptionValue in interface CPOptionValueLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addOrUpdateCPOptionValue

      public CPOptionValue addOrUpdateCPOptionValue(String externalReferenceCode, long cpOptionId, Map<Locale,String> nameMap, double priority, String key, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      addOrUpdateCPOptionValue in interface CPOptionValueLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • createCPOptionValue

      public CPOptionValue createCPOptionValue(long CPOptionValueId)
      Creates a new cp option value with the primary key. Does not add the cp option value to the database.
      Specified by:
      createCPOptionValue in interface CPOptionValueLocalService
      Parameters:
      CPOptionValueId - the primary key for the new cp option value
      Returns:
      the new cp option value
    • createPersistedModel

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

      public CPOptionValue deleteCPOptionValue(CPOptionValue cpOptionValue) throws com.liferay.portal.kernel.exception.PortalException
      Deletes the cp option value from the database. Also notifies the appropriate model listeners.

      Important: Inspect CPOptionValueLocalServiceImpl 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:
      deleteCPOptionValue in interface CPOptionValueLocalService
      Parameters:
      cpOptionValue - the cp option value
      Returns:
      the cp option value that was removed
      Throws:
      PortalException
      com.liferay.portal.kernel.exception.PortalException
    • deleteCPOptionValue

      public CPOptionValue deleteCPOptionValue(long CPOptionValueId) throws com.liferay.portal.kernel.exception.PortalException
      Deletes the cp option value with the primary key from the database. Also notifies the appropriate model listeners.

      Important: Inspect CPOptionValueLocalServiceImpl 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:
      deleteCPOptionValue in interface CPOptionValueLocalService
      Parameters:
      CPOptionValueId - the primary key of the cp option value
      Returns:
      the cp option value that was removed
      Throws:
      PortalException - if a cp option value with the primary key could not be found
      com.liferay.portal.kernel.exception.PortalException
    • deleteCPOptionValues

      public void deleteCPOptionValues(long cpOptionId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      deleteCPOptionValues in interface CPOptionValueLocalService
      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 CPOptionValueLocalService
      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 CPOptionValueLocalService
      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 CPOptionValueLocalService
      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 CPOptionValueLocalService
    • 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 CPOptionValueLocalService
      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.CPOptionValueModelImpl.

      Specified by:
      dynamicQuery in interface CPOptionValueLocalService
      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.CPOptionValueModelImpl.

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

      public CPOptionValue fetchCPOptionValue(long CPOptionValueId)
      Specified by:
      fetchCPOptionValue in interface CPOptionValueLocalService
    • fetchCPOptionValueByExternalReferenceCode

      public CPOptionValue fetchCPOptionValueByExternalReferenceCode(String externalReferenceCode, long companyId)
      Specified by:
      fetchCPOptionValueByExternalReferenceCode in interface CPOptionValueLocalService
    • fetchCPOptionValueByUuidAndCompanyId

      public CPOptionValue fetchCPOptionValueByUuidAndCompanyId(String uuid, long companyId)
      Returns the cp option value with the matching UUID and company.
      Specified by:
      fetchCPOptionValueByUuidAndCompanyId in interface CPOptionValueLocalService
      Parameters:
      uuid - the cp option value's UUID
      companyId - the primary key of the company
      Returns:
      the matching cp option value, or null if a matching cp option value could not be found
    • getActionableDynamicQuery

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

      public CPOptionValue getCPOptionValue(long CPOptionValueId) throws com.liferay.portal.kernel.exception.PortalException
      Returns the cp option value with the primary key.
      Specified by:
      getCPOptionValue in interface CPOptionValueLocalService
      Parameters:
      CPOptionValueId - the primary key of the cp option value
      Returns:
      the cp option value
      Throws:
      PortalException - if a cp option value with the primary key could not be found
      com.liferay.portal.kernel.exception.PortalException
    • getCPOptionValue

      public CPOptionValue getCPOptionValue(long cpOptionId, String key) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getCPOptionValue in interface CPOptionValueLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCPOptionValueByExternalReferenceCode

      public CPOptionValue getCPOptionValueByExternalReferenceCode(String externalReferenceCode, long companyId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getCPOptionValueByExternalReferenceCode in interface CPOptionValueLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCPOptionValueByUuidAndCompanyId

      public CPOptionValue getCPOptionValueByUuidAndCompanyId(String uuid, long companyId) throws com.liferay.portal.kernel.exception.PortalException
      Returns the cp option value with the matching UUID and company.
      Specified by:
      getCPOptionValueByUuidAndCompanyId in interface CPOptionValueLocalService
      Parameters:
      uuid - the cp option value's UUID
      companyId - the primary key of the company
      Returns:
      the matching cp option value
      Throws:
      PortalException - if a matching cp option value could not be found
      com.liferay.portal.kernel.exception.PortalException
    • getCPOptionValues

      public List<CPOptionValue> getCPOptionValues(int start, int end)
      Returns a range of all the cp option values.

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

      Specified by:
      getCPOptionValues in interface CPOptionValueLocalService
      Parameters:
      start - the lower bound of the range of cp option values
      end - the upper bound of the range of cp option values (not inclusive)
      Returns:
      the range of cp option values
    • getCPOptionValues

      public List<CPOptionValue> getCPOptionValues(long cpOptionId, int start, int end)
      Specified by:
      getCPOptionValues in interface CPOptionValueLocalService
    • getCPOptionValues

      public List<CPOptionValue> getCPOptionValues(long cpOptionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPOptionValue> orderByComparator)
      Specified by:
      getCPOptionValues in interface CPOptionValueLocalService
    • getCPOptionValuesCount

      public int getCPOptionValuesCount()
      Returns the number of cp option values.
      Specified by:
      getCPOptionValuesCount in interface CPOptionValueLocalService
      Returns:
      the number of cp option values
    • getCPOptionValuesCount

      public int getCPOptionValuesCount(long cpOptionId)
      Specified by:
      getCPOptionValuesCount in interface CPOptionValueLocalService
    • getExportActionableDynamicQuery

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

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

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

      public com.liferay.portal.kernel.search.Hits search(com.liferay.portal.kernel.search.SearchContext searchContext)
      Specified by:
      search in interface CPOptionValueLocalService
    • searchCPOptionValues

      public com.liferay.portal.kernel.search.BaseModelSearchResult<CPOptionValue> searchCPOptionValues(long companyId, long cpOptionId, String keywords, int start, int end, com.liferay.portal.kernel.search.Sort[] sorts) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      searchCPOptionValues in interface CPOptionValueLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • searchCPOptionValuesCount

      public int searchCPOptionValuesCount(long companyId, long cpOptionId, String keywords) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      searchCPOptionValuesCount in interface CPOptionValueLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateCPOptionValue

      public CPOptionValue updateCPOptionValue(CPOptionValue cpOptionValue)
      Updates the cp option value in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

      Important: Inspect CPOptionValueLocalServiceImpl 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:
      updateCPOptionValue in interface CPOptionValueLocalService
      Parameters:
      cpOptionValue - the cp option value
      Returns:
      the cp option value that was updated
    • updateCPOptionValue

      public CPOptionValue updateCPOptionValue(long cpOptionValueId, Map<Locale,String> nameMap, double priority, String key, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      updateCPOptionValue in interface CPOptionValueLocalService
      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<CPOptionValue> getCTPersistence()
      Specified by:
      getCTPersistence in interface CPOptionValueLocalService
      Specified by:
      getCTPersistence in interface com.liferay.portal.kernel.service.change.tracking.CTService<CPOptionValue>
    • getModelClass

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

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

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

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