Class CommerceOrderAttachmentLocalServiceWrapper

java.lang.Object
com.liferay.commerce.service.CommerceOrderAttachmentLocalServiceWrapper
All Implemented Interfaces:
CommerceOrderAttachmentLocalService, com.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService, com.liferay.portal.kernel.service.BaseLocalService, com.liferay.portal.kernel.service.PersistedModelLocalService, com.liferay.portal.kernel.service.ServiceWrapper<CommerceOrderAttachmentLocalService>

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

    • CommerceOrderAttachmentLocalServiceWrapper

      public CommerceOrderAttachmentLocalServiceWrapper()
    • CommerceOrderAttachmentLocalServiceWrapper

      public CommerceOrderAttachmentLocalServiceWrapper(CommerceOrderAttachmentLocalService commerceOrderAttachmentLocalService)
  • Method Details

    • addCommerceOrderAttachment

      public CommerceOrderAttachment addCommerceOrderAttachment(CommerceOrderAttachment commerceOrderAttachment)
      Adds the commerce order attachment to the database. Also notifies the appropriate model listeners.

      Important: Inspect CommerceOrderAttachmentLocalServiceImpl 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:
      addCommerceOrderAttachment in interface CommerceOrderAttachmentLocalService
      Parameters:
      commerceOrderAttachment - the commerce order attachment
      Returns:
      the commerce order attachment that was added
    • addCommerceOrderAttachment

      public CommerceOrderAttachment addCommerceOrderAttachment(String externalReferenceCode, long userId, long commerceOrderId, double priority, boolean restricted, String title, String type, String fileName, InputStream inputStream) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      addCommerceOrderAttachment in interface CommerceOrderAttachmentLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • createCommerceOrderAttachment

      public CommerceOrderAttachment createCommerceOrderAttachment(long commerceOrderAttachmentId)
      Creates a new commerce order attachment with the primary key. Does not add the commerce order attachment to the database.
      Specified by:
      createCommerceOrderAttachment in interface CommerceOrderAttachmentLocalService
      Parameters:
      commerceOrderAttachmentId - the primary key for the new commerce order attachment
      Returns:
      the new commerce order attachment
    • createPersistedModel

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

      public CommerceOrderAttachment deleteCommerceOrderAttachment(CommerceOrderAttachment commerceOrderAttachment) throws com.liferay.portal.kernel.exception.PortalException
      Deletes the commerce order attachment from the database. Also notifies the appropriate model listeners.

      Important: Inspect CommerceOrderAttachmentLocalServiceImpl 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:
      deleteCommerceOrderAttachment in interface CommerceOrderAttachmentLocalService
      Parameters:
      commerceOrderAttachment - the commerce order attachment
      Returns:
      the commerce order attachment that was removed
    • deleteCommerceOrderAttachment

      public CommerceOrderAttachment deleteCommerceOrderAttachment(long commerceOrderAttachmentId) throws com.liferay.portal.kernel.exception.PortalException
      Deletes the commerce order attachment with the primary key from the database. Also notifies the appropriate model listeners.

      Important: Inspect CommerceOrderAttachmentLocalServiceImpl 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:
      deleteCommerceOrderAttachment in interface CommerceOrderAttachmentLocalService
      Parameters:
      commerceOrderAttachmentId - the primary key of the commerce order attachment
      Returns:
      the commerce order attachment that was removed
    • deleteCommerceOrderAttachments

      public void deleteCommerceOrderAttachments(long commerceOrderId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      deleteCommerceOrderAttachments in interface CommerceOrderAttachmentLocalService
      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 CommerceOrderAttachmentLocalService
      Specified by:
      deletePersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalService
    • dslQuery

      public <T> T dslQuery(com.liferay.petra.sql.dsl.query.DSLQuery dslQuery)
      Specified by:
      dslQuery in interface CommerceOrderAttachmentLocalService
      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 CommerceOrderAttachmentLocalService
      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 CommerceOrderAttachmentLocalService
    • 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 CommerceOrderAttachmentLocalService
      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.model.impl.CommerceOrderAttachmentModelImpl.

      Specified by:
      dynamicQuery in interface CommerceOrderAttachmentLocalService
      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.model.impl.CommerceOrderAttachmentModelImpl.

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

      public CommerceOrderAttachment fetchCommerceOrderAttachment(long commerceOrderAttachmentId)
      Specified by:
      fetchCommerceOrderAttachment in interface CommerceOrderAttachmentLocalService
    • fetchCommerceOrderAttachmentByExternalReferenceCode

      public CommerceOrderAttachment fetchCommerceOrderAttachmentByExternalReferenceCode(String externalReferenceCode, long companyId)
      Specified by:
      fetchCommerceOrderAttachmentByExternalReferenceCode in interface CommerceOrderAttachmentLocalService
    • fetchCommerceOrderAttachmentByUuidAndGroupId

      public CommerceOrderAttachment fetchCommerceOrderAttachmentByUuidAndGroupId(String uuid, long groupId)
      Returns the commerce order attachment matching the UUID and group.
      Specified by:
      fetchCommerceOrderAttachmentByUuidAndGroupId in interface CommerceOrderAttachmentLocalService
      Parameters:
      uuid - the commerce order attachment's UUID
      groupId - the primary key of the group
      Returns:
      the matching commerce order attachment, or null if a matching commerce order attachment could not be found
    • getActionableDynamicQuery

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

      public CommerceOrderAttachment getCommerceOrderAttachment(long commerceOrderAttachmentId) throws com.liferay.portal.kernel.exception.PortalException
      Returns the commerce order attachment with the primary key.
      Specified by:
      getCommerceOrderAttachment in interface CommerceOrderAttachmentLocalService
      Parameters:
      commerceOrderAttachmentId - the primary key of the commerce order attachment
      Returns:
      the commerce order attachment
    • getCommerceOrderAttachmentByExternalReferenceCode

      public CommerceOrderAttachment getCommerceOrderAttachmentByExternalReferenceCode(String externalReferenceCode, long companyId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getCommerceOrderAttachmentByExternalReferenceCode in interface CommerceOrderAttachmentLocalService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getCommerceOrderAttachmentByUuidAndGroupId

      public CommerceOrderAttachment getCommerceOrderAttachmentByUuidAndGroupId(String uuid, long groupId) throws com.liferay.portal.kernel.exception.PortalException
      Returns the commerce order attachment matching the UUID and group.
      Specified by:
      getCommerceOrderAttachmentByUuidAndGroupId in interface CommerceOrderAttachmentLocalService
      Parameters:
      uuid - the commerce order attachment's UUID
      groupId - the primary key of the group
      Returns:
      the matching commerce order attachment
    • getCommerceOrderAttachments

      public List<CommerceOrderAttachment> getCommerceOrderAttachments(int start, int end)
      Returns a range of all the commerce order attachments.

      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.model.impl.CommerceOrderAttachmentModelImpl.

      Specified by:
      getCommerceOrderAttachments in interface CommerceOrderAttachmentLocalService
      Parameters:
      start - the lower bound of the range of commerce order attachments
      end - the upper bound of the range of commerce order attachments (not inclusive)
      Returns:
      the range of commerce order attachments
    • getCommerceOrderAttachments

      public List<CommerceOrderAttachment> getCommerceOrderAttachments(long commerceOrderId, boolean restricted, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderAttachment> orderByComparator)
      Specified by:
      getCommerceOrderAttachments in interface CommerceOrderAttachmentLocalService
    • getCommerceOrderAttachments

      public List<CommerceOrderAttachment> getCommerceOrderAttachments(long commerceOrderId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderAttachment> orderByComparator)
      Specified by:
      getCommerceOrderAttachments in interface CommerceOrderAttachmentLocalService
    • getCommerceOrderAttachmentsByUuidAndCompanyId

      public List<CommerceOrderAttachment> getCommerceOrderAttachmentsByUuidAndCompanyId(String uuid, long companyId)
      Returns all the commerce order attachments matching the UUID and company.
      Specified by:
      getCommerceOrderAttachmentsByUuidAndCompanyId in interface CommerceOrderAttachmentLocalService
      Parameters:
      uuid - the UUID of the commerce order attachments
      companyId - the primary key of the company
      Returns:
      the matching commerce order attachments, or an empty list if no matches were found
    • getCommerceOrderAttachmentsByUuidAndCompanyId

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

      public int getCommerceOrderAttachmentsCount()
      Returns the number of commerce order attachments.
      Specified by:
      getCommerceOrderAttachmentsCount in interface CommerceOrderAttachmentLocalService
      Returns:
      the number of commerce order attachments
    • getCommerceOrderAttachmentsCount

      public int getCommerceOrderAttachmentsCount(long commerceOrderId)
      Specified by:
      getCommerceOrderAttachmentsCount in interface CommerceOrderAttachmentLocalService
    • getCommerceOrderAttachmentsCount

      public int getCommerceOrderAttachmentsCount(long commerceOrderId, boolean restricted)
      Specified by:
      getCommerceOrderAttachmentsCount in interface CommerceOrderAttachmentLocalService
    • getExportActionableDynamicQuery

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

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

      public String getOSGiServiceIdentifier()
      Returns the OSGi service identifier.
      Specified by:
      getOSGiServiceIdentifier in interface CommerceOrderAttachmentLocalService
      Specified by:
      getOSGiServiceIdentifier in interface com.liferay.portal.kernel.module.framework.service.IdentifiableOSGiService
      Specified by:
      getOSGiServiceIdentifier in interface com.liferay.portal.kernel.service.ServiceWrapper<CommerceOrderAttachmentLocalService>
      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 CommerceOrderAttachmentLocalService
      Specified by:
      getPersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalService
    • updateCommerceOrderAttachment

      public CommerceOrderAttachment updateCommerceOrderAttachment(CommerceOrderAttachment commerceOrderAttachment)
      Updates the commerce order attachment in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

      Important: Inspect CommerceOrderAttachmentLocalServiceImpl 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:
      updateCommerceOrderAttachment in interface CommerceOrderAttachmentLocalService
      Parameters:
      commerceOrderAttachment - the commerce order attachment
      Returns:
      the commerce order attachment that was updated
    • updateCommerceOrderAttachment

      public CommerceOrderAttachment updateCommerceOrderAttachment(long commerceOrderAttachmentId, double priority, boolean restricted, String title, String type) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      updateCommerceOrderAttachment in interface CommerceOrderAttachmentLocalService
      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 CommerceOrderAttachmentLocalService getWrappedService()
      Specified by:
      getWrappedService in interface com.liferay.portal.kernel.service.ServiceWrapper<CommerceOrderAttachmentLocalService>
    • setWrappedService

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