Class CommerceTermEntryLocalServiceWrapper

java.lang.Object
com.liferay.commerce.term.service.CommerceTermEntryLocalServiceWrapper
All Implemented Interfaces:
CommerceTermEntryLocalService, com.liferay.portal.kernel.service.BaseLocalService, com.liferay.portal.kernel.service.PersistedModelLocalService, com.liferay.portal.kernel.service.ServiceWrapper<CommerceTermEntryLocalService>

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

    • CommerceTermEntryLocalServiceWrapper

      public CommerceTermEntryLocalServiceWrapper()
    • CommerceTermEntryLocalServiceWrapper

      public CommerceTermEntryLocalServiceWrapper(CommerceTermEntryLocalService commerceTermEntryLocalService)
  • Method Details

    • addCommerceTermEntry

      public CommerceTermEntry addCommerceTermEntry(CommerceTermEntry commerceTermEntry)
      Adds the commerce term entry to the database. Also notifies the appropriate model listeners.

      Important: Inspect CommerceTermEntryLocalServiceImpl 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:
      addCommerceTermEntry in interface CommerceTermEntryLocalService
      Parameters:
      commerceTermEntry - the commerce term entry
      Returns:
      the commerce term entry that was added
    • addCommerceTermEntry

      public CommerceTermEntry addCommerceTermEntry(String externalReferenceCode, long userId, boolean active, Map<Locale,String> descriptionMap, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, int expirationDateMonth, int expirationDateDay, int expirationDateYear, int expirationDateHour, int expirationDateMinute, boolean neverExpire, Map<Locale,String> labelMap, String name, double priority, String type, String typeSettings, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      addCommerceTermEntry in interface CommerceTermEntryLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • checkCommerceTermEntries

      public void checkCommerceTermEntries() throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      checkCommerceTermEntries in interface CommerceTermEntryLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • createCommerceTermEntry

      public CommerceTermEntry createCommerceTermEntry(long commerceTermEntryId)
      Creates a new commerce term entry with the primary key. Does not add the commerce term entry to the database.
      Specified by:
      createCommerceTermEntry in interface CommerceTermEntryLocalService
      Parameters:
      commerceTermEntryId - the primary key for the new commerce term entry
      Returns:
      the new commerce term entry
    • createPersistedModel

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

      public CommerceTermEntry deleteCommerceTermEntry(CommerceTermEntry commerceTermEntry) throws com.liferay.portal.kernel.exception.PortalException
      Deletes the commerce term entry from the database. Also notifies the appropriate model listeners.

      Important: Inspect CommerceTermEntryLocalServiceImpl 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:
      deleteCommerceTermEntry in interface CommerceTermEntryLocalService
      Parameters:
      commerceTermEntry - the commerce term entry
      Returns:
      the commerce term entry that was removed
      Throws:
      PortalException
      com.liferay.portal.kernel.exception.PortalException
    • deleteCommerceTermEntry

      public CommerceTermEntry deleteCommerceTermEntry(long commerceTermEntryId) throws com.liferay.portal.kernel.exception.PortalException
      Deletes the commerce term entry with the primary key from the database. Also notifies the appropriate model listeners.

      Important: Inspect CommerceTermEntryLocalServiceImpl 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:
      deleteCommerceTermEntry in interface CommerceTermEntryLocalService
      Parameters:
      commerceTermEntryId - the primary key of the commerce term entry
      Returns:
      the commerce term entry that was removed
      Throws:
      PortalException - if a commerce term entry 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 CommerceTermEntryLocalService
      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 CommerceTermEntryLocalService
      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 CommerceTermEntryLocalService
      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 CommerceTermEntryLocalService
    • 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 CommerceTermEntryLocalService
      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.term.model.impl.CommerceTermEntryModelImpl.

      Specified by:
      dynamicQuery in interface CommerceTermEntryLocalService
      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.term.model.impl.CommerceTermEntryModelImpl.

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

      public CommerceTermEntry fetchCommerceTermEntry(long commerceTermEntryId)
      Specified by:
      fetchCommerceTermEntry in interface CommerceTermEntryLocalService
    • fetchCommerceTermEntryByExternalReferenceCode

      public CommerceTermEntry fetchCommerceTermEntryByExternalReferenceCode(String externalReferenceCode, long companyId)
      Specified by:
      fetchCommerceTermEntryByExternalReferenceCode in interface CommerceTermEntryLocalService
    • fetchCommerceTermEntryByUuidAndCompanyId

      public CommerceTermEntry fetchCommerceTermEntryByUuidAndCompanyId(String uuid, long companyId)
      Returns the commerce term entry with the matching UUID and company.
      Specified by:
      fetchCommerceTermEntryByUuidAndCompanyId in interface CommerceTermEntryLocalService
      Parameters:
      uuid - the commerce term entry's UUID
      companyId - the primary key of the company
      Returns:
      the matching commerce term entry, or null if a matching commerce term entry could not be found
    • fetchCTermEntryLocalization

      public CTermEntryLocalization fetchCTermEntryLocalization(long commerceTermEntryId, String languageId)
      Specified by:
      fetchCTermEntryLocalization in interface CommerceTermEntryLocalService
    • getActionableDynamicQuery

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

      public List<CommerceTermEntry> getCommerceTermEntries(int start, int end)
      Returns a range of all the commerce term entries.

      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.term.model.impl.CommerceTermEntryModelImpl.

      Specified by:
      getCommerceTermEntries in interface CommerceTermEntryLocalService
      Parameters:
      start - the lower bound of the range of commerce term entries
      end - the upper bound of the range of commerce term entries (not inclusive)
      Returns:
      the range of commerce term entries
    • getCommerceTermEntries

      public List<CommerceTermEntry> getCommerceTermEntries(long companyId, String type)
      Specified by:
      getCommerceTermEntries in interface CommerceTermEntryLocalService
    • getCommerceTermEntriesCount

      public int getCommerceTermEntriesCount()
      Returns the number of commerce term entries.
      Specified by:
      getCommerceTermEntriesCount in interface CommerceTermEntryLocalService
      Returns:
      the number of commerce term entries
    • getCommerceTermEntry

      public CommerceTermEntry getCommerceTermEntry(long commerceTermEntryId) throws com.liferay.portal.kernel.exception.PortalException
      Returns the commerce term entry with the primary key.
      Specified by:
      getCommerceTermEntry in interface CommerceTermEntryLocalService
      Parameters:
      commerceTermEntryId - the primary key of the commerce term entry
      Returns:
      the commerce term entry
      Throws:
      PortalException - if a commerce term entry with the primary key could not be found
      com.liferay.portal.kernel.exception.PortalException
    • getCommerceTermEntryByExternalReferenceCode

      public CommerceTermEntry getCommerceTermEntryByExternalReferenceCode(String externalReferenceCode, long companyId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getCommerceTermEntryByExternalReferenceCode in interface CommerceTermEntryLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCommerceTermEntryByUuidAndCompanyId

      public CommerceTermEntry getCommerceTermEntryByUuidAndCompanyId(String uuid, long companyId) throws com.liferay.portal.kernel.exception.PortalException
      Returns the commerce term entry with the matching UUID and company.
      Specified by:
      getCommerceTermEntryByUuidAndCompanyId in interface CommerceTermEntryLocalService
      Parameters:
      uuid - the commerce term entry's UUID
      companyId - the primary key of the company
      Returns:
      the matching commerce term entry
      Throws:
      PortalException - if a matching commerce term entry could not be found
      com.liferay.portal.kernel.exception.PortalException
    • getCTermEntryLocalization

      public CTermEntryLocalization getCTermEntryLocalization(long commerceTermEntryId, String languageId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getCTermEntryLocalization in interface CommerceTermEntryLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCTermEntryLocalizationLanguageIds

      public List<String> getCTermEntryLocalizationLanguageIds(long commerceTermEntryId)
      Specified by:
      getCTermEntryLocalizationLanguageIds in interface CommerceTermEntryLocalService
    • getCTermEntryLocalizations

      public List<CTermEntryLocalization> getCTermEntryLocalizations(long commerceTermEntryId)
      Specified by:
      getCTermEntryLocalizations in interface CommerceTermEntryLocalService
    • getDeliveryCommerceTermEntries

      public List<CommerceTermEntry> getDeliveryCommerceTermEntries(long companyId, long commerceOrderTypeId, long commerceShippingOptionId)
      Specified by:
      getDeliveryCommerceTermEntries in interface CommerceTermEntryLocalService
    • getDeliveryCommerceTermEntriesCount

      public int getDeliveryCommerceTermEntriesCount(long companyId, long commerceOrderTypeId, long commerceShippingOptionId)
      Specified by:
      getDeliveryCommerceTermEntriesCount in interface CommerceTermEntryLocalService
    • getExportActionableDynamicQuery

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

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

      public String getOSGiServiceIdentifier()
      Returns the OSGi service identifier.
      Specified by:
      getOSGiServiceIdentifier in interface CommerceTermEntryLocalService
      Returns:
      the OSGi service identifier
    • getPaymentCommerceTermEntries

      public List<CommerceTermEntry> getPaymentCommerceTermEntries(long companyId, long commerceOrderTypeId, long commercePaymentMethodGroupRelId)
      Specified by:
      getPaymentCommerceTermEntries in interface CommerceTermEntryLocalService
    • getPaymentCommerceTermEntriesCount

      public int getPaymentCommerceTermEntriesCount(long companyId, long commerceOrderTypeId, long commercePaymentMethodGroupRelId)
      Specified by:
      getPaymentCommerceTermEntriesCount in interface CommerceTermEntryLocalService
    • getPersistedModel

      public com.liferay.portal.kernel.model.PersistedModel getPersistedModel(Serializable primaryKeyObj) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getPersistedModel in interface CommerceTermEntryLocalService
      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 CommerceTermEntryLocalService
    • searchCommerceTermEntries

      public com.liferay.portal.kernel.search.BaseModelSearchResult<CommerceTermEntry> searchCommerceTermEntries(long companyId, long accountEntryId, String type, String keywords, int start, int end, com.liferay.portal.kernel.search.Sort sort) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      searchCommerceTermEntries in interface CommerceTermEntryLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateCommerceTermEntry

      public CommerceTermEntry updateCommerceTermEntry(CommerceTermEntry commerceTermEntry)
      Updates the commerce term entry in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

      Important: Inspect CommerceTermEntryLocalServiceImpl 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:
      updateCommerceTermEntry in interface CommerceTermEntryLocalService
      Parameters:
      commerceTermEntry - the commerce term entry
      Returns:
      the commerce term entry that was updated
    • updateCommerceTermEntry

      public CommerceTermEntry updateCommerceTermEntry(long userId, long commerceTermEntryId, boolean active, Map<Locale,String> descriptionMap, int displayDateMonth, int displayDateDay, int displayDateYear, int displayDateHour, int displayDateMinute, int expirationDateMonth, int expirationDateDay, int expirationDateYear, int expirationDateHour, int expirationDateMinute, boolean neverExpire, Map<Locale,String> labelMap, String name, double priority, String typeSettings, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      updateCommerceTermEntry in interface CommerceTermEntryLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateCommerceTermEntryExternalReferenceCode

      public CommerceTermEntry updateCommerceTermEntryExternalReferenceCode(String externalReferenceCode, long commerceTermEntryId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      updateCommerceTermEntryExternalReferenceCode in interface CommerceTermEntryLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateCTermEntryLocalization

      public CTermEntryLocalization updateCTermEntryLocalization(CommerceTermEntry commerceTermEntry, String languageId, String description, String label) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      updateCTermEntryLocalization in interface CommerceTermEntryLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateCTermEntryLocalizations

      public List<CTermEntryLocalization> updateCTermEntryLocalizations(CommerceTermEntry commerceTermEntry, Map<String,String> descriptionMap, Map<String,String> labelMap) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      updateCTermEntryLocalizations in interface CommerceTermEntryLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateStatus

      public CommerceTermEntry updateStatus(long userId, long commerceTermEntryId, int status, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      updateStatus in interface CommerceTermEntryLocalService
      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
    • getWrappedService

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

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