Class CommerceShipmentItemUtil

java.lang.Object
com.liferay.commerce.service.persistence.CommerceShipmentItemUtil

public class CommerceShipmentItemUtil extends Object
The persistence utility for the commerce shipment item service. This utility wraps com.liferay.commerce.service.persistence.impl.CommerceShipmentItemPersistenceImpl and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.

Caching information and settings can be found in portal.properties

See Also:
Generated:
  • Constructor Details

    • CommerceShipmentItemUtil

      public CommerceShipmentItemUtil()
  • Method Details

    • clearCache

      public static void clearCache()
      See Also:
      • BasePersistence.clearCache()
    • clearCache

      public static void clearCache(CommerceShipmentItem commerceShipmentItem)
      See Also:
      • BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
    • countWithDynamicQuery

      public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      See Also:
      • BasePersistence.countWithDynamicQuery(DynamicQuery)
    • fetchByPrimaryKeys

      public static Map<Serializable,CommerceShipmentItem> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
      See Also:
      • BasePersistence.fetchByPrimaryKeys(Set)
    • findWithDynamicQuery

      public static List<CommerceShipmentItem> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery)
    • findWithDynamicQuery

      public static List<CommerceShipmentItem> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
    • findWithDynamicQuery

      public static List<CommerceShipmentItem> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipmentItem> orderByComparator)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
    • update

      public static CommerceShipmentItem update(CommerceShipmentItem commerceShipmentItem)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
    • update

      public static CommerceShipmentItem update(CommerceShipmentItem commerceShipmentItem, com.liferay.portal.kernel.service.ServiceContext serviceContext)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
    • findByUuid

      public static List<CommerceShipmentItem> findByUuid(String uuid)
      Returns all the commerce shipment items where uuid = ?.
      Parameters:
      uuid - the uuid
      Returns:
      the matching commerce shipment items
    • findByUuid

      public static List<CommerceShipmentItem> findByUuid(String uuid, int start, int end)
      Returns a range of all the commerce shipment items 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 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 CommerceShipmentItemModelImpl.

      Parameters:
      uuid - the uuid
      start - the lower bound of the range of commerce shipment items
      end - the upper bound of the range of commerce shipment items (not inclusive)
      Returns:
      the range of matching commerce shipment items
    • findByUuid

      public static List<CommerceShipmentItem> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipmentItem> orderByComparator)
      Returns an ordered range of all the commerce shipment items 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 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 CommerceShipmentItemModelImpl.

      Parameters:
      uuid - the uuid
      start - the lower bound of the range of commerce shipment items
      end - the upper bound of the range of commerce shipment items (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching commerce shipment items
    • findByUuid

      public static List<CommerceShipmentItem> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipmentItem> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce shipment items 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 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 CommerceShipmentItemModelImpl.

      Parameters:
      uuid - the uuid
      start - the lower bound of the range of commerce shipment items
      end - the upper bound of the range of commerce shipment items (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 shipment items
    • findByUuid_First

      public static CommerceShipmentItem findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipmentItem> orderByComparator) throws NoSuchShipmentItemException
      Returns the first commerce shipment item 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 shipment item
      Throws:
      NoSuchShipmentItemException - if a matching commerce shipment item could not be found
      NoSuchShipmentItemException
    • fetchByUuid_First

      public static CommerceShipmentItem fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipmentItem> orderByComparator)
      Returns the first commerce shipment item 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 shipment item, or null if a matching commerce shipment item could not be found
    • findByUuid_Last

      public static CommerceShipmentItem findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipmentItem> orderByComparator) throws NoSuchShipmentItemException
      Returns the last commerce shipment item in the ordered set where uuid = ?.
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce shipment item
      Throws:
      NoSuchShipmentItemException - if a matching commerce shipment item could not be found
      NoSuchShipmentItemException
    • fetchByUuid_Last

      public static CommerceShipmentItem fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipmentItem> orderByComparator)
      Returns the last commerce shipment item in the ordered set where uuid = ?.
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce shipment item, or null if a matching commerce shipment item could not be found
    • findByUuid_PrevAndNext

      public static CommerceShipmentItem[] findByUuid_PrevAndNext(long commerceShipmentItemId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipmentItem> orderByComparator) throws NoSuchShipmentItemException
      Returns the commerce shipment items before and after the current commerce shipment item in the ordered set where uuid = ?.
      Parameters:
      commerceShipmentItemId - the primary key of the current commerce shipment item
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next commerce shipment item
      Throws:
      NoSuchShipmentItemException - if a commerce shipment item with the primary key could not be found
      NoSuchShipmentItemException
    • removeByUuid

      public static void removeByUuid(String uuid)
      Removes all the commerce shipment items where uuid = ? from the database.
      Parameters:
      uuid - the uuid
    • countByUuid

      public static int countByUuid(String uuid)
      Returns the number of commerce shipment items where uuid = ?.
      Parameters:
      uuid - the uuid
      Returns:
      the number of matching commerce shipment items
    • findByUUID_G

      public static CommerceShipmentItem findByUUID_G(String uuid, long groupId) throws NoSuchShipmentItemException
      Returns the commerce shipment item where uuid = ? and groupId = ? or throws a NoSuchShipmentItemException if it could not be found.
      Parameters:
      uuid - the uuid
      groupId - the group ID
      Returns:
      the matching commerce shipment item
      Throws:
      NoSuchShipmentItemException - if a matching commerce shipment item could not be found
      NoSuchShipmentItemException
    • fetchByUUID_G

      public static CommerceShipmentItem fetchByUUID_G(String uuid, long groupId)
      Returns the commerce shipment item 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 shipment item, or null if a matching commerce shipment item could not be found
    • fetchByUUID_G

      public static CommerceShipmentItem fetchByUUID_G(String uuid, long groupId, boolean useFinderCache)
      Returns the commerce shipment item 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 shipment item, or null if a matching commerce shipment item could not be found
    • removeByUUID_G

      public static CommerceShipmentItem removeByUUID_G(String uuid, long groupId) throws NoSuchShipmentItemException
      Removes the commerce shipment item where uuid = ? and groupId = ? from the database.
      Parameters:
      uuid - the uuid
      groupId - the group ID
      Returns:
      the commerce shipment item that was removed
      Throws:
      NoSuchShipmentItemException
    • countByUUID_G

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

      public static List<CommerceShipmentItem> findByUuid_C(String uuid, long companyId)
      Returns all the commerce shipment items where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      Returns:
      the matching commerce shipment items
    • findByUuid_C

      public static List<CommerceShipmentItem> findByUuid_C(String uuid, long companyId, int start, int end)
      Returns a range of all the commerce shipment items 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 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 CommerceShipmentItemModelImpl.

      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of commerce shipment items
      end - the upper bound of the range of commerce shipment items (not inclusive)
      Returns:
      the range of matching commerce shipment items
    • findByUuid_C

      public static List<CommerceShipmentItem> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipmentItem> orderByComparator)
      Returns an ordered range of all the commerce shipment items 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 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 CommerceShipmentItemModelImpl.

      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of commerce shipment items
      end - the upper bound of the range of commerce shipment items (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching commerce shipment items
    • findByUuid_C

      public static List<CommerceShipmentItem> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipmentItem> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce shipment items 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 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 CommerceShipmentItemModelImpl.

      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of commerce shipment items
      end - the upper bound of the range of commerce shipment items (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 shipment items
    • findByUuid_C_First

      public static CommerceShipmentItem findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipmentItem> orderByComparator) throws NoSuchShipmentItemException
      Returns the first commerce shipment item 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 shipment item
      Throws:
      NoSuchShipmentItemException - if a matching commerce shipment item could not be found
      NoSuchShipmentItemException
    • fetchByUuid_C_First

      public static CommerceShipmentItem fetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipmentItem> orderByComparator)
      Returns the first commerce shipment item 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 shipment item, or null if a matching commerce shipment item could not be found
    • findByUuid_C_Last

      public static CommerceShipmentItem findByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipmentItem> orderByComparator) throws NoSuchShipmentItemException
      Returns the last commerce shipment item 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 last matching commerce shipment item
      Throws:
      NoSuchShipmentItemException - if a matching commerce shipment item could not be found
      NoSuchShipmentItemException
    • fetchByUuid_C_Last

      public static CommerceShipmentItem fetchByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipmentItem> orderByComparator)
      Returns the last commerce shipment item 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 last matching commerce shipment item, or null if a matching commerce shipment item could not be found
    • findByUuid_C_PrevAndNext

      public static CommerceShipmentItem[] findByUuid_C_PrevAndNext(long commerceShipmentItemId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipmentItem> orderByComparator) throws NoSuchShipmentItemException
      Returns the commerce shipment items before and after the current commerce shipment item in the ordered set where uuid = ? and companyId = ?.
      Parameters:
      commerceShipmentItemId - the primary key of the current commerce shipment item
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next commerce shipment item
      Throws:
      NoSuchShipmentItemException - if a commerce shipment item with the primary key could not be found
      NoSuchShipmentItemException
    • removeByUuid_C

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

      public static int countByUuid_C(String uuid, long companyId)
      Returns the number of commerce shipment items where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      Returns:
      the number of matching commerce shipment items
    • findByGroupId

      public static List<CommerceShipmentItem> findByGroupId(long groupId)
      Returns all the commerce shipment items where groupId = ?.
      Parameters:
      groupId - the group ID
      Returns:
      the matching commerce shipment items
    • findByGroupId

      public static List<CommerceShipmentItem> findByGroupId(long groupId, int start, int end)
      Returns a range of all the commerce shipment items where groupId = ?.

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

      Parameters:
      groupId - the group ID
      start - the lower bound of the range of commerce shipment items
      end - the upper bound of the range of commerce shipment items (not inclusive)
      Returns:
      the range of matching commerce shipment items
    • findByGroupId

      public static List<CommerceShipmentItem> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipmentItem> orderByComparator)
      Returns an ordered range of all the commerce shipment items where groupId = ?.

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

      Parameters:
      groupId - the group ID
      start - the lower bound of the range of commerce shipment items
      end - the upper bound of the range of commerce shipment items (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching commerce shipment items
    • findByGroupId

      public static List<CommerceShipmentItem> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipmentItem> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce shipment items where groupId = ?.

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

      Parameters:
      groupId - the group ID
      start - the lower bound of the range of commerce shipment items
      end - the upper bound of the range of commerce shipment items (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 shipment items
    • findByGroupId_First

      public static CommerceShipmentItem findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipmentItem> orderByComparator) throws NoSuchShipmentItemException
      Returns the first commerce shipment item in the ordered set where groupId = ?.
      Parameters:
      groupId - the group ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce shipment item
      Throws:
      NoSuchShipmentItemException - if a matching commerce shipment item could not be found
      NoSuchShipmentItemException
    • fetchByGroupId_First

      public static CommerceShipmentItem fetchByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipmentItem> orderByComparator)
      Returns the first commerce shipment item in the ordered set where groupId = ?.
      Parameters:
      groupId - the group ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce shipment item, or null if a matching commerce shipment item could not be found
    • findByGroupId_Last

      public static CommerceShipmentItem findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipmentItem> orderByComparator) throws NoSuchShipmentItemException
      Returns the last commerce shipment item in the ordered set where groupId = ?.
      Parameters:
      groupId - the group ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce shipment item
      Throws:
      NoSuchShipmentItemException - if a matching commerce shipment item could not be found
      NoSuchShipmentItemException
    • fetchByGroupId_Last

      public static CommerceShipmentItem fetchByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipmentItem> orderByComparator)
      Returns the last commerce shipment item in the ordered set where groupId = ?.
      Parameters:
      groupId - the group ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce shipment item, or null if a matching commerce shipment item could not be found
    • findByGroupId_PrevAndNext

      public static CommerceShipmentItem[] findByGroupId_PrevAndNext(long commerceShipmentItemId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipmentItem> orderByComparator) throws NoSuchShipmentItemException
      Returns the commerce shipment items before and after the current commerce shipment item in the ordered set where groupId = ?.
      Parameters:
      commerceShipmentItemId - the primary key of the current commerce shipment item
      groupId - the group ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next commerce shipment item
      Throws:
      NoSuchShipmentItemException - if a commerce shipment item with the primary key could not be found
      NoSuchShipmentItemException
    • removeByGroupId

      public static void removeByGroupId(long groupId)
      Removes all the commerce shipment items where groupId = ? from the database.
      Parameters:
      groupId - the group ID
    • countByGroupId

      public static int countByGroupId(long groupId)
      Returns the number of commerce shipment items where groupId = ?.
      Parameters:
      groupId - the group ID
      Returns:
      the number of matching commerce shipment items
    • findByCommerceShipmentId

      public static List<CommerceShipmentItem> findByCommerceShipmentId(long commerceShipmentId)
      Returns all the commerce shipment items where commerceShipmentId = ?.
      Parameters:
      commerceShipmentId - the commerce shipment ID
      Returns:
      the matching commerce shipment items
    • findByCommerceShipmentId

      public static List<CommerceShipmentItem> findByCommerceShipmentId(long commerceShipmentId, int start, int end)
      Returns a range of all the commerce shipment items where commerceShipmentId = ?.

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

      Parameters:
      commerceShipmentId - the commerce shipment ID
      start - the lower bound of the range of commerce shipment items
      end - the upper bound of the range of commerce shipment items (not inclusive)
      Returns:
      the range of matching commerce shipment items
    • findByCommerceShipmentId

      public static List<CommerceShipmentItem> findByCommerceShipmentId(long commerceShipmentId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipmentItem> orderByComparator)
      Returns an ordered range of all the commerce shipment items where commerceShipmentId = ?.

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

      Parameters:
      commerceShipmentId - the commerce shipment ID
      start - the lower bound of the range of commerce shipment items
      end - the upper bound of the range of commerce shipment items (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching commerce shipment items
    • findByCommerceShipmentId

      public static List<CommerceShipmentItem> findByCommerceShipmentId(long commerceShipmentId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipmentItem> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce shipment items where commerceShipmentId = ?.

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

      Parameters:
      commerceShipmentId - the commerce shipment ID
      start - the lower bound of the range of commerce shipment items
      end - the upper bound of the range of commerce shipment items (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 shipment items
    • findByCommerceShipmentId_First

      public static CommerceShipmentItem findByCommerceShipmentId_First(long commerceShipmentId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipmentItem> orderByComparator) throws NoSuchShipmentItemException
      Returns the first commerce shipment item in the ordered set where commerceShipmentId = ?.
      Parameters:
      commerceShipmentId - the commerce shipment ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce shipment item
      Throws:
      NoSuchShipmentItemException - if a matching commerce shipment item could not be found
      NoSuchShipmentItemException
    • fetchByCommerceShipmentId_First

      public static CommerceShipmentItem fetchByCommerceShipmentId_First(long commerceShipmentId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipmentItem> orderByComparator)
      Returns the first commerce shipment item in the ordered set where commerceShipmentId = ?.
      Parameters:
      commerceShipmentId - the commerce shipment ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce shipment item, or null if a matching commerce shipment item could not be found
    • findByCommerceShipmentId_Last

      public static CommerceShipmentItem findByCommerceShipmentId_Last(long commerceShipmentId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipmentItem> orderByComparator) throws NoSuchShipmentItemException
      Returns the last commerce shipment item in the ordered set where commerceShipmentId = ?.
      Parameters:
      commerceShipmentId - the commerce shipment ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce shipment item
      Throws:
      NoSuchShipmentItemException - if a matching commerce shipment item could not be found
      NoSuchShipmentItemException
    • fetchByCommerceShipmentId_Last

      public static CommerceShipmentItem fetchByCommerceShipmentId_Last(long commerceShipmentId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipmentItem> orderByComparator)
      Returns the last commerce shipment item in the ordered set where commerceShipmentId = ?.
      Parameters:
      commerceShipmentId - the commerce shipment ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce shipment item, or null if a matching commerce shipment item could not be found
    • findByCommerceShipmentId_PrevAndNext

      public static CommerceShipmentItem[] findByCommerceShipmentId_PrevAndNext(long commerceShipmentItemId, long commerceShipmentId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipmentItem> orderByComparator) throws NoSuchShipmentItemException
      Returns the commerce shipment items before and after the current commerce shipment item in the ordered set where commerceShipmentId = ?.
      Parameters:
      commerceShipmentItemId - the primary key of the current commerce shipment item
      commerceShipmentId - the commerce shipment ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next commerce shipment item
      Throws:
      NoSuchShipmentItemException - if a commerce shipment item with the primary key could not be found
      NoSuchShipmentItemException
    • removeByCommerceShipmentId

      public static void removeByCommerceShipmentId(long commerceShipmentId)
      Removes all the commerce shipment items where commerceShipmentId = ? from the database.
      Parameters:
      commerceShipmentId - the commerce shipment ID
    • countByCommerceShipmentId

      public static int countByCommerceShipmentId(long commerceShipmentId)
      Returns the number of commerce shipment items where commerceShipmentId = ?.
      Parameters:
      commerceShipmentId - the commerce shipment ID
      Returns:
      the number of matching commerce shipment items
    • findByCommerceOrderItemId

      public static List<CommerceShipmentItem> findByCommerceOrderItemId(long commerceOrderItemId)
      Returns all the commerce shipment items where commerceOrderItemId = ?.
      Parameters:
      commerceOrderItemId - the commerce order item ID
      Returns:
      the matching commerce shipment items
    • findByCommerceOrderItemId

      public static List<CommerceShipmentItem> findByCommerceOrderItemId(long commerceOrderItemId, int start, int end)
      Returns a range of all the commerce shipment items where commerceOrderItemId = ?.

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

      Parameters:
      commerceOrderItemId - the commerce order item ID
      start - the lower bound of the range of commerce shipment items
      end - the upper bound of the range of commerce shipment items (not inclusive)
      Returns:
      the range of matching commerce shipment items
    • findByCommerceOrderItemId

      public static List<CommerceShipmentItem> findByCommerceOrderItemId(long commerceOrderItemId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipmentItem> orderByComparator)
      Returns an ordered range of all the commerce shipment items where commerceOrderItemId = ?.

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

      Parameters:
      commerceOrderItemId - the commerce order item ID
      start - the lower bound of the range of commerce shipment items
      end - the upper bound of the range of commerce shipment items (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching commerce shipment items
    • findByCommerceOrderItemId

      public static List<CommerceShipmentItem> findByCommerceOrderItemId(long commerceOrderItemId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipmentItem> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce shipment items where commerceOrderItemId = ?.

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

      Parameters:
      commerceOrderItemId - the commerce order item ID
      start - the lower bound of the range of commerce shipment items
      end - the upper bound of the range of commerce shipment items (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 shipment items
    • findByCommerceOrderItemId_First

      public static CommerceShipmentItem findByCommerceOrderItemId_First(long commerceOrderItemId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipmentItem> orderByComparator) throws NoSuchShipmentItemException
      Returns the first commerce shipment item in the ordered set where commerceOrderItemId = ?.
      Parameters:
      commerceOrderItemId - the commerce order item ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce shipment item
      Throws:
      NoSuchShipmentItemException - if a matching commerce shipment item could not be found
      NoSuchShipmentItemException
    • fetchByCommerceOrderItemId_First

      public static CommerceShipmentItem fetchByCommerceOrderItemId_First(long commerceOrderItemId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipmentItem> orderByComparator)
      Returns the first commerce shipment item in the ordered set where commerceOrderItemId = ?.
      Parameters:
      commerceOrderItemId - the commerce order item ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce shipment item, or null if a matching commerce shipment item could not be found
    • findByCommerceOrderItemId_Last

      public static CommerceShipmentItem findByCommerceOrderItemId_Last(long commerceOrderItemId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipmentItem> orderByComparator) throws NoSuchShipmentItemException
      Returns the last commerce shipment item in the ordered set where commerceOrderItemId = ?.
      Parameters:
      commerceOrderItemId - the commerce order item ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce shipment item
      Throws:
      NoSuchShipmentItemException - if a matching commerce shipment item could not be found
      NoSuchShipmentItemException
    • fetchByCommerceOrderItemId_Last

      public static CommerceShipmentItem fetchByCommerceOrderItemId_Last(long commerceOrderItemId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipmentItem> orderByComparator)
      Returns the last commerce shipment item in the ordered set where commerceOrderItemId = ?.
      Parameters:
      commerceOrderItemId - the commerce order item ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce shipment item, or null if a matching commerce shipment item could not be found
    • findByCommerceOrderItemId_PrevAndNext

      public static CommerceShipmentItem[] findByCommerceOrderItemId_PrevAndNext(long commerceShipmentItemId, long commerceOrderItemId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipmentItem> orderByComparator) throws NoSuchShipmentItemException
      Returns the commerce shipment items before and after the current commerce shipment item in the ordered set where commerceOrderItemId = ?.
      Parameters:
      commerceShipmentItemId - the primary key of the current commerce shipment item
      commerceOrderItemId - the commerce order item ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next commerce shipment item
      Throws:
      NoSuchShipmentItemException - if a commerce shipment item with the primary key could not be found
      NoSuchShipmentItemException
    • removeByCommerceOrderItemId

      public static void removeByCommerceOrderItemId(long commerceOrderItemId)
      Removes all the commerce shipment items where commerceOrderItemId = ? from the database.
      Parameters:
      commerceOrderItemId - the commerce order item ID
    • countByCommerceOrderItemId

      public static int countByCommerceOrderItemId(long commerceOrderItemId)
      Returns the number of commerce shipment items where commerceOrderItemId = ?.
      Parameters:
      commerceOrderItemId - the commerce order item ID
      Returns:
      the number of matching commerce shipment items
    • findByC_C

      public static List<CommerceShipmentItem> findByC_C(long commerceShipmentId, long commerceOrderItemId)
      Returns all the commerce shipment items where commerceShipmentId = ? and commerceOrderItemId = ?.
      Parameters:
      commerceShipmentId - the commerce shipment ID
      commerceOrderItemId - the commerce order item ID
      Returns:
      the matching commerce shipment items
    • findByC_C

      public static List<CommerceShipmentItem> findByC_C(long commerceShipmentId, long commerceOrderItemId, int start, int end)
      Returns a range of all the commerce shipment items where commerceShipmentId = ? and commerceOrderItemId = ?.

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

      Parameters:
      commerceShipmentId - the commerce shipment ID
      commerceOrderItemId - the commerce order item ID
      start - the lower bound of the range of commerce shipment items
      end - the upper bound of the range of commerce shipment items (not inclusive)
      Returns:
      the range of matching commerce shipment items
    • findByC_C

      public static List<CommerceShipmentItem> findByC_C(long commerceShipmentId, long commerceOrderItemId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipmentItem> orderByComparator)
      Returns an ordered range of all the commerce shipment items where commerceShipmentId = ? and commerceOrderItemId = ?.

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

      Parameters:
      commerceShipmentId - the commerce shipment ID
      commerceOrderItemId - the commerce order item ID
      start - the lower bound of the range of commerce shipment items
      end - the upper bound of the range of commerce shipment items (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching commerce shipment items
    • findByC_C

      public static List<CommerceShipmentItem> findByC_C(long commerceShipmentId, long commerceOrderItemId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipmentItem> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce shipment items where commerceShipmentId = ? and commerceOrderItemId = ?.

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

      Parameters:
      commerceShipmentId - the commerce shipment ID
      commerceOrderItemId - the commerce order item ID
      start - the lower bound of the range of commerce shipment items
      end - the upper bound of the range of commerce shipment items (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 shipment items
    • findByC_C_First

      public static CommerceShipmentItem findByC_C_First(long commerceShipmentId, long commerceOrderItemId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipmentItem> orderByComparator) throws NoSuchShipmentItemException
      Returns the first commerce shipment item in the ordered set where commerceShipmentId = ? and commerceOrderItemId = ?.
      Parameters:
      commerceShipmentId - the commerce shipment ID
      commerceOrderItemId - the commerce order item ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce shipment item
      Throws:
      NoSuchShipmentItemException - if a matching commerce shipment item could not be found
      NoSuchShipmentItemException
    • fetchByC_C_First

      public static CommerceShipmentItem fetchByC_C_First(long commerceShipmentId, long commerceOrderItemId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipmentItem> orderByComparator)
      Returns the first commerce shipment item in the ordered set where commerceShipmentId = ? and commerceOrderItemId = ?.
      Parameters:
      commerceShipmentId - the commerce shipment ID
      commerceOrderItemId - the commerce order item ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce shipment item, or null if a matching commerce shipment item could not be found
    • findByC_C_Last

      public static CommerceShipmentItem findByC_C_Last(long commerceShipmentId, long commerceOrderItemId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipmentItem> orderByComparator) throws NoSuchShipmentItemException
      Returns the last commerce shipment item in the ordered set where commerceShipmentId = ? and commerceOrderItemId = ?.
      Parameters:
      commerceShipmentId - the commerce shipment ID
      commerceOrderItemId - the commerce order item ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce shipment item
      Throws:
      NoSuchShipmentItemException - if a matching commerce shipment item could not be found
      NoSuchShipmentItemException
    • fetchByC_C_Last

      public static CommerceShipmentItem fetchByC_C_Last(long commerceShipmentId, long commerceOrderItemId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipmentItem> orderByComparator)
      Returns the last commerce shipment item in the ordered set where commerceShipmentId = ? and commerceOrderItemId = ?.
      Parameters:
      commerceShipmentId - the commerce shipment ID
      commerceOrderItemId - the commerce order item ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce shipment item, or null if a matching commerce shipment item could not be found
    • findByC_C_PrevAndNext

      public static CommerceShipmentItem[] findByC_C_PrevAndNext(long commerceShipmentItemId, long commerceShipmentId, long commerceOrderItemId, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipmentItem> orderByComparator) throws NoSuchShipmentItemException
      Returns the commerce shipment items before and after the current commerce shipment item in the ordered set where commerceShipmentId = ? and commerceOrderItemId = ?.
      Parameters:
      commerceShipmentItemId - the primary key of the current commerce shipment item
      commerceShipmentId - the commerce shipment ID
      commerceOrderItemId - the commerce order item ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next commerce shipment item
      Throws:
      NoSuchShipmentItemException - if a commerce shipment item with the primary key could not be found
      NoSuchShipmentItemException
    • removeByC_C

      public static void removeByC_C(long commerceShipmentId, long commerceOrderItemId)
      Removes all the commerce shipment items where commerceShipmentId = ? and commerceOrderItemId = ? from the database.
      Parameters:
      commerceShipmentId - the commerce shipment ID
      commerceOrderItemId - the commerce order item ID
    • countByC_C

      public static int countByC_C(long commerceShipmentId, long commerceOrderItemId)
      Returns the number of commerce shipment items where commerceShipmentId = ? and commerceOrderItemId = ?.
      Parameters:
      commerceShipmentId - the commerce shipment ID
      commerceOrderItemId - the commerce order item ID
      Returns:
      the number of matching commerce shipment items
    • findByC_C_C

      public static CommerceShipmentItem findByC_C_C(long commerceShipmentId, long commerceOrderItemId, long commerceInventoryWarehouseId) throws NoSuchShipmentItemException
      Returns the commerce shipment item where commerceShipmentId = ? and commerceOrderItemId = ? and commerceInventoryWarehouseId = ? or throws a NoSuchShipmentItemException if it could not be found.
      Parameters:
      commerceShipmentId - the commerce shipment ID
      commerceOrderItemId - the commerce order item ID
      commerceInventoryWarehouseId - the commerce inventory warehouse ID
      Returns:
      the matching commerce shipment item
      Throws:
      NoSuchShipmentItemException - if a matching commerce shipment item could not be found
      NoSuchShipmentItemException
    • fetchByC_C_C

      public static CommerceShipmentItem fetchByC_C_C(long commerceShipmentId, long commerceOrderItemId, long commerceInventoryWarehouseId)
      Returns the commerce shipment item where commerceShipmentId = ? and commerceOrderItemId = ? and commerceInventoryWarehouseId = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      commerceShipmentId - the commerce shipment ID
      commerceOrderItemId - the commerce order item ID
      commerceInventoryWarehouseId - the commerce inventory warehouse ID
      Returns:
      the matching commerce shipment item, or null if a matching commerce shipment item could not be found
    • fetchByC_C_C

      public static CommerceShipmentItem fetchByC_C_C(long commerceShipmentId, long commerceOrderItemId, long commerceInventoryWarehouseId, boolean useFinderCache)
      Returns the commerce shipment item where commerceShipmentId = ? and commerceOrderItemId = ? and commerceInventoryWarehouseId = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      commerceShipmentId - the commerce shipment ID
      commerceOrderItemId - the commerce order item ID
      commerceInventoryWarehouseId - the commerce inventory warehouse ID
      useFinderCache - whether to use the finder cache
      Returns:
      the matching commerce shipment item, or null if a matching commerce shipment item could not be found
    • removeByC_C_C

      public static CommerceShipmentItem removeByC_C_C(long commerceShipmentId, long commerceOrderItemId, long commerceInventoryWarehouseId) throws NoSuchShipmentItemException
      Removes the commerce shipment item where commerceShipmentId = ? and commerceOrderItemId = ? and commerceInventoryWarehouseId = ? from the database.
      Parameters:
      commerceShipmentId - the commerce shipment ID
      commerceOrderItemId - the commerce order item ID
      commerceInventoryWarehouseId - the commerce inventory warehouse ID
      Returns:
      the commerce shipment item that was removed
      Throws:
      NoSuchShipmentItemException
    • countByC_C_C

      public static int countByC_C_C(long commerceShipmentId, long commerceOrderItemId, long commerceInventoryWarehouseId)
      Returns the number of commerce shipment items where commerceShipmentId = ? and commerceOrderItemId = ? and commerceInventoryWarehouseId = ?.
      Parameters:
      commerceShipmentId - the commerce shipment ID
      commerceOrderItemId - the commerce order item ID
      commerceInventoryWarehouseId - the commerce inventory warehouse ID
      Returns:
      the number of matching commerce shipment items
    • findByERC_C

      public static CommerceShipmentItem findByERC_C(String externalReferenceCode, long companyId) throws NoSuchShipmentItemException
      Returns the commerce shipment item where externalReferenceCode = ? and companyId = ? or throws a NoSuchShipmentItemException if it could not be found.
      Parameters:
      externalReferenceCode - the external reference code
      companyId - the company ID
      Returns:
      the matching commerce shipment item
      Throws:
      NoSuchShipmentItemException - if a matching commerce shipment item could not be found
      NoSuchShipmentItemException
    • fetchByERC_C

      public static CommerceShipmentItem fetchByERC_C(String externalReferenceCode, long companyId)
      Returns the commerce shipment item 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 shipment item, or null if a matching commerce shipment item could not be found
    • fetchByERC_C

      public static CommerceShipmentItem fetchByERC_C(String externalReferenceCode, long companyId, boolean useFinderCache)
      Returns the commerce shipment item 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 shipment item, or null if a matching commerce shipment item could not be found
    • removeByERC_C

      public static CommerceShipmentItem removeByERC_C(String externalReferenceCode, long companyId) throws NoSuchShipmentItemException
      Removes the commerce shipment item where externalReferenceCode = ? and companyId = ? from the database.
      Parameters:
      externalReferenceCode - the external reference code
      companyId - the company ID
      Returns:
      the commerce shipment item that was removed
      Throws:
      NoSuchShipmentItemException
    • countByERC_C

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

      public static void cacheResult(CommerceShipmentItem commerceShipmentItem)
      Caches the commerce shipment item in the entity cache if it is enabled.
      Parameters:
      commerceShipmentItem - the commerce shipment item
    • cacheResult

      public static void cacheResult(List<CommerceShipmentItem> commerceShipmentItems)
      Caches the commerce shipment items in the entity cache if it is enabled.
      Parameters:
      commerceShipmentItems - the commerce shipment items
    • create

      public static CommerceShipmentItem create(long commerceShipmentItemId)
      Creates a new commerce shipment item with the primary key. Does not add the commerce shipment item to the database.
      Parameters:
      commerceShipmentItemId - the primary key for the new commerce shipment item
      Returns:
      the new commerce shipment item
    • remove

      public static CommerceShipmentItem remove(long commerceShipmentItemId) throws NoSuchShipmentItemException
      Removes the commerce shipment item with the primary key from the database. Also notifies the appropriate model listeners.
      Parameters:
      commerceShipmentItemId - the primary key of the commerce shipment item
      Returns:
      the commerce shipment item that was removed
      Throws:
      NoSuchShipmentItemException - if a commerce shipment item with the primary key could not be found
      NoSuchShipmentItemException
    • updateImpl

      public static CommerceShipmentItem updateImpl(CommerceShipmentItem commerceShipmentItem)
    • findByPrimaryKey

      public static CommerceShipmentItem findByPrimaryKey(long commerceShipmentItemId) throws NoSuchShipmentItemException
      Returns the commerce shipment item with the primary key or throws a NoSuchShipmentItemException if it could not be found.
      Parameters:
      commerceShipmentItemId - the primary key of the commerce shipment item
      Returns:
      the commerce shipment item
      Throws:
      NoSuchShipmentItemException - if a commerce shipment item with the primary key could not be found
      NoSuchShipmentItemException
    • fetchByPrimaryKey

      public static CommerceShipmentItem fetchByPrimaryKey(long commerceShipmentItemId)
      Returns the commerce shipment item with the primary key or returns null if it could not be found.
      Parameters:
      commerceShipmentItemId - the primary key of the commerce shipment item
      Returns:
      the commerce shipment item, or null if a commerce shipment item with the primary key could not be found
    • findAll

      public static List<CommerceShipmentItem> findAll()
      Returns all the commerce shipment items.
      Returns:
      the commerce shipment items
    • findAll

      public static List<CommerceShipmentItem> findAll(int start, int end)
      Returns a range of all the commerce shipment items.

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

      Parameters:
      start - the lower bound of the range of commerce shipment items
      end - the upper bound of the range of commerce shipment items (not inclusive)
      Returns:
      the range of commerce shipment items
    • findAll

      public static List<CommerceShipmentItem> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipmentItem> orderByComparator)
      Returns an ordered range of all the commerce shipment items.

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

      Parameters:
      start - the lower bound of the range of commerce shipment items
      end - the upper bound of the range of commerce shipment items (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of commerce shipment items
    • findAll

      public static List<CommerceShipmentItem> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceShipmentItem> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce shipment items.

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

      Parameters:
      start - the lower bound of the range of commerce shipment items
      end - the upper bound of the range of commerce shipment items (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 shipment items
    • removeAll

      public static void removeAll()
      Removes all the commerce shipment items from the database.
    • countAll

      public static int countAll()
      Returns the number of commerce shipment items.
      Returns:
      the number of commerce shipment items
    • getPersistence

      public static CommerceShipmentItemPersistence getPersistence()
    • setPersistence

      public static void setPersistence(CommerceShipmentItemPersistence persistence)