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

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

There is a newer version: 87.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.NoSuchShipmentException;
import com.liferay.commerce.model.CommerceShipment;
import com.liferay.portal.kernel.service.persistence.BasePersistence;

import org.osgi.annotation.versioning.ProviderType;

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

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

* * @author Alessio Antonio Rendina * @see CommerceShipmentUtil * @generated */ @ProviderType public interface CommerceShipmentPersistence extends BasePersistence { /* * NOTE FOR DEVELOPERS: * * Never modify or reference this interface directly. Always use {@link CommerceShipmentUtil} to access the commerce shipment persistence. Modify service.xml and rerun ServiceBuilder to regenerate this interface. */ /** * Returns all the commerce shipments where uuid = ?. * * @param uuid the uuid * @return the matching commerce shipments */ public java.util.List findByUuid(String uuid); /** * Returns a range of all the commerce shipments 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 CommerceShipmentModelImpl. *

* * @param uuid the uuid * @param start the lower bound of the range of commerce shipments * @param end the upper bound of the range of commerce shipments (not inclusive) * @return the range of matching commerce shipments */ public java.util.List findByUuid( String uuid, int start, int end); /** * Returns an ordered range of all the commerce shipments 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 CommerceShipmentModelImpl. *

* * @param uuid the uuid * @param start the lower bound of the range of commerce shipments * @param end the upper bound of the range of commerce shipments (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching commerce shipments */ 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 shipments 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 CommerceShipmentModelImpl. *

* * @param uuid the uuid * @param start the lower bound of the range of commerce shipments * @param end the upper bound of the range of commerce shipments (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 shipments */ public java.util.List findByUuid( String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean useFinderCache); /** * Returns the first commerce shipment 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 shipment * @throws NoSuchShipmentException if a matching commerce shipment could not be found */ public CommerceShipment findByUuid_First( String uuid, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchShipmentException; /** * Returns the first commerce shipment 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 shipment, or null if a matching commerce shipment could not be found */ public CommerceShipment fetchByUuid_First( String uuid, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the last commerce shipment 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 shipment * @throws NoSuchShipmentException if a matching commerce shipment could not be found */ public CommerceShipment findByUuid_Last( String uuid, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchShipmentException; /** * Returns the last commerce shipment 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 shipment, or null if a matching commerce shipment could not be found */ public CommerceShipment fetchByUuid_Last( String uuid, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the commerce shipments before and after the current commerce shipment in the ordered set where uuid = ?. * * @param commerceShipmentId the primary key of the current commerce shipment * @param uuid the uuid * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next commerce shipment * @throws NoSuchShipmentException if a commerce shipment with the primary key could not be found */ public CommerceShipment[] findByUuid_PrevAndNext( long commerceShipmentId, String uuid, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchShipmentException; /** * Removes all the commerce shipments where uuid = ? from the database. * * @param uuid the uuid */ public void removeByUuid(String uuid); /** * Returns the number of commerce shipments where uuid = ?. * * @param uuid the uuid * @return the number of matching commerce shipments */ public int countByUuid(String uuid); /** * Returns the commerce shipment where uuid = ? and groupId = ? or throws a NoSuchShipmentException if it could not be found. * * @param uuid the uuid * @param groupId the group ID * @return the matching commerce shipment * @throws NoSuchShipmentException if a matching commerce shipment could not be found */ public CommerceShipment findByUUID_G(String uuid, long groupId) throws NoSuchShipmentException; /** * Returns the commerce shipment 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 shipment, or null if a matching commerce shipment could not be found */ public CommerceShipment fetchByUUID_G(String uuid, long groupId); /** * Returns the commerce shipment 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 shipment, or null if a matching commerce shipment could not be found */ public CommerceShipment fetchByUUID_G( String uuid, long groupId, boolean useFinderCache); /** * Removes the commerce shipment where uuid = ? and groupId = ? from the database. * * @param uuid the uuid * @param groupId the group ID * @return the commerce shipment that was removed */ public CommerceShipment removeByUUID_G(String uuid, long groupId) throws NoSuchShipmentException; /** * Returns the number of commerce shipments where uuid = ? and groupId = ?. * * @param uuid the uuid * @param groupId the group ID * @return the number of matching commerce shipments */ public int countByUUID_G(String uuid, long groupId); /** * Returns all the commerce shipments where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @return the matching commerce shipments */ public java.util.List findByUuid_C( String uuid, long companyId); /** * Returns a range of all the commerce shipments 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 CommerceShipmentModelImpl. *

* * @param uuid the uuid * @param companyId the company ID * @param start the lower bound of the range of commerce shipments * @param end the upper bound of the range of commerce shipments (not inclusive) * @return the range of matching commerce shipments */ public java.util.List findByUuid_C( String uuid, long companyId, int start, int end); /** * Returns an ordered range of all the commerce shipments 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 CommerceShipmentModelImpl. *

* * @param uuid the uuid * @param companyId the company ID * @param start the lower bound of the range of commerce shipments * @param end the upper bound of the range of commerce shipments (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching commerce shipments */ 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 shipments 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 CommerceShipmentModelImpl. *

* * @param uuid the uuid * @param companyId the company ID * @param start the lower bound of the range of commerce shipments * @param end the upper bound of the range of commerce shipments (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 shipments */ 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 shipment 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 shipment * @throws NoSuchShipmentException if a matching commerce shipment could not be found */ public CommerceShipment findByUuid_C_First( String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchShipmentException; /** * Returns the first commerce shipment 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 shipment, or null if a matching commerce shipment could not be found */ public CommerceShipment fetchByUuid_C_First( String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the last commerce shipment 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 shipment * @throws NoSuchShipmentException if a matching commerce shipment could not be found */ public CommerceShipment findByUuid_C_Last( String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchShipmentException; /** * Returns the last commerce shipment 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 shipment, or null if a matching commerce shipment could not be found */ public CommerceShipment fetchByUuid_C_Last( String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the commerce shipments before and after the current commerce shipment in the ordered set where uuid = ? and companyId = ?. * * @param commerceShipmentId the primary key of the current commerce shipment * @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 shipment * @throws NoSuchShipmentException if a commerce shipment with the primary key could not be found */ public CommerceShipment[] findByUuid_C_PrevAndNext( long commerceShipmentId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchShipmentException; /** * Removes all the commerce shipments 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 shipments where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @return the number of matching commerce shipments */ public int countByUuid_C(String uuid, long companyId); /** * Returns all the commerce shipments where groupId = ?. * * @param groupId the group ID * @return the matching commerce shipments */ public java.util.List findByGroupId(long groupId); /** * Returns a range of all the commerce shipments 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 CommerceShipmentModelImpl. *

* * @param groupId the group ID * @param start the lower bound of the range of commerce shipments * @param end the upper bound of the range of commerce shipments (not inclusive) * @return the range of matching commerce shipments */ public java.util.List findByGroupId( long groupId, int start, int end); /** * Returns an ordered range of all the commerce shipments 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 CommerceShipmentModelImpl. *

* * @param groupId the group ID * @param start the lower bound of the range of commerce shipments * @param end the upper bound of the range of commerce shipments (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching commerce shipments */ 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 shipments 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 CommerceShipmentModelImpl. *

* * @param groupId the group ID * @param start the lower bound of the range of commerce shipments * @param end the upper bound of the range of commerce shipments (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 shipments */ public java.util.List findByGroupId( long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean useFinderCache); /** * Returns the first commerce shipment 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 shipment * @throws NoSuchShipmentException if a matching commerce shipment could not be found */ public CommerceShipment findByGroupId_First( long groupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchShipmentException; /** * Returns the first commerce shipment 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 shipment, or null if a matching commerce shipment could not be found */ public CommerceShipment fetchByGroupId_First( long groupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the last commerce shipment 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 shipment * @throws NoSuchShipmentException if a matching commerce shipment could not be found */ public CommerceShipment findByGroupId_Last( long groupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchShipmentException; /** * Returns the last commerce shipment 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 shipment, or null if a matching commerce shipment could not be found */ public CommerceShipment fetchByGroupId_Last( long groupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the commerce shipments before and after the current commerce shipment in the ordered set where groupId = ?. * * @param commerceShipmentId the primary key of the current commerce shipment * @param groupId the group ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next commerce shipment * @throws NoSuchShipmentException if a commerce shipment with the primary key could not be found */ public CommerceShipment[] findByGroupId_PrevAndNext( long commerceShipmentId, long groupId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchShipmentException; /** * Returns all the commerce shipments where groupId = any ?. * *

* 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 CommerceShipmentModelImpl. *

* * @param groupIds the group IDs * @return the matching commerce shipments */ public java.util.List findByGroupId(long[] groupIds); /** * Returns a range of all the commerce shipments where groupId = any ?. * *

* 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 CommerceShipmentModelImpl. *

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

* 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 CommerceShipmentModelImpl. *

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

* 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 CommerceShipmentModelImpl. *

* * @param groupIds the group IDs * @param start the lower bound of the range of commerce shipments * @param end the upper bound of the range of commerce shipments (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 shipments */ public java.util.List findByGroupId( long[] groupIds, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean useFinderCache); /** * Removes all the commerce shipments where groupId = ? from the database. * * @param groupId the group ID */ public void removeByGroupId(long groupId); /** * Returns the number of commerce shipments where groupId = ?. * * @param groupId the group ID * @return the number of matching commerce shipments */ public int countByGroupId(long groupId); /** * Returns the number of commerce shipments where groupId = any ?. * * @param groupIds the group IDs * @return the number of matching commerce shipments */ public int countByGroupId(long[] groupIds); /** * Returns all the commerce shipments where groupId = ? and commerceAddressId = ?. * * @param groupId the group ID * @param commerceAddressId the commerce address ID * @return the matching commerce shipments */ public java.util.List findByG_C( long groupId, long commerceAddressId); /** * Returns a range of all the commerce shipments where groupId = ? and commerceAddressId = ?. * *

* 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 CommerceShipmentModelImpl. *

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

* 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 CommerceShipmentModelImpl. *

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

* 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 CommerceShipmentModelImpl. *

* * @param groupId the group ID * @param commerceAddressId the commerce address ID * @param start the lower bound of the range of commerce shipments * @param end the upper bound of the range of commerce shipments (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 shipments */ public java.util.List findByG_C( long groupId, long commerceAddressId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean useFinderCache); /** * Returns the first commerce shipment in the ordered set where groupId = ? and commerceAddressId = ?. * * @param groupId the group ID * @param commerceAddressId the commerce address ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching commerce shipment * @throws NoSuchShipmentException if a matching commerce shipment could not be found */ public CommerceShipment findByG_C_First( long groupId, long commerceAddressId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchShipmentException; /** * Returns the first commerce shipment in the ordered set where groupId = ? and commerceAddressId = ?. * * @param groupId the group ID * @param commerceAddressId the commerce address ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching commerce shipment, or null if a matching commerce shipment could not be found */ public CommerceShipment fetchByG_C_First( long groupId, long commerceAddressId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the last commerce shipment in the ordered set where groupId = ? and commerceAddressId = ?. * * @param groupId the group ID * @param commerceAddressId the commerce address ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching commerce shipment * @throws NoSuchShipmentException if a matching commerce shipment could not be found */ public CommerceShipment findByG_C_Last( long groupId, long commerceAddressId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchShipmentException; /** * Returns the last commerce shipment in the ordered set where groupId = ? and commerceAddressId = ?. * * @param groupId the group ID * @param commerceAddressId the commerce address ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching commerce shipment, or null if a matching commerce shipment could not be found */ public CommerceShipment fetchByG_C_Last( long groupId, long commerceAddressId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the commerce shipments before and after the current commerce shipment in the ordered set where groupId = ? and commerceAddressId = ?. * * @param commerceShipmentId the primary key of the current commerce shipment * @param groupId the group ID * @param commerceAddressId the commerce address ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next commerce shipment * @throws NoSuchShipmentException if a commerce shipment with the primary key could not be found */ public CommerceShipment[] findByG_C_PrevAndNext( long commerceShipmentId, long groupId, long commerceAddressId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchShipmentException; /** * Returns all the commerce shipments where groupId = any ? and commerceAddressId = ?. * *

* 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 CommerceShipmentModelImpl. *

* * @param groupIds the group IDs * @param commerceAddressId the commerce address ID * @return the matching commerce shipments */ public java.util.List findByG_C( long[] groupIds, long commerceAddressId); /** * Returns a range of all the commerce shipments where groupId = any ? and commerceAddressId = ?. * *

* 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 CommerceShipmentModelImpl. *

* * @param groupIds the group IDs * @param commerceAddressId the commerce address ID * @param start the lower bound of the range of commerce shipments * @param end the upper bound of the range of commerce shipments (not inclusive) * @return the range of matching commerce shipments */ public java.util.List findByG_C( long[] groupIds, long commerceAddressId, int start, int end); /** * Returns an ordered range of all the commerce shipments where groupId = any ? and commerceAddressId = ?. * *

* 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 CommerceShipmentModelImpl. *

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

* 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 CommerceShipmentModelImpl. *

* * @param groupIds the group IDs * @param commerceAddressId the commerce address ID * @param start the lower bound of the range of commerce shipments * @param end the upper bound of the range of commerce shipments (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 shipments */ public java.util.List findByG_C( long[] groupIds, long commerceAddressId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean useFinderCache); /** * Removes all the commerce shipments where groupId = ? and commerceAddressId = ? from the database. * * @param groupId the group ID * @param commerceAddressId the commerce address ID */ public void removeByG_C(long groupId, long commerceAddressId); /** * Returns the number of commerce shipments where groupId = ? and commerceAddressId = ?. * * @param groupId the group ID * @param commerceAddressId the commerce address ID * @return the number of matching commerce shipments */ public int countByG_C(long groupId, long commerceAddressId); /** * Returns the number of commerce shipments where groupId = any ? and commerceAddressId = ?. * * @param groupIds the group IDs * @param commerceAddressId the commerce address ID * @return the number of matching commerce shipments */ public int countByG_C(long[] groupIds, long commerceAddressId); /** * Returns all the commerce shipments where groupId = ? and status = ?. * * @param groupId the group ID * @param status the status * @return the matching commerce shipments */ public java.util.List findByG_S(long groupId, int status); /** * Returns a range of all the commerce shipments where groupId = ? and status = ?. * *

* 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 CommerceShipmentModelImpl. *

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

* 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 CommerceShipmentModelImpl. *

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

* 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 CommerceShipmentModelImpl. *

* * @param groupId the group ID * @param status the status * @param start the lower bound of the range of commerce shipments * @param end the upper bound of the range of commerce shipments (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 shipments */ public java.util.List findByG_S( long groupId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean useFinderCache); /** * Returns the first commerce shipment in the ordered set where groupId = ? and status = ?. * * @param groupId the group ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching commerce shipment * @throws NoSuchShipmentException if a matching commerce shipment could not be found */ public CommerceShipment findByG_S_First( long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchShipmentException; /** * Returns the first commerce shipment in the ordered set where groupId = ? and status = ?. * * @param groupId the group ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching commerce shipment, or null if a matching commerce shipment could not be found */ public CommerceShipment fetchByG_S_First( long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the last commerce shipment in the ordered set where groupId = ? and status = ?. * * @param groupId the group ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching commerce shipment * @throws NoSuchShipmentException if a matching commerce shipment could not be found */ public CommerceShipment findByG_S_Last( long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchShipmentException; /** * Returns the last commerce shipment in the ordered set where groupId = ? and status = ?. * * @param groupId the group ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching commerce shipment, or null if a matching commerce shipment could not be found */ public CommerceShipment fetchByG_S_Last( long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the commerce shipments before and after the current commerce shipment in the ordered set where groupId = ? and status = ?. * * @param commerceShipmentId the primary key of the current commerce shipment * @param groupId the group ID * @param status the status * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next commerce shipment * @throws NoSuchShipmentException if a commerce shipment with the primary key could not be found */ public CommerceShipment[] findByG_S_PrevAndNext( long commerceShipmentId, long groupId, int status, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchShipmentException; /** * Returns all the commerce shipments where groupId = any ? and status = ?. * *

* 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 CommerceShipmentModelImpl. *

* * @param groupIds the group IDs * @param status the status * @return the matching commerce shipments */ public java.util.List findByG_S( long[] groupIds, int status); /** * Returns a range of all the commerce shipments where groupId = any ? and status = ?. * *

* 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 CommerceShipmentModelImpl. *

* * @param groupIds the group IDs * @param status the status * @param start the lower bound of the range of commerce shipments * @param end the upper bound of the range of commerce shipments (not inclusive) * @return the range of matching commerce shipments */ public java.util.List findByG_S( long[] groupIds, int status, int start, int end); /** * Returns an ordered range of all the commerce shipments where groupId = any ? and status = ?. * *

* 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 CommerceShipmentModelImpl. *

* * @param groupIds the group IDs * @param status the status * @param start the lower bound of the range of commerce shipments * @param end the upper bound of the range of commerce shipments (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching commerce shipments */ public java.util.List findByG_S( long[] groupIds, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns an ordered range of all the commerce shipments where groupId = ? and status = ?, optionally using the finder cache. * *

* 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 CommerceShipmentModelImpl. *

* * @param groupIds the group IDs * @param status the status * @param start the lower bound of the range of commerce shipments * @param end the upper bound of the range of commerce shipments (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 shipments */ public java.util.List findByG_S( long[] groupIds, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean useFinderCache); /** * Removes all the commerce shipments where groupId = ? and status = ? from the database. * * @param groupId the group ID * @param status the status */ public void removeByG_S(long groupId, int status); /** * Returns the number of commerce shipments where groupId = ? and status = ?. * * @param groupId the group ID * @param status the status * @return the number of matching commerce shipments */ public int countByG_S(long groupId, int status); /** * Returns the number of commerce shipments where groupId = any ? and status = ?. * * @param groupIds the group IDs * @param status the status * @return the number of matching commerce shipments */ public int countByG_S(long[] groupIds, int status); /** * Returns the commerce shipment where externalReferenceCode = ? and companyId = ? or throws a NoSuchShipmentException if it could not be found. * * @param externalReferenceCode the external reference code * @param companyId the company ID * @return the matching commerce shipment * @throws NoSuchShipmentException if a matching commerce shipment could not be found */ public CommerceShipment findByERC_C( String externalReferenceCode, long companyId) throws NoSuchShipmentException; /** * Returns the commerce shipment 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 shipment, or null if a matching commerce shipment could not be found */ public CommerceShipment fetchByERC_C( String externalReferenceCode, long companyId); /** * Returns the commerce shipment 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 shipment, or null if a matching commerce shipment could not be found */ public CommerceShipment fetchByERC_C( String externalReferenceCode, long companyId, boolean useFinderCache); /** * Removes the commerce shipment where externalReferenceCode = ? and companyId = ? from the database. * * @param externalReferenceCode the external reference code * @param companyId the company ID * @return the commerce shipment that was removed */ public CommerceShipment removeByERC_C( String externalReferenceCode, long companyId) throws NoSuchShipmentException; /** * Returns the number of commerce shipments where externalReferenceCode = ? and companyId = ?. * * @param externalReferenceCode the external reference code * @param companyId the company ID * @return the number of matching commerce shipments */ public int countByERC_C(String externalReferenceCode, long companyId); /** * Caches the commerce shipment in the entity cache if it is enabled. * * @param commerceShipment the commerce shipment */ public void cacheResult(CommerceShipment commerceShipment); /** * Caches the commerce shipments in the entity cache if it is enabled. * * @param commerceShipments the commerce shipments */ public void cacheResult(java.util.List commerceShipments); /** * Creates a new commerce shipment with the primary key. Does not add the commerce shipment to the database. * * @param commerceShipmentId the primary key for the new commerce shipment * @return the new commerce shipment */ public CommerceShipment create(long commerceShipmentId); /** * Removes the commerce shipment with the primary key from the database. Also notifies the appropriate model listeners. * * @param commerceShipmentId the primary key of the commerce shipment * @return the commerce shipment that was removed * @throws NoSuchShipmentException if a commerce shipment with the primary key could not be found */ public CommerceShipment remove(long commerceShipmentId) throws NoSuchShipmentException; public CommerceShipment updateImpl(CommerceShipment commerceShipment); /** * Returns the commerce shipment with the primary key or throws a NoSuchShipmentException if it could not be found. * * @param commerceShipmentId the primary key of the commerce shipment * @return the commerce shipment * @throws NoSuchShipmentException if a commerce shipment with the primary key could not be found */ public CommerceShipment findByPrimaryKey(long commerceShipmentId) throws NoSuchShipmentException; /** * Returns the commerce shipment with the primary key or returns null if it could not be found. * * @param commerceShipmentId the primary key of the commerce shipment * @return the commerce shipment, or null if a commerce shipment with the primary key could not be found */ public CommerceShipment fetchByPrimaryKey(long commerceShipmentId); /** * Returns all the commerce shipments. * * @return the commerce shipments */ public java.util.List findAll(); /** * Returns a range of all the commerce shipments. * *

* 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 CommerceShipmentModelImpl. *

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

* 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 CommerceShipmentModelImpl. *

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

* 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 CommerceShipmentModelImpl. *

* * @param start the lower bound of the range of commerce shipments * @param end the upper bound of the range of commerce shipments (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 shipments */ public java.util.List findAll( int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean useFinderCache); /** * Removes all the commerce shipments from the database. */ public void removeAll(); /** * Returns the number of commerce shipments. * * @return the number of commerce shipments */ public int countAll(); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy