Class CPMeasurementUnitLocalServiceWrapper

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

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

    • CPMeasurementUnitLocalServiceWrapper

      public CPMeasurementUnitLocalServiceWrapper()
    • CPMeasurementUnitLocalServiceWrapper

      public CPMeasurementUnitLocalServiceWrapper(CPMeasurementUnitLocalService cpMeasurementUnitLocalService)
  • Method Details

    • addCPMeasurementUnit

      public CPMeasurementUnit addCPMeasurementUnit(CPMeasurementUnit cpMeasurementUnit)
      Adds the cp measurement unit to the database. Also notifies the appropriate model listeners.

      Important: Inspect CPMeasurementUnitLocalServiceImpl 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:
      addCPMeasurementUnit in interface CPMeasurementUnitLocalService
      Parameters:
      cpMeasurementUnit - the cp measurement unit
      Returns:
      the cp measurement unit that was added
    • addCPMeasurementUnit

      public CPMeasurementUnit addCPMeasurementUnit(String externalReferenceCode, Map<Locale,String> nameMap, String key, double rate, boolean primary, double priority, int type, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      addCPMeasurementUnit in interface CPMeasurementUnitLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • createCPMeasurementUnit

      public CPMeasurementUnit createCPMeasurementUnit(long CPMeasurementUnitId)
      Creates a new cp measurement unit with the primary key. Does not add the cp measurement unit to the database.
      Specified by:
      createCPMeasurementUnit in interface CPMeasurementUnitLocalService
      Parameters:
      CPMeasurementUnitId - the primary key for the new cp measurement unit
      Returns:
      the new cp measurement unit
    • createPersistedModel

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

      public CPMeasurementUnit deleteCPMeasurementUnit(CPMeasurementUnit cpMeasurementUnit)
      Deletes the cp measurement unit from the database. Also notifies the appropriate model listeners.

      Important: Inspect CPMeasurementUnitLocalServiceImpl 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:
      deleteCPMeasurementUnit in interface CPMeasurementUnitLocalService
      Parameters:
      cpMeasurementUnit - the cp measurement unit
      Returns:
      the cp measurement unit that was removed
    • deleteCPMeasurementUnit

      public CPMeasurementUnit deleteCPMeasurementUnit(long CPMeasurementUnitId) throws com.liferay.portal.kernel.exception.PortalException
      Deletes the cp measurement unit with the primary key from the database. Also notifies the appropriate model listeners.

      Important: Inspect CPMeasurementUnitLocalServiceImpl 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:
      deleteCPMeasurementUnit in interface CPMeasurementUnitLocalService
      Parameters:
      CPMeasurementUnitId - the primary key of the cp measurement unit
      Returns:
      the cp measurement unit that was removed
      Throws:
      PortalException - if a cp measurement unit with the primary key could not be found
      com.liferay.portal.kernel.exception.PortalException
    • deleteCPMeasurementUnits

      public void deleteCPMeasurementUnits(long companyId)
      Specified by:
      deleteCPMeasurementUnits in interface CPMeasurementUnitLocalService
    • 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 CPMeasurementUnitLocalService
      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 CPMeasurementUnitLocalService
      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 CPMeasurementUnitLocalService
      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 CPMeasurementUnitLocalService
    • 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 CPMeasurementUnitLocalService
      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.CPMeasurementUnitModelImpl.

      Specified by:
      dynamicQuery in interface CPMeasurementUnitLocalService
      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.CPMeasurementUnitModelImpl.

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

      public CPMeasurementUnit fetchCPMeasurementUnit(long CPMeasurementUnitId)
      Specified by:
      fetchCPMeasurementUnit in interface CPMeasurementUnitLocalService
    • fetchCPMeasurementUnitByExternalReferenceCode

      public CPMeasurementUnit fetchCPMeasurementUnitByExternalReferenceCode(long companyId, String externalReferenceCode)
      Specified by:
      fetchCPMeasurementUnitByExternalReferenceCode in interface CPMeasurementUnitLocalService
    • fetchCPMeasurementUnitByExternalReferenceCode

      public CPMeasurementUnit fetchCPMeasurementUnitByExternalReferenceCode(String externalReferenceCode, long companyId)
      Specified by:
      fetchCPMeasurementUnitByExternalReferenceCode in interface CPMeasurementUnitLocalService
    • fetchCPMeasurementUnitByKey

      public CPMeasurementUnit fetchCPMeasurementUnitByKey(long companyId, String key) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      fetchCPMeasurementUnitByKey in interface CPMeasurementUnitLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • fetchCPMeasurementUnitByUuidAndGroupId

      public CPMeasurementUnit fetchCPMeasurementUnitByUuidAndGroupId(String uuid, long groupId)
      Returns the cp measurement unit matching the UUID and group.
      Specified by:
      fetchCPMeasurementUnitByUuidAndGroupId in interface CPMeasurementUnitLocalService
      Parameters:
      uuid - the cp measurement unit's UUID
      groupId - the primary key of the group
      Returns:
      the matching cp measurement unit, or null if a matching cp measurement unit could not be found
    • fetchPrimaryCPMeasurementUnit

      public CPMeasurementUnit fetchPrimaryCPMeasurementUnit(long companyId, int type)
      Specified by:
      fetchPrimaryCPMeasurementUnit in interface CPMeasurementUnitLocalService
    • fetchPrimaryCPMeasurementUnitByType

      public CPMeasurementUnit fetchPrimaryCPMeasurementUnitByType(long companyId, int type)
      Specified by:
      fetchPrimaryCPMeasurementUnitByType in interface CPMeasurementUnitLocalService
    • getActionableDynamicQuery

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

      public CPMeasurementUnit getCPMeasurementUnit(long CPMeasurementUnitId) throws com.liferay.portal.kernel.exception.PortalException
      Returns the cp measurement unit with the primary key.
      Specified by:
      getCPMeasurementUnit in interface CPMeasurementUnitLocalService
      Parameters:
      CPMeasurementUnitId - the primary key of the cp measurement unit
      Returns:
      the cp measurement unit
      Throws:
      PortalException - if a cp measurement unit with the primary key could not be found
      com.liferay.portal.kernel.exception.PortalException
    • getCPMeasurementUnitByExternalReferenceCode

      public CPMeasurementUnit getCPMeasurementUnitByExternalReferenceCode(String externalReferenceCode, long companyId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getCPMeasurementUnitByExternalReferenceCode in interface CPMeasurementUnitLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCPMeasurementUnitByKey

      public CPMeasurementUnit getCPMeasurementUnitByKey(long companyId, String key) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getCPMeasurementUnitByKey in interface CPMeasurementUnitLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCPMeasurementUnitByUuidAndGroupId

      public CPMeasurementUnit getCPMeasurementUnitByUuidAndGroupId(String uuid, long groupId) throws com.liferay.portal.kernel.exception.PortalException
      Returns the cp measurement unit matching the UUID and group.
      Specified by:
      getCPMeasurementUnitByUuidAndGroupId in interface CPMeasurementUnitLocalService
      Parameters:
      uuid - the cp measurement unit's UUID
      groupId - the primary key of the group
      Returns:
      the matching cp measurement unit
      Throws:
      PortalException - if a matching cp measurement unit could not be found
      com.liferay.portal.kernel.exception.PortalException
    • getCPMeasurementUnits

      public List<CPMeasurementUnit> getCPMeasurementUnits(int start, int end)
      Returns a range of all the cp measurement units.

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

      Specified by:
      getCPMeasurementUnits in interface CPMeasurementUnitLocalService
      Parameters:
      start - the lower bound of the range of cp measurement units
      end - the upper bound of the range of cp measurement units (not inclusive)
      Returns:
      the range of cp measurement units
    • getCPMeasurementUnits

      public List<CPMeasurementUnit> getCPMeasurementUnits(long companyId)
      Specified by:
      getCPMeasurementUnits in interface CPMeasurementUnitLocalService
    • getCPMeasurementUnits

      public List<CPMeasurementUnit> getCPMeasurementUnits(long companyId, int type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
      Specified by:
      getCPMeasurementUnits in interface CPMeasurementUnitLocalService
    • getCPMeasurementUnits

      public List<CPMeasurementUnit> getCPMeasurementUnits(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator)
      Specified by:
      getCPMeasurementUnits in interface CPMeasurementUnitLocalService
    • getCPMeasurementUnits

      public List<CPMeasurementUnit> getCPMeasurementUnits(long companyId, String[] keys)
      Specified by:
      getCPMeasurementUnits in interface CPMeasurementUnitLocalService
    • getCPMeasurementUnitsByType

      public List<CPMeasurementUnit> getCPMeasurementUnitsByType(long companyId, int type) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getCPMeasurementUnitsByType in interface CPMeasurementUnitLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCPMeasurementUnitsByType

      public List<CPMeasurementUnit> getCPMeasurementUnitsByType(long companyId, int type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPMeasurementUnit> orderByComparator) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getCPMeasurementUnitsByType in interface CPMeasurementUnitLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCPMeasurementUnitsByUuidAndCompanyId

      public List<CPMeasurementUnit> getCPMeasurementUnitsByUuidAndCompanyId(String uuid, long companyId)
      Returns all the cp measurement units matching the UUID and company.
      Specified by:
      getCPMeasurementUnitsByUuidAndCompanyId in interface CPMeasurementUnitLocalService
      Parameters:
      uuid - the UUID of the cp measurement units
      companyId - the primary key of the company
      Returns:
      the matching cp measurement units, or an empty list if no matches were found
    • getCPMeasurementUnitsByUuidAndCompanyId

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

      public int getCPMeasurementUnitsCount()
      Returns the number of cp measurement units.
      Specified by:
      getCPMeasurementUnitsCount in interface CPMeasurementUnitLocalService
      Returns:
      the number of cp measurement units
    • getCPMeasurementUnitsCount

      public int getCPMeasurementUnitsCount(long companyId)
      Specified by:
      getCPMeasurementUnitsCount in interface CPMeasurementUnitLocalService
    • getCPMeasurementUnitsCount

      public int getCPMeasurementUnitsCount(long companyId, int type)
      Specified by:
      getCPMeasurementUnitsCount in interface CPMeasurementUnitLocalService
    • getExportActionableDynamicQuery

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

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

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

      public void importDefaultValues(com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      importDefaultValues in interface CPMeasurementUnitLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • setPrimary

      public CPMeasurementUnit setPrimary(long cpMeasurementUnitId, boolean primary) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      setPrimary in interface CPMeasurementUnitLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateCPMeasurementUnit

      public CPMeasurementUnit updateCPMeasurementUnit(CPMeasurementUnit cpMeasurementUnit)
      Updates the cp measurement unit in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

      Important: Inspect CPMeasurementUnitLocalServiceImpl 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:
      updateCPMeasurementUnit in interface CPMeasurementUnitLocalService
      Parameters:
      cpMeasurementUnit - the cp measurement unit
      Returns:
      the cp measurement unit that was updated
    • updateCPMeasurementUnit

      public CPMeasurementUnit updateCPMeasurementUnit(String externalReferenceCode, long cpMeasurementUnitId, Map<Locale,String> nameMap, String key, double rate, boolean primary, double priority, int type, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      updateCPMeasurementUnit in interface CPMeasurementUnitLocalService
      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<CPMeasurementUnit> getCTPersistence()
      Specified by:
      getCTPersistence in interface CPMeasurementUnitLocalService
      Specified by:
      getCTPersistence in interface com.liferay.portal.kernel.service.change.tracking.CTService<CPMeasurementUnit>
    • getModelClass

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

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

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

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