public class CommerceOrderUtil
extends java.lang.Object
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
CommerceOrderPersistence
Constructor and Description |
---|
CommerceOrderUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(CommerceOrder commerceOrder)
Caches the commerce order in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<CommerceOrder> commerceOrders)
Caches the commerce orders in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(CommerceOrder commerceOrder) |
static int |
countAll()
Returns the number of commerce orders.
|
static int |
countByBillingAddressId(long billingAddressId)
Returns the number of commerce orders where billingAddressId = ?.
|
static int |
countByC_ERC(long companyId,
java.lang.String externalReferenceCode)
Returns the number of commerce orders where companyId = ? and externalReferenceCode = ?.
|
static int |
countByC_LtC_O(java.util.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 |
countByG_C_O(long groupId,
long commerceAccountId,
int orderStatus)
Returns the number of commerce orders where groupId = ? and commerceAccountId = ? and orderStatus = ?.
|
static int |
countByG_C(long groupId,
long commerceAccountId)
Returns the number of commerce orders where groupId = ? and commerceAccountId = ?.
|
static int |
countByG_CP(long groupId,
java.lang.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,
java.util.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 |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of commerce orders where uuid = ? and companyId = ?.
|
static int |
countByUUID_G(java.lang.String uuid,
long groupId)
Returns the number of commerce orders where uuid = ? and groupId = ?.
|
static int |
countByUuid(java.lang.String uuid)
Returns the number of commerce orders where uuid = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static CommerceOrder |
create(long commerceOrderId)
Creates a new commerce order with the primary key.
|
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 = ?.
|
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 = ?.
|
static CommerceOrder |
fetchByC_ERC(long companyId,
java.lang.String externalReferenceCode)
Returns the commerce order where companyId = ? and externalReferenceCode = ? or returns
null if it could not be found. |
static CommerceOrder |
fetchByC_ERC(long companyId,
java.lang.String externalReferenceCode,
boolean useFinderCache)
Returns the commerce order where companyId = ? and externalReferenceCode = ? or returns
null if it could not be found, optionally using the finder cache. |
static CommerceOrder |
fetchByC_LtC_O_First(java.util.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 = ?.
|
static CommerceOrder |
fetchByC_LtC_O_Last(java.util.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 |
fetchByCommerceAccountId_First(long commerceAccountId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
Returns the first commerce order in the ordered set where commerceAccountId = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
static CommerceOrder |
fetchByG_CP_First(long groupId,
java.lang.String commercePaymentMethodKey,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
Returns the first commerce order in the ordered set where groupId = ? and commercePaymentMethodKey = ?.
|
static CommerceOrder |
fetchByG_CP_Last(long groupId,
java.lang.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 |
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
static CommerceOrder |
fetchByPrimaryKey(long commerceOrderId)
Returns the commerce order with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,CommerceOrder> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
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 = ?.
|
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 = ?.
|
static CommerceOrder |
fetchByU_LtC_O_First(long userId,
java.util.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 = ?.
|
static CommerceOrder |
fetchByU_LtC_O_Last(long userId,
java.util.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 |
fetchByUserId_First(long userId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
Returns the first commerce order in the ordered set where userId = ?.
|
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 = ?.
|
static CommerceOrder |
fetchByUuid_C_First(java.lang.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 = ?.
|
static CommerceOrder |
fetchByUuid_C_Last(java.lang.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 |
fetchByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
Returns the first commerce order in the ordered set where uuid = ?.
|
static CommerceOrder |
fetchByUUID_G(java.lang.String uuid,
long groupId)
Returns the commerce order where uuid = ? and groupId = ? or returns
null if it could not be found. |
static CommerceOrder |
fetchByUUID_G(java.lang.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. |
static CommerceOrder |
fetchByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
Returns the last commerce order in the ordered set where uuid = ?.
|
static java.util.List<CommerceOrder> |
findAll()
Returns all the commerce orders.
|
static java.util.List<CommerceOrder> |
findAll(int start,
int end)
Returns a range of all the commerce orders.
|
static java.util.List<CommerceOrder> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
Returns an ordered range of all the commerce orders.
|
static java.util.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.
|
static CommerceOrder |
findByBillingAddressId_First(long billingAddressId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
Returns the first commerce order in the ordered set where billingAddressId = ?.
|
static CommerceOrder |
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 = ?.
|
static java.util.List<CommerceOrder> |
findByBillingAddressId(long billingAddressId)
Returns all the commerce orders where billingAddressId = ?.
|
static java.util.List<CommerceOrder> |
findByBillingAddressId(long billingAddressId,
int start,
int end)
Returns a range of all the commerce orders where billingAddressId = ?.
|
static java.util.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 = ?.
|
static java.util.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 = ?.
|
static CommerceOrder |
findByC_ERC(long companyId,
java.lang.String externalReferenceCode)
Returns the commerce order where companyId = ? and externalReferenceCode = ? or throws a
NoSuchOrderException if it could not be found. |
static CommerceOrder |
findByC_LtC_O_First(java.util.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 = ?.
|
static CommerceOrder |
findByC_LtC_O_Last(java.util.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,
java.util.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 = ?.
|
static java.util.List<CommerceOrder> |
findByC_LtC_O(java.util.Date createDate,
long commerceAccountId,
int orderStatus)
Returns all the commerce orders where createDate < ? and commerceAccountId = ? and orderStatus = ?.
|
static java.util.List<CommerceOrder> |
findByC_LtC_O(java.util.Date createDate,
long commerceAccountId,
int orderStatus,
int start,
int end)
Returns a range of all the commerce orders where createDate < ? and commerceAccountId = ? and orderStatus = ?.
|
static java.util.List<CommerceOrder> |
findByC_LtC_O(java.util.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 = ?.
|
static java.util.List<CommerceOrder> |
findByC_LtC_O(java.util.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 = ?.
|
static CommerceOrder |
findByCommerceAccountId_First(long commerceAccountId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
Returns the first commerce order in the ordered set where commerceAccountId = ?.
|
static CommerceOrder |
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 = ?.
|
static java.util.List<CommerceOrder> |
findByCommerceAccountId(long commerceAccountId)
Returns all the commerce orders where commerceAccountId = ?.
|
static java.util.List<CommerceOrder> |
findByCommerceAccountId(long commerceAccountId,
int start,
int end)
Returns a range of all the commerce orders where commerceAccountId = ?.
|
static java.util.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 = ?.
|
static java.util.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 = ?.
|
static CommerceOrder |
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 = ?.
|
static CommerceOrder |
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 = ?.
|
static CommerceOrder |
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 = ?.
|
static CommerceOrder |
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 java.util.List<CommerceOrder> |
findByG_C_O(long groupId,
long commerceAccountId,
int orderStatus)
Returns all the commerce orders where groupId = ? and commerceAccountId = ? and orderStatus = ?.
|
static java.util.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 = ?.
|
static java.util.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 = ?.
|
static java.util.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 = ?.
|
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 = ?.
|
static java.util.List<CommerceOrder> |
findByG_C(long groupId,
long commerceAccountId)
Returns all the commerce orders where groupId = ? and commerceAccountId = ?.
|
static java.util.List<CommerceOrder> |
findByG_C(long groupId,
long commerceAccountId,
int start,
int end)
Returns a range of all the commerce orders where groupId = ? and commerceAccountId = ?.
|
static java.util.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 = ?.
|
static java.util.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 = ?.
|
static CommerceOrder |
findByG_CP_First(long groupId,
java.lang.String commercePaymentMethodKey,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
Returns the first commerce order in the ordered set where groupId = ? and commercePaymentMethodKey = ?.
|
static CommerceOrder |
findByG_CP_Last(long groupId,
java.lang.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,
java.lang.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 = ?.
|
static java.util.List<CommerceOrder> |
findByG_CP(long groupId,
java.lang.String commercePaymentMethodKey)
Returns all the commerce orders where groupId = ? and commercePaymentMethodKey = ?.
|
static java.util.List<CommerceOrder> |
findByG_CP(long groupId,
java.lang.String commercePaymentMethodKey,
int start,
int end)
Returns a range of all the commerce orders where groupId = ? and commercePaymentMethodKey = ?.
|
static java.util.List<CommerceOrder> |
findByG_CP(long groupId,
java.lang.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 = ?.
|
static java.util.List<CommerceOrder> |
findByG_CP(long groupId,
java.lang.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 = ?.
|
static CommerceOrder |
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 = ?.
|
static CommerceOrder |
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 = ?.
|
static java.util.List<CommerceOrder> |
findByG_U_O(long groupId,
long userId,
int orderStatus)
Returns all the commerce orders where groupId = ? and userId = ? and orderStatus = ?.
|
static java.util.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 = ?.
|
static java.util.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 = ?.
|
static java.util.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 = ?.
|
static CommerceOrder |
findByGroupId_First(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
Returns the first commerce order in the ordered set where groupId = ?.
|
static CommerceOrder |
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 = ?.
|
static java.util.List<CommerceOrder> |
findByGroupId(long groupId)
Returns all the commerce orders where groupId = ?.
|
static java.util.List<CommerceOrder> |
findByGroupId(long groupId,
int start,
int end)
Returns a range of all the commerce orders where groupId = ?.
|
static java.util.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 = ?.
|
static java.util.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 = ?.
|
static CommerceOrder |
findByPrimaryKey(long commerceOrderId)
Returns the commerce order with the primary key or throws a
NoSuchOrderException if it could not be found. |
static CommerceOrder |
findByShippingAddressId_First(long shippingAddressId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
Returns the first commerce order in the ordered set where shippingAddressId = ?.
|
static CommerceOrder |
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 = ?.
|
static java.util.List<CommerceOrder> |
findByShippingAddressId(long shippingAddressId)
Returns all the commerce orders where shippingAddressId = ?.
|
static java.util.List<CommerceOrder> |
findByShippingAddressId(long shippingAddressId,
int start,
int end)
Returns a range of all the commerce orders where shippingAddressId = ?.
|
static java.util.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 = ?.
|
static java.util.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 = ?.
|
static CommerceOrder |
findByU_LtC_O_First(long userId,
java.util.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 = ?.
|
static CommerceOrder |
findByU_LtC_O_Last(long userId,
java.util.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,
java.util.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 = ?.
|
static java.util.List<CommerceOrder> |
findByU_LtC_O(long userId,
java.util.Date createDate,
int orderStatus)
Returns all the commerce orders where userId = ? and createDate < ? and orderStatus = ?.
|
static java.util.List<CommerceOrder> |
findByU_LtC_O(long userId,
java.util.Date createDate,
int orderStatus,
int start,
int end)
Returns a range of all the commerce orders where userId = ? and createDate < ? and orderStatus = ?.
|
static java.util.List<CommerceOrder> |
findByU_LtC_O(long userId,
java.util.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 = ?.
|
static java.util.List<CommerceOrder> |
findByU_LtC_O(long userId,
java.util.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 = ?.
|
static CommerceOrder |
findByUserId_First(long userId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
Returns the first commerce order in the ordered set where userId = ?.
|
static CommerceOrder |
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 = ?.
|
static java.util.List<CommerceOrder> |
findByUserId(long userId)
Returns all the commerce orders where userId = ?.
|
static java.util.List<CommerceOrder> |
findByUserId(long userId,
int start,
int end)
Returns a range of all the commerce orders where userId = ?.
|
static java.util.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 = ?.
|
static java.util.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 = ?.
|
static CommerceOrder |
findByUuid_C_First(java.lang.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 = ?.
|
static CommerceOrder |
findByUuid_C_Last(java.lang.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,
java.lang.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 = ?.
|
static java.util.List<CommerceOrder> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the commerce orders where uuid = ? and companyId = ?.
|
static java.util.List<CommerceOrder> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end)
Returns a range of all the commerce orders where uuid = ? and companyId = ?.
|
static java.util.List<CommerceOrder> |
findByUuid_C(java.lang.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 = ?.
|
static java.util.List<CommerceOrder> |
findByUuid_C(java.lang.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 = ?.
|
static CommerceOrder |
findByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
Returns the first commerce order in the ordered set where uuid = ?.
|
static CommerceOrder |
findByUUID_G(java.lang.String uuid,
long groupId)
Returns the commerce order where uuid = ? and groupId = ? or throws a
NoSuchOrderException if it could not be found. |
static CommerceOrder |
findByUuid_Last(java.lang.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,
java.lang.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 = ?.
|
static java.util.List<CommerceOrder> |
findByUuid(java.lang.String uuid)
Returns all the commerce orders where uuid = ?.
|
static java.util.List<CommerceOrder> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the commerce orders where uuid = ?.
|
static java.util.List<CommerceOrder> |
findByUuid(java.lang.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 = ?.
|
static java.util.List<CommerceOrder> |
findByUuid(java.lang.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 = ?.
|
static java.util.List<CommerceOrder> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<CommerceOrder> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<CommerceOrder> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator) |
static CommerceOrderPersistence |
getPersistence() |
static CommerceOrder |
remove(long commerceOrderId)
Removes the commerce order with the primary key from the database.
|
static void |
removeAll()
Removes all the commerce orders from the database.
|
static void |
removeByBillingAddressId(long billingAddressId)
Removes all the commerce orders where billingAddressId = ? from the database.
|
static CommerceOrder |
removeByC_ERC(long companyId,
java.lang.String externalReferenceCode)
Removes the commerce order where companyId = ? and externalReferenceCode = ? from the database.
|
static void |
removeByC_LtC_O(java.util.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.
|
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_C(long groupId,
long commerceAccountId)
Removes all the commerce orders where groupId = ? and commerceAccountId = ? from the database.
|
static void |
removeByG_CP(long groupId,
java.lang.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,
java.util.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 |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the commerce orders where uuid = ? and companyId = ? from the database.
|
static CommerceOrder |
removeByUUID_G(java.lang.String uuid,
long groupId)
Removes the commerce order where uuid = ? and groupId = ? from the database.
|
static void |
removeByUuid(java.lang.String uuid)
Removes all the commerce orders where uuid = ? from the database.
|
static CommerceOrder |
update(CommerceOrder commerceOrder) |
static CommerceOrder |
update(CommerceOrder commerceOrder,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static CommerceOrder |
updateImpl(CommerceOrder commerceOrder) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(CommerceOrder commerceOrder)
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.countWithDynamicQuery(DynamicQuery)
public static java.util.Map<java.io.Serializable,CommerceOrder> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<CommerceOrder> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<CommerceOrder> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<CommerceOrder> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static CommerceOrder update(CommerceOrder commerceOrder)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static CommerceOrder update(CommerceOrder commerceOrder, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<CommerceOrder> findByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.util.List<CommerceOrder> findByUuid(java.lang.String uuid, int start, int end)
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
.
uuid
- the uuidstart
- the lower bound of the range of commerce ordersend
- the upper bound of the range of commerce orders (not inclusive)public static java.util.List<CommerceOrder> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
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
.
uuid
- the uuidstart
- the lower bound of the range of commerce ordersend
- the upper bound of the range of commerce orders (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommerceOrder> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator, boolean useFinderCache)
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
.
uuid
- the uuidstart
- the lower bound of the range of commerce ordersend
- 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 cachepublic static CommerceOrder findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator) throws NoSuchOrderException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderException
- if a matching commerce order could not be foundpublic static CommerceOrder fetchByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce order could not be foundpublic static CommerceOrder findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator) throws NoSuchOrderException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderException
- if a matching commerce order could not be foundpublic static CommerceOrder fetchByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce order could not be foundpublic static CommerceOrder[] findByUuid_PrevAndNext(long commerceOrderId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator) throws NoSuchOrderException
commerceOrderId
- the primary key of the current commerce orderuuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderException
- if a commerce order with the primary key could not be foundpublic static void removeByUuid(java.lang.String uuid)
uuid
- the uuidpublic static int countByUuid(java.lang.String uuid)
uuid
- the uuidpublic static CommerceOrder findByUUID_G(java.lang.String uuid, long groupId) throws NoSuchOrderException
NoSuchOrderException
if it could not be found.uuid
- the uuidgroupId
- the group IDNoSuchOrderException
- if a matching commerce order could not be foundpublic static CommerceOrder fetchByUUID_G(java.lang.String uuid, long groupId)
null
if it could not be found. Uses the finder cache.uuid
- the uuidgroupId
- the group IDnull
if a matching commerce order could not be foundpublic static CommerceOrder fetchByUUID_G(java.lang.String uuid, long groupId, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.uuid
- the uuidgroupId
- the group IDuseFinderCache
- whether to use the finder cachenull
if a matching commerce order could not be foundpublic static CommerceOrder removeByUUID_G(java.lang.String uuid, long groupId) throws NoSuchOrderException
uuid
- the uuidgroupId
- the group IDNoSuchOrderException
public static int countByUUID_G(java.lang.String uuid, long groupId)
uuid
- the uuidgroupId
- the group IDpublic static java.util.List<CommerceOrder> findByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<CommerceOrder> findByUuid_C(java.lang.String uuid, long companyId, int start, int end)
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
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of commerce ordersend
- the upper bound of the range of commerce orders (not inclusive)public static java.util.List<CommerceOrder> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
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
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of commerce ordersend
- the upper bound of the range of commerce orders (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommerceOrder> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator, boolean useFinderCache)
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
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of commerce ordersend
- 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 cachepublic static CommerceOrder findByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator) throws NoSuchOrderException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderException
- if a matching commerce order could not be foundpublic static CommerceOrder fetchByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce order could not be foundpublic static CommerceOrder findByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator) throws NoSuchOrderException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderException
- if a matching commerce order could not be foundpublic static CommerceOrder fetchByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce order could not be foundpublic static CommerceOrder[] findByUuid_C_PrevAndNext(long commerceOrderId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator) throws NoSuchOrderException
commerceOrderId
- the primary key of the current commerce orderuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderException
- if a commerce order with the primary key could not be foundpublic static void removeByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static int countByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<CommerceOrder> findByGroupId(long groupId)
groupId
- the group IDpublic static java.util.List<CommerceOrder> findByGroupId(long groupId, int start, int end)
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
.
groupId
- the group IDstart
- the lower bound of the range of commerce ordersend
- the upper bound of the range of commerce orders (not inclusive)public static java.util.List<CommerceOrder> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
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
.
groupId
- the group IDstart
- the lower bound of the range of commerce ordersend
- the upper bound of the range of commerce orders (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommerceOrder> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator, boolean useFinderCache)
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
.
groupId
- the group IDstart
- the lower bound of the range of commerce ordersend
- 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 cachepublic static CommerceOrder findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator) throws NoSuchOrderException
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderException
- if a matching commerce order could not be foundpublic static CommerceOrder fetchByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce order could not be foundpublic static CommerceOrder findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator) throws NoSuchOrderException
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderException
- if a matching commerce order could not be foundpublic static CommerceOrder fetchByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce order could not be foundpublic static CommerceOrder[] findByGroupId_PrevAndNext(long commerceOrderId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator) throws NoSuchOrderException
commerceOrderId
- the primary key of the current commerce ordergroupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderException
- if a commerce order with the primary key could not be foundpublic static void removeByGroupId(long groupId)
groupId
- the group IDpublic static int countByGroupId(long groupId)
groupId
- the group IDpublic static java.util.List<CommerceOrder> findByUserId(long userId)
userId
- the user IDpublic static java.util.List<CommerceOrder> findByUserId(long userId, int start, int end)
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
.
userId
- the user IDstart
- the lower bound of the range of commerce ordersend
- the upper bound of the range of commerce orders (not inclusive)public static java.util.List<CommerceOrder> findByUserId(long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
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
.
userId
- the user IDstart
- the lower bound of the range of commerce ordersend
- the upper bound of the range of commerce orders (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommerceOrder> findByUserId(long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator, boolean useFinderCache)
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
.
userId
- the user IDstart
- the lower bound of the range of commerce ordersend
- 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 cachepublic static CommerceOrder findByUserId_First(long userId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator) throws NoSuchOrderException
userId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderException
- if a matching commerce order could not be foundpublic static CommerceOrder fetchByUserId_First(long userId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
userId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce order could not be foundpublic static CommerceOrder findByUserId_Last(long userId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator) throws NoSuchOrderException
userId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderException
- if a matching commerce order could not be foundpublic static CommerceOrder fetchByUserId_Last(long userId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
userId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce order could not be foundpublic static CommerceOrder[] findByUserId_PrevAndNext(long commerceOrderId, long userId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator) throws NoSuchOrderException
commerceOrderId
- the primary key of the current commerce orderuserId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderException
- if a commerce order with the primary key could not be foundpublic static void removeByUserId(long userId)
userId
- the user IDpublic static int countByUserId(long userId)
userId
- the user IDpublic static java.util.List<CommerceOrder> findByCommerceAccountId(long commerceAccountId)
commerceAccountId
- the commerce account IDpublic static java.util.List<CommerceOrder> findByCommerceAccountId(long commerceAccountId, int start, int end)
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
.
commerceAccountId
- the commerce account IDstart
- the lower bound of the range of commerce ordersend
- the upper bound of the range of commerce orders (not inclusive)public static java.util.List<CommerceOrder> findByCommerceAccountId(long commerceAccountId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
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
.
commerceAccountId
- the commerce account IDstart
- the lower bound of the range of commerce ordersend
- the upper bound of the range of commerce orders (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommerceOrder> findByCommerceAccountId(long commerceAccountId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator, boolean useFinderCache)
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
.
commerceAccountId
- the commerce account IDstart
- the lower bound of the range of commerce ordersend
- 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 cachepublic static CommerceOrder findByCommerceAccountId_First(long commerceAccountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator) throws NoSuchOrderException
commerceAccountId
- the commerce account IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderException
- if a matching commerce order could not be foundpublic static CommerceOrder fetchByCommerceAccountId_First(long commerceAccountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
commerceAccountId
- the commerce account IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce order could not be foundpublic static CommerceOrder findByCommerceAccountId_Last(long commerceAccountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator) throws NoSuchOrderException
commerceAccountId
- the commerce account IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderException
- if a matching commerce order could not be foundpublic static CommerceOrder fetchByCommerceAccountId_Last(long commerceAccountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
commerceAccountId
- the commerce account IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce order could not be foundpublic static CommerceOrder[] findByCommerceAccountId_PrevAndNext(long commerceOrderId, long commerceAccountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator) throws NoSuchOrderException
commerceOrderId
- the primary key of the current commerce ordercommerceAccountId
- the commerce account IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderException
- if a commerce order with the primary key could not be foundpublic static void removeByCommerceAccountId(long commerceAccountId)
commerceAccountId
- the commerce account IDpublic static int countByCommerceAccountId(long commerceAccountId)
commerceAccountId
- the commerce account IDpublic static java.util.List<CommerceOrder> findByBillingAddressId(long billingAddressId)
billingAddressId
- the billing address IDpublic static java.util.List<CommerceOrder> findByBillingAddressId(long billingAddressId, int start, int end)
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
.
billingAddressId
- the billing address IDstart
- the lower bound of the range of commerce ordersend
- the upper bound of the range of commerce orders (not inclusive)public static java.util.List<CommerceOrder> findByBillingAddressId(long billingAddressId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
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
.
billingAddressId
- the billing address IDstart
- the lower bound of the range of commerce ordersend
- the upper bound of the range of commerce orders (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommerceOrder> findByBillingAddressId(long billingAddressId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator, boolean useFinderCache)
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
.
billingAddressId
- the billing address IDstart
- the lower bound of the range of commerce ordersend
- 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 cachepublic static CommerceOrder findByBillingAddressId_First(long billingAddressId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator) throws NoSuchOrderException
billingAddressId
- the billing address IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderException
- if a matching commerce order could not be foundpublic static CommerceOrder fetchByBillingAddressId_First(long billingAddressId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
billingAddressId
- the billing address IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce order could not be foundpublic static CommerceOrder findByBillingAddressId_Last(long billingAddressId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator) throws NoSuchOrderException
billingAddressId
- the billing address IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderException
- if a matching commerce order could not be foundpublic static CommerceOrder fetchByBillingAddressId_Last(long billingAddressId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
billingAddressId
- the billing address IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce order could not be foundpublic static CommerceOrder[] findByBillingAddressId_PrevAndNext(long commerceOrderId, long billingAddressId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator) throws NoSuchOrderException
commerceOrderId
- the primary key of the current commerce orderbillingAddressId
- the billing address IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderException
- if a commerce order with the primary key could not be foundpublic static void removeByBillingAddressId(long billingAddressId)
billingAddressId
- the billing address IDpublic static int countByBillingAddressId(long billingAddressId)
billingAddressId
- the billing address IDpublic static java.util.List<CommerceOrder> findByShippingAddressId(long shippingAddressId)
shippingAddressId
- the shipping address IDpublic static java.util.List<CommerceOrder> findByShippingAddressId(long shippingAddressId, int start, int end)
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
.
shippingAddressId
- the shipping address IDstart
- the lower bound of the range of commerce ordersend
- the upper bound of the range of commerce orders (not inclusive)public static java.util.List<CommerceOrder> findByShippingAddressId(long shippingAddressId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
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
.
shippingAddressId
- the shipping address IDstart
- the lower bound of the range of commerce ordersend
- the upper bound of the range of commerce orders (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommerceOrder> findByShippingAddressId(long shippingAddressId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator, boolean useFinderCache)
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
.
shippingAddressId
- the shipping address IDstart
- the lower bound of the range of commerce ordersend
- 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 cachepublic static CommerceOrder findByShippingAddressId_First(long shippingAddressId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator) throws NoSuchOrderException
shippingAddressId
- the shipping address IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderException
- if a matching commerce order could not be foundpublic static CommerceOrder fetchByShippingAddressId_First(long shippingAddressId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
shippingAddressId
- the shipping address IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce order could not be foundpublic static CommerceOrder findByShippingAddressId_Last(long shippingAddressId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator) throws NoSuchOrderException
shippingAddressId
- the shipping address IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderException
- if a matching commerce order could not be foundpublic static CommerceOrder fetchByShippingAddressId_Last(long shippingAddressId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
shippingAddressId
- the shipping address IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce order could not be foundpublic static CommerceOrder[] findByShippingAddressId_PrevAndNext(long commerceOrderId, long shippingAddressId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator) throws NoSuchOrderException
commerceOrderId
- the primary key of the current commerce ordershippingAddressId
- the shipping address IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderException
- if a commerce order with the primary key could not be foundpublic static void removeByShippingAddressId(long shippingAddressId)
shippingAddressId
- the shipping address IDpublic static int countByShippingAddressId(long shippingAddressId)
shippingAddressId
- the shipping address IDpublic static java.util.List<CommerceOrder> findByG_C(long groupId, long commerceAccountId)
groupId
- the group IDcommerceAccountId
- the commerce account IDpublic static java.util.List<CommerceOrder> findByG_C(long groupId, long commerceAccountId, int start, int end)
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
.
groupId
- the group IDcommerceAccountId
- the commerce account IDstart
- the lower bound of the range of commerce ordersend
- the upper bound of the range of commerce orders (not inclusive)public static java.util.List<CommerceOrder> findByG_C(long groupId, long commerceAccountId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
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
.
groupId
- the group IDcommerceAccountId
- the commerce account IDstart
- the lower bound of the range of commerce ordersend
- the upper bound of the range of commerce orders (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommerceOrder> findByG_C(long groupId, long commerceAccountId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator, boolean useFinderCache)
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
.
groupId
- the group IDcommerceAccountId
- the commerce account IDstart
- the lower bound of the range of commerce ordersend
- 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 cachepublic static CommerceOrder findByG_C_First(long groupId, long commerceAccountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator) throws NoSuchOrderException
groupId
- the group IDcommerceAccountId
- the commerce account IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderException
- if a matching commerce order could not be foundpublic static CommerceOrder fetchByG_C_First(long groupId, long commerceAccountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
groupId
- the group IDcommerceAccountId
- the commerce account IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce order could not be foundpublic static CommerceOrder findByG_C_Last(long groupId, long commerceAccountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator) throws NoSuchOrderException
groupId
- the group IDcommerceAccountId
- the commerce account IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderException
- if a matching commerce order could not be foundpublic static CommerceOrder fetchByG_C_Last(long groupId, long commerceAccountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
groupId
- the group IDcommerceAccountId
- the commerce account IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce order could not be foundpublic static CommerceOrder[] findByG_C_PrevAndNext(long commerceOrderId, long groupId, long commerceAccountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator) throws NoSuchOrderException
commerceOrderId
- the primary key of the current commerce ordergroupId
- the group IDcommerceAccountId
- the commerce account IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderException
- if a commerce order with the primary key could not be foundpublic static void removeByG_C(long groupId, long commerceAccountId)
groupId
- the group IDcommerceAccountId
- the commerce account IDpublic static int countByG_C(long groupId, long commerceAccountId)
groupId
- the group IDcommerceAccountId
- the commerce account IDpublic static java.util.List<CommerceOrder> findByG_CP(long groupId, java.lang.String commercePaymentMethodKey)
groupId
- the group IDcommercePaymentMethodKey
- the commerce payment method keypublic static java.util.List<CommerceOrder> findByG_CP(long groupId, java.lang.String commercePaymentMethodKey, int start, int end)
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
.
groupId
- the group IDcommercePaymentMethodKey
- the commerce payment method keystart
- the lower bound of the range of commerce ordersend
- the upper bound of the range of commerce orders (not inclusive)public static java.util.List<CommerceOrder> findByG_CP(long groupId, java.lang.String commercePaymentMethodKey, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
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
.
groupId
- the group IDcommercePaymentMethodKey
- the commerce payment method keystart
- the lower bound of the range of commerce ordersend
- the upper bound of the range of commerce orders (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommerceOrder> findByG_CP(long groupId, java.lang.String commercePaymentMethodKey, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator, boolean useFinderCache)
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
.
groupId
- the group IDcommercePaymentMethodKey
- the commerce payment method keystart
- the lower bound of the range of commerce ordersend
- 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 cachepublic static CommerceOrder findByG_CP_First(long groupId, java.lang.String commercePaymentMethodKey, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator) throws NoSuchOrderException
groupId
- the group IDcommercePaymentMethodKey
- the commerce payment method keyorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderException
- if a matching commerce order could not be foundpublic static CommerceOrder fetchByG_CP_First(long groupId, java.lang.String commercePaymentMethodKey, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
groupId
- the group IDcommercePaymentMethodKey
- the commerce payment method keyorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce order could not be foundpublic static CommerceOrder findByG_CP_Last(long groupId, java.lang.String commercePaymentMethodKey, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator) throws NoSuchOrderException
groupId
- the group IDcommercePaymentMethodKey
- the commerce payment method keyorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderException
- if a matching commerce order could not be foundpublic static CommerceOrder fetchByG_CP_Last(long groupId, java.lang.String commercePaymentMethodKey, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
groupId
- the group IDcommercePaymentMethodKey
- the commerce payment method keyorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce order could not be foundpublic static CommerceOrder[] findByG_CP_PrevAndNext(long commerceOrderId, long groupId, java.lang.String commercePaymentMethodKey, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator) throws NoSuchOrderException
commerceOrderId
- the primary key of the current commerce ordergroupId
- the group IDcommercePaymentMethodKey
- the commerce payment method keyorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderException
- if a commerce order with the primary key could not be foundpublic static void removeByG_CP(long groupId, java.lang.String commercePaymentMethodKey)
groupId
- the group IDcommercePaymentMethodKey
- the commerce payment method keypublic static int countByG_CP(long groupId, java.lang.String commercePaymentMethodKey)
groupId
- the group IDcommercePaymentMethodKey
- the commerce payment method keypublic static java.util.List<CommerceOrder> findByG_U_O(long groupId, long userId, int orderStatus)
groupId
- the group IDuserId
- the user IDorderStatus
- the order statuspublic static java.util.List<CommerceOrder> findByG_U_O(long groupId, long userId, int orderStatus, int start, int end)
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
.
groupId
- the group IDuserId
- the user IDorderStatus
- the order statusstart
- the lower bound of the range of commerce ordersend
- the upper bound of the range of commerce orders (not inclusive)public static java.util.List<CommerceOrder> findByG_U_O(long groupId, long userId, int orderStatus, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
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
.
groupId
- the group IDuserId
- the user IDorderStatus
- the order statusstart
- the lower bound of the range of commerce ordersend
- the upper bound of the range of commerce orders (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.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)
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
.
groupId
- the group IDuserId
- the user IDorderStatus
- the order statusstart
- the lower bound of the range of commerce ordersend
- 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 cachepublic static CommerceOrder findByG_U_O_First(long groupId, long userId, int orderStatus, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator) throws NoSuchOrderException
groupId
- the group IDuserId
- the user IDorderStatus
- the order statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderException
- if a matching commerce order could not be foundpublic static CommerceOrder fetchByG_U_O_First(long groupId, long userId, int orderStatus, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
groupId
- the group IDuserId
- the user IDorderStatus
- the order statusorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce order could not be foundpublic static CommerceOrder findByG_U_O_Last(long groupId, long userId, int orderStatus, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator) throws NoSuchOrderException
groupId
- the group IDuserId
- the user IDorderStatus
- the order statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderException
- if a matching commerce order could not be foundpublic static CommerceOrder fetchByG_U_O_Last(long groupId, long userId, int orderStatus, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
groupId
- the group IDuserId
- the user IDorderStatus
- the order statusorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce order could not be foundpublic static CommerceOrder[] findByG_U_O_PrevAndNext(long commerceOrderId, long groupId, long userId, int orderStatus, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator) throws NoSuchOrderException
commerceOrderId
- the primary key of the current commerce ordergroupId
- the group IDuserId
- the user IDorderStatus
- the order statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderException
- if a commerce order with the primary key could not be foundpublic static void removeByG_U_O(long groupId, long userId, int orderStatus)
groupId
- the group IDuserId
- the user IDorderStatus
- the order statuspublic static int countByG_U_O(long groupId, long userId, int orderStatus)
groupId
- the group IDuserId
- the user IDorderStatus
- the order statuspublic static java.util.List<CommerceOrder> findByG_C_O(long groupId, long commerceAccountId, int orderStatus)
groupId
- the group IDcommerceAccountId
- the commerce account IDorderStatus
- the order statuspublic static java.util.List<CommerceOrder> findByG_C_O(long groupId, long commerceAccountId, int orderStatus, int start, int end)
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
.
groupId
- the group IDcommerceAccountId
- the commerce account IDorderStatus
- the order statusstart
- the lower bound of the range of commerce ordersend
- the upper bound of the range of commerce orders (not inclusive)public static java.util.List<CommerceOrder> findByG_C_O(long groupId, long commerceAccountId, int orderStatus, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
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
.
groupId
- the group IDcommerceAccountId
- the commerce account IDorderStatus
- the order statusstart
- the lower bound of the range of commerce ordersend
- the upper bound of the range of commerce orders (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.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)
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
.
groupId
- the group IDcommerceAccountId
- the commerce account IDorderStatus
- the order statusstart
- the lower bound of the range of commerce ordersend
- 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 cachepublic static CommerceOrder findByG_C_O_First(long groupId, long commerceAccountId, int orderStatus, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator) throws NoSuchOrderException
groupId
- the group IDcommerceAccountId
- the commerce account IDorderStatus
- the order statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderException
- if a matching commerce order could not be foundpublic static CommerceOrder fetchByG_C_O_First(long groupId, long commerceAccountId, int orderStatus, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
groupId
- the group IDcommerceAccountId
- the commerce account IDorderStatus
- the order statusorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce order could not be foundpublic static CommerceOrder findByG_C_O_Last(long groupId, long commerceAccountId, int orderStatus, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator) throws NoSuchOrderException
groupId
- the group IDcommerceAccountId
- the commerce account IDorderStatus
- the order statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderException
- if a matching commerce order could not be foundpublic static CommerceOrder fetchByG_C_O_Last(long groupId, long commerceAccountId, int orderStatus, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
groupId
- the group IDcommerceAccountId
- the commerce account IDorderStatus
- the order statusorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce order could not be foundpublic static CommerceOrder[] findByG_C_O_PrevAndNext(long commerceOrderId, long groupId, long commerceAccountId, int orderStatus, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator) throws NoSuchOrderException
commerceOrderId
- the primary key of the current commerce ordergroupId
- the group IDcommerceAccountId
- the commerce account IDorderStatus
- the order statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderException
- if a commerce order with the primary key could not be foundpublic static void removeByG_C_O(long groupId, long commerceAccountId, int orderStatus)
groupId
- the group IDcommerceAccountId
- the commerce account IDorderStatus
- the order statuspublic static int countByG_C_O(long groupId, long commerceAccountId, int orderStatus)
groupId
- the group IDcommerceAccountId
- the commerce account IDorderStatus
- the order statuspublic static java.util.List<CommerceOrder> findByU_LtC_O(long userId, java.util.Date createDate, int orderStatus)
userId
- the user IDcreateDate
- the create dateorderStatus
- the order statuspublic static java.util.List<CommerceOrder> findByU_LtC_O(long userId, java.util.Date createDate, int orderStatus, int start, int end)
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
.
userId
- the user IDcreateDate
- the create dateorderStatus
- the order statusstart
- the lower bound of the range of commerce ordersend
- the upper bound of the range of commerce orders (not inclusive)public static java.util.List<CommerceOrder> findByU_LtC_O(long userId, java.util.Date createDate, int orderStatus, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
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
.
userId
- the user IDcreateDate
- the create dateorderStatus
- the order statusstart
- the lower bound of the range of commerce ordersend
- the upper bound of the range of commerce orders (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommerceOrder> findByU_LtC_O(long userId, java.util.Date createDate, int orderStatus, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator, boolean useFinderCache)
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
.
userId
- the user IDcreateDate
- the create dateorderStatus
- the order statusstart
- the lower bound of the range of commerce ordersend
- 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 cachepublic static CommerceOrder findByU_LtC_O_First(long userId, java.util.Date createDate, int orderStatus, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator) throws NoSuchOrderException
userId
- the user IDcreateDate
- the create dateorderStatus
- the order statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderException
- if a matching commerce order could not be foundpublic static CommerceOrder fetchByU_LtC_O_First(long userId, java.util.Date createDate, int orderStatus, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
userId
- the user IDcreateDate
- the create dateorderStatus
- the order statusorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce order could not be foundpublic static CommerceOrder findByU_LtC_O_Last(long userId, java.util.Date createDate, int orderStatus, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator) throws NoSuchOrderException
userId
- the user IDcreateDate
- the create dateorderStatus
- the order statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderException
- if a matching commerce order could not be foundpublic static CommerceOrder fetchByU_LtC_O_Last(long userId, java.util.Date createDate, int orderStatus, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
userId
- the user IDcreateDate
- the create dateorderStatus
- the order statusorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce order could not be foundpublic static CommerceOrder[] findByU_LtC_O_PrevAndNext(long commerceOrderId, long userId, java.util.Date createDate, int orderStatus, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator) throws NoSuchOrderException
commerceOrderId
- the primary key of the current commerce orderuserId
- the user IDcreateDate
- the create dateorderStatus
- the order statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderException
- if a commerce order with the primary key could not be foundpublic static void removeByU_LtC_O(long userId, java.util.Date createDate, int orderStatus)
userId
- the user IDcreateDate
- the create dateorderStatus
- the order statuspublic static int countByU_LtC_O(long userId, java.util.Date createDate, int orderStatus)
userId
- the user IDcreateDate
- the create dateorderStatus
- the order statuspublic static java.util.List<CommerceOrder> findByC_LtC_O(java.util.Date createDate, long commerceAccountId, int orderStatus)
createDate
- the create datecommerceAccountId
- the commerce account IDorderStatus
- the order statuspublic static java.util.List<CommerceOrder> findByC_LtC_O(java.util.Date createDate, long commerceAccountId, int orderStatus, int start, int end)
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
.
createDate
- the create datecommerceAccountId
- the commerce account IDorderStatus
- the order statusstart
- the lower bound of the range of commerce ordersend
- the upper bound of the range of commerce orders (not inclusive)public static java.util.List<CommerceOrder> findByC_LtC_O(java.util.Date createDate, long commerceAccountId, int orderStatus, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
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
.
createDate
- the create datecommerceAccountId
- the commerce account IDorderStatus
- the order statusstart
- the lower bound of the range of commerce ordersend
- the upper bound of the range of commerce orders (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommerceOrder> findByC_LtC_O(java.util.Date createDate, long commerceAccountId, int orderStatus, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator, boolean useFinderCache)
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
.
createDate
- the create datecommerceAccountId
- the commerce account IDorderStatus
- the order statusstart
- the lower bound of the range of commerce ordersend
- 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 cachepublic static CommerceOrder findByC_LtC_O_First(java.util.Date createDate, long commerceAccountId, int orderStatus, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator) throws NoSuchOrderException
createDate
- the create datecommerceAccountId
- the commerce account IDorderStatus
- the order statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderException
- if a matching commerce order could not be foundpublic static CommerceOrder fetchByC_LtC_O_First(java.util.Date createDate, long commerceAccountId, int orderStatus, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
createDate
- the create datecommerceAccountId
- the commerce account IDorderStatus
- the order statusorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce order could not be foundpublic static CommerceOrder findByC_LtC_O_Last(java.util.Date createDate, long commerceAccountId, int orderStatus, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator) throws NoSuchOrderException
createDate
- the create datecommerceAccountId
- the commerce account IDorderStatus
- the order statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderException
- if a matching commerce order could not be foundpublic static CommerceOrder fetchByC_LtC_O_Last(java.util.Date createDate, long commerceAccountId, int orderStatus, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
createDate
- the create datecommerceAccountId
- the commerce account IDorderStatus
- the order statusorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce order could not be foundpublic static CommerceOrder[] findByC_LtC_O_PrevAndNext(long commerceOrderId, java.util.Date createDate, long commerceAccountId, int orderStatus, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator) throws NoSuchOrderException
commerceOrderId
- the primary key of the current commerce ordercreateDate
- the create datecommerceAccountId
- the commerce account IDorderStatus
- the order statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchOrderException
- if a commerce order with the primary key could not be foundpublic static void removeByC_LtC_O(java.util.Date createDate, long commerceAccountId, int orderStatus)
createDate
- the create datecommerceAccountId
- the commerce account IDorderStatus
- the order statuspublic static int countByC_LtC_O(java.util.Date createDate, long commerceAccountId, int orderStatus)
createDate
- the create datecommerceAccountId
- the commerce account IDorderStatus
- the order statuspublic static CommerceOrder findByC_ERC(long companyId, java.lang.String externalReferenceCode) throws NoSuchOrderException
NoSuchOrderException
if it could not be found.companyId
- the company IDexternalReferenceCode
- the external reference codeNoSuchOrderException
- if a matching commerce order could not be foundpublic static CommerceOrder fetchByC_ERC(long companyId, java.lang.String externalReferenceCode)
null
if it could not be found. Uses the finder cache.companyId
- the company IDexternalReferenceCode
- the external reference codenull
if a matching commerce order could not be foundpublic static CommerceOrder fetchByC_ERC(long companyId, java.lang.String externalReferenceCode, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.companyId
- the company IDexternalReferenceCode
- the external reference codeuseFinderCache
- whether to use the finder cachenull
if a matching commerce order could not be foundpublic static CommerceOrder removeByC_ERC(long companyId, java.lang.String externalReferenceCode) throws NoSuchOrderException
companyId
- the company IDexternalReferenceCode
- the external reference codeNoSuchOrderException
public static int countByC_ERC(long companyId, java.lang.String externalReferenceCode)
companyId
- the company IDexternalReferenceCode
- the external reference codepublic static void cacheResult(CommerceOrder commerceOrder)
commerceOrder
- the commerce orderpublic static void cacheResult(java.util.List<CommerceOrder> commerceOrders)
commerceOrders
- the commerce orderspublic static CommerceOrder create(long commerceOrderId)
commerceOrderId
- the primary key for the new commerce orderpublic static CommerceOrder remove(long commerceOrderId) throws NoSuchOrderException
commerceOrderId
- the primary key of the commerce orderNoSuchOrderException
- if a commerce order with the primary key could not be foundpublic static CommerceOrder updateImpl(CommerceOrder commerceOrder)
public static CommerceOrder findByPrimaryKey(long commerceOrderId) throws NoSuchOrderException
NoSuchOrderException
if it could not be found.commerceOrderId
- the primary key of the commerce orderNoSuchOrderException
- if a commerce order with the primary key could not be foundpublic static CommerceOrder fetchByPrimaryKey(long commerceOrderId)
null
if it could not be found.commerceOrderId
- the primary key of the commerce ordernull
if a commerce order with the primary key could not be foundpublic static java.util.List<CommerceOrder> findAll()
public static java.util.List<CommerceOrder> findAll(int start, int end)
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
.
start
- the lower bound of the range of commerce ordersend
- the upper bound of the range of commerce orders (not inclusive)public static java.util.List<CommerceOrder> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator)
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
.
start
- the lower bound of the range of commerce ordersend
- the upper bound of the range of commerce orders (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommerceOrder> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceOrder> orderByComparator, boolean useFinderCache)
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
.
start
- the lower bound of the range of commerce ordersend
- 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 cachepublic static void removeAll()
public static int countAll()
public static CommerceOrderPersistence getPersistence()