Class CommerceOrderUtil

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

public class CommerceOrderUtil extends Object
The persistence utility for the commerce order service. This utility wraps com.liferay.commerce.service.persistence.impl.CommerceOrderPersistenceImpl 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 Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    cacheResult(CommerceOrder commerceOrder)
    Caches the commerce order in the entity cache if it is enabled.
    static void
    cacheResult(List<CommerceOrder> commerceOrders)
    Caches the commerce orders in the entity cache if it is enabled.
    static void
     
    static void
    clearCache(CommerceOrder commerceOrder)
     
    static int
    Returns the number of commerce orders.
    static int
    countByBillingAddressId(long billingAddressId)
    Returns the number of commerce orders where billingAddressId = ?.
    static int
    countByC_LtC_O(Date createDate, long commerceAccountId, int orderStatus)
    Returns the number of commerce orders where createDate < ? and commerceAccountId = ? and orderStatus = ?.
    static int
    countByCommerceAccountId(long commerceAccountId)
    Returns the number of commerce orders where commerceAccountId = ?.
    static int
    countByERC_C(String externalReferenceCode, long companyId)
    Returns the number of commerce orders where externalReferenceCode = ? and companyId = ?.
    static int
    countByG_C(long groupId, long commerceAccountId)
    Returns the number of commerce orders where groupId = ? and commerceAccountId = ?.
    static int
    countByG_C_O(long groupId, long commerceAccountId, int orderStatus)
    Returns the number of commerce orders where groupId = ? and commerceAccountId = ? and orderStatus = ?.
    static int
    countByG_CP(long groupId, String commercePaymentMethodKey)
    Returns the number of commerce orders where groupId = ? and commercePaymentMethodKey = ?.
    static int
    countByG_U_O(long groupId, long userId, int orderStatus)
    Returns the number of commerce orders where groupId = ? and userId = ? and orderStatus = ?.
    static int
    countByGroupId(long groupId)
    Returns the number of commerce orders where groupId = ?.
    static int
    countByShippingAddressId(long shippingAddressId)
    Returns the number of commerce orders where shippingAddressId = ?.
    static int
    countByU_LtC_O(long userId, Date createDate, int orderStatus)
    Returns the number of commerce orders where userId = ? and createDate < ? and orderStatus = ?.
    static int
    countByUserId(long userId)
    Returns the number of commerce orders where userId = ?.
    static int
    Returns the number of commerce orders where uuid = ?.
    static int
    countByUuid_C(String uuid, long companyId)
    Returns the number of commerce orders where uuid = ? and companyId = ?.
    static int
    countByUUID_G(String uuid, long groupId)
    Returns the number of commerce orders where uuid = ? and groupId = ?.
    static long
    countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
     
    create(long commerceOrderId)
    Creates a new commerce order with the primary key.
    fetchByBillingAddressId_First(long billingAddressId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
    Returns the first commerce order in the ordered set where billingAddressId = ?.
    fetchByBillingAddressId_Last(long billingAddressId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
    Returns the last commerce order in the ordered set where billingAddressId = ?.
    fetchByC_LtC_O_First(Date createDate, long commerceAccountId, int orderStatus, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
    Returns the first commerce order in the ordered set where createDate < ? and commerceAccountId = ? and orderStatus = ?.
    fetchByC_LtC_O_Last(Date createDate, long commerceAccountId, int orderStatus, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
    Returns the last commerce order in the ordered set where createDate < ? and commerceAccountId = ? and orderStatus = ?.
    fetchByCommerceAccountId_First(long commerceAccountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
    Returns the first commerce order in the ordered set where commerceAccountId = ?.
    fetchByCommerceAccountId_Last(long commerceAccountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
    Returns the last commerce order in the ordered set where commerceAccountId = ?.
    fetchByERC_C(String externalReferenceCode, long companyId)
    Returns the commerce order where externalReferenceCode = ? and companyId = ? or returns null if it could not be found.
    fetchByERC_C(String externalReferenceCode, long companyId, boolean useFinderCache)
    Returns the commerce order where externalReferenceCode = ? and companyId = ? or returns null if it could not be found, optionally using the finder cache.
    fetchByG_C_First(long groupId, long commerceAccountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
    Returns the first commerce order in the ordered set where groupId = ? and commerceAccountId = ?.
    fetchByG_C_Last(long groupId, long commerceAccountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
    Returns the last commerce order in the ordered set where groupId = ? and commerceAccountId = ?.
    fetchByG_C_O_First(long groupId, long commerceAccountId, int orderStatus, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
    Returns the first commerce order in the ordered set where groupId = ? and commerceAccountId = ? and orderStatus = ?.
    fetchByG_C_O_Last(long groupId, long commerceAccountId, int orderStatus, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
    Returns the last commerce order in the ordered set where groupId = ? and commerceAccountId = ? and orderStatus = ?.
    fetchByG_CP_First(long groupId, String commercePaymentMethodKey, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
    Returns the first commerce order in the ordered set where groupId = ? and commercePaymentMethodKey = ?.
    fetchByG_CP_Last(long groupId, String commercePaymentMethodKey, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
    Returns the last commerce order in the ordered set where groupId = ? and commercePaymentMethodKey = ?.
    fetchByG_U_O_First(long groupId, long userId, int orderStatus, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
    Returns the first commerce order in the ordered set where groupId = ? and userId = ? and orderStatus = ?.
    fetchByG_U_O_Last(long groupId, long userId, int orderStatus, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
    Returns the last commerce order in the ordered set where groupId = ? and userId = ? and orderStatus = ?.
    fetchByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
    Returns the first commerce order in the ordered set where groupId = ?.
    fetchByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
    Returns the last commerce order in the ordered set where groupId = ?.
    fetchByPrimaryKey(long commerceOrderId)
    Returns the commerce order with the primary key or returns null if it could not be found.
     
    fetchByShippingAddressId_First(long shippingAddressId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
    Returns the first commerce order in the ordered set where shippingAddressId = ?.
    fetchByShippingAddressId_Last(long shippingAddressId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
    Returns the last commerce order in the ordered set where shippingAddressId = ?.
    fetchByU_LtC_O_First(long userId, Date createDate, int orderStatus, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
    Returns the first commerce order in the ordered set where userId = ? and createDate < ? and orderStatus = ?.
    fetchByU_LtC_O_Last(long userId, Date createDate, int orderStatus, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
    Returns the last commerce order in the ordered set where userId = ? and createDate < ? and orderStatus = ?.
    fetchByUserId_First(long userId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
    Returns the first commerce order in the ordered set where userId = ?.
    fetchByUserId_Last(long userId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
    Returns the last commerce order in the ordered set where userId = ?.
    fetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
    Returns the first commerce order in the ordered set where uuid = ? and companyId = ?.
    fetchByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
    Returns the last commerce order in the ordered set where uuid = ? and companyId = ?.
    fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
    Returns the first commerce order in the ordered set where uuid = ?.
    fetchByUUID_G(String uuid, long groupId)
    Returns the commerce order where uuid = ? and groupId = ? or returns null if it could not be found.
    fetchByUUID_G(String uuid, long groupId, boolean useFinderCache)
    Returns the commerce order where uuid = ? and groupId = ? or returns null if it could not be found, optionally using the finder cache.
    fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
    Returns the last commerce order in the ordered set where uuid = ?.
    static int
    filterCountByG_C(long groupId, long commerceAccountId)
    Returns the number of commerce orders that the user has permission to view where groupId = ? and commerceAccountId = ?.
    static int
    filterCountByG_C_O(long groupId, long commerceAccountId, int orderStatus)
    Returns the number of commerce orders that the user has permission to view where groupId = ? and commerceAccountId = ? and orderStatus = ?.
    static int
    filterCountByG_CP(long groupId, String commercePaymentMethodKey)
    Returns the number of commerce orders that the user has permission to view where groupId = ? and commercePaymentMethodKey = ?.
    static int
    filterCountByG_U_O(long groupId, long userId, int orderStatus)
    Returns the number of commerce orders that the user has permission to view where groupId = ? and userId = ? and orderStatus = ?.
    static int
    filterCountByGroupId(long groupId)
    Returns the number of commerce orders that the user has permission to view where groupId = ?.
    filterFindByG_C(long groupId, long commerceAccountId)
    Returns all the commerce orders that the user has permission to view where groupId = ? and commerceAccountId = ?.
    filterFindByG_C(long groupId, long commerceAccountId, int start, int end)
    Returns a range of all the commerce orders that the user has permission to view where groupId = ? and commerceAccountId = ?.
    filterFindByG_C(long groupId, long commerceAccountId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
    Returns an ordered range of all the commerce orders that the user has permissions to view where groupId = ? and commerceAccountId = ?.
    filterFindByG_C_O(long groupId, long commerceAccountId, int orderStatus)
    Returns all the commerce orders that the user has permission to view where groupId = ? and commerceAccountId = ? and orderStatus = ?.
    filterFindByG_C_O(long groupId, long commerceAccountId, int orderStatus, int start, int end)
    Returns a range of all the commerce orders that the user has permission to view where groupId = ? and commerceAccountId = ? and orderStatus = ?.
    filterFindByG_C_O(long groupId, long commerceAccountId, int orderStatus, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
    Returns an ordered range of all the commerce orders that the user has permissions to view where groupId = ? and commerceAccountId = ? and orderStatus = ?.
    static CommerceOrder[]
    filterFindByG_C_O_PrevAndNext(long commerceOrderId, long groupId, long commerceAccountId, int orderStatus, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
    Returns the commerce orders before and after the current commerce order in the ordered set of commerce orders that the user has permission to view where groupId = ? and commerceAccountId = ? and orderStatus = ?.
    static CommerceOrder[]
    filterFindByG_C_PrevAndNext(long commerceOrderId, long groupId, long commerceAccountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
    Returns the commerce orders before and after the current commerce order in the ordered set of commerce orders that the user has permission to view where groupId = ? and commerceAccountId = ?.
    filterFindByG_CP(long groupId, String commercePaymentMethodKey)
    Returns all the commerce orders that the user has permission to view where groupId = ? and commercePaymentMethodKey = ?.
    filterFindByG_CP(long groupId, String commercePaymentMethodKey, int start, int end)
    Returns a range of all the commerce orders that the user has permission to view where groupId = ? and commercePaymentMethodKey = ?.
    filterFindByG_CP(long groupId, String commercePaymentMethodKey, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
    Returns an ordered range of all the commerce orders that the user has permissions to view where groupId = ? and commercePaymentMethodKey = ?.
    static CommerceOrder[]
    filterFindByG_CP_PrevAndNext(long commerceOrderId, long groupId, String commercePaymentMethodKey, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
    Returns the commerce orders before and after the current commerce order in the ordered set of commerce orders that the user has permission to view where groupId = ? and commercePaymentMethodKey = ?.
    filterFindByG_U_O(long groupId, long userId, int orderStatus)
    Returns all the commerce orders that the user has permission to view where groupId = ? and userId = ? and orderStatus = ?.
    filterFindByG_U_O(long groupId, long userId, int orderStatus, int start, int end)
    Returns a range of all the commerce orders that the user has permission to view where groupId = ? and userId = ? and orderStatus = ?.
    filterFindByG_U_O(long groupId, long userId, int orderStatus, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
    Returns an ordered range of all the commerce orders that the user has permissions to view where groupId = ? and userId = ? and orderStatus = ?.
    static CommerceOrder[]
    filterFindByG_U_O_PrevAndNext(long commerceOrderId, long groupId, long userId, int orderStatus, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
    Returns the commerce orders before and after the current commerce order in the ordered set of commerce orders that the user has permission to view where groupId = ? and userId = ? and orderStatus = ?.
    filterFindByGroupId(long groupId)
    Returns all the commerce orders that the user has permission to view where groupId = ?.
    filterFindByGroupId(long groupId, int start, int end)
    Returns a range of all the commerce orders that the user has permission to view where groupId = ?.
    filterFindByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
    Returns an ordered range of all the commerce orders that the user has permissions to view where groupId = ?.
    static CommerceOrder[]
    filterFindByGroupId_PrevAndNext(long commerceOrderId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
    Returns the commerce orders before and after the current commerce order in the ordered set of commerce orders that the user has permission to view where groupId = ?.
    Returns all the commerce orders.
    findAll(int start, int end)
    Returns a range of all the commerce orders.
    findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
    Returns an ordered range of all the commerce orders.
    findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the commerce orders.
    findByBillingAddressId(long billingAddressId)
    Returns all the commerce orders where billingAddressId = ?.
    findByBillingAddressId(long billingAddressId, int start, int end)
    Returns a range of all the commerce orders where billingAddressId = ?.
    findByBillingAddressId(long billingAddressId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
    Returns an ordered range of all the commerce orders where billingAddressId = ?.
    findByBillingAddressId(long billingAddressId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the commerce orders where billingAddressId = ?.
    findByBillingAddressId_First(long billingAddressId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
    Returns the first commerce order in the ordered set where billingAddressId = ?.
    findByBillingAddressId_Last(long billingAddressId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
    Returns the last commerce order in the ordered set where billingAddressId = ?.
    static CommerceOrder[]
    findByBillingAddressId_PrevAndNext(long commerceOrderId, long billingAddressId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
    Returns the commerce orders before and after the current commerce order in the ordered set where billingAddressId = ?.
    findByC_LtC_O(Date createDate, long commerceAccountId, int orderStatus)
    Returns all the commerce orders where createDate < ? and commerceAccountId = ? and orderStatus = ?.
    findByC_LtC_O(Date createDate, long commerceAccountId, int orderStatus, int start, int end)
    Returns a range of all the commerce orders where createDate < ? and commerceAccountId = ? and orderStatus = ?.
    findByC_LtC_O(Date createDate, long commerceAccountId, int orderStatus, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
    Returns an ordered range of all the commerce orders where createDate < ? and commerceAccountId = ? and orderStatus = ?.
    findByC_LtC_O(Date createDate, long commerceAccountId, int orderStatus, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the commerce orders where createDate < ? and commerceAccountId = ? and orderStatus = ?.
    findByC_LtC_O_First(Date createDate, long commerceAccountId, int orderStatus, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
    Returns the first commerce order in the ordered set where createDate < ? and commerceAccountId = ? and orderStatus = ?.
    findByC_LtC_O_Last(Date createDate, long commerceAccountId, int orderStatus, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
    Returns the last commerce order in the ordered set where createDate < ? and commerceAccountId = ? and orderStatus = ?.
    static CommerceOrder[]
    findByC_LtC_O_PrevAndNext(long commerceOrderId, Date createDate, long commerceAccountId, int orderStatus, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
    Returns the commerce orders before and after the current commerce order in the ordered set where createDate < ? and commerceAccountId = ? and orderStatus = ?.
    findByCommerceAccountId(long commerceAccountId)
    Returns all the commerce orders where commerceAccountId = ?.
    findByCommerceAccountId(long commerceAccountId, int start, int end)
    Returns a range of all the commerce orders where commerceAccountId = ?.
    findByCommerceAccountId(long commerceAccountId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
    Returns an ordered range of all the commerce orders where commerceAccountId = ?.
    findByCommerceAccountId(long commerceAccountId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the commerce orders where commerceAccountId = ?.
    findByCommerceAccountId_First(long commerceAccountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
    Returns the first commerce order in the ordered set where commerceAccountId = ?.
    findByCommerceAccountId_Last(long commerceAccountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
    Returns the last commerce order in the ordered set where commerceAccountId = ?.
    static CommerceOrder[]
    findByCommerceAccountId_PrevAndNext(long commerceOrderId, long commerceAccountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
    Returns the commerce orders before and after the current commerce order in the ordered set where commerceAccountId = ?.
    findByERC_C(String externalReferenceCode, long companyId)
    Returns the commerce order where externalReferenceCode = ? and companyId = ? or throws a NoSuchOrderException if it could not be found.
    findByG_C(long groupId, long commerceAccountId)
    Returns all the commerce orders where groupId = ? and commerceAccountId = ?.
    findByG_C(long groupId, long commerceAccountId, int start, int end)
    Returns a range of all the commerce orders where groupId = ? and commerceAccountId = ?.
    findByG_C(long groupId, long commerceAccountId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
    Returns an ordered range of all the commerce orders where groupId = ? and commerceAccountId = ?.
    findByG_C(long groupId, long commerceAccountId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the commerce orders where groupId = ? and commerceAccountId = ?.
    findByG_C_First(long groupId, long commerceAccountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
    Returns the first commerce order in the ordered set where groupId = ? and commerceAccountId = ?.
    findByG_C_Last(long groupId, long commerceAccountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
    Returns the last commerce order in the ordered set where groupId = ? and commerceAccountId = ?.
    findByG_C_O(long groupId, long commerceAccountId, int orderStatus)
    Returns all the commerce orders where groupId = ? and commerceAccountId = ? and orderStatus = ?.
    findByG_C_O(long groupId, long commerceAccountId, int orderStatus, int start, int end)
    Returns a range of all the commerce orders where groupId = ? and commerceAccountId = ? and orderStatus = ?.
    findByG_C_O(long groupId, long commerceAccountId, int orderStatus, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
    Returns an ordered range of all the commerce orders where groupId = ? and commerceAccountId = ? and orderStatus = ?.
    findByG_C_O(long groupId, long commerceAccountId, int orderStatus, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the commerce orders where groupId = ? and commerceAccountId = ? and orderStatus = ?.
    findByG_C_O_First(long groupId, long commerceAccountId, int orderStatus, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
    Returns the first commerce order in the ordered set where groupId = ? and commerceAccountId = ? and orderStatus = ?.
    findByG_C_O_Last(long groupId, long commerceAccountId, int orderStatus, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
    Returns the last commerce order in the ordered set where groupId = ? and commerceAccountId = ? and orderStatus = ?.
    static CommerceOrder[]
    findByG_C_O_PrevAndNext(long commerceOrderId, long groupId, long commerceAccountId, int orderStatus, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
    Returns the commerce orders before and after the current commerce order in the ordered set where groupId = ? and commerceAccountId = ? and orderStatus = ?.
    static CommerceOrder[]
    findByG_C_PrevAndNext(long commerceOrderId, long groupId, long commerceAccountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
    Returns the commerce orders before and after the current commerce order in the ordered set where groupId = ? and commerceAccountId = ?.
    findByG_CP(long groupId, String commercePaymentMethodKey)
    Returns all the commerce orders where groupId = ? and commercePaymentMethodKey = ?.
    findByG_CP(long groupId, String commercePaymentMethodKey, int start, int end)
    Returns a range of all the commerce orders where groupId = ? and commercePaymentMethodKey = ?.
    findByG_CP(long groupId, String commercePaymentMethodKey, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
    Returns an ordered range of all the commerce orders where groupId = ? and commercePaymentMethodKey = ?.
    findByG_CP(long groupId, String commercePaymentMethodKey, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the commerce orders where groupId = ? and commercePaymentMethodKey = ?.
    findByG_CP_First(long groupId, String commercePaymentMethodKey, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
    Returns the first commerce order in the ordered set where groupId = ? and commercePaymentMethodKey = ?.
    findByG_CP_Last(long groupId, String commercePaymentMethodKey, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
    Returns the last commerce order in the ordered set where groupId = ? and commercePaymentMethodKey = ?.
    static CommerceOrder[]
    findByG_CP_PrevAndNext(long commerceOrderId, long groupId, String commercePaymentMethodKey, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
    Returns the commerce orders before and after the current commerce order in the ordered set where groupId = ? and commercePaymentMethodKey = ?.
    findByG_U_O(long groupId, long userId, int orderStatus)
    Returns all the commerce orders where groupId = ? and userId = ? and orderStatus = ?.
    findByG_U_O(long groupId, long userId, int orderStatus, int start, int end)
    Returns a range of all the commerce orders where groupId = ? and userId = ? and orderStatus = ?.
    findByG_U_O(long groupId, long userId, int orderStatus, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
    Returns an ordered range of all the commerce orders where groupId = ? and userId = ? and orderStatus = ?.
    findByG_U_O(long groupId, long userId, int orderStatus, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the commerce orders where groupId = ? and userId = ? and orderStatus = ?.
    findByG_U_O_First(long groupId, long userId, int orderStatus, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
    Returns the first commerce order in the ordered set where groupId = ? and userId = ? and orderStatus = ?.
    findByG_U_O_Last(long groupId, long userId, int orderStatus, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
    Returns the last commerce order in the ordered set where groupId = ? and userId = ? and orderStatus = ?.
    static CommerceOrder[]
    findByG_U_O_PrevAndNext(long commerceOrderId, long groupId, long userId, int orderStatus, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
    Returns the commerce orders before and after the current commerce order in the ordered set where groupId = ? and userId = ? and orderStatus = ?.
    findByGroupId(long groupId)
    Returns all the commerce orders where groupId = ?.
    findByGroupId(long groupId, int start, int end)
    Returns a range of all the commerce orders where groupId = ?.
    findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
    Returns an ordered range of all the commerce orders where groupId = ?.
    findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the commerce orders where groupId = ?.
    findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
    Returns the first commerce order in the ordered set where groupId = ?.
    findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
    Returns the last commerce order in the ordered set where groupId = ?.
    static CommerceOrder[]
    findByGroupId_PrevAndNext(long commerceOrderId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
    Returns the commerce orders before and after the current commerce order in the ordered set where groupId = ?.
    findByPrimaryKey(long commerceOrderId)
    Returns the commerce order with the primary key or throws a NoSuchOrderException if it could not be found.
    findByShippingAddressId(long shippingAddressId)
    Returns all the commerce orders where shippingAddressId = ?.
    findByShippingAddressId(long shippingAddressId, int start, int end)
    Returns a range of all the commerce orders where shippingAddressId = ?.
    findByShippingAddressId(long shippingAddressId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
    Returns an ordered range of all the commerce orders where shippingAddressId = ?.
    findByShippingAddressId(long shippingAddressId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the commerce orders where shippingAddressId = ?.
    findByShippingAddressId_First(long shippingAddressId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
    Returns the first commerce order in the ordered set where shippingAddressId = ?.
    findByShippingAddressId_Last(long shippingAddressId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
    Returns the last commerce order in the ordered set where shippingAddressId = ?.
    static CommerceOrder[]
    findByShippingAddressId_PrevAndNext(long commerceOrderId, long shippingAddressId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
    Returns the commerce orders before and after the current commerce order in the ordered set where shippingAddressId = ?.
    findByU_LtC_O(long userId, Date createDate, int orderStatus)
    Returns all the commerce orders where userId = ? and createDate < ? and orderStatus = ?.
    findByU_LtC_O(long userId, Date createDate, int orderStatus, int start, int end)
    Returns a range of all the commerce orders where userId = ? and createDate < ? and orderStatus = ?.
    findByU_LtC_O(long userId, Date createDate, int orderStatus, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
    Returns an ordered range of all the commerce orders where userId = ? and createDate < ? and orderStatus = ?.
    findByU_LtC_O(long userId, Date createDate, int orderStatus, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the commerce orders where userId = ? and createDate < ? and orderStatus = ?.
    findByU_LtC_O_First(long userId, Date createDate, int orderStatus, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
    Returns the first commerce order in the ordered set where userId = ? and createDate < ? and orderStatus = ?.
    findByU_LtC_O_Last(long userId, Date createDate, int orderStatus, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
    Returns the last commerce order in the ordered set where userId = ? and createDate < ? and orderStatus = ?.
    static CommerceOrder[]
    findByU_LtC_O_PrevAndNext(long commerceOrderId, long userId, Date createDate, int orderStatus, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
    Returns the commerce orders before and after the current commerce order in the ordered set where userId = ? and createDate < ? and orderStatus = ?.
    findByUserId(long userId)
    Returns all the commerce orders where userId = ?.
    findByUserId(long userId, int start, int end)
    Returns a range of all the commerce orders where userId = ?.
    findByUserId(long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
    Returns an ordered range of all the commerce orders where userId = ?.
    findByUserId(long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the commerce orders where userId = ?.
    findByUserId_First(long userId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
    Returns the first commerce order in the ordered set where userId = ?.
    findByUserId_Last(long userId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
    Returns the last commerce order in the ordered set where userId = ?.
    static CommerceOrder[]
    findByUserId_PrevAndNext(long commerceOrderId, long userId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
    Returns the commerce orders before and after the current commerce order in the ordered set where userId = ?.
    Returns all the commerce orders where uuid = ?.
    findByUuid(String uuid, int start, int end)
    Returns a range of all the commerce orders where uuid = ?.
    findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
    Returns an ordered range of all the commerce orders where uuid = ?.
    findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the commerce orders where uuid = ?.
    findByUuid_C(String uuid, long companyId)
    Returns all the commerce orders where uuid = ? and companyId = ?.
    findByUuid_C(String uuid, long companyId, int start, int end)
    Returns a range of all the commerce orders where uuid = ? and companyId = ?.
    findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
    Returns an ordered range of all the commerce orders where uuid = ? and companyId = ?.
    findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the commerce orders where uuid = ? and companyId = ?.
    findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
    Returns the first commerce order in the ordered set where uuid = ? and companyId = ?.
    findByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
    Returns the last commerce order in the ordered set where uuid = ? and companyId = ?.
    static CommerceOrder[]
    findByUuid_C_PrevAndNext(long commerceOrderId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
    Returns the commerce orders before and after the current commerce order in the ordered set where uuid = ? and companyId = ?.
    findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
    Returns the first commerce order in the ordered set where uuid = ?.
    findByUUID_G(String uuid, long groupId)
    Returns the commerce order where uuid = ? and groupId = ? or throws a NoSuchOrderException if it could not be found.
    findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
    Returns the last commerce order in the ordered set where uuid = ?.
    static CommerceOrder[]
    findByUuid_PrevAndNext(long commerceOrderId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
    Returns the commerce orders before and after the current commerce order in the ordered set where uuid = ?.
    findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
     
    findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
     
    findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
     
     
    remove(long commerceOrderId)
    Removes the commerce order with the primary key from the database.
    static void
    Removes all the commerce orders from the database.
    static void
    removeByBillingAddressId(long billingAddressId)
    Removes all the commerce orders where billingAddressId = ? from the database.
    static void
    removeByC_LtC_O(Date createDate, long commerceAccountId, int orderStatus)
    Removes all the commerce orders where createDate < ? and commerceAccountId = ? and orderStatus = ? from the database.
    static void
    removeByCommerceAccountId(long commerceAccountId)
    Removes all the commerce orders where commerceAccountId = ? from the database.
    removeByERC_C(String externalReferenceCode, long companyId)
    Removes the commerce order where externalReferenceCode = ? and companyId = ? from the database.
    static void
    removeByG_C(long groupId, long commerceAccountId)
    Removes all the commerce orders where groupId = ? and commerceAccountId = ? from the database.
    static void
    removeByG_C_O(long groupId, long commerceAccountId, int orderStatus)
    Removes all the commerce orders where groupId = ? and commerceAccountId = ? and orderStatus = ? from the database.
    static void
    removeByG_CP(long groupId, String commercePaymentMethodKey)
    Removes all the commerce orders where groupId = ? and commercePaymentMethodKey = ? from the database.
    static void
    removeByG_U_O(long groupId, long userId, int orderStatus)
    Removes all the commerce orders where groupId = ? and userId = ? and orderStatus = ? from the database.
    static void
    removeByGroupId(long groupId)
    Removes all the commerce orders where groupId = ? from the database.
    static void
    removeByShippingAddressId(long shippingAddressId)
    Removes all the commerce orders where shippingAddressId = ? from the database.
    static void
    removeByU_LtC_O(long userId, Date createDate, int orderStatus)
    Removes all the commerce orders where userId = ? and createDate < ? and orderStatus = ? from the database.
    static void
    removeByUserId(long userId)
    Removes all the commerce orders where userId = ? from the database.
    static void
    Removes all the commerce orders where uuid = ? from the database.
    static void
    removeByUuid_C(String uuid, long companyId)
    Removes all the commerce orders where uuid = ? and companyId = ? from the database.
    removeByUUID_G(String uuid, long groupId)
    Removes the commerce order where uuid = ? and groupId = ? from the database.
    static void
     
    update(CommerceOrder commerceOrder)
     
    update(CommerceOrder commerceOrder, com.liferay.portal.kernel.service.ServiceContext serviceContext)
     
    updateImpl(CommerceOrder commerceOrder)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CommerceOrderUtil

      public CommerceOrderUtil()
  • Method Details

    • clearCache

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

      public static void clearCache(CommerceOrder commerceOrder)
      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,CommerceOrder> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
      See Also:
      • BasePersistence.fetchByPrimaryKeys(Set)
    • findWithDynamicQuery

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static CommerceOrder findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator) throws NoSuchOrderException
      Returns the last commerce order 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 order
      Throws:
      NoSuchOrderException - if a matching commerce order could not be found
      NoSuchOrderException
    • fetchByUuid_Last

      public static CommerceOrder fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
      Returns the last commerce order 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 order, or null if a matching commerce order could not be found
    • findByUuid_PrevAndNext

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static void removeByUuid_C(String uuid, long companyId)
      Removes all the commerce orders 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 orders where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      Returns:
      the number of matching commerce orders
    • findByGroupId

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

      public static List<CommerceOrder> findByGroupId(long groupId, int start, int end)
      Returns a range of all the commerce orders 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 CommerceOrderModelImpl.

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

      public static List<CommerceOrder> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
      Returns an ordered range of all the commerce orders 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 CommerceOrderModelImpl.

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

      public static List<CommerceOrder> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce orders 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 CommerceOrderModelImpl.

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

      public static CommerceOrder findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator) throws NoSuchOrderException
      Returns the first commerce order 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 order
      Throws:
      NoSuchOrderException - if a matching commerce order could not be found
      NoSuchOrderException
    • fetchByGroupId_First

      public static CommerceOrder fetchByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
      Returns the first commerce order 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 order, or null if a matching commerce order could not be found
    • findByGroupId_Last

      public static CommerceOrder findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator) throws NoSuchOrderException
      Returns the last commerce order 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 order
      Throws:
      NoSuchOrderException - if a matching commerce order could not be found
      NoSuchOrderException
    • fetchByGroupId_Last

      public static CommerceOrder fetchByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
      Returns the last commerce order 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 order, or null if a matching commerce order could not be found
    • findByGroupId_PrevAndNext

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

      public static List<CommerceOrder> filterFindByGroupId(long groupId)
      Returns all the commerce orders that the user has permission to view where groupId = ?.
      Parameters:
      groupId - the group ID
      Returns:
      the matching commerce orders that the user has permission to view
    • filterFindByGroupId

      public static List<CommerceOrder> filterFindByGroupId(long groupId, int start, int end)
      Returns a range of all the commerce orders that the user has permission to view 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 CommerceOrderModelImpl.

      Parameters:
      groupId - the group ID
      start - the lower bound of the range of commerce orders
      end - the upper bound of the range of commerce orders (not inclusive)
      Returns:
      the range of matching commerce orders that the user has permission to view
    • filterFindByGroupId

      public static List<CommerceOrder> filterFindByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
      Returns an ordered range of all the commerce orders that the user has permissions to view 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 CommerceOrderModelImpl.

      Parameters:
      groupId - the group ID
      start - the lower bound of the range of commerce orders
      end - the upper bound of the range of commerce orders (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching commerce orders that the user has permission to view
    • filterFindByGroupId_PrevAndNext

      public static CommerceOrder[] filterFindByGroupId_PrevAndNext(long commerceOrderId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator) throws NoSuchOrderException
      Returns the commerce orders before and after the current commerce order in the ordered set of commerce orders that the user has permission to view where groupId = ?.
      Parameters:
      commerceOrderId - the primary key of the current commerce order
      groupId - the group ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next commerce order
      Throws:
      NoSuchOrderException - if a commerce order with the primary key could not be found
      NoSuchOrderException
    • removeByGroupId

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

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

      public static int filterCountByGroupId(long groupId)
      Returns the number of commerce orders that the user has permission to view where groupId = ?.
      Parameters:
      groupId - the group ID
      Returns:
      the number of matching commerce orders that the user has permission to view
    • findByUserId

      public static List<CommerceOrder> findByUserId(long userId)
      Returns all the commerce orders where userId = ?.
      Parameters:
      userId - the user ID
      Returns:
      the matching commerce orders
    • findByUserId

      public static List<CommerceOrder> findByUserId(long userId, int start, int end)
      Returns a range of all the commerce orders where userId = ?.

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

      Parameters:
      userId - the user ID
      start - the lower bound of the range of commerce orders
      end - the upper bound of the range of commerce orders (not inclusive)
      Returns:
      the range of matching commerce orders
    • findByUserId

      public static List<CommerceOrder> findByUserId(long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
      Returns an ordered range of all the commerce orders where userId = ?.

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

      Parameters:
      userId - the user ID
      start - the lower bound of the range of commerce orders
      end - the upper bound of the range of commerce orders (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching commerce orders
    • findByUserId

      public static List<CommerceOrder> findByUserId(long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce orders where userId = ?.

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

      Parameters:
      userId - the user ID
      start - the lower bound of the range of commerce orders
      end - the upper bound of the range of commerce orders (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 orders
    • findByUserId_First

      public static CommerceOrder findByUserId_First(long userId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator) throws NoSuchOrderException
      Returns the first commerce order in the ordered set where userId = ?.
      Parameters:
      userId - the user ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce order
      Throws:
      NoSuchOrderException - if a matching commerce order could not be found
      NoSuchOrderException
    • fetchByUserId_First

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

      public static CommerceOrder findByUserId_Last(long userId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator) throws NoSuchOrderException
      Returns the last commerce order in the ordered set where userId = ?.
      Parameters:
      userId - the user ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce order
      Throws:
      NoSuchOrderException - if a matching commerce order could not be found
      NoSuchOrderException
    • fetchByUserId_Last

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

      public static CommerceOrder[] findByUserId_PrevAndNext(long commerceOrderId, long userId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator) throws NoSuchOrderException
      Returns the commerce orders before and after the current commerce order in the ordered set where userId = ?.
      Parameters:
      commerceOrderId - the primary key of the current commerce order
      userId - the user ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next commerce order
      Throws:
      NoSuchOrderException - if a commerce order with the primary key could not be found
      NoSuchOrderException
    • removeByUserId

      public static void removeByUserId(long userId)
      Removes all the commerce orders where userId = ? from the database.
      Parameters:
      userId - the user ID
    • countByUserId

      public static int countByUserId(long userId)
      Returns the number of commerce orders where userId = ?.
      Parameters:
      userId - the user ID
      Returns:
      the number of matching commerce orders
    • findByBillingAddressId

      public static List<CommerceOrder> findByBillingAddressId(long billingAddressId)
      Returns all the commerce orders where billingAddressId = ?.
      Parameters:
      billingAddressId - the billing address ID
      Returns:
      the matching commerce orders
    • findByBillingAddressId

      public static List<CommerceOrder> findByBillingAddressId(long billingAddressId, int start, int end)
      Returns a range of all the commerce orders where billingAddressId = ?.

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

      Parameters:
      billingAddressId - the billing address ID
      start - the lower bound of the range of commerce orders
      end - the upper bound of the range of commerce orders (not inclusive)
      Returns:
      the range of matching commerce orders
    • findByBillingAddressId

      public static List<CommerceOrder> findByBillingAddressId(long billingAddressId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
      Returns an ordered range of all the commerce orders where billingAddressId = ?.

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

      Parameters:
      billingAddressId - the billing address ID
      start - the lower bound of the range of commerce orders
      end - the upper bound of the range of commerce orders (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching commerce orders
    • findByBillingAddressId

      public static List<CommerceOrder> findByBillingAddressId(long billingAddressId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce orders where billingAddressId = ?.

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

      Parameters:
      billingAddressId - the billing address ID
      start - the lower bound of the range of commerce orders
      end - the upper bound of the range of commerce orders (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 orders
    • findByBillingAddressId_First

      public static CommerceOrder findByBillingAddressId_First(long billingAddressId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator) throws NoSuchOrderException
      Returns the first commerce order in the ordered set where billingAddressId = ?.
      Parameters:
      billingAddressId - the billing address ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce order
      Throws:
      NoSuchOrderException - if a matching commerce order could not be found
      NoSuchOrderException
    • fetchByBillingAddressId_First

      public static CommerceOrder fetchByBillingAddressId_First(long billingAddressId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
      Returns the first commerce order in the ordered set where billingAddressId = ?.
      Parameters:
      billingAddressId - the billing address ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce order, or null if a matching commerce order could not be found
    • findByBillingAddressId_Last

      public static CommerceOrder findByBillingAddressId_Last(long billingAddressId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator) throws NoSuchOrderException
      Returns the last commerce order in the ordered set where billingAddressId = ?.
      Parameters:
      billingAddressId - the billing address ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce order
      Throws:
      NoSuchOrderException - if a matching commerce order could not be found
      NoSuchOrderException
    • fetchByBillingAddressId_Last

      public static CommerceOrder fetchByBillingAddressId_Last(long billingAddressId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
      Returns the last commerce order in the ordered set where billingAddressId = ?.
      Parameters:
      billingAddressId - the billing address ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce order, or null if a matching commerce order could not be found
    • findByBillingAddressId_PrevAndNext

      public static CommerceOrder[] findByBillingAddressId_PrevAndNext(long commerceOrderId, long billingAddressId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator) throws NoSuchOrderException
      Returns the commerce orders before and after the current commerce order in the ordered set where billingAddressId = ?.
      Parameters:
      commerceOrderId - the primary key of the current commerce order
      billingAddressId - the billing address ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next commerce order
      Throws:
      NoSuchOrderException - if a commerce order with the primary key could not be found
      NoSuchOrderException
    • removeByBillingAddressId

      public static void removeByBillingAddressId(long billingAddressId)
      Removes all the commerce orders where billingAddressId = ? from the database.
      Parameters:
      billingAddressId - the billing address ID
    • countByBillingAddressId

      public static int countByBillingAddressId(long billingAddressId)
      Returns the number of commerce orders where billingAddressId = ?.
      Parameters:
      billingAddressId - the billing address ID
      Returns:
      the number of matching commerce orders
    • findByCommerceAccountId

      public static List<CommerceOrder> findByCommerceAccountId(long commerceAccountId)
      Returns all the commerce orders where commerceAccountId = ?.
      Parameters:
      commerceAccountId - the commerce account ID
      Returns:
      the matching commerce orders
    • findByCommerceAccountId

      public static List<CommerceOrder> findByCommerceAccountId(long commerceAccountId, int start, int end)
      Returns a range of all the commerce orders where commerceAccountId = ?.

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

      Parameters:
      commerceAccountId - the commerce account ID
      start - the lower bound of the range of commerce orders
      end - the upper bound of the range of commerce orders (not inclusive)
      Returns:
      the range of matching commerce orders
    • findByCommerceAccountId

      public static List<CommerceOrder> findByCommerceAccountId(long commerceAccountId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
      Returns an ordered range of all the commerce orders where commerceAccountId = ?.

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

      Parameters:
      commerceAccountId - the commerce account ID
      start - the lower bound of the range of commerce orders
      end - the upper bound of the range of commerce orders (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching commerce orders
    • findByCommerceAccountId

      public static List<CommerceOrder> findByCommerceAccountId(long commerceAccountId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce orders where commerceAccountId = ?.

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

      Parameters:
      commerceAccountId - the commerce account ID
      start - the lower bound of the range of commerce orders
      end - the upper bound of the range of commerce orders (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 orders
    • findByCommerceAccountId_First

      public static CommerceOrder findByCommerceAccountId_First(long commerceAccountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator) throws NoSuchOrderException
      Returns the first commerce order in the ordered set where commerceAccountId = ?.
      Parameters:
      commerceAccountId - the commerce account ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce order
      Throws:
      NoSuchOrderException - if a matching commerce order could not be found
      NoSuchOrderException
    • fetchByCommerceAccountId_First

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

      public static CommerceOrder findByCommerceAccountId_Last(long commerceAccountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator) throws NoSuchOrderException
      Returns the last commerce order in the ordered set where commerceAccountId = ?.
      Parameters:
      commerceAccountId - the commerce account ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce order
      Throws:
      NoSuchOrderException - if a matching commerce order could not be found
      NoSuchOrderException
    • fetchByCommerceAccountId_Last

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

      public static CommerceOrder[] findByCommerceAccountId_PrevAndNext(long commerceOrderId, long commerceAccountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator) throws NoSuchOrderException
      Returns the commerce orders before and after the current commerce order in the ordered set where commerceAccountId = ?.
      Parameters:
      commerceOrderId - the primary key of the current commerce order
      commerceAccountId - the commerce account ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next commerce order
      Throws:
      NoSuchOrderException - if a commerce order with the primary key could not be found
      NoSuchOrderException
    • removeByCommerceAccountId

      public static void removeByCommerceAccountId(long commerceAccountId)
      Removes all the commerce orders where commerceAccountId = ? from the database.
      Parameters:
      commerceAccountId - the commerce account ID
    • countByCommerceAccountId

      public static int countByCommerceAccountId(long commerceAccountId)
      Returns the number of commerce orders where commerceAccountId = ?.
      Parameters:
      commerceAccountId - the commerce account ID
      Returns:
      the number of matching commerce orders
    • findByShippingAddressId

      public static List<CommerceOrder> findByShippingAddressId(long shippingAddressId)
      Returns all the commerce orders where shippingAddressId = ?.
      Parameters:
      shippingAddressId - the shipping address ID
      Returns:
      the matching commerce orders
    • findByShippingAddressId

      public static List<CommerceOrder> findByShippingAddressId(long shippingAddressId, int start, int end)
      Returns a range of all the commerce orders where shippingAddressId = ?.

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

      Parameters:
      shippingAddressId - the shipping address ID
      start - the lower bound of the range of commerce orders
      end - the upper bound of the range of commerce orders (not inclusive)
      Returns:
      the range of matching commerce orders
    • findByShippingAddressId

      public static List<CommerceOrder> findByShippingAddressId(long shippingAddressId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
      Returns an ordered range of all the commerce orders where shippingAddressId = ?.

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

      Parameters:
      shippingAddressId - the shipping address ID
      start - the lower bound of the range of commerce orders
      end - the upper bound of the range of commerce orders (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching commerce orders
    • findByShippingAddressId

      public static List<CommerceOrder> findByShippingAddressId(long shippingAddressId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce orders where shippingAddressId = ?.

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

      Parameters:
      shippingAddressId - the shipping address ID
      start - the lower bound of the range of commerce orders
      end - the upper bound of the range of commerce orders (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 orders
    • findByShippingAddressId_First

      public static CommerceOrder findByShippingAddressId_First(long shippingAddressId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator) throws NoSuchOrderException
      Returns the first commerce order in the ordered set where shippingAddressId = ?.
      Parameters:
      shippingAddressId - the shipping address ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce order
      Throws:
      NoSuchOrderException - if a matching commerce order could not be found
      NoSuchOrderException
    • fetchByShippingAddressId_First

      public static CommerceOrder fetchByShippingAddressId_First(long shippingAddressId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
      Returns the first commerce order in the ordered set where shippingAddressId = ?.
      Parameters:
      shippingAddressId - the shipping address ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce order, or null if a matching commerce order could not be found
    • findByShippingAddressId_Last

      public static CommerceOrder findByShippingAddressId_Last(long shippingAddressId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator) throws NoSuchOrderException
      Returns the last commerce order in the ordered set where shippingAddressId = ?.
      Parameters:
      shippingAddressId - the shipping address ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce order
      Throws:
      NoSuchOrderException - if a matching commerce order could not be found
      NoSuchOrderException
    • fetchByShippingAddressId_Last

      public static CommerceOrder fetchByShippingAddressId_Last(long shippingAddressId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
      Returns the last commerce order in the ordered set where shippingAddressId = ?.
      Parameters:
      shippingAddressId - the shipping address ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce order, or null if a matching commerce order could not be found
    • findByShippingAddressId_PrevAndNext

      public static CommerceOrder[] findByShippingAddressId_PrevAndNext(long commerceOrderId, long shippingAddressId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator) throws NoSuchOrderException
      Returns the commerce orders before and after the current commerce order in the ordered set where shippingAddressId = ?.
      Parameters:
      commerceOrderId - the primary key of the current commerce order
      shippingAddressId - the shipping address ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next commerce order
      Throws:
      NoSuchOrderException - if a commerce order with the primary key could not be found
      NoSuchOrderException
    • removeByShippingAddressId

      public static void removeByShippingAddressId(long shippingAddressId)
      Removes all the commerce orders where shippingAddressId = ? from the database.
      Parameters:
      shippingAddressId - the shipping address ID
    • countByShippingAddressId

      public static int countByShippingAddressId(long shippingAddressId)
      Returns the number of commerce orders where shippingAddressId = ?.
      Parameters:
      shippingAddressId - the shipping address ID
      Returns:
      the number of matching commerce orders
    • findByG_C

      public static List<CommerceOrder> findByG_C(long groupId, long commerceAccountId)
      Returns all the commerce orders where groupId = ? and commerceAccountId = ?.
      Parameters:
      groupId - the group ID
      commerceAccountId - the commerce account ID
      Returns:
      the matching commerce orders
    • findByG_C

      public static List<CommerceOrder> findByG_C(long groupId, long commerceAccountId, int start, int end)
      Returns a range of all the commerce orders where groupId = ? and commerceAccountId = ?.

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

      Parameters:
      groupId - the group ID
      commerceAccountId - the commerce account ID
      start - the lower bound of the range of commerce orders
      end - the upper bound of the range of commerce orders (not inclusive)
      Returns:
      the range of matching commerce orders
    • findByG_C

      public static List<CommerceOrder> findByG_C(long groupId, long commerceAccountId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
      Returns an ordered range of all the commerce orders where groupId = ? and commerceAccountId = ?.

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

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

      public static List<CommerceOrder> findByG_C(long groupId, long commerceAccountId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce orders where groupId = ? and commerceAccountId = ?.

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

      Parameters:
      groupId - the group ID
      commerceAccountId - the commerce account ID
      start - the lower bound of the range of commerce orders
      end - the upper bound of the range of commerce orders (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 orders
    • findByG_C_First

      public static CommerceOrder findByG_C_First(long groupId, long commerceAccountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator) throws NoSuchOrderException
      Returns the first commerce order in the ordered set where groupId = ? and commerceAccountId = ?.
      Parameters:
      groupId - the group ID
      commerceAccountId - the commerce account ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce order
      Throws:
      NoSuchOrderException - if a matching commerce order could not be found
      NoSuchOrderException
    • fetchByG_C_First

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

      public static CommerceOrder findByG_C_Last(long groupId, long commerceAccountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator) throws NoSuchOrderException
      Returns the last commerce order in the ordered set where groupId = ? and commerceAccountId = ?.
      Parameters:
      groupId - the group ID
      commerceAccountId - the commerce account ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce order
      Throws:
      NoSuchOrderException - if a matching commerce order could not be found
      NoSuchOrderException
    • fetchByG_C_Last

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

      public static CommerceOrder[] findByG_C_PrevAndNext(long commerceOrderId, long groupId, long commerceAccountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator) throws NoSuchOrderException
      Returns the commerce orders before and after the current commerce order in the ordered set where groupId = ? and commerceAccountId = ?.
      Parameters:
      commerceOrderId - the primary key of the current commerce order
      groupId - the group ID
      commerceAccountId - the commerce account ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next commerce order
      Throws:
      NoSuchOrderException - if a commerce order with the primary key could not be found
      NoSuchOrderException
    • filterFindByG_C

      public static List<CommerceOrder> filterFindByG_C(long groupId, long commerceAccountId)
      Returns all the commerce orders that the user has permission to view where groupId = ? and commerceAccountId = ?.
      Parameters:
      groupId - the group ID
      commerceAccountId - the commerce account ID
      Returns:
      the matching commerce orders that the user has permission to view
    • filterFindByG_C

      public static List<CommerceOrder> filterFindByG_C(long groupId, long commerceAccountId, int start, int end)
      Returns a range of all the commerce orders that the user has permission to view where groupId = ? and commerceAccountId = ?.

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

      Parameters:
      groupId - the group ID
      commerceAccountId - the commerce account ID
      start - the lower bound of the range of commerce orders
      end - the upper bound of the range of commerce orders (not inclusive)
      Returns:
      the range of matching commerce orders that the user has permission to view
    • filterFindByG_C

      public static List<CommerceOrder> filterFindByG_C(long groupId, long commerceAccountId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
      Returns an ordered range of all the commerce orders that the user has permissions to view where groupId = ? and commerceAccountId = ?.

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

      Parameters:
      groupId - the group ID
      commerceAccountId - the commerce account ID
      start - the lower bound of the range of commerce orders
      end - the upper bound of the range of commerce orders (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching commerce orders that the user has permission to view
    • filterFindByG_C_PrevAndNext

      public static CommerceOrder[] filterFindByG_C_PrevAndNext(long commerceOrderId, long groupId, long commerceAccountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator) throws NoSuchOrderException
      Returns the commerce orders before and after the current commerce order in the ordered set of commerce orders that the user has permission to view where groupId = ? and commerceAccountId = ?.
      Parameters:
      commerceOrderId - the primary key of the current commerce order
      groupId - the group ID
      commerceAccountId - the commerce account ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next commerce order
      Throws:
      NoSuchOrderException - if a commerce order with the primary key could not be found
      NoSuchOrderException
    • removeByG_C

      public static void removeByG_C(long groupId, long commerceAccountId)
      Removes all the commerce orders where groupId = ? and commerceAccountId = ? from the database.
      Parameters:
      groupId - the group ID
      commerceAccountId - the commerce account ID
    • countByG_C

      public static int countByG_C(long groupId, long commerceAccountId)
      Returns the number of commerce orders where groupId = ? and commerceAccountId = ?.
      Parameters:
      groupId - the group ID
      commerceAccountId - the commerce account ID
      Returns:
      the number of matching commerce orders
    • filterCountByG_C

      public static int filterCountByG_C(long groupId, long commerceAccountId)
      Returns the number of commerce orders that the user has permission to view where groupId = ? and commerceAccountId = ?.
      Parameters:
      groupId - the group ID
      commerceAccountId - the commerce account ID
      Returns:
      the number of matching commerce orders that the user has permission to view
    • findByG_CP

      public static List<CommerceOrder> findByG_CP(long groupId, String commercePaymentMethodKey)
      Returns all the commerce orders where groupId = ? and commercePaymentMethodKey = ?.
      Parameters:
      groupId - the group ID
      commercePaymentMethodKey - the commerce payment method key
      Returns:
      the matching commerce orders
    • findByG_CP

      public static List<CommerceOrder> findByG_CP(long groupId, String commercePaymentMethodKey, int start, int end)
      Returns a range of all the commerce orders where groupId = ? and commercePaymentMethodKey = ?.

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

      Parameters:
      groupId - the group ID
      commercePaymentMethodKey - the commerce payment method key
      start - the lower bound of the range of commerce orders
      end - the upper bound of the range of commerce orders (not inclusive)
      Returns:
      the range of matching commerce orders
    • findByG_CP

      public static List<CommerceOrder> findByG_CP(long groupId, String commercePaymentMethodKey, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
      Returns an ordered range of all the commerce orders where groupId = ? and commercePaymentMethodKey = ?.

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

      Parameters:
      groupId - the group ID
      commercePaymentMethodKey - the commerce payment method key
      start - the lower bound of the range of commerce orders
      end - the upper bound of the range of commerce orders (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching commerce orders
    • findByG_CP

      public static List<CommerceOrder> findByG_CP(long groupId, String commercePaymentMethodKey, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce orders where groupId = ? and commercePaymentMethodKey = ?.

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

      Parameters:
      groupId - the group ID
      commercePaymentMethodKey - the commerce payment method key
      start - the lower bound of the range of commerce orders
      end - the upper bound of the range of commerce orders (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 orders
    • findByG_CP_First

      public static CommerceOrder findByG_CP_First(long groupId, String commercePaymentMethodKey, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator) throws NoSuchOrderException
      Returns the first commerce order in the ordered set where groupId = ? and commercePaymentMethodKey = ?.
      Parameters:
      groupId - the group ID
      commercePaymentMethodKey - the commerce payment method key
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce order
      Throws:
      NoSuchOrderException - if a matching commerce order could not be found
      NoSuchOrderException
    • fetchByG_CP_First

      public static CommerceOrder fetchByG_CP_First(long groupId, String commercePaymentMethodKey, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
      Returns the first commerce order in the ordered set where groupId = ? and commercePaymentMethodKey = ?.
      Parameters:
      groupId - the group ID
      commercePaymentMethodKey - the commerce payment method key
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce order, or null if a matching commerce order could not be found
    • findByG_CP_Last

      public static CommerceOrder findByG_CP_Last(long groupId, String commercePaymentMethodKey, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator) throws NoSuchOrderException
      Returns the last commerce order in the ordered set where groupId = ? and commercePaymentMethodKey = ?.
      Parameters:
      groupId - the group ID
      commercePaymentMethodKey - the commerce payment method key
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce order
      Throws:
      NoSuchOrderException - if a matching commerce order could not be found
      NoSuchOrderException
    • fetchByG_CP_Last

      public static CommerceOrder fetchByG_CP_Last(long groupId, String commercePaymentMethodKey, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
      Returns the last commerce order in the ordered set where groupId = ? and commercePaymentMethodKey = ?.
      Parameters:
      groupId - the group ID
      commercePaymentMethodKey - the commerce payment method key
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce order, or null if a matching commerce order could not be found
    • findByG_CP_PrevAndNext

      public static CommerceOrder[] findByG_CP_PrevAndNext(long commerceOrderId, long groupId, String commercePaymentMethodKey, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator) throws NoSuchOrderException
      Returns the commerce orders before and after the current commerce order in the ordered set where groupId = ? and commercePaymentMethodKey = ?.
      Parameters:
      commerceOrderId - the primary key of the current commerce order
      groupId - the group ID
      commercePaymentMethodKey - the commerce payment method key
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next commerce order
      Throws:
      NoSuchOrderException - if a commerce order with the primary key could not be found
      NoSuchOrderException
    • filterFindByG_CP

      public static List<CommerceOrder> filterFindByG_CP(long groupId, String commercePaymentMethodKey)
      Returns all the commerce orders that the user has permission to view where groupId = ? and commercePaymentMethodKey = ?.
      Parameters:
      groupId - the group ID
      commercePaymentMethodKey - the commerce payment method key
      Returns:
      the matching commerce orders that the user has permission to view
    • filterFindByG_CP

      public static List<CommerceOrder> filterFindByG_CP(long groupId, String commercePaymentMethodKey, int start, int end)
      Returns a range of all the commerce orders that the user has permission to view where groupId = ? and commercePaymentMethodKey = ?.

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

      Parameters:
      groupId - the group ID
      commercePaymentMethodKey - the commerce payment method key
      start - the lower bound of the range of commerce orders
      end - the upper bound of the range of commerce orders (not inclusive)
      Returns:
      the range of matching commerce orders that the user has permission to view
    • filterFindByG_CP

      public static List<CommerceOrder> filterFindByG_CP(long groupId, String commercePaymentMethodKey, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
      Returns an ordered range of all the commerce orders that the user has permissions to view where groupId = ? and commercePaymentMethodKey = ?.

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

      Parameters:
      groupId - the group ID
      commercePaymentMethodKey - the commerce payment method key
      start - the lower bound of the range of commerce orders
      end - the upper bound of the range of commerce orders (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching commerce orders that the user has permission to view
    • filterFindByG_CP_PrevAndNext

      public static CommerceOrder[] filterFindByG_CP_PrevAndNext(long commerceOrderId, long groupId, String commercePaymentMethodKey, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator) throws NoSuchOrderException
      Returns the commerce orders before and after the current commerce order in the ordered set of commerce orders that the user has permission to view where groupId = ? and commercePaymentMethodKey = ?.
      Parameters:
      commerceOrderId - the primary key of the current commerce order
      groupId - the group ID
      commercePaymentMethodKey - the commerce payment method key
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next commerce order
      Throws:
      NoSuchOrderException - if a commerce order with the primary key could not be found
      NoSuchOrderException
    • removeByG_CP

      public static void removeByG_CP(long groupId, String commercePaymentMethodKey)
      Removes all the commerce orders where groupId = ? and commercePaymentMethodKey = ? from the database.
      Parameters:
      groupId - the group ID
      commercePaymentMethodKey - the commerce payment method key
    • countByG_CP

      public static int countByG_CP(long groupId, String commercePaymentMethodKey)
      Returns the number of commerce orders where groupId = ? and commercePaymentMethodKey = ?.
      Parameters:
      groupId - the group ID
      commercePaymentMethodKey - the commerce payment method key
      Returns:
      the number of matching commerce orders
    • filterCountByG_CP

      public static int filterCountByG_CP(long groupId, String commercePaymentMethodKey)
      Returns the number of commerce orders that the user has permission to view where groupId = ? and commercePaymentMethodKey = ?.
      Parameters:
      groupId - the group ID
      commercePaymentMethodKey - the commerce payment method key
      Returns:
      the number of matching commerce orders that the user has permission to view
    • findByG_U_O

      public static List<CommerceOrder> findByG_U_O(long groupId, long userId, int orderStatus)
      Returns all the commerce orders where groupId = ? and userId = ? and orderStatus = ?.
      Parameters:
      groupId - the group ID
      userId - the user ID
      orderStatus - the order status
      Returns:
      the matching commerce orders
    • findByG_U_O

      public static List<CommerceOrder> findByG_U_O(long groupId, long userId, int orderStatus, int start, int end)
      Returns a range of all the commerce orders where groupId = ? and userId = ? and orderStatus = ?.

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

      Parameters:
      groupId - the group ID
      userId - the user ID
      orderStatus - the order status
      start - the lower bound of the range of commerce orders
      end - the upper bound of the range of commerce orders (not inclusive)
      Returns:
      the range of matching commerce orders
    • findByG_U_O

      public static List<CommerceOrder> findByG_U_O(long groupId, long userId, int orderStatus, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
      Returns an ordered range of all the commerce orders where groupId = ? and userId = ? and orderStatus = ?.

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

      Parameters:
      groupId - the group ID
      userId - the user ID
      orderStatus - the order status
      start - the lower bound of the range of commerce orders
      end - the upper bound of the range of commerce orders (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching commerce orders
    • findByG_U_O

      public static List<CommerceOrder> findByG_U_O(long groupId, long userId, int orderStatus, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce orders where groupId = ? and userId = ? and orderStatus = ?.

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

      Parameters:
      groupId - the group ID
      userId - the user ID
      orderStatus - the order status
      start - the lower bound of the range of commerce orders
      end - the upper bound of the range of commerce orders (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 orders
    • findByG_U_O_First

      public static CommerceOrder findByG_U_O_First(long groupId, long userId, int orderStatus, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator) throws NoSuchOrderException
      Returns the first commerce order in the ordered set where groupId = ? and userId = ? and orderStatus = ?.
      Parameters:
      groupId - the group ID
      userId - the user ID
      orderStatus - the order status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce order
      Throws:
      NoSuchOrderException - if a matching commerce order could not be found
      NoSuchOrderException
    • fetchByG_U_O_First

      public static CommerceOrder fetchByG_U_O_First(long groupId, long userId, int orderStatus, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
      Returns the first commerce order in the ordered set where groupId = ? and userId = ? and orderStatus = ?.
      Parameters:
      groupId - the group ID
      userId - the user ID
      orderStatus - the order status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce order, or null if a matching commerce order could not be found
    • findByG_U_O_Last

      public static CommerceOrder findByG_U_O_Last(long groupId, long userId, int orderStatus, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator) throws NoSuchOrderException
      Returns the last commerce order in the ordered set where groupId = ? and userId = ? and orderStatus = ?.
      Parameters:
      groupId - the group ID
      userId - the user ID
      orderStatus - the order status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce order
      Throws:
      NoSuchOrderException - if a matching commerce order could not be found
      NoSuchOrderException
    • fetchByG_U_O_Last

      public static CommerceOrder fetchByG_U_O_Last(long groupId, long userId, int orderStatus, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
      Returns the last commerce order in the ordered set where groupId = ? and userId = ? and orderStatus = ?.
      Parameters:
      groupId - the group ID
      userId - the user ID
      orderStatus - the order status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce order, or null if a matching commerce order could not be found
    • findByG_U_O_PrevAndNext

      public static CommerceOrder[] findByG_U_O_PrevAndNext(long commerceOrderId, long groupId, long userId, int orderStatus, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator) throws NoSuchOrderException
      Returns the commerce orders before and after the current commerce order in the ordered set where groupId = ? and userId = ? and orderStatus = ?.
      Parameters:
      commerceOrderId - the primary key of the current commerce order
      groupId - the group ID
      userId - the user ID
      orderStatus - the order status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next commerce order
      Throws:
      NoSuchOrderException - if a commerce order with the primary key could not be found
      NoSuchOrderException
    • filterFindByG_U_O

      public static List<CommerceOrder> filterFindByG_U_O(long groupId, long userId, int orderStatus)
      Returns all the commerce orders that the user has permission to view where groupId = ? and userId = ? and orderStatus = ?.
      Parameters:
      groupId - the group ID
      userId - the user ID
      orderStatus - the order status
      Returns:
      the matching commerce orders that the user has permission to view
    • filterFindByG_U_O

      public static List<CommerceOrder> filterFindByG_U_O(long groupId, long userId, int orderStatus, int start, int end)
      Returns a range of all the commerce orders that the user has permission to view where groupId = ? and userId = ? and orderStatus = ?.

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

      Parameters:
      groupId - the group ID
      userId - the user ID
      orderStatus - the order status
      start - the lower bound of the range of commerce orders
      end - the upper bound of the range of commerce orders (not inclusive)
      Returns:
      the range of matching commerce orders that the user has permission to view
    • filterFindByG_U_O

      public static List<CommerceOrder> filterFindByG_U_O(long groupId, long userId, int orderStatus, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
      Returns an ordered range of all the commerce orders that the user has permissions to view where groupId = ? and userId = ? and orderStatus = ?.

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

      Parameters:
      groupId - the group ID
      userId - the user ID
      orderStatus - the order status
      start - the lower bound of the range of commerce orders
      end - the upper bound of the range of commerce orders (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching commerce orders that the user has permission to view
    • filterFindByG_U_O_PrevAndNext

      public static CommerceOrder[] filterFindByG_U_O_PrevAndNext(long commerceOrderId, long groupId, long userId, int orderStatus, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator) throws NoSuchOrderException
      Returns the commerce orders before and after the current commerce order in the ordered set of commerce orders that the user has permission to view where groupId = ? and userId = ? and orderStatus = ?.
      Parameters:
      commerceOrderId - the primary key of the current commerce order
      groupId - the group ID
      userId - the user ID
      orderStatus - the order status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next commerce order
      Throws:
      NoSuchOrderException - if a commerce order with the primary key could not be found
      NoSuchOrderException
    • removeByG_U_O

      public static void removeByG_U_O(long groupId, long userId, int orderStatus)
      Removes all the commerce orders where groupId = ? and userId = ? and orderStatus = ? from the database.
      Parameters:
      groupId - the group ID
      userId - the user ID
      orderStatus - the order status
    • countByG_U_O

      public static int countByG_U_O(long groupId, long userId, int orderStatus)
      Returns the number of commerce orders where groupId = ? and userId = ? and orderStatus = ?.
      Parameters:
      groupId - the group ID
      userId - the user ID
      orderStatus - the order status
      Returns:
      the number of matching commerce orders
    • filterCountByG_U_O

      public static int filterCountByG_U_O(long groupId, long userId, int orderStatus)
      Returns the number of commerce orders that the user has permission to view where groupId = ? and userId = ? and orderStatus = ?.
      Parameters:
      groupId - the group ID
      userId - the user ID
      orderStatus - the order status
      Returns:
      the number of matching commerce orders that the user has permission to view
    • findByG_C_O

      public static List<CommerceOrder> findByG_C_O(long groupId, long commerceAccountId, int orderStatus)
      Returns all the commerce orders where groupId = ? and commerceAccountId = ? and orderStatus = ?.
      Parameters:
      groupId - the group ID
      commerceAccountId - the commerce account ID
      orderStatus - the order status
      Returns:
      the matching commerce orders
    • findByG_C_O

      public static List<CommerceOrder> findByG_C_O(long groupId, long commerceAccountId, int orderStatus, int start, int end)
      Returns a range of all the commerce orders where groupId = ? and commerceAccountId = ? and orderStatus = ?.

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

      Parameters:
      groupId - the group ID
      commerceAccountId - the commerce account ID
      orderStatus - the order status
      start - the lower bound of the range of commerce orders
      end - the upper bound of the range of commerce orders (not inclusive)
      Returns:
      the range of matching commerce orders
    • findByG_C_O

      public static List<CommerceOrder> findByG_C_O(long groupId, long commerceAccountId, int orderStatus, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
      Returns an ordered range of all the commerce orders where groupId = ? and commerceAccountId = ? and orderStatus = ?.

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

      Parameters:
      groupId - the group ID
      commerceAccountId - the commerce account ID
      orderStatus - the order status
      start - the lower bound of the range of commerce orders
      end - the upper bound of the range of commerce orders (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching commerce orders
    • findByG_C_O

      public static List<CommerceOrder> findByG_C_O(long groupId, long commerceAccountId, int orderStatus, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce orders where groupId = ? and commerceAccountId = ? and orderStatus = ?.

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

      Parameters:
      groupId - the group ID
      commerceAccountId - the commerce account ID
      orderStatus - the order status
      start - the lower bound of the range of commerce orders
      end - the upper bound of the range of commerce orders (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 orders
    • findByG_C_O_First

      public static CommerceOrder findByG_C_O_First(long groupId, long commerceAccountId, int orderStatus, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator) throws NoSuchOrderException
      Returns the first commerce order in the ordered set where groupId = ? and commerceAccountId = ? and orderStatus = ?.
      Parameters:
      groupId - the group ID
      commerceAccountId - the commerce account ID
      orderStatus - the order status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce order
      Throws:
      NoSuchOrderException - if a matching commerce order could not be found
      NoSuchOrderException
    • fetchByG_C_O_First

      public static CommerceOrder fetchByG_C_O_First(long groupId, long commerceAccountId, int orderStatus, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
      Returns the first commerce order in the ordered set where groupId = ? and commerceAccountId = ? and orderStatus = ?.
      Parameters:
      groupId - the group ID
      commerceAccountId - the commerce account ID
      orderStatus - the order status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce order, or null if a matching commerce order could not be found
    • findByG_C_O_Last

      public static CommerceOrder findByG_C_O_Last(long groupId, long commerceAccountId, int orderStatus, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator) throws NoSuchOrderException
      Returns the last commerce order in the ordered set where groupId = ? and commerceAccountId = ? and orderStatus = ?.
      Parameters:
      groupId - the group ID
      commerceAccountId - the commerce account ID
      orderStatus - the order status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce order
      Throws:
      NoSuchOrderException - if a matching commerce order could not be found
      NoSuchOrderException
    • fetchByG_C_O_Last

      public static CommerceOrder fetchByG_C_O_Last(long groupId, long commerceAccountId, int orderStatus, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
      Returns the last commerce order in the ordered set where groupId = ? and commerceAccountId = ? and orderStatus = ?.
      Parameters:
      groupId - the group ID
      commerceAccountId - the commerce account ID
      orderStatus - the order status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce order, or null if a matching commerce order could not be found
    • findByG_C_O_PrevAndNext

      public static CommerceOrder[] findByG_C_O_PrevAndNext(long commerceOrderId, long groupId, long commerceAccountId, int orderStatus, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator) throws NoSuchOrderException
      Returns the commerce orders before and after the current commerce order in the ordered set where groupId = ? and commerceAccountId = ? and orderStatus = ?.
      Parameters:
      commerceOrderId - the primary key of the current commerce order
      groupId - the group ID
      commerceAccountId - the commerce account ID
      orderStatus - the order status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next commerce order
      Throws:
      NoSuchOrderException - if a commerce order with the primary key could not be found
      NoSuchOrderException
    • filterFindByG_C_O

      public static List<CommerceOrder> filterFindByG_C_O(long groupId, long commerceAccountId, int orderStatus)
      Returns all the commerce orders that the user has permission to view where groupId = ? and commerceAccountId = ? and orderStatus = ?.
      Parameters:
      groupId - the group ID
      commerceAccountId - the commerce account ID
      orderStatus - the order status
      Returns:
      the matching commerce orders that the user has permission to view
    • filterFindByG_C_O

      public static List<CommerceOrder> filterFindByG_C_O(long groupId, long commerceAccountId, int orderStatus, int start, int end)
      Returns a range of all the commerce orders that the user has permission to view where groupId = ? and commerceAccountId = ? and orderStatus = ?.

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

      Parameters:
      groupId - the group ID
      commerceAccountId - the commerce account ID
      orderStatus - the order status
      start - the lower bound of the range of commerce orders
      end - the upper bound of the range of commerce orders (not inclusive)
      Returns:
      the range of matching commerce orders that the user has permission to view
    • filterFindByG_C_O

      public static List<CommerceOrder> filterFindByG_C_O(long groupId, long commerceAccountId, int orderStatus, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
      Returns an ordered range of all the commerce orders that the user has permissions to view where groupId = ? and commerceAccountId = ? and orderStatus = ?.

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

      Parameters:
      groupId - the group ID
      commerceAccountId - the commerce account ID
      orderStatus - the order status
      start - the lower bound of the range of commerce orders
      end - the upper bound of the range of commerce orders (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching commerce orders that the user has permission to view
    • filterFindByG_C_O_PrevAndNext

      public static CommerceOrder[] filterFindByG_C_O_PrevAndNext(long commerceOrderId, long groupId, long commerceAccountId, int orderStatus, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator) throws NoSuchOrderException
      Returns the commerce orders before and after the current commerce order in the ordered set of commerce orders that the user has permission to view where groupId = ? and commerceAccountId = ? and orderStatus = ?.
      Parameters:
      commerceOrderId - the primary key of the current commerce order
      groupId - the group ID
      commerceAccountId - the commerce account ID
      orderStatus - the order status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next commerce order
      Throws:
      NoSuchOrderException - if a commerce order with the primary key could not be found
      NoSuchOrderException
    • removeByG_C_O

      public static void removeByG_C_O(long groupId, long commerceAccountId, int orderStatus)
      Removes all the commerce orders where groupId = ? and commerceAccountId = ? and orderStatus = ? from the database.
      Parameters:
      groupId - the group ID
      commerceAccountId - the commerce account ID
      orderStatus - the order status
    • countByG_C_O

      public static int countByG_C_O(long groupId, long commerceAccountId, int orderStatus)
      Returns the number of commerce orders where groupId = ? and commerceAccountId = ? and orderStatus = ?.
      Parameters:
      groupId - the group ID
      commerceAccountId - the commerce account ID
      orderStatus - the order status
      Returns:
      the number of matching commerce orders
    • filterCountByG_C_O

      public static int filterCountByG_C_O(long groupId, long commerceAccountId, int orderStatus)
      Returns the number of commerce orders that the user has permission to view where groupId = ? and commerceAccountId = ? and orderStatus = ?.
      Parameters:
      groupId - the group ID
      commerceAccountId - the commerce account ID
      orderStatus - the order status
      Returns:
      the number of matching commerce orders that the user has permission to view
    • findByU_LtC_O

      public static List<CommerceOrder> findByU_LtC_O(long userId, Date createDate, int orderStatus)
      Returns all the commerce orders where userId = ? and createDate < ? and orderStatus = ?.
      Parameters:
      userId - the user ID
      createDate - the create date
      orderStatus - the order status
      Returns:
      the matching commerce orders
    • findByU_LtC_O

      public static List<CommerceOrder> findByU_LtC_O(long userId, Date createDate, int orderStatus, int start, int end)
      Returns a range of all the commerce orders where userId = ? and createDate < ? and orderStatus = ?.

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

      Parameters:
      userId - the user ID
      createDate - the create date
      orderStatus - the order status
      start - the lower bound of the range of commerce orders
      end - the upper bound of the range of commerce orders (not inclusive)
      Returns:
      the range of matching commerce orders
    • findByU_LtC_O

      public static List<CommerceOrder> findByU_LtC_O(long userId, Date createDate, int orderStatus, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
      Returns an ordered range of all the commerce orders where userId = ? and createDate < ? and orderStatus = ?.

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

      Parameters:
      userId - the user ID
      createDate - the create date
      orderStatus - the order status
      start - the lower bound of the range of commerce orders
      end - the upper bound of the range of commerce orders (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching commerce orders
    • findByU_LtC_O

      public static List<CommerceOrder> findByU_LtC_O(long userId, Date createDate, int orderStatus, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce orders where userId = ? and createDate < ? and orderStatus = ?.

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

      Parameters:
      userId - the user ID
      createDate - the create date
      orderStatus - the order status
      start - the lower bound of the range of commerce orders
      end - the upper bound of the range of commerce orders (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 orders
    • findByU_LtC_O_First

      public static CommerceOrder findByU_LtC_O_First(long userId, Date createDate, int orderStatus, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator) throws NoSuchOrderException
      Returns the first commerce order in the ordered set where userId = ? and createDate < ? and orderStatus = ?.
      Parameters:
      userId - the user ID
      createDate - the create date
      orderStatus - the order status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce order
      Throws:
      NoSuchOrderException - if a matching commerce order could not be found
      NoSuchOrderException
    • fetchByU_LtC_O_First

      public static CommerceOrder fetchByU_LtC_O_First(long userId, Date createDate, int orderStatus, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
      Returns the first commerce order in the ordered set where userId = ? and createDate < ? and orderStatus = ?.
      Parameters:
      userId - the user ID
      createDate - the create date
      orderStatus - the order status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce order, or null if a matching commerce order could not be found
    • findByU_LtC_O_Last

      public static CommerceOrder findByU_LtC_O_Last(long userId, Date createDate, int orderStatus, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator) throws NoSuchOrderException
      Returns the last commerce order in the ordered set where userId = ? and createDate < ? and orderStatus = ?.
      Parameters:
      userId - the user ID
      createDate - the create date
      orderStatus - the order status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce order
      Throws:
      NoSuchOrderException - if a matching commerce order could not be found
      NoSuchOrderException
    • fetchByU_LtC_O_Last

      public static CommerceOrder fetchByU_LtC_O_Last(long userId, Date createDate, int orderStatus, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
      Returns the last commerce order in the ordered set where userId = ? and createDate < ? and orderStatus = ?.
      Parameters:
      userId - the user ID
      createDate - the create date
      orderStatus - the order status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce order, or null if a matching commerce order could not be found
    • findByU_LtC_O_PrevAndNext

      public static CommerceOrder[] findByU_LtC_O_PrevAndNext(long commerceOrderId, long userId, Date createDate, int orderStatus, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator) throws NoSuchOrderException
      Returns the commerce orders before and after the current commerce order in the ordered set where userId = ? and createDate < ? and orderStatus = ?.
      Parameters:
      commerceOrderId - the primary key of the current commerce order
      userId - the user ID
      createDate - the create date
      orderStatus - the order status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next commerce order
      Throws:
      NoSuchOrderException - if a commerce order with the primary key could not be found
      NoSuchOrderException
    • removeByU_LtC_O

      public static void removeByU_LtC_O(long userId, Date createDate, int orderStatus)
      Removes all the commerce orders where userId = ? and createDate < ? and orderStatus = ? from the database.
      Parameters:
      userId - the user ID
      createDate - the create date
      orderStatus - the order status
    • countByU_LtC_O

      public static int countByU_LtC_O(long userId, Date createDate, int orderStatus)
      Returns the number of commerce orders where userId = ? and createDate < ? and orderStatus = ?.
      Parameters:
      userId - the user ID
      createDate - the create date
      orderStatus - the order status
      Returns:
      the number of matching commerce orders
    • findByC_LtC_O

      public static List<CommerceOrder> findByC_LtC_O(Date createDate, long commerceAccountId, int orderStatus)
      Returns all the commerce orders where createDate < ? and commerceAccountId = ? and orderStatus = ?.
      Parameters:
      createDate - the create date
      commerceAccountId - the commerce account ID
      orderStatus - the order status
      Returns:
      the matching commerce orders
    • findByC_LtC_O

      public static List<CommerceOrder> findByC_LtC_O(Date createDate, long commerceAccountId, int orderStatus, int start, int end)
      Returns a range of all the commerce orders where createDate < ? and commerceAccountId = ? and orderStatus = ?.

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

      Parameters:
      createDate - the create date
      commerceAccountId - the commerce account ID
      orderStatus - the order status
      start - the lower bound of the range of commerce orders
      end - the upper bound of the range of commerce orders (not inclusive)
      Returns:
      the range of matching commerce orders
    • findByC_LtC_O

      public static List<CommerceOrder> findByC_LtC_O(Date createDate, long commerceAccountId, int orderStatus, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
      Returns an ordered range of all the commerce orders where createDate < ? and commerceAccountId = ? and orderStatus = ?.

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

      Parameters:
      createDate - the create date
      commerceAccountId - the commerce account ID
      orderStatus - the order status
      start - the lower bound of the range of commerce orders
      end - the upper bound of the range of commerce orders (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching commerce orders
    • findByC_LtC_O

      public static List<CommerceOrder> findByC_LtC_O(Date createDate, long commerceAccountId, int orderStatus, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce orders where createDate < ? and commerceAccountId = ? and orderStatus = ?.

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

      Parameters:
      createDate - the create date
      commerceAccountId - the commerce account ID
      orderStatus - the order status
      start - the lower bound of the range of commerce orders
      end - the upper bound of the range of commerce orders (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 orders
    • findByC_LtC_O_First

      public static CommerceOrder findByC_LtC_O_First(Date createDate, long commerceAccountId, int orderStatus, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator) throws NoSuchOrderException
      Returns the first commerce order in the ordered set where createDate < ? and commerceAccountId = ? and orderStatus = ?.
      Parameters:
      createDate - the create date
      commerceAccountId - the commerce account ID
      orderStatus - the order status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce order
      Throws:
      NoSuchOrderException - if a matching commerce order could not be found
      NoSuchOrderException
    • fetchByC_LtC_O_First

      public static CommerceOrder fetchByC_LtC_O_First(Date createDate, long commerceAccountId, int orderStatus, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
      Returns the first commerce order in the ordered set where createDate < ? and commerceAccountId = ? and orderStatus = ?.
      Parameters:
      createDate - the create date
      commerceAccountId - the commerce account ID
      orderStatus - the order status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce order, or null if a matching commerce order could not be found
    • findByC_LtC_O_Last

      public static CommerceOrder findByC_LtC_O_Last(Date createDate, long commerceAccountId, int orderStatus, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator) throws NoSuchOrderException
      Returns the last commerce order in the ordered set where createDate < ? and commerceAccountId = ? and orderStatus = ?.
      Parameters:
      createDate - the create date
      commerceAccountId - the commerce account ID
      orderStatus - the order status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce order
      Throws:
      NoSuchOrderException - if a matching commerce order could not be found
      NoSuchOrderException
    • fetchByC_LtC_O_Last

      public static CommerceOrder fetchByC_LtC_O_Last(Date createDate, long commerceAccountId, int orderStatus, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
      Returns the last commerce order in the ordered set where createDate < ? and commerceAccountId = ? and orderStatus = ?.
      Parameters:
      createDate - the create date
      commerceAccountId - the commerce account ID
      orderStatus - the order status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce order, or null if a matching commerce order could not be found
    • findByC_LtC_O_PrevAndNext

      public static CommerceOrder[] findByC_LtC_O_PrevAndNext(long commerceOrderId, Date createDate, long commerceAccountId, int orderStatus, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator) throws NoSuchOrderException
      Returns the commerce orders before and after the current commerce order in the ordered set where createDate < ? and commerceAccountId = ? and orderStatus = ?.
      Parameters:
      commerceOrderId - the primary key of the current commerce order
      createDate - the create date
      commerceAccountId - the commerce account ID
      orderStatus - the order status
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next commerce order
      Throws:
      NoSuchOrderException - if a commerce order with the primary key could not be found
      NoSuchOrderException
    • removeByC_LtC_O

      public static void removeByC_LtC_O(Date createDate, long commerceAccountId, int orderStatus)
      Removes all the commerce orders where createDate < ? and commerceAccountId = ? and orderStatus = ? from the database.
      Parameters:
      createDate - the create date
      commerceAccountId - the commerce account ID
      orderStatus - the order status
    • countByC_LtC_O

      public static int countByC_LtC_O(Date createDate, long commerceAccountId, int orderStatus)
      Returns the number of commerce orders where createDate < ? and commerceAccountId = ? and orderStatus = ?.
      Parameters:
      createDate - the create date
      commerceAccountId - the commerce account ID
      orderStatus - the order status
      Returns:
      the number of matching commerce orders
    • findByERC_C

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

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

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

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

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

      public static void cacheResult(CommerceOrder commerceOrder)
      Caches the commerce order in the entity cache if it is enabled.
      Parameters:
      commerceOrder - the commerce order
    • cacheResult

      public static void cacheResult(List<CommerceOrder> commerceOrders)
      Caches the commerce orders in the entity cache if it is enabled.
      Parameters:
      commerceOrders - the commerce orders
    • create

      public static CommerceOrder create(long commerceOrderId)
      Creates a new commerce order with the primary key. Does not add the commerce order to the database.
      Parameters:
      commerceOrderId - the primary key for the new commerce order
      Returns:
      the new commerce order
    • remove

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

      public static CommerceOrder updateImpl(CommerceOrder commerceOrder)
    • findByPrimaryKey

      public static CommerceOrder findByPrimaryKey(long commerceOrderId) throws NoSuchOrderException
      Returns the commerce order with the primary key or throws a NoSuchOrderException if it could not be found.
      Parameters:
      commerceOrderId - the primary key of the commerce order
      Returns:
      the commerce order
      Throws:
      NoSuchOrderException - if a commerce order with the primary key could not be found
      NoSuchOrderException
    • fetchByPrimaryKey

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

      public static List<CommerceOrder> findAll()
      Returns all the commerce orders.
      Returns:
      the commerce orders
    • findAll

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

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

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

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

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

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

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

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

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

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

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

      public static CommerceOrderPersistence getPersistence()
    • setPersistence

      public static void setPersistence(CommerceOrderPersistence persistence)