Interface CommerceOrderAttachmentPersistence

All Superinterfaces:
com.liferay.portal.kernel.service.persistence.BasePersistence<CommerceOrderAttachment>

@ProviderType public interface CommerceOrderAttachmentPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<CommerceOrderAttachment>
The persistence interface for the commerce order attachment service.

Caching information and settings can be found in portal.properties

See Also:
Generated:
  • Method Details

    • findByUuid

      List<CommerceOrderAttachment> findByUuid(String uuid)
      Returns all the commerce order attachments where uuid = ?.
      Parameters:
      uuid - the uuid
      Returns:
      the matching commerce order attachments
    • findByUuid

      List<CommerceOrderAttachment> findByUuid(String uuid, int start, int end)
      Returns a range of all the commerce order attachments where uuid = ?.

      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.

      Parameters:
      uuid - the uuid
      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 matching commerce order attachments
    • findByUuid

      List<CommerceOrderAttachment> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderAttachment> orderByComparator)
      Returns an ordered range of all the commerce order attachments where uuid = ?.

      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.

      Parameters:
      uuid - the uuid
      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 ordered range of matching commerce order attachments
    • findByUuid

      List<CommerceOrderAttachment> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderAttachment> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce order attachments where uuid = ?.

      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.

      Parameters:
      uuid - the uuid
      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)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching commerce order attachments
    • findByUuid_First

      CommerceOrderAttachment findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderAttachment> orderByComparator) throws NoSuchOrderAttachmentException
      Returns the first commerce order attachment in the ordered set where uuid = ?.
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce order attachment
      Throws:
      NoSuchOrderAttachmentException - if a matching commerce order attachment could not be found
    • fetchByUuid_First

      CommerceOrderAttachment fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderAttachment> orderByComparator)
      Returns the first commerce order attachment in the ordered set where uuid = ?.
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce order attachment, or null if a matching commerce order attachment could not be found
    • removeByUuid

      void removeByUuid(String uuid)
      Removes all the commerce order attachments where uuid = ? from the database.
      Parameters:
      uuid - the uuid
    • countByUuid

      int countByUuid(String uuid)
      Returns the number of commerce order attachments where uuid = ?.
      Parameters:
      uuid - the uuid
      Returns:
      the number of matching commerce order attachments
    • findByUUID_G

      CommerceOrderAttachment findByUUID_G(String uuid, long groupId) throws NoSuchOrderAttachmentException
      Returns the commerce order attachment where uuid = ? and groupId = ? or throws a NoSuchOrderAttachmentException if it could not be found.
      Parameters:
      uuid - the uuid
      groupId - the group ID
      Returns:
      the matching commerce order attachment
      Throws:
      NoSuchOrderAttachmentException - if a matching commerce order attachment could not be found
    • fetchByUUID_G

      CommerceOrderAttachment fetchByUUID_G(String uuid, long groupId)
      Returns the commerce order attachment where uuid = ? and groupId = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      uuid - the uuid
      groupId - the group ID
      Returns:
      the matching commerce order attachment, or null if a matching commerce order attachment could not be found
    • fetchByUUID_G

      CommerceOrderAttachment fetchByUUID_G(String uuid, long groupId, boolean useFinderCache)
      Returns the commerce order attachment where uuid = ? and groupId = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      uuid - the uuid
      groupId - the group ID
      useFinderCache - whether to use the finder cache
      Returns:
      the matching commerce order attachment, or null if a matching commerce order attachment could not be found
    • removeByUUID_G

      CommerceOrderAttachment removeByUUID_G(String uuid, long groupId) throws NoSuchOrderAttachmentException
      Removes the commerce order attachment where uuid = ? and groupId = ? from the database.
      Parameters:
      uuid - the uuid
      groupId - the group ID
      Returns:
      the commerce order attachment that was removed
      Throws:
      NoSuchOrderAttachmentException
    • countByUUID_G

      int countByUUID_G(String uuid, long groupId)
      Returns the number of commerce order attachments where uuid = ? and groupId = ?.
      Parameters:
      uuid - the uuid
      groupId - the group ID
      Returns:
      the number of matching commerce order attachments
    • findByUuid_C

      List<CommerceOrderAttachment> findByUuid_C(String uuid, long companyId)
      Returns all the commerce order attachments where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      Returns:
      the matching commerce order attachments
    • findByUuid_C

      List<CommerceOrderAttachment> findByUuid_C(String uuid, long companyId, int start, int end)
      Returns a range of all the commerce order attachments where uuid = ? and companyId = ?.

      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.

      Parameters:
      uuid - the uuid
      companyId - the company ID
      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 matching commerce order attachments
    • findByUuid_C

      List<CommerceOrderAttachment> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderAttachment> orderByComparator)
      Returns an ordered range of all the commerce order attachments where uuid = ? and companyId = ?.

      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.

      Parameters:
      uuid - the uuid
      companyId - the company ID
      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 ordered range of matching commerce order attachments
    • findByUuid_C

      List<CommerceOrderAttachment> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderAttachment> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce order attachments where uuid = ? and companyId = ?.

      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.

      Parameters:
      uuid - the uuid
      companyId - the company ID
      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)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching commerce order attachments
    • findByUuid_C_First

      CommerceOrderAttachment findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderAttachment> orderByComparator) throws NoSuchOrderAttachmentException
      Returns the first commerce order attachment in the ordered set where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce order attachment
      Throws:
      NoSuchOrderAttachmentException - if a matching commerce order attachment could not be found
    • fetchByUuid_C_First

      CommerceOrderAttachment fetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderAttachment> orderByComparator)
      Returns the first commerce order attachment in the ordered set where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce order attachment, or null if a matching commerce order attachment could not be found
    • removeByUuid_C

      void removeByUuid_C(String uuid, long companyId)
      Removes all the commerce order attachments where uuid = ? and companyId = ? from the database.
      Parameters:
      uuid - the uuid
      companyId - the company ID
    • countByUuid_C

      int countByUuid_C(String uuid, long companyId)
      Returns the number of commerce order attachments where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      Returns:
      the number of matching commerce order attachments
    • findByCommerceOrderId

      List<CommerceOrderAttachment> findByCommerceOrderId(long commerceOrderId)
      Returns all the commerce order attachments where commerceOrderId = ?.
      Parameters:
      commerceOrderId - the commerce order ID
      Returns:
      the matching commerce order attachments
    • findByCommerceOrderId

      List<CommerceOrderAttachment> findByCommerceOrderId(long commerceOrderId, int start, int end)
      Returns a range of all the commerce order attachments where commerceOrderId = ?.

      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.

      Parameters:
      commerceOrderId - the commerce order ID
      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 matching commerce order attachments
    • findByCommerceOrderId

      List<CommerceOrderAttachment> findByCommerceOrderId(long commerceOrderId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderAttachment> orderByComparator)
      Returns an ordered range of all the commerce order attachments where commerceOrderId = ?.

      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.

      Parameters:
      commerceOrderId - the commerce order ID
      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 ordered range of matching commerce order attachments
    • findByCommerceOrderId

      List<CommerceOrderAttachment> findByCommerceOrderId(long commerceOrderId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderAttachment> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce order attachments where commerceOrderId = ?.

      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.

      Parameters:
      commerceOrderId - the commerce order ID
      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)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching commerce order attachments
    • findByCommerceOrderId_First

      CommerceOrderAttachment findByCommerceOrderId_First(long commerceOrderId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderAttachment> orderByComparator) throws NoSuchOrderAttachmentException
      Returns the first commerce order attachment in the ordered set where commerceOrderId = ?.
      Parameters:
      commerceOrderId - the commerce order ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce order attachment
      Throws:
      NoSuchOrderAttachmentException - if a matching commerce order attachment could not be found
    • fetchByCommerceOrderId_First

      CommerceOrderAttachment fetchByCommerceOrderId_First(long commerceOrderId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderAttachment> orderByComparator)
      Returns the first commerce order attachment in the ordered set where commerceOrderId = ?.
      Parameters:
      commerceOrderId - the commerce order ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce order attachment, or null if a matching commerce order attachment could not be found
    • removeByCommerceOrderId

      void removeByCommerceOrderId(long commerceOrderId)
      Removes all the commerce order attachments where commerceOrderId = ? from the database.
      Parameters:
      commerceOrderId - the commerce order ID
    • countByCommerceOrderId

      int countByCommerceOrderId(long commerceOrderId)
      Returns the number of commerce order attachments where commerceOrderId = ?.
      Parameters:
      commerceOrderId - the commerce order ID
      Returns:
      the number of matching commerce order attachments
    • findByC_R

      List<CommerceOrderAttachment> findByC_R(long commerceOrderId, boolean restricted)
      Returns all the commerce order attachments where commerceOrderId = ? and restricted = ?.
      Parameters:
      commerceOrderId - the commerce order ID
      restricted - the restricted
      Returns:
      the matching commerce order attachments
    • findByC_R

      List<CommerceOrderAttachment> findByC_R(long commerceOrderId, boolean restricted, int start, int end)
      Returns a range of all the commerce order attachments where commerceOrderId = ? and restricted = ?.

      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.

      Parameters:
      commerceOrderId - the commerce order ID
      restricted - the restricted
      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 matching commerce order attachments
    • findByC_R

      List<CommerceOrderAttachment> findByC_R(long commerceOrderId, boolean restricted, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderAttachment> orderByComparator)
      Returns an ordered range of all the commerce order attachments where commerceOrderId = ? and restricted = ?.

      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.

      Parameters:
      commerceOrderId - the commerce order ID
      restricted - the restricted
      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 ordered range of matching commerce order attachments
    • findByC_R

      List<CommerceOrderAttachment> findByC_R(long commerceOrderId, boolean restricted, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderAttachment> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce order attachments where commerceOrderId = ? and restricted = ?.

      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.

      Parameters:
      commerceOrderId - the commerce order ID
      restricted - the restricted
      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)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching commerce order attachments
    • findByC_R_First

      CommerceOrderAttachment findByC_R_First(long commerceOrderId, boolean restricted, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderAttachment> orderByComparator) throws NoSuchOrderAttachmentException
      Returns the first commerce order attachment in the ordered set where commerceOrderId = ? and restricted = ?.
      Parameters:
      commerceOrderId - the commerce order ID
      restricted - the restricted
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce order attachment
      Throws:
      NoSuchOrderAttachmentException - if a matching commerce order attachment could not be found
    • fetchByC_R_First

      CommerceOrderAttachment fetchByC_R_First(long commerceOrderId, boolean restricted, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderAttachment> orderByComparator)
      Returns the first commerce order attachment in the ordered set where commerceOrderId = ? and restricted = ?.
      Parameters:
      commerceOrderId - the commerce order ID
      restricted - the restricted
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce order attachment, or null if a matching commerce order attachment could not be found
    • removeByC_R

      void removeByC_R(long commerceOrderId, boolean restricted)
      Removes all the commerce order attachments where commerceOrderId = ? and restricted = ? from the database.
      Parameters:
      commerceOrderId - the commerce order ID
      restricted - the restricted
    • countByC_R

      int countByC_R(long commerceOrderId, boolean restricted)
      Returns the number of commerce order attachments where commerceOrderId = ? and restricted = ?.
      Parameters:
      commerceOrderId - the commerce order ID
      restricted - the restricted
      Returns:
      the number of matching commerce order attachments
    • findByERC_C

      CommerceOrderAttachment findByERC_C(String externalReferenceCode, long companyId) throws NoSuchOrderAttachmentException
      Returns the commerce order attachment where externalReferenceCode = ? and companyId = ? or throws a NoSuchOrderAttachmentException if it could not be found.
      Parameters:
      externalReferenceCode - the external reference code
      companyId - the company ID
      Returns:
      the matching commerce order attachment
      Throws:
      NoSuchOrderAttachmentException - if a matching commerce order attachment could not be found
    • fetchByERC_C

      CommerceOrderAttachment fetchByERC_C(String externalReferenceCode, long companyId)
      Returns the commerce order attachment where externalReferenceCode = ? and companyId = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      externalReferenceCode - the external reference code
      companyId - the company ID
      Returns:
      the matching commerce order attachment, or null if a matching commerce order attachment could not be found
    • fetchByERC_C

      CommerceOrderAttachment fetchByERC_C(String externalReferenceCode, long companyId, boolean useFinderCache)
      Returns the commerce order attachment where externalReferenceCode = ? and companyId = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      externalReferenceCode - the external reference code
      companyId - the company ID
      useFinderCache - whether to use the finder cache
      Returns:
      the matching commerce order attachment, or null if a matching commerce order attachment could not be found
    • removeByERC_C

      CommerceOrderAttachment removeByERC_C(String externalReferenceCode, long companyId) throws NoSuchOrderAttachmentException
      Removes the commerce order attachment where externalReferenceCode = ? and companyId = ? from the database.
      Parameters:
      externalReferenceCode - the external reference code
      companyId - the company ID
      Returns:
      the commerce order attachment that was removed
      Throws:
      NoSuchOrderAttachmentException
    • countByERC_C

      int countByERC_C(String externalReferenceCode, long companyId)
      Returns the number of commerce order attachments where externalReferenceCode = ? and companyId = ?.
      Parameters:
      externalReferenceCode - the external reference code
      companyId - the company ID
      Returns:
      the number of matching commerce order attachments
    • cacheResult

      void cacheResult(CommerceOrderAttachment commerceOrderAttachment)
      Caches the commerce order attachment in the entity cache if it is enabled.
      Parameters:
      commerceOrderAttachment - the commerce order attachment
    • cacheResult

      void cacheResult(List<CommerceOrderAttachment> commerceOrderAttachments)
      Caches the commerce order attachments in the entity cache if it is enabled.
      Parameters:
      commerceOrderAttachments - the commerce order attachments
    • create

      CommerceOrderAttachment create(long commerceOrderAttachmentId)
      Creates a new commerce order attachment with the primary key. Does not add the commerce order attachment to the database.
      Parameters:
      commerceOrderAttachmentId - the primary key for the new commerce order attachment
      Returns:
      the new commerce order attachment
    • remove

      CommerceOrderAttachment remove(long commerceOrderAttachmentId) throws NoSuchOrderAttachmentException
      Removes the commerce order attachment with the primary key from the database. Also notifies the appropriate model listeners.
      Parameters:
      commerceOrderAttachmentId - the primary key of the commerce order attachment
      Returns:
      the commerce order attachment that was removed
      Throws:
      NoSuchOrderAttachmentException - if a commerce order attachment with the primary key could not be found
    • updateImpl

      CommerceOrderAttachment updateImpl(CommerceOrderAttachment commerceOrderAttachment)
    • findByPrimaryKey

      CommerceOrderAttachment findByPrimaryKey(long commerceOrderAttachmentId) throws NoSuchOrderAttachmentException
      Returns the commerce order attachment with the primary key or throws a NoSuchOrderAttachmentException if it could not be found.
      Parameters:
      commerceOrderAttachmentId - the primary key of the commerce order attachment
      Returns:
      the commerce order attachment
      Throws:
      NoSuchOrderAttachmentException - if a commerce order attachment with the primary key could not be found
    • fetchByPrimaryKey

      CommerceOrderAttachment fetchByPrimaryKey(long commerceOrderAttachmentId)
      Returns the commerce order attachment with the primary key or returns null if it could not be found.
      Parameters:
      commerceOrderAttachmentId - the primary key of the commerce order attachment
      Returns:
      the commerce order attachment, or null if a commerce order attachment with the primary key could not be found
    • findAll

      Returns all the commerce order attachments.
      Returns:
      the commerce order attachments
    • findAll

      List<CommerceOrderAttachment> findAll(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.

      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
    • findAll

      List<CommerceOrderAttachment> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderAttachment> orderByComparator)
      Returns an ordered 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.

      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)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of commerce order attachments
    • findAll

      List<CommerceOrderAttachment> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrderAttachment> orderByComparator, boolean useFinderCache)
      Returns an ordered 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.

      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)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of commerce order attachments
    • removeAll

      void removeAll()
      Removes all the commerce order attachments from the database.
    • countAll

      int countAll()
      Returns the number of commerce order attachments.
      Returns:
      the number of commerce order attachments