All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.liferay.commerce.service.persistence.CommerceOrderPersistence Maven / Gradle / Ivy

There is a newer version: 91.0.0
Show newest version
/**
 * SPDX-FileCopyrightText: (c) 2000 Liferay, Inc. https://liferay.com
 * SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06
 */

package com.liferay.commerce.service.persistence;

import com.liferay.commerce.exception.NoSuchOrderException;
import com.liferay.commerce.model.CommerceOrder;
import com.liferay.portal.kernel.service.persistence.BasePersistence;

import java.util.Date;

import org.osgi.annotation.versioning.ProviderType;

/**
 * The persistence interface for the commerce order service.
 *
 * 

* Caching information and settings can be found in portal.properties *

* * @author Alessio Antonio Rendina * @see CommerceOrderUtil * @generated */ @ProviderType public interface CommerceOrderPersistence extends BasePersistence { /* * NOTE FOR DEVELOPERS: * * Never modify or reference this interface directly. Always use {@link CommerceOrderUtil} to access the commerce order persistence. Modify service.xml and rerun ServiceBuilder to regenerate this interface. */ /** * Returns all the commerce orders where uuid = ?. * * @param uuid the uuid * @return the matching commerce orders */ public java.util.List findByUuid(String uuid); /** * Returns a range of all the commerce orders where uuid = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CommerceOrderModelImpl. *

* * @param uuid the uuid * @param start the lower bound of the range of commerce orders * @param end the upper bound of the range of commerce orders (not inclusive) * @return the range of matching commerce orders */ public java.util.List findByUuid( String uuid, int start, int end); /** * Returns an ordered range of all the commerce orders where uuid = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CommerceOrderModelImpl. *

* * @param uuid the uuid * @param start the lower bound of the range of commerce orders * @param end the upper bound of the range of commerce orders (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching commerce orders */ public java.util.List findByUuid( String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns an ordered range of all the commerce orders where uuid = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CommerceOrderModelImpl. *

* * @param uuid the uuid * @param start the lower bound of the range of commerce orders * @param end the upper bound of the range of commerce orders (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @param useFinderCache whether to use the finder cache * @return the ordered range of matching commerce orders */ public java.util.List findByUuid( String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean useFinderCache); /** * Returns the first commerce order in the ordered set where uuid = ?. * * @param uuid the uuid * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching commerce order * @throws NoSuchOrderException if a matching commerce order could not be found */ public CommerceOrder findByUuid_First( String uuid, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchOrderException; /** * Returns the first commerce order in the ordered set where uuid = ?. * * @param uuid the uuid * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching commerce order, or null if a matching commerce order could not be found */ public CommerceOrder fetchByUuid_First( String uuid, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the last commerce order in the ordered set where uuid = ?. * * @param uuid the uuid * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching commerce order * @throws NoSuchOrderException if a matching commerce order could not be found */ public CommerceOrder findByUuid_Last( String uuid, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchOrderException; /** * Returns the last commerce order in the ordered set where uuid = ?. * * @param uuid the uuid * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching commerce order, or null if a matching commerce order could not be found */ public CommerceOrder fetchByUuid_Last( String uuid, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the commerce orders before and after the current commerce order in the ordered set where uuid = ?. * * @param commerceOrderId the primary key of the current commerce order * @param uuid the uuid * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next commerce order * @throws NoSuchOrderException if a commerce order with the primary key could not be found */ public CommerceOrder[] findByUuid_PrevAndNext( long commerceOrderId, String uuid, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchOrderException; /** * Removes all the commerce orders where uuid = ? from the database. * * @param uuid the uuid */ public void removeByUuid(String uuid); /** * Returns the number of commerce orders where uuid = ?. * * @param uuid the uuid * @return the number of matching commerce orders */ public int countByUuid(String uuid); /** * Returns the commerce order where uuid = ? and groupId = ? or throws a NoSuchOrderException if it could not be found. * * @param uuid the uuid * @param groupId the group ID * @return the matching commerce order * @throws NoSuchOrderException if a matching commerce order could not be found */ public CommerceOrder findByUUID_G(String uuid, long groupId) throws NoSuchOrderException; /** * Returns the commerce order where uuid = ? and groupId = ? or returns null if it could not be found. Uses the finder cache. * * @param uuid the uuid * @param groupId the group ID * @return the matching commerce order, or null if a matching commerce order could not be found */ public CommerceOrder fetchByUUID_G(String uuid, long groupId); /** * Returns the commerce order where uuid = ? and groupId = ? or returns null if it could not be found, optionally using the finder cache. * * @param uuid the uuid * @param groupId the group ID * @param useFinderCache whether to use the finder cache * @return the matching commerce order, or null if a matching commerce order could not be found */ public CommerceOrder fetchByUUID_G( String uuid, long groupId, boolean useFinderCache); /** * Removes the commerce order where uuid = ? and groupId = ? from the database. * * @param uuid the uuid * @param groupId the group ID * @return the commerce order that was removed */ public CommerceOrder removeByUUID_G(String uuid, long groupId) throws NoSuchOrderException; /** * Returns the number of commerce orders where uuid = ? and groupId = ?. * * @param uuid the uuid * @param groupId the group ID * @return the number of matching commerce orders */ public int countByUUID_G(String uuid, long groupId); /** * Returns all the commerce orders where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @return the matching commerce orders */ public java.util.List findByUuid_C( String uuid, long companyId); /** * Returns a range of all the commerce orders where uuid = ? and companyId = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CommerceOrderModelImpl. *

* * @param uuid the uuid * @param companyId the company ID * @param start the lower bound of the range of commerce orders * @param end the upper bound of the range of commerce orders (not inclusive) * @return the range of matching commerce orders */ public java.util.List findByUuid_C( String uuid, long companyId, int start, int end); /** * Returns an ordered range of all the commerce orders where uuid = ? and companyId = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CommerceOrderModelImpl. *

* * @param uuid the uuid * @param companyId the company ID * @param start the lower bound of the range of commerce orders * @param end the upper bound of the range of commerce orders (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching commerce orders */ public java.util.List findByUuid_C( String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns an ordered range of all the commerce orders where uuid = ? and companyId = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CommerceOrderModelImpl. *

* * @param uuid the uuid * @param companyId the company ID * @param start the lower bound of the range of commerce orders * @param end the upper bound of the range of commerce orders (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @param useFinderCache whether to use the finder cache * @return the ordered range of matching commerce orders */ public java.util.List findByUuid_C( String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean useFinderCache); /** * Returns the first commerce order in the ordered set where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching commerce order * @throws NoSuchOrderException if a matching commerce order could not be found */ public CommerceOrder findByUuid_C_First( String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchOrderException; /** * Returns the first commerce order in the ordered set where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching commerce order, or null if a matching commerce order could not be found */ public CommerceOrder fetchByUuid_C_First( String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the last commerce order in the ordered set where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching commerce order * @throws NoSuchOrderException if a matching commerce order could not be found */ public CommerceOrder findByUuid_C_Last( String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchOrderException; /** * Returns the last commerce order in the ordered set where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching commerce order, or null if a matching commerce order could not be found */ public CommerceOrder fetchByUuid_C_Last( String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the commerce orders before and after the current commerce order in the ordered set where uuid = ? and companyId = ?. * * @param commerceOrderId the primary key of the current commerce order * @param uuid the uuid * @param companyId the company ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next commerce order * @throws NoSuchOrderException if a commerce order with the primary key could not be found */ public CommerceOrder[] findByUuid_C_PrevAndNext( long commerceOrderId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchOrderException; /** * Removes all the commerce orders where uuid = ? and companyId = ? from the database. * * @param uuid the uuid * @param companyId the company ID */ public void removeByUuid_C(String uuid, long companyId); /** * Returns the number of commerce orders where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @return the number of matching commerce orders */ public int countByUuid_C(String uuid, long companyId); /** * Returns all the commerce orders where groupId = ?. * * @param groupId the group ID * @return the matching commerce orders */ public java.util.List findByGroupId(long groupId); /** * Returns a range of all the commerce orders where groupId = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CommerceOrderModelImpl. *

* * @param groupId the group ID * @param start the lower bound of the range of commerce orders * @param end the upper bound of the range of commerce orders (not inclusive) * @return the range of matching commerce orders */ public java.util.List findByGroupId( long groupId, int start, int end); /** * Returns an ordered range of all the commerce orders where groupId = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CommerceOrderModelImpl. *

* * @param groupId the group ID * @param start the lower bound of the range of commerce orders * @param end the upper bound of the range of commerce orders (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching commerce orders */ public java.util.List findByGroupId( long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns an ordered range of all the commerce orders where groupId = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CommerceOrderModelImpl. *

* * @param groupId the group ID * @param start the lower bound of the range of commerce orders * @param end the upper bound of the range of commerce orders (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @param useFinderCache whether to use the finder cache * @return the ordered range of matching commerce orders */ public java.util.List findByGroupId( long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean useFinderCache); /** * Returns the first commerce order in the ordered set where groupId = ?. * * @param groupId the group ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching commerce order * @throws NoSuchOrderException if a matching commerce order could not be found */ public CommerceOrder findByGroupId_First( long groupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchOrderException; /** * Returns the first commerce order in the ordered set where groupId = ?. * * @param groupId the group ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching commerce order, or null if a matching commerce order could not be found */ public CommerceOrder fetchByGroupId_First( long groupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the last commerce order in the ordered set where groupId = ?. * * @param groupId the group ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching commerce order * @throws NoSuchOrderException if a matching commerce order could not be found */ public CommerceOrder findByGroupId_Last( long groupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchOrderException; /** * Returns the last commerce order in the ordered set where groupId = ?. * * @param groupId the group ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching commerce order, or null if a matching commerce order could not be found */ public CommerceOrder fetchByGroupId_Last( long groupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the commerce orders before and after the current commerce order in the ordered set where groupId = ?. * * @param commerceOrderId the primary key of the current commerce order * @param groupId the group ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next commerce order * @throws NoSuchOrderException if a commerce order with the primary key could not be found */ public CommerceOrder[] findByGroupId_PrevAndNext( long commerceOrderId, long groupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchOrderException; /** * Returns all the commerce orders that the user has permission to view where groupId = ?. * * @param groupId the group ID * @return the matching commerce orders that the user has permission to view */ public java.util.List filterFindByGroupId(long groupId); /** * Returns a range of all the commerce orders that the user has permission to view where groupId = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CommerceOrderModelImpl. *

* * @param groupId the group ID * @param start the lower bound of the range of commerce orders * @param end the upper bound of the range of commerce orders (not inclusive) * @return the range of matching commerce orders that the user has permission to view */ public java.util.List filterFindByGroupId( long groupId, int start, int end); /** * Returns an ordered range of all the commerce orders that the user has permissions to view where groupId = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CommerceOrderModelImpl. *

* * @param groupId the group ID * @param start the lower bound of the range of commerce orders * @param end the upper bound of the range of commerce orders (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching commerce orders that the user has permission to view */ public java.util.List filterFindByGroupId( long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the commerce orders before and after the current commerce order in the ordered set of commerce orders that the user has permission to view where groupId = ?. * * @param commerceOrderId the primary key of the current commerce order * @param groupId the group ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next commerce order * @throws NoSuchOrderException if a commerce order with the primary key could not be found */ public CommerceOrder[] filterFindByGroupId_PrevAndNext( long commerceOrderId, long groupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchOrderException; /** * Removes all the commerce orders where groupId = ? from the database. * * @param groupId the group ID */ public void removeByGroupId(long groupId); /** * Returns the number of commerce orders where groupId = ?. * * @param groupId the group ID * @return the number of matching commerce orders */ public int countByGroupId(long groupId); /** * Returns the number of commerce orders that the user has permission to view where groupId = ?. * * @param groupId the group ID * @return the number of matching commerce orders that the user has permission to view */ public int filterCountByGroupId(long groupId); /** * Returns all the commerce orders where userId = ?. * * @param userId the user ID * @return the matching commerce orders */ public java.util.List findByUserId(long userId); /** * Returns a range of all the commerce orders where userId = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CommerceOrderModelImpl. *

* * @param userId the user ID * @param start the lower bound of the range of commerce orders * @param end the upper bound of the range of commerce orders (not inclusive) * @return the range of matching commerce orders */ public java.util.List findByUserId( long userId, int start, int end); /** * Returns an ordered range of all the commerce orders where userId = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CommerceOrderModelImpl. *

* * @param userId the user ID * @param start the lower bound of the range of commerce orders * @param end the upper bound of the range of commerce orders (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching commerce orders */ public java.util.List findByUserId( long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns an ordered range of all the commerce orders where userId = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CommerceOrderModelImpl. *

* * @param userId the user ID * @param start the lower bound of the range of commerce orders * @param end the upper bound of the range of commerce orders (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @param useFinderCache whether to use the finder cache * @return the ordered range of matching commerce orders */ public java.util.List findByUserId( long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean useFinderCache); /** * Returns the first commerce order in the ordered set where userId = ?. * * @param userId the user ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching commerce order * @throws NoSuchOrderException if a matching commerce order could not be found */ public CommerceOrder findByUserId_First( long userId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchOrderException; /** * Returns the first commerce order in the ordered set where userId = ?. * * @param userId the user ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching commerce order, or null if a matching commerce order could not be found */ public CommerceOrder fetchByUserId_First( long userId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the last commerce order in the ordered set where userId = ?. * * @param userId the user ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching commerce order * @throws NoSuchOrderException if a matching commerce order could not be found */ public CommerceOrder findByUserId_Last( long userId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchOrderException; /** * Returns the last commerce order in the ordered set where userId = ?. * * @param userId the user ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching commerce order, or null if a matching commerce order could not be found */ public CommerceOrder fetchByUserId_Last( long userId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the commerce orders before and after the current commerce order in the ordered set where userId = ?. * * @param commerceOrderId the primary key of the current commerce order * @param userId the user ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next commerce order * @throws NoSuchOrderException if a commerce order with the primary key could not be found */ public CommerceOrder[] findByUserId_PrevAndNext( long commerceOrderId, long userId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchOrderException; /** * Removes all the commerce orders where userId = ? from the database. * * @param userId the user ID */ public void removeByUserId(long userId); /** * Returns the number of commerce orders where userId = ?. * * @param userId the user ID * @return the number of matching commerce orders */ public int countByUserId(long userId); /** * Returns all the commerce orders where billingAddressId = ?. * * @param billingAddressId the billing address ID * @return the matching commerce orders */ public java.util.List findByBillingAddressId( long billingAddressId); /** * Returns a range of all the commerce orders where billingAddressId = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CommerceOrderModelImpl. *

* * @param billingAddressId the billing address ID * @param start the lower bound of the range of commerce orders * @param end the upper bound of the range of commerce orders (not inclusive) * @return the range of matching commerce orders */ public java.util.List findByBillingAddressId( long billingAddressId, int start, int end); /** * Returns an ordered range of all the commerce orders where billingAddressId = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CommerceOrderModelImpl. *

* * @param billingAddressId the billing address ID * @param start the lower bound of the range of commerce orders * @param end the upper bound of the range of commerce orders (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching commerce orders */ public java.util.List findByBillingAddressId( long billingAddressId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns an ordered range of all the commerce orders where billingAddressId = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CommerceOrderModelImpl. *

* * @param billingAddressId the billing address ID * @param start the lower bound of the range of commerce orders * @param end the upper bound of the range of commerce orders (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @param useFinderCache whether to use the finder cache * @return the ordered range of matching commerce orders */ public java.util.List findByBillingAddressId( long billingAddressId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean useFinderCache); /** * Returns the first commerce order in the ordered set where billingAddressId = ?. * * @param billingAddressId the billing address ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching commerce order * @throws NoSuchOrderException if a matching commerce order could not be found */ public CommerceOrder findByBillingAddressId_First( long billingAddressId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchOrderException; /** * Returns the first commerce order in the ordered set where billingAddressId = ?. * * @param billingAddressId the billing address ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching commerce order, or null if a matching commerce order could not be found */ public CommerceOrder fetchByBillingAddressId_First( long billingAddressId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the last commerce order in the ordered set where billingAddressId = ?. * * @param billingAddressId the billing address ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching commerce order * @throws NoSuchOrderException if a matching commerce order could not be found */ public CommerceOrder findByBillingAddressId_Last( long billingAddressId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchOrderException; /** * Returns the last commerce order in the ordered set where billingAddressId = ?. * * @param billingAddressId the billing address ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching commerce order, or null if a matching commerce order could not be found */ public CommerceOrder fetchByBillingAddressId_Last( long billingAddressId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the commerce orders before and after the current commerce order in the ordered set where billingAddressId = ?. * * @param commerceOrderId the primary key of the current commerce order * @param billingAddressId the billing address ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next commerce order * @throws NoSuchOrderException if a commerce order with the primary key could not be found */ public CommerceOrder[] findByBillingAddressId_PrevAndNext( long commerceOrderId, long billingAddressId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchOrderException; /** * Removes all the commerce orders where billingAddressId = ? from the database. * * @param billingAddressId the billing address ID */ public void removeByBillingAddressId(long billingAddressId); /** * Returns the number of commerce orders where billingAddressId = ?. * * @param billingAddressId the billing address ID * @return the number of matching commerce orders */ public int countByBillingAddressId(long billingAddressId); /** * Returns all the commerce orders where commerceAccountId = ?. * * @param commerceAccountId the commerce account ID * @return the matching commerce orders */ public java.util.List findByCommerceAccountId( long commerceAccountId); /** * Returns a range of all the commerce orders where commerceAccountId = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CommerceOrderModelImpl. *

* * @param commerceAccountId the commerce account ID * @param start the lower bound of the range of commerce orders * @param end the upper bound of the range of commerce orders (not inclusive) * @return the range of matching commerce orders */ public java.util.List findByCommerceAccountId( long commerceAccountId, int start, int end); /** * Returns an ordered range of all the commerce orders where commerceAccountId = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CommerceOrderModelImpl. *

* * @param commerceAccountId the commerce account ID * @param start the lower bound of the range of commerce orders * @param end the upper bound of the range of commerce orders (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching commerce orders */ public java.util.List findByCommerceAccountId( long commerceAccountId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns an ordered range of all the commerce orders where commerceAccountId = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CommerceOrderModelImpl. *

* * @param commerceAccountId the commerce account ID * @param start the lower bound of the range of commerce orders * @param end the upper bound of the range of commerce orders (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @param useFinderCache whether to use the finder cache * @return the ordered range of matching commerce orders */ public java.util.List findByCommerceAccountId( long commerceAccountId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean useFinderCache); /** * Returns the first commerce order in the ordered set where commerceAccountId = ?. * * @param commerceAccountId the commerce account ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching commerce order * @throws NoSuchOrderException if a matching commerce order could not be found */ public CommerceOrder findByCommerceAccountId_First( long commerceAccountId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchOrderException; /** * Returns the first commerce order in the ordered set where commerceAccountId = ?. * * @param commerceAccountId the commerce account ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching commerce order, or null if a matching commerce order could not be found */ public CommerceOrder fetchByCommerceAccountId_First( long commerceAccountId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the last commerce order in the ordered set where commerceAccountId = ?. * * @param commerceAccountId the commerce account ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching commerce order * @throws NoSuchOrderException if a matching commerce order could not be found */ public CommerceOrder findByCommerceAccountId_Last( long commerceAccountId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchOrderException; /** * Returns the last commerce order in the ordered set where commerceAccountId = ?. * * @param commerceAccountId the commerce account ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching commerce order, or null if a matching commerce order could not be found */ public CommerceOrder fetchByCommerceAccountId_Last( long commerceAccountId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the commerce orders before and after the current commerce order in the ordered set where commerceAccountId = ?. * * @param commerceOrderId the primary key of the current commerce order * @param commerceAccountId the commerce account ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next commerce order * @throws NoSuchOrderException if a commerce order with the primary key could not be found */ public CommerceOrder[] findByCommerceAccountId_PrevAndNext( long commerceOrderId, long commerceAccountId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchOrderException; /** * Removes all the commerce orders where commerceAccountId = ? from the database. * * @param commerceAccountId the commerce account ID */ public void removeByCommerceAccountId(long commerceAccountId); /** * Returns the number of commerce orders where commerceAccountId = ?. * * @param commerceAccountId the commerce account ID * @return the number of matching commerce orders */ public int countByCommerceAccountId(long commerceAccountId); /** * Returns all the commerce orders where shippingAddressId = ?. * * @param shippingAddressId the shipping address ID * @return the matching commerce orders */ public java.util.List findByShippingAddressId( long shippingAddressId); /** * Returns a range of all the commerce orders where shippingAddressId = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CommerceOrderModelImpl. *

* * @param shippingAddressId the shipping address ID * @param start the lower bound of the range of commerce orders * @param end the upper bound of the range of commerce orders (not inclusive) * @return the range of matching commerce orders */ public java.util.List findByShippingAddressId( long shippingAddressId, int start, int end); /** * Returns an ordered range of all the commerce orders where shippingAddressId = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CommerceOrderModelImpl. *

* * @param shippingAddressId the shipping address ID * @param start the lower bound of the range of commerce orders * @param end the upper bound of the range of commerce orders (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching commerce orders */ public java.util.List findByShippingAddressId( long shippingAddressId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns an ordered range of all the commerce orders where shippingAddressId = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CommerceOrderModelImpl. *

* * @param shippingAddressId the shipping address ID * @param start the lower bound of the range of commerce orders * @param end the upper bound of the range of commerce orders (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @param useFinderCache whether to use the finder cache * @return the ordered range of matching commerce orders */ public java.util.List findByShippingAddressId( long shippingAddressId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean useFinderCache); /** * Returns the first commerce order in the ordered set where shippingAddressId = ?. * * @param shippingAddressId the shipping address ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching commerce order * @throws NoSuchOrderException if a matching commerce order could not be found */ public CommerceOrder findByShippingAddressId_First( long shippingAddressId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchOrderException; /** * Returns the first commerce order in the ordered set where shippingAddressId = ?. * * @param shippingAddressId the shipping address ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching commerce order, or null if a matching commerce order could not be found */ public CommerceOrder fetchByShippingAddressId_First( long shippingAddressId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the last commerce order in the ordered set where shippingAddressId = ?. * * @param shippingAddressId the shipping address ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching commerce order * @throws NoSuchOrderException if a matching commerce order could not be found */ public CommerceOrder findByShippingAddressId_Last( long shippingAddressId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchOrderException; /** * Returns the last commerce order in the ordered set where shippingAddressId = ?. * * @param shippingAddressId the shipping address ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching commerce order, or null if a matching commerce order could not be found */ public CommerceOrder fetchByShippingAddressId_Last( long shippingAddressId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the commerce orders before and after the current commerce order in the ordered set where shippingAddressId = ?. * * @param commerceOrderId the primary key of the current commerce order * @param shippingAddressId the shipping address ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next commerce order * @throws NoSuchOrderException if a commerce order with the primary key could not be found */ public CommerceOrder[] findByShippingAddressId_PrevAndNext( long commerceOrderId, long shippingAddressId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchOrderException; /** * Removes all the commerce orders where shippingAddressId = ? from the database. * * @param shippingAddressId the shipping address ID */ public void removeByShippingAddressId(long shippingAddressId); /** * Returns the number of commerce orders where shippingAddressId = ?. * * @param shippingAddressId the shipping address ID * @return the number of matching commerce orders */ public int countByShippingAddressId(long shippingAddressId); /** * Returns all the commerce orders where groupId = ? and commerceAccountId = ?. * * @param groupId the group ID * @param commerceAccountId the commerce account ID * @return the matching commerce orders */ public java.util.List findByG_C( long groupId, long commerceAccountId); /** * Returns a range of all the commerce orders where groupId = ? and commerceAccountId = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CommerceOrderModelImpl. *

* * @param groupId the group ID * @param commerceAccountId the commerce account ID * @param start the lower bound of the range of commerce orders * @param end the upper bound of the range of commerce orders (not inclusive) * @return the range of matching commerce orders */ public java.util.List findByG_C( long groupId, long commerceAccountId, int start, int end); /** * Returns an ordered range of all the commerce orders where groupId = ? and commerceAccountId = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CommerceOrderModelImpl. *

* * @param groupId the group ID * @param commerceAccountId the commerce account ID * @param start the lower bound of the range of commerce orders * @param end the upper bound of the range of commerce orders (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching commerce orders */ public java.util.List findByG_C( long groupId, long commerceAccountId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns an ordered range of all the commerce orders where groupId = ? and commerceAccountId = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CommerceOrderModelImpl. *

* * @param groupId the group ID * @param commerceAccountId the commerce account ID * @param start the lower bound of the range of commerce orders * @param end the upper bound of the range of commerce orders (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @param useFinderCache whether to use the finder cache * @return the ordered range of matching commerce orders */ public java.util.List findByG_C( long groupId, long commerceAccountId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean useFinderCache); /** * Returns the first commerce order in the ordered set where groupId = ? and commerceAccountId = ?. * * @param groupId the group ID * @param commerceAccountId the commerce account ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching commerce order * @throws NoSuchOrderException if a matching commerce order could not be found */ public CommerceOrder findByG_C_First( long groupId, long commerceAccountId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchOrderException; /** * Returns the first commerce order in the ordered set where groupId = ? and commerceAccountId = ?. * * @param groupId the group ID * @param commerceAccountId the commerce account ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching commerce order, or null if a matching commerce order could not be found */ public CommerceOrder fetchByG_C_First( long groupId, long commerceAccountId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the last commerce order in the ordered set where groupId = ? and commerceAccountId = ?. * * @param groupId the group ID * @param commerceAccountId the commerce account ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching commerce order * @throws NoSuchOrderException if a matching commerce order could not be found */ public CommerceOrder findByG_C_Last( long groupId, long commerceAccountId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchOrderException; /** * Returns the last commerce order in the ordered set where groupId = ? and commerceAccountId = ?. * * @param groupId the group ID * @param commerceAccountId the commerce account ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching commerce order, or null if a matching commerce order could not be found */ public CommerceOrder fetchByG_C_Last( long groupId, long commerceAccountId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the commerce orders before and after the current commerce order in the ordered set where groupId = ? and commerceAccountId = ?. * * @param commerceOrderId the primary key of the current commerce order * @param groupId the group ID * @param commerceAccountId the commerce account ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next commerce order * @throws NoSuchOrderException if a commerce order with the primary key could not be found */ public CommerceOrder[] findByG_C_PrevAndNext( long commerceOrderId, long groupId, long commerceAccountId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchOrderException; /** * Returns all the commerce orders that the user has permission to view where groupId = ? and commerceAccountId = ?. * * @param groupId the group ID * @param commerceAccountId the commerce account ID * @return the matching commerce orders that the user has permission to view */ public java.util.List filterFindByG_C( long groupId, long commerceAccountId); /** * Returns a range of all the commerce orders that the user has permission to view where groupId = ? and commerceAccountId = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CommerceOrderModelImpl. *

* * @param groupId the group ID * @param commerceAccountId the commerce account ID * @param start the lower bound of the range of commerce orders * @param end the upper bound of the range of commerce orders (not inclusive) * @return the range of matching commerce orders that the user has permission to view */ public java.util.List filterFindByG_C( long groupId, long commerceAccountId, int start, int end); /** * Returns an ordered range of all the commerce orders that the user has permissions to view where groupId = ? and commerceAccountId = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CommerceOrderModelImpl. *

* * @param groupId the group ID * @param commerceAccountId the commerce account ID * @param start the lower bound of the range of commerce orders * @param end the upper bound of the range of commerce orders (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching commerce orders that the user has permission to view */ public java.util.List filterFindByG_C( long groupId, long commerceAccountId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the commerce orders before and after the current commerce order in the ordered set of commerce orders that the user has permission to view where groupId = ? and commerceAccountId = ?. * * @param commerceOrderId the primary key of the current commerce order * @param groupId the group ID * @param commerceAccountId the commerce account ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next commerce order * @throws NoSuchOrderException if a commerce order with the primary key could not be found */ public CommerceOrder[] filterFindByG_C_PrevAndNext( long commerceOrderId, long groupId, long commerceAccountId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchOrderException; /** * Removes all the commerce orders where groupId = ? and commerceAccountId = ? from the database. * * @param groupId the group ID * @param commerceAccountId the commerce account ID */ public void removeByG_C(long groupId, long commerceAccountId); /** * Returns the number of commerce orders where groupId = ? and commerceAccountId = ?. * * @param groupId the group ID * @param commerceAccountId the commerce account ID * @return the number of matching commerce orders */ public int countByG_C(long groupId, long commerceAccountId); /** * Returns the number of commerce orders that the user has permission to view where groupId = ? and commerceAccountId = ?. * * @param groupId the group ID * @param commerceAccountId the commerce account ID * @return the number of matching commerce orders that the user has permission to view */ public int filterCountByG_C(long groupId, long commerceAccountId); /** * Returns all the commerce orders where groupId = ? and commercePaymentMethodKey = ?. * * @param groupId the group ID * @param commercePaymentMethodKey the commerce payment method key * @return the matching commerce orders */ public java.util.List findByG_CP( long groupId, String commercePaymentMethodKey); /** * Returns a range of all the commerce orders where groupId = ? and commercePaymentMethodKey = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CommerceOrderModelImpl. *

* * @param groupId the group ID * @param commercePaymentMethodKey the commerce payment method key * @param start the lower bound of the range of commerce orders * @param end the upper bound of the range of commerce orders (not inclusive) * @return the range of matching commerce orders */ public java.util.List findByG_CP( long groupId, String commercePaymentMethodKey, int start, int end); /** * Returns an ordered range of all the commerce orders where groupId = ? and commercePaymentMethodKey = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CommerceOrderModelImpl. *

* * @param groupId the group ID * @param commercePaymentMethodKey the commerce payment method key * @param start the lower bound of the range of commerce orders * @param end the upper bound of the range of commerce orders (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching commerce orders */ public java.util.List findByG_CP( long groupId, String commercePaymentMethodKey, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns an ordered range of all the commerce orders where groupId = ? and commercePaymentMethodKey = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CommerceOrderModelImpl. *

* * @param groupId the group ID * @param commercePaymentMethodKey the commerce payment method key * @param start the lower bound of the range of commerce orders * @param end the upper bound of the range of commerce orders (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @param useFinderCache whether to use the finder cache * @return the ordered range of matching commerce orders */ public java.util.List findByG_CP( long groupId, String commercePaymentMethodKey, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean useFinderCache); /** * Returns the first commerce order in the ordered set where groupId = ? and commercePaymentMethodKey = ?. * * @param groupId the group ID * @param commercePaymentMethodKey the commerce payment method key * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching commerce order * @throws NoSuchOrderException if a matching commerce order could not be found */ public CommerceOrder findByG_CP_First( long groupId, String commercePaymentMethodKey, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchOrderException; /** * Returns the first commerce order in the ordered set where groupId = ? and commercePaymentMethodKey = ?. * * @param groupId the group ID * @param commercePaymentMethodKey the commerce payment method key * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching commerce order, or null if a matching commerce order could not be found */ public CommerceOrder fetchByG_CP_First( long groupId, String commercePaymentMethodKey, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the last commerce order in the ordered set where groupId = ? and commercePaymentMethodKey = ?. * * @param groupId the group ID * @param commercePaymentMethodKey the commerce payment method key * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching commerce order * @throws NoSuchOrderException if a matching commerce order could not be found */ public CommerceOrder findByG_CP_Last( long groupId, String commercePaymentMethodKey, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchOrderException; /** * Returns the last commerce order in the ordered set where groupId = ? and commercePaymentMethodKey = ?. * * @param groupId the group ID * @param commercePaymentMethodKey the commerce payment method key * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching commerce order, or null if a matching commerce order could not be found */ public CommerceOrder fetchByG_CP_Last( long groupId, String commercePaymentMethodKey, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the commerce orders before and after the current commerce order in the ordered set where groupId = ? and commercePaymentMethodKey = ?. * * @param commerceOrderId the primary key of the current commerce order * @param groupId the group ID * @param commercePaymentMethodKey the commerce payment method key * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next commerce order * @throws NoSuchOrderException if a commerce order with the primary key could not be found */ public CommerceOrder[] findByG_CP_PrevAndNext( long commerceOrderId, long groupId, String commercePaymentMethodKey, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchOrderException; /** * Returns all the commerce orders that the user has permission to view where groupId = ? and commercePaymentMethodKey = ?. * * @param groupId the group ID * @param commercePaymentMethodKey the commerce payment method key * @return the matching commerce orders that the user has permission to view */ public java.util.List filterFindByG_CP( long groupId, String commercePaymentMethodKey); /** * Returns a range of all the commerce orders that the user has permission to view where groupId = ? and commercePaymentMethodKey = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CommerceOrderModelImpl. *

* * @param groupId the group ID * @param commercePaymentMethodKey the commerce payment method key * @param start the lower bound of the range of commerce orders * @param end the upper bound of the range of commerce orders (not inclusive) * @return the range of matching commerce orders that the user has permission to view */ public java.util.List filterFindByG_CP( long groupId, String commercePaymentMethodKey, int start, int end); /** * Returns an ordered range of all the commerce orders that the user has permissions to view where groupId = ? and commercePaymentMethodKey = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CommerceOrderModelImpl. *

* * @param groupId the group ID * @param commercePaymentMethodKey the commerce payment method key * @param start the lower bound of the range of commerce orders * @param end the upper bound of the range of commerce orders (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching commerce orders that the user has permission to view */ public java.util.List filterFindByG_CP( long groupId, String commercePaymentMethodKey, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the commerce orders before and after the current commerce order in the ordered set of commerce orders that the user has permission to view where groupId = ? and commercePaymentMethodKey = ?. * * @param commerceOrderId the primary key of the current commerce order * @param groupId the group ID * @param commercePaymentMethodKey the commerce payment method key * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next commerce order * @throws NoSuchOrderException if a commerce order with the primary key could not be found */ public CommerceOrder[] filterFindByG_CP_PrevAndNext( long commerceOrderId, long groupId, String commercePaymentMethodKey, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchOrderException; /** * Removes all the commerce orders where groupId = ? and commercePaymentMethodKey = ? from the database. * * @param groupId the group ID * @param commercePaymentMethodKey the commerce payment method key */ public void removeByG_CP(long groupId, String commercePaymentMethodKey); /** * Returns the number of commerce orders where groupId = ? and commercePaymentMethodKey = ?. * * @param groupId the group ID * @param commercePaymentMethodKey the commerce payment method key * @return the number of matching commerce orders */ public int countByG_CP(long groupId, String commercePaymentMethodKey); /** * Returns the number of commerce orders that the user has permission to view where groupId = ? and commercePaymentMethodKey = ?. * * @param groupId the group ID * @param commercePaymentMethodKey the commerce payment method key * @return the number of matching commerce orders that the user has permission to view */ public int filterCountByG_CP(long groupId, String commercePaymentMethodKey); /** * Returns all the commerce orders where groupId = ? and userId = ? and orderStatus = ?. * * @param groupId the group ID * @param userId the user ID * @param orderStatus the order status * @return the matching commerce orders */ public java.util.List findByG_U_O( long groupId, long userId, int orderStatus); /** * Returns a range of all the commerce orders where groupId = ? and userId = ? and orderStatus = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CommerceOrderModelImpl. *

* * @param groupId the group ID * @param userId the user ID * @param orderStatus the order status * @param start the lower bound of the range of commerce orders * @param end the upper bound of the range of commerce orders (not inclusive) * @return the range of matching commerce orders */ public java.util.List findByG_U_O( long groupId, long userId, int orderStatus, int start, int end); /** * Returns an ordered range of all the commerce orders where groupId = ? and userId = ? and orderStatus = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CommerceOrderModelImpl. *

* * @param groupId the group ID * @param userId the user ID * @param orderStatus the order status * @param start the lower bound of the range of commerce orders * @param end the upper bound of the range of commerce orders (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching commerce orders */ public java.util.List findByG_U_O( long groupId, long userId, int orderStatus, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns an ordered range of all the commerce orders where groupId = ? and userId = ? and orderStatus = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CommerceOrderModelImpl. *

* * @param groupId the group ID * @param userId the user ID * @param orderStatus the order status * @param start the lower bound of the range of commerce orders * @param end the upper bound of the range of commerce orders (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @param useFinderCache whether to use the finder cache * @return the ordered range of matching commerce orders */ public java.util.List findByG_U_O( long groupId, long userId, int orderStatus, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean useFinderCache); /** * Returns the first commerce order in the ordered set where groupId = ? and userId = ? and orderStatus = ?. * * @param groupId the group ID * @param userId the user ID * @param orderStatus the order status * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching commerce order * @throws NoSuchOrderException if a matching commerce order could not be found */ public CommerceOrder findByG_U_O_First( long groupId, long userId, int orderStatus, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchOrderException; /** * Returns the first commerce order in the ordered set where groupId = ? and userId = ? and orderStatus = ?. * * @param groupId the group ID * @param userId the user ID * @param orderStatus the order status * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching commerce order, or null if a matching commerce order could not be found */ public CommerceOrder fetchByG_U_O_First( long groupId, long userId, int orderStatus, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the last commerce order in the ordered set where groupId = ? and userId = ? and orderStatus = ?. * * @param groupId the group ID * @param userId the user ID * @param orderStatus the order status * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching commerce order * @throws NoSuchOrderException if a matching commerce order could not be found */ public CommerceOrder findByG_U_O_Last( long groupId, long userId, int orderStatus, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchOrderException; /** * Returns the last commerce order in the ordered set where groupId = ? and userId = ? and orderStatus = ?. * * @param groupId the group ID * @param userId the user ID * @param orderStatus the order status * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching commerce order, or null if a matching commerce order could not be found */ public CommerceOrder fetchByG_U_O_Last( long groupId, long userId, int orderStatus, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the commerce orders before and after the current commerce order in the ordered set where groupId = ? and userId = ? and orderStatus = ?. * * @param commerceOrderId the primary key of the current commerce order * @param groupId the group ID * @param userId the user ID * @param orderStatus the order status * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next commerce order * @throws NoSuchOrderException if a commerce order with the primary key could not be found */ public CommerceOrder[] findByG_U_O_PrevAndNext( long commerceOrderId, long groupId, long userId, int orderStatus, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchOrderException; /** * Returns all the commerce orders that the user has permission to view where groupId = ? and userId = ? and orderStatus = ?. * * @param groupId the group ID * @param userId the user ID * @param orderStatus the order status * @return the matching commerce orders that the user has permission to view */ public java.util.List filterFindByG_U_O( long groupId, long userId, int orderStatus); /** * Returns a range of all the commerce orders that the user has permission to view where groupId = ? and userId = ? and orderStatus = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CommerceOrderModelImpl. *

* * @param groupId the group ID * @param userId the user ID * @param orderStatus the order status * @param start the lower bound of the range of commerce orders * @param end the upper bound of the range of commerce orders (not inclusive) * @return the range of matching commerce orders that the user has permission to view */ public java.util.List filterFindByG_U_O( long groupId, long userId, int orderStatus, int start, int end); /** * Returns an ordered range of all the commerce orders that the user has permissions to view where groupId = ? and userId = ? and orderStatus = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CommerceOrderModelImpl. *

* * @param groupId the group ID * @param userId the user ID * @param orderStatus the order status * @param start the lower bound of the range of commerce orders * @param end the upper bound of the range of commerce orders (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching commerce orders that the user has permission to view */ public java.util.List filterFindByG_U_O( long groupId, long userId, int orderStatus, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the commerce orders before and after the current commerce order in the ordered set of commerce orders that the user has permission to view where groupId = ? and userId = ? and orderStatus = ?. * * @param commerceOrderId the primary key of the current commerce order * @param groupId the group ID * @param userId the user ID * @param orderStatus the order status * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next commerce order * @throws NoSuchOrderException if a commerce order with the primary key could not be found */ public CommerceOrder[] filterFindByG_U_O_PrevAndNext( long commerceOrderId, long groupId, long userId, int orderStatus, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchOrderException; /** * Removes all the commerce orders where groupId = ? and userId = ? and orderStatus = ? from the database. * * @param groupId the group ID * @param userId the user ID * @param orderStatus the order status */ public void removeByG_U_O(long groupId, long userId, int orderStatus); /** * Returns the number of commerce orders where groupId = ? and userId = ? and orderStatus = ?. * * @param groupId the group ID * @param userId the user ID * @param orderStatus the order status * @return the number of matching commerce orders */ public int countByG_U_O(long groupId, long userId, int orderStatus); /** * Returns the number of commerce orders that the user has permission to view where groupId = ? and userId = ? and orderStatus = ?. * * @param groupId the group ID * @param userId the user ID * @param orderStatus the order status * @return the number of matching commerce orders that the user has permission to view */ public int filterCountByG_U_O(long groupId, long userId, int orderStatus); /** * Returns all the commerce orders where groupId = ? and commerceAccountId = ? and orderStatus = ?. * * @param groupId the group ID * @param commerceAccountId the commerce account ID * @param orderStatus the order status * @return the matching commerce orders */ public java.util.List findByG_C_O( long groupId, long commerceAccountId, int orderStatus); /** * Returns a range of all the commerce orders where groupId = ? and commerceAccountId = ? and orderStatus = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CommerceOrderModelImpl. *

* * @param groupId the group ID * @param commerceAccountId the commerce account ID * @param orderStatus the order status * @param start the lower bound of the range of commerce orders * @param end the upper bound of the range of commerce orders (not inclusive) * @return the range of matching commerce orders */ public java.util.List findByG_C_O( long groupId, long commerceAccountId, int orderStatus, int start, int end); /** * Returns an ordered range of all the commerce orders where groupId = ? and commerceAccountId = ? and orderStatus = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CommerceOrderModelImpl. *

* * @param groupId the group ID * @param commerceAccountId the commerce account ID * @param orderStatus the order status * @param start the lower bound of the range of commerce orders * @param end the upper bound of the range of commerce orders (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching commerce orders */ public java.util.List findByG_C_O( long groupId, long commerceAccountId, int orderStatus, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns an ordered range of all the commerce orders where groupId = ? and commerceAccountId = ? and orderStatus = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CommerceOrderModelImpl. *

* * @param groupId the group ID * @param commerceAccountId the commerce account ID * @param orderStatus the order status * @param start the lower bound of the range of commerce orders * @param end the upper bound of the range of commerce orders (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @param useFinderCache whether to use the finder cache * @return the ordered range of matching commerce orders */ public java.util.List findByG_C_O( long groupId, long commerceAccountId, int orderStatus, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean useFinderCache); /** * Returns the first commerce order in the ordered set where groupId = ? and commerceAccountId = ? and orderStatus = ?. * * @param groupId the group ID * @param commerceAccountId the commerce account ID * @param orderStatus the order status * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching commerce order * @throws NoSuchOrderException if a matching commerce order could not be found */ public CommerceOrder findByG_C_O_First( long groupId, long commerceAccountId, int orderStatus, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchOrderException; /** * Returns the first commerce order in the ordered set where groupId = ? and commerceAccountId = ? and orderStatus = ?. * * @param groupId the group ID * @param commerceAccountId the commerce account ID * @param orderStatus the order status * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching commerce order, or null if a matching commerce order could not be found */ public CommerceOrder fetchByG_C_O_First( long groupId, long commerceAccountId, int orderStatus, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the last commerce order in the ordered set where groupId = ? and commerceAccountId = ? and orderStatus = ?. * * @param groupId the group ID * @param commerceAccountId the commerce account ID * @param orderStatus the order status * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching commerce order * @throws NoSuchOrderException if a matching commerce order could not be found */ public CommerceOrder findByG_C_O_Last( long groupId, long commerceAccountId, int orderStatus, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchOrderException; /** * Returns the last commerce order in the ordered set where groupId = ? and commerceAccountId = ? and orderStatus = ?. * * @param groupId the group ID * @param commerceAccountId the commerce account ID * @param orderStatus the order status * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching commerce order, or null if a matching commerce order could not be found */ public CommerceOrder fetchByG_C_O_Last( long groupId, long commerceAccountId, int orderStatus, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the commerce orders before and after the current commerce order in the ordered set where groupId = ? and commerceAccountId = ? and orderStatus = ?. * * @param commerceOrderId the primary key of the current commerce order * @param groupId the group ID * @param commerceAccountId the commerce account ID * @param orderStatus the order status * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next commerce order * @throws NoSuchOrderException if a commerce order with the primary key could not be found */ public CommerceOrder[] findByG_C_O_PrevAndNext( long commerceOrderId, long groupId, long commerceAccountId, int orderStatus, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchOrderException; /** * Returns all the commerce orders that the user has permission to view where groupId = ? and commerceAccountId = ? and orderStatus = ?. * * @param groupId the group ID * @param commerceAccountId the commerce account ID * @param orderStatus the order status * @return the matching commerce orders that the user has permission to view */ public java.util.List filterFindByG_C_O( long groupId, long commerceAccountId, int orderStatus); /** * Returns a range of all the commerce orders that the user has permission to view where groupId = ? and commerceAccountId = ? and orderStatus = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CommerceOrderModelImpl. *

* * @param groupId the group ID * @param commerceAccountId the commerce account ID * @param orderStatus the order status * @param start the lower bound of the range of commerce orders * @param end the upper bound of the range of commerce orders (not inclusive) * @return the range of matching commerce orders that the user has permission to view */ public java.util.List filterFindByG_C_O( long groupId, long commerceAccountId, int orderStatus, int start, int end); /** * Returns an ordered range of all the commerce orders that the user has permissions to view where groupId = ? and commerceAccountId = ? and orderStatus = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CommerceOrderModelImpl. *

* * @param groupId the group ID * @param commerceAccountId the commerce account ID * @param orderStatus the order status * @param start the lower bound of the range of commerce orders * @param end the upper bound of the range of commerce orders (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching commerce orders that the user has permission to view */ public java.util.List filterFindByG_C_O( long groupId, long commerceAccountId, int orderStatus, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the commerce orders before and after the current commerce order in the ordered set of commerce orders that the user has permission to view where groupId = ? and commerceAccountId = ? and orderStatus = ?. * * @param commerceOrderId the primary key of the current commerce order * @param groupId the group ID * @param commerceAccountId the commerce account ID * @param orderStatus the order status * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next commerce order * @throws NoSuchOrderException if a commerce order with the primary key could not be found */ public CommerceOrder[] filterFindByG_C_O_PrevAndNext( long commerceOrderId, long groupId, long commerceAccountId, int orderStatus, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchOrderException; /** * Removes all the commerce orders where groupId = ? and commerceAccountId = ? and orderStatus = ? from the database. * * @param groupId the group ID * @param commerceAccountId the commerce account ID * @param orderStatus the order status */ public void removeByG_C_O( long groupId, long commerceAccountId, int orderStatus); /** * Returns the number of commerce orders where groupId = ? and commerceAccountId = ? and orderStatus = ?. * * @param groupId the group ID * @param commerceAccountId the commerce account ID * @param orderStatus the order status * @return the number of matching commerce orders */ public int countByG_C_O( long groupId, long commerceAccountId, int orderStatus); /** * Returns the number of commerce orders that the user has permission to view where groupId = ? and commerceAccountId = ? and orderStatus = ?. * * @param groupId the group ID * @param commerceAccountId the commerce account ID * @param orderStatus the order status * @return the number of matching commerce orders that the user has permission to view */ public int filterCountByG_C_O( long groupId, long commerceAccountId, int orderStatus); /** * Returns all the commerce orders where userId = ? and createDate < ? and orderStatus = ?. * * @param userId the user ID * @param createDate the create date * @param orderStatus the order status * @return the matching commerce orders */ public java.util.List findByU_LtC_O( long userId, Date createDate, int orderStatus); /** * Returns a range of all the commerce orders where userId = ? and createDate < ? and orderStatus = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CommerceOrderModelImpl. *

* * @param userId the user ID * @param createDate the create date * @param orderStatus the order status * @param start the lower bound of the range of commerce orders * @param end the upper bound of the range of commerce orders (not inclusive) * @return the range of matching commerce orders */ public java.util.List findByU_LtC_O( long userId, Date createDate, int orderStatus, int start, int end); /** * Returns an ordered range of all the commerce orders where userId = ? and createDate < ? and orderStatus = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CommerceOrderModelImpl. *

* * @param userId the user ID * @param createDate the create date * @param orderStatus the order status * @param start the lower bound of the range of commerce orders * @param end the upper bound of the range of commerce orders (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching commerce orders */ public java.util.List findByU_LtC_O( long userId, Date createDate, int orderStatus, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns an ordered range of all the commerce orders where userId = ? and createDate < ? and orderStatus = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CommerceOrderModelImpl. *

* * @param userId the user ID * @param createDate the create date * @param orderStatus the order status * @param start the lower bound of the range of commerce orders * @param end the upper bound of the range of commerce orders (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @param useFinderCache whether to use the finder cache * @return the ordered range of matching commerce orders */ public java.util.List findByU_LtC_O( long userId, Date createDate, int orderStatus, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean useFinderCache); /** * Returns the first commerce order in the ordered set where userId = ? and createDate < ? and orderStatus = ?. * * @param userId the user ID * @param createDate the create date * @param orderStatus the order status * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching commerce order * @throws NoSuchOrderException if a matching commerce order could not be found */ public CommerceOrder findByU_LtC_O_First( long userId, Date createDate, int orderStatus, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchOrderException; /** * Returns the first commerce order in the ordered set where userId = ? and createDate < ? and orderStatus = ?. * * @param userId the user ID * @param createDate the create date * @param orderStatus the order status * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching commerce order, or null if a matching commerce order could not be found */ public CommerceOrder fetchByU_LtC_O_First( long userId, Date createDate, int orderStatus, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the last commerce order in the ordered set where userId = ? and createDate < ? and orderStatus = ?. * * @param userId the user ID * @param createDate the create date * @param orderStatus the order status * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching commerce order * @throws NoSuchOrderException if a matching commerce order could not be found */ public CommerceOrder findByU_LtC_O_Last( long userId, Date createDate, int orderStatus, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchOrderException; /** * Returns the last commerce order in the ordered set where userId = ? and createDate < ? and orderStatus = ?. * * @param userId the user ID * @param createDate the create date * @param orderStatus the order status * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching commerce order, or null if a matching commerce order could not be found */ public CommerceOrder fetchByU_LtC_O_Last( long userId, Date createDate, int orderStatus, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the commerce orders before and after the current commerce order in the ordered set where userId = ? and createDate < ? and orderStatus = ?. * * @param commerceOrderId the primary key of the current commerce order * @param userId the user ID * @param createDate the create date * @param orderStatus the order status * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next commerce order * @throws NoSuchOrderException if a commerce order with the primary key could not be found */ public CommerceOrder[] findByU_LtC_O_PrevAndNext( long commerceOrderId, long userId, Date createDate, int orderStatus, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchOrderException; /** * Removes all the commerce orders where userId = ? and createDate < ? and orderStatus = ? from the database. * * @param userId the user ID * @param createDate the create date * @param orderStatus the order status */ public void removeByU_LtC_O(long userId, Date createDate, int orderStatus); /** * Returns the number of commerce orders where userId = ? and createDate < ? and orderStatus = ?. * * @param userId the user ID * @param createDate the create date * @param orderStatus the order status * @return the number of matching commerce orders */ public int countByU_LtC_O(long userId, Date createDate, int orderStatus); /** * Returns all the commerce orders where createDate < ? and commerceAccountId = ? and orderStatus = ?. * * @param createDate the create date * @param commerceAccountId the commerce account ID * @param orderStatus the order status * @return the matching commerce orders */ public java.util.List findByC_LtC_O( Date createDate, long commerceAccountId, int orderStatus); /** * Returns a range of all the commerce orders where createDate < ? and commerceAccountId = ? and orderStatus = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CommerceOrderModelImpl. *

* * @param createDate the create date * @param commerceAccountId the commerce account ID * @param orderStatus the order status * @param start the lower bound of the range of commerce orders * @param end the upper bound of the range of commerce orders (not inclusive) * @return the range of matching commerce orders */ public java.util.List findByC_LtC_O( Date createDate, long commerceAccountId, int orderStatus, int start, int end); /** * Returns an ordered range of all the commerce orders where createDate < ? and commerceAccountId = ? and orderStatus = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CommerceOrderModelImpl. *

* * @param createDate the create date * @param commerceAccountId the commerce account ID * @param orderStatus the order status * @param start the lower bound of the range of commerce orders * @param end the upper bound of the range of commerce orders (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching commerce orders */ public java.util.List findByC_LtC_O( Date createDate, long commerceAccountId, int orderStatus, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns an ordered range of all the commerce orders where createDate < ? and commerceAccountId = ? and orderStatus = ?. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CommerceOrderModelImpl. *

* * @param createDate the create date * @param commerceAccountId the commerce account ID * @param orderStatus the order status * @param start the lower bound of the range of commerce orders * @param end the upper bound of the range of commerce orders (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @param useFinderCache whether to use the finder cache * @return the ordered range of matching commerce orders */ public java.util.List findByC_LtC_O( Date createDate, long commerceAccountId, int orderStatus, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean useFinderCache); /** * Returns the first commerce order in the ordered set where createDate < ? and commerceAccountId = ? and orderStatus = ?. * * @param createDate the create date * @param commerceAccountId the commerce account ID * @param orderStatus the order status * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching commerce order * @throws NoSuchOrderException if a matching commerce order could not be found */ public CommerceOrder findByC_LtC_O_First( Date createDate, long commerceAccountId, int orderStatus, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchOrderException; /** * Returns the first commerce order in the ordered set where createDate < ? and commerceAccountId = ? and orderStatus = ?. * * @param createDate the create date * @param commerceAccountId the commerce account ID * @param orderStatus the order status * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching commerce order, or null if a matching commerce order could not be found */ public CommerceOrder fetchByC_LtC_O_First( Date createDate, long commerceAccountId, int orderStatus, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the last commerce order in the ordered set where createDate < ? and commerceAccountId = ? and orderStatus = ?. * * @param createDate the create date * @param commerceAccountId the commerce account ID * @param orderStatus the order status * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching commerce order * @throws NoSuchOrderException if a matching commerce order could not be found */ public CommerceOrder findByC_LtC_O_Last( Date createDate, long commerceAccountId, int orderStatus, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchOrderException; /** * Returns the last commerce order in the ordered set where createDate < ? and commerceAccountId = ? and orderStatus = ?. * * @param createDate the create date * @param commerceAccountId the commerce account ID * @param orderStatus the order status * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching commerce order, or null if a matching commerce order could not be found */ public CommerceOrder fetchByC_LtC_O_Last( Date createDate, long commerceAccountId, int orderStatus, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the commerce orders before and after the current commerce order in the ordered set where createDate < ? and commerceAccountId = ? and orderStatus = ?. * * @param commerceOrderId the primary key of the current commerce order * @param createDate the create date * @param commerceAccountId the commerce account ID * @param orderStatus the order status * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next commerce order * @throws NoSuchOrderException if a commerce order with the primary key could not be found */ public CommerceOrder[] findByC_LtC_O_PrevAndNext( long commerceOrderId, Date createDate, long commerceAccountId, int orderStatus, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchOrderException; /** * Removes all the commerce orders where createDate < ? and commerceAccountId = ? and orderStatus = ? from the database. * * @param createDate the create date * @param commerceAccountId the commerce account ID * @param orderStatus the order status */ public void removeByC_LtC_O( Date createDate, long commerceAccountId, int orderStatus); /** * Returns the number of commerce orders where createDate < ? and commerceAccountId = ? and orderStatus = ?. * * @param createDate the create date * @param commerceAccountId the commerce account ID * @param orderStatus the order status * @return the number of matching commerce orders */ public int countByC_LtC_O( Date createDate, long commerceAccountId, int orderStatus); /** * Returns the commerce order where externalReferenceCode = ? and companyId = ? or throws a NoSuchOrderException if it could not be found. * * @param externalReferenceCode the external reference code * @param companyId the company ID * @return the matching commerce order * @throws NoSuchOrderException if a matching commerce order could not be found */ public CommerceOrder findByERC_C( String externalReferenceCode, long companyId) throws NoSuchOrderException; /** * Returns the commerce order where externalReferenceCode = ? and companyId = ? or returns null if it could not be found. Uses the finder cache. * * @param externalReferenceCode the external reference code * @param companyId the company ID * @return the matching commerce order, or null if a matching commerce order could not be found */ public CommerceOrder fetchByERC_C( String externalReferenceCode, long companyId); /** * Returns the commerce order where externalReferenceCode = ? and companyId = ? or returns null if it could not be found, optionally using the finder cache. * * @param externalReferenceCode the external reference code * @param companyId the company ID * @param useFinderCache whether to use the finder cache * @return the matching commerce order, or null if a matching commerce order could not be found */ public CommerceOrder fetchByERC_C( String externalReferenceCode, long companyId, boolean useFinderCache); /** * Removes the commerce order where externalReferenceCode = ? and companyId = ? from the database. * * @param externalReferenceCode the external reference code * @param companyId the company ID * @return the commerce order that was removed */ public CommerceOrder removeByERC_C( String externalReferenceCode, long companyId) throws NoSuchOrderException; /** * Returns the number of commerce orders where externalReferenceCode = ? and companyId = ?. * * @param externalReferenceCode the external reference code * @param companyId the company ID * @return the number of matching commerce orders */ public int countByERC_C(String externalReferenceCode, long companyId); /** * Caches the commerce order in the entity cache if it is enabled. * * @param commerceOrder the commerce order */ public void cacheResult(CommerceOrder commerceOrder); /** * Caches the commerce orders in the entity cache if it is enabled. * * @param commerceOrders the commerce orders */ public void cacheResult(java.util.List commerceOrders); /** * Creates a new commerce order with the primary key. Does not add the commerce order to the database. * * @param commerceOrderId the primary key for the new commerce order * @return the new commerce order */ public CommerceOrder create(long commerceOrderId); /** * Removes the commerce order with the primary key from the database. Also notifies the appropriate model listeners. * * @param commerceOrderId the primary key of the commerce order * @return the commerce order that was removed * @throws NoSuchOrderException if a commerce order with the primary key could not be found */ public CommerceOrder remove(long commerceOrderId) throws NoSuchOrderException; public CommerceOrder updateImpl(CommerceOrder commerceOrder); /** * Returns the commerce order with the primary key or throws a NoSuchOrderException if it could not be found. * * @param commerceOrderId the primary key of the commerce order * @return the commerce order * @throws NoSuchOrderException if a commerce order with the primary key could not be found */ public CommerceOrder findByPrimaryKey(long commerceOrderId) throws NoSuchOrderException; /** * Returns the commerce order with the primary key or returns null if it could not be found. * * @param commerceOrderId the primary key of the commerce order * @return the commerce order, or null if a commerce order with the primary key could not be found */ public CommerceOrder fetchByPrimaryKey(long commerceOrderId); /** * Returns all the commerce orders. * * @return the commerce orders */ public java.util.List findAll(); /** * Returns a range of all the commerce orders. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CommerceOrderModelImpl. *

* * @param start the lower bound of the range of commerce orders * @param end the upper bound of the range of commerce orders (not inclusive) * @return the range of commerce orders */ public java.util.List findAll(int start, int end); /** * Returns an ordered range of all the commerce orders. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CommerceOrderModelImpl. *

* * @param start the lower bound of the range of commerce orders * @param end the upper bound of the range of commerce orders (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of commerce orders */ public java.util.List findAll( int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns an ordered range of all the commerce orders. * *

* Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CommerceOrderModelImpl. *

* * @param start the lower bound of the range of commerce orders * @param end the upper bound of the range of commerce orders (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @param useFinderCache whether to use the finder cache * @return the ordered range of commerce orders */ public java.util.List findAll( int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean useFinderCache); /** * Removes all the commerce orders from the database. */ public void removeAll(); /** * Returns the number of commerce orders. * * @return the number of commerce orders */ public int countAll(); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy