com.liferay.commerce.service.persistence.CommerceShipmentUtil Maven / Gradle / Ivy
/**
* 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.model.CommerceShipment;
import com.liferay.portal.kernel.dao.orm.DynamicQuery;
import com.liferay.portal.kernel.service.ServiceContext;
import com.liferay.portal.kernel.util.OrderByComparator;
import java.io.Serializable;
import java.util.List;
import java.util.Map;
import java.util.Set;
/**
* The persistence utility for the commerce shipment service. This utility wraps com.liferay.commerce.service.persistence.impl.CommerceShipmentPersistenceImpl
and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
*
*
* Caching information and settings can be found in portal.properties
*
*
* @author Alessio Antonio Rendina
* @see CommerceShipmentPersistence
* @generated
*/
public class CommerceShipmentUtil {
/*
* NOTE FOR DEVELOPERS:
*
* Never modify this class directly. Modify service.xml
and rerun ServiceBuilder to regenerate this class.
*/
/**
* @see com.liferay.portal.kernel.service.persistence.BasePersistence#clearCache()
*/
public static void clearCache() {
getPersistence().clearCache();
}
/**
* @see com.liferay.portal.kernel.service.persistence.BasePersistence#clearCache(com.liferay.portal.kernel.model.BaseModel)
*/
public static void clearCache(CommerceShipment commerceShipment) {
getPersistence().clearCache(commerceShipment);
}
/**
* @see com.liferay.portal.kernel.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery)
*/
public static long countWithDynamicQuery(DynamicQuery dynamicQuery) {
return getPersistence().countWithDynamicQuery(dynamicQuery);
}
/**
* @see com.liferay.portal.kernel.service.persistence.BasePersistence#fetchByPrimaryKeys(Set)
*/
public static Map fetchByPrimaryKeys(
Set primaryKeys) {
return getPersistence().fetchByPrimaryKeys(primaryKeys);
}
/**
* @see com.liferay.portal.kernel.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
*/
public static List findWithDynamicQuery(
DynamicQuery dynamicQuery) {
return getPersistence().findWithDynamicQuery(dynamicQuery);
}
/**
* @see com.liferay.portal.kernel.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
*/
public static List findWithDynamicQuery(
DynamicQuery dynamicQuery, int start, int end) {
return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
}
/**
* @see com.liferay.portal.kernel.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
*/
public static List findWithDynamicQuery(
DynamicQuery dynamicQuery, int start, int end,
OrderByComparator orderByComparator) {
return getPersistence().findWithDynamicQuery(
dynamicQuery, start, end, orderByComparator);
}
/**
* @see com.liferay.portal.kernel.service.persistence.BasePersistence#update(com.liferay.portal.kernel.model.BaseModel)
*/
public static CommerceShipment update(CommerceShipment commerceShipment) {
return getPersistence().update(commerceShipment);
}
/**
* @see com.liferay.portal.kernel.service.persistence.BasePersistence#update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
*/
public static CommerceShipment update(
CommerceShipment commerceShipment, ServiceContext serviceContext) {
return getPersistence().update(commerceShipment, serviceContext);
}
/**
* Returns all the commerce shipments where uuid = ?.
*
* @param uuid the uuid
* @return the matching commerce shipments
*/
public static List findByUuid(String uuid) {
return getPersistence().findByUuid(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 static List findByUuid(
String uuid, int start, int end) {
return getPersistence().findByUuid(uuid, start, 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 static List findByUuid(
String uuid, int start, int end,
OrderByComparator orderByComparator) {
return getPersistence().findByUuid(uuid, start, end, 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 static List findByUuid(
String uuid, int start, int end,
OrderByComparator orderByComparator,
boolean useFinderCache) {
return getPersistence().findByUuid(
uuid, start, end, orderByComparator, 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 static CommerceShipment findByUuid_First(
String uuid, OrderByComparator orderByComparator)
throws com.liferay.commerce.exception.NoSuchShipmentException {
return getPersistence().findByUuid_First(uuid, orderByComparator);
}
/**
* 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 static CommerceShipment fetchByUuid_First(
String uuid, OrderByComparator orderByComparator) {
return getPersistence().fetchByUuid_First(uuid, 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 static CommerceShipment findByUuid_Last(
String uuid, OrderByComparator orderByComparator)
throws com.liferay.commerce.exception.NoSuchShipmentException {
return getPersistence().findByUuid_Last(uuid, 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, or null
if a matching commerce shipment could not be found
*/
public static CommerceShipment fetchByUuid_Last(
String uuid, OrderByComparator orderByComparator) {
return getPersistence().fetchByUuid_Last(uuid, 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 static CommerceShipment[] findByUuid_PrevAndNext(
long commerceShipmentId, String uuid,
OrderByComparator orderByComparator)
throws com.liferay.commerce.exception.NoSuchShipmentException {
return getPersistence().findByUuid_PrevAndNext(
commerceShipmentId, uuid, orderByComparator);
}
/**
* Removes all the commerce shipments where uuid = ? from the database.
*
* @param uuid the uuid
*/
public static void removeByUuid(String uuid) {
getPersistence().removeByUuid(uuid);
}
/**
* Returns the number of commerce shipments where uuid = ?.
*
* @param uuid the uuid
* @return the number of matching commerce shipments
*/
public static int countByUuid(String uuid) {
return getPersistence().countByUuid(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 static CommerceShipment findByUUID_G(String uuid, long groupId)
throws com.liferay.commerce.exception.NoSuchShipmentException {
return getPersistence().findByUUID_G(uuid, groupId);
}
/**
* 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 static CommerceShipment fetchByUUID_G(String uuid, long groupId) {
return getPersistence().fetchByUUID_G(uuid, 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 static CommerceShipment fetchByUUID_G(
String uuid, long groupId, boolean useFinderCache) {
return getPersistence().fetchByUUID_G(uuid, groupId, 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 static CommerceShipment removeByUUID_G(String uuid, long groupId)
throws com.liferay.commerce.exception.NoSuchShipmentException {
return getPersistence().removeByUUID_G(uuid, groupId);
}
/**
* 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 static int countByUUID_G(String uuid, long groupId) {
return getPersistence().countByUUID_G(uuid, 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 static List findByUuid_C(
String uuid, long companyId) {
return getPersistence().findByUuid_C(uuid, 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 static List findByUuid_C(
String uuid, long companyId, int start, int end) {
return getPersistence().findByUuid_C(uuid, companyId, start, 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 static List findByUuid_C(
String uuid, long companyId, int start, int end,
OrderByComparator orderByComparator) {
return getPersistence().findByUuid_C(
uuid, companyId, start, end, 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 static List findByUuid_C(
String uuid, long companyId, int start, int end,
OrderByComparator orderByComparator,
boolean useFinderCache) {
return getPersistence().findByUuid_C(
uuid, companyId, start, end, orderByComparator, 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 static CommerceShipment findByUuid_C_First(
String uuid, long companyId,
OrderByComparator orderByComparator)
throws com.liferay.commerce.exception.NoSuchShipmentException {
return getPersistence().findByUuid_C_First(
uuid, companyId, orderByComparator);
}
/**
* 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 static CommerceShipment fetchByUuid_C_First(
String uuid, long companyId,
OrderByComparator orderByComparator) {
return getPersistence().fetchByUuid_C_First(
uuid, companyId, 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 static CommerceShipment findByUuid_C_Last(
String uuid, long companyId,
OrderByComparator orderByComparator)
throws com.liferay.commerce.exception.NoSuchShipmentException {
return getPersistence().findByUuid_C_Last(
uuid, companyId, 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, or null
if a matching commerce shipment could not be found
*/
public static CommerceShipment fetchByUuid_C_Last(
String uuid, long companyId,
OrderByComparator orderByComparator) {
return getPersistence().fetchByUuid_C_Last(
uuid, companyId, 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 static CommerceShipment[] findByUuid_C_PrevAndNext(
long commerceShipmentId, String uuid, long companyId,
OrderByComparator orderByComparator)
throws com.liferay.commerce.exception.NoSuchShipmentException {
return getPersistence().findByUuid_C_PrevAndNext(
commerceShipmentId, uuid, companyId, orderByComparator);
}
/**
* Removes all the commerce shipments where uuid = ? and companyId = ? from the database.
*
* @param uuid the uuid
* @param companyId the company ID
*/
public static void removeByUuid_C(String uuid, long companyId) {
getPersistence().removeByUuid_C(uuid, 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 static int countByUuid_C(String uuid, long companyId) {
return getPersistence().countByUuid_C(uuid, companyId);
}
/**
* Returns all the commerce shipments where groupId = ?.
*
* @param groupId the group ID
* @return the matching commerce shipments
*/
public static List findByGroupId(long groupId) {
return getPersistence().findByGroupId(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 static List findByGroupId(
long groupId, int start, int end) {
return getPersistence().findByGroupId(groupId, start, 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 static List findByGroupId(
long groupId, int start, int end,
OrderByComparator orderByComparator) {
return getPersistence().findByGroupId(
groupId, start, end, 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 static List findByGroupId(
long groupId, int start, int end,
OrderByComparator orderByComparator,
boolean useFinderCache) {
return getPersistence().findByGroupId(
groupId, start, end, orderByComparator, 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 static CommerceShipment findByGroupId_First(
long groupId, OrderByComparator orderByComparator)
throws com.liferay.commerce.exception.NoSuchShipmentException {
return getPersistence().findByGroupId_First(groupId, orderByComparator);
}
/**
* 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 static CommerceShipment fetchByGroupId_First(
long groupId, OrderByComparator orderByComparator) {
return getPersistence().fetchByGroupId_First(
groupId, 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 static CommerceShipment findByGroupId_Last(
long groupId, OrderByComparator orderByComparator)
throws com.liferay.commerce.exception.NoSuchShipmentException {
return getPersistence().findByGroupId_Last(groupId, 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, or null
if a matching commerce shipment could not be found
*/
public static CommerceShipment fetchByGroupId_Last(
long groupId, OrderByComparator orderByComparator) {
return getPersistence().fetchByGroupId_Last(groupId, 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 static CommerceShipment[] findByGroupId_PrevAndNext(
long commerceShipmentId, long groupId,
OrderByComparator orderByComparator)
throws com.liferay.commerce.exception.NoSuchShipmentException {
return getPersistence().findByGroupId_PrevAndNext(
commerceShipmentId, groupId, orderByComparator);
}
/**
* 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 static List findByGroupId(long[] groupIds) {
return getPersistence().findByGroupId(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 static List findByGroupId(
long[] groupIds, int start, int end) {
return getPersistence().findByGroupId(groupIds, start, 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 static List findByGroupId(
long[] groupIds, int start, int end,
OrderByComparator orderByComparator) {
return getPersistence().findByGroupId(
groupIds, start, end, 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 static List findByGroupId(
long[] groupIds, int start, int end,
OrderByComparator orderByComparator,
boolean useFinderCache) {
return getPersistence().findByGroupId(
groupIds, start, end, orderByComparator, useFinderCache);
}
/**
* Removes all the commerce shipments where groupId = ? from the database.
*
* @param groupId the group ID
*/
public static void removeByGroupId(long groupId) {
getPersistence().removeByGroupId(groupId);
}
/**
* Returns the number of commerce shipments where groupId = ?.
*
* @param groupId the group ID
* @return the number of matching commerce shipments
*/
public static int countByGroupId(long groupId) {
return getPersistence().countByGroupId(groupId);
}
/**
* Returns the number of commerce shipments where groupId = any ?.
*
* @param groupIds the group IDs
* @return the number of matching commerce shipments
*/
public static int countByGroupId(long[] groupIds) {
return getPersistence().countByGroupId(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 static List findByG_C(
long groupId, long commerceAddressId) {
return getPersistence().findByG_C(groupId, 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 static List findByG_C(
long groupId, long commerceAddressId, int start, int end) {
return getPersistence().findByG_C(
groupId, commerceAddressId, start, 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 static List findByG_C(
long groupId, long commerceAddressId, int start, int end,
OrderByComparator orderByComparator) {
return getPersistence().findByG_C(
groupId, commerceAddressId, start, end, 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 static List findByG_C(
long groupId, long commerceAddressId, int start, int end,
OrderByComparator orderByComparator,
boolean useFinderCache) {
return getPersistence().findByG_C(
groupId, commerceAddressId, start, end, orderByComparator,
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 static CommerceShipment findByG_C_First(
long groupId, long commerceAddressId,
OrderByComparator orderByComparator)
throws com.liferay.commerce.exception.NoSuchShipmentException {
return getPersistence().findByG_C_First(
groupId, commerceAddressId, orderByComparator);
}
/**
* 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 static CommerceShipment fetchByG_C_First(
long groupId, long commerceAddressId,
OrderByComparator orderByComparator) {
return getPersistence().fetchByG_C_First(
groupId, commerceAddressId, 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 static CommerceShipment findByG_C_Last(
long groupId, long commerceAddressId,
OrderByComparator orderByComparator)
throws com.liferay.commerce.exception.NoSuchShipmentException {
return getPersistence().findByG_C_Last(
groupId, commerceAddressId, 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, or null
if a matching commerce shipment could not be found
*/
public static CommerceShipment fetchByG_C_Last(
long groupId, long commerceAddressId,
OrderByComparator orderByComparator) {
return getPersistence().fetchByG_C_Last(
groupId, commerceAddressId, 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 static CommerceShipment[] findByG_C_PrevAndNext(
long commerceShipmentId, long groupId, long commerceAddressId,
OrderByComparator orderByComparator)
throws com.liferay.commerce.exception.NoSuchShipmentException {
return getPersistence().findByG_C_PrevAndNext(
commerceShipmentId, groupId, commerceAddressId, orderByComparator);
}
/**
* 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 static List findByG_C(
long[] groupIds, long commerceAddressId) {
return getPersistence().findByG_C(groupIds, 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 static List findByG_C(
long[] groupIds, long commerceAddressId, int start, int end) {
return getPersistence().findByG_C(
groupIds, commerceAddressId, start, 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 static List findByG_C(
long[] groupIds, long commerceAddressId, int start, int end,
OrderByComparator orderByComparator) {
return getPersistence().findByG_C(
groupIds, commerceAddressId, start, end, 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 static List findByG_C(
long[] groupIds, long commerceAddressId, int start, int end,
OrderByComparator orderByComparator,
boolean useFinderCache) {
return getPersistence().findByG_C(
groupIds, commerceAddressId, start, end, orderByComparator,
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 static void removeByG_C(long groupId, long commerceAddressId) {
getPersistence().removeByG_C(groupId, 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 static int countByG_C(long groupId, long commerceAddressId) {
return getPersistence().countByG_C(groupId, 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 static int countByG_C(long[] groupIds, long commerceAddressId) {
return getPersistence().countByG_C(groupIds, 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 static List findByG_S(long groupId, int status) {
return getPersistence().findByG_S(groupId, 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 static List findByG_S(
long groupId, int status, int start, int end) {
return getPersistence().findByG_S(groupId, status, start, 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 static List findByG_S(
long groupId, int status, int start, int end,
OrderByComparator orderByComparator) {
return getPersistence().findByG_S(
groupId, status, start, end, 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 static List findByG_S(
long groupId, int status, int start, int end,
OrderByComparator orderByComparator,
boolean useFinderCache) {
return getPersistence().findByG_S(
groupId, status, start, end, orderByComparator, 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 static CommerceShipment findByG_S_First(
long groupId, int status,
OrderByComparator orderByComparator)
throws com.liferay.commerce.exception.NoSuchShipmentException {
return getPersistence().findByG_S_First(
groupId, status, orderByComparator);
}
/**
* 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 static CommerceShipment fetchByG_S_First(
long groupId, int status,
OrderByComparator orderByComparator) {
return getPersistence().fetchByG_S_First(
groupId, status, 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 static CommerceShipment findByG_S_Last(
long groupId, int status,
OrderByComparator orderByComparator)
throws com.liferay.commerce.exception.NoSuchShipmentException {
return getPersistence().findByG_S_Last(
groupId, status, 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, or null
if a matching commerce shipment could not be found
*/
public static CommerceShipment fetchByG_S_Last(
long groupId, int status,
OrderByComparator orderByComparator) {
return getPersistence().fetchByG_S_Last(
groupId, status, 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 static CommerceShipment[] findByG_S_PrevAndNext(
long commerceShipmentId, long groupId, int status,
OrderByComparator orderByComparator)
throws com.liferay.commerce.exception.NoSuchShipmentException {
return getPersistence().findByG_S_PrevAndNext(
commerceShipmentId, groupId, status, orderByComparator);
}
/**
* 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 static List findByG_S(
long[] groupIds, int status) {
return getPersistence().findByG_S(groupIds, 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 static List findByG_S(
long[] groupIds, int status, int start, int end) {
return getPersistence().findByG_S(groupIds, status, start, 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 static List findByG_S(
long[] groupIds, int status, int start, int end,
OrderByComparator orderByComparator) {
return getPersistence().findByG_S(
groupIds, status, start, end, 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 static List findByG_S(
long[] groupIds, int status, int start, int end,
OrderByComparator orderByComparator,
boolean useFinderCache) {
return getPersistence().findByG_S(
groupIds, status, start, end, orderByComparator, useFinderCache);
}
/**
* Removes all the commerce shipments where groupId = ? and status = ? from the database.
*
* @param groupId the group ID
* @param status the status
*/
public static void removeByG_S(long groupId, int status) {
getPersistence().removeByG_S(groupId, 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 static int countByG_S(long groupId, int status) {
return getPersistence().countByG_S(groupId, 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 static int countByG_S(long[] groupIds, int status) {
return getPersistence().countByG_S(groupIds, 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 static CommerceShipment findByERC_C(
String externalReferenceCode, long companyId)
throws com.liferay.commerce.exception.NoSuchShipmentException {
return getPersistence().findByERC_C(externalReferenceCode, companyId);
}
/**
* 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 static CommerceShipment fetchByERC_C(
String externalReferenceCode, long companyId) {
return getPersistence().fetchByERC_C(externalReferenceCode, 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 static CommerceShipment fetchByERC_C(
String externalReferenceCode, long companyId, boolean useFinderCache) {
return getPersistence().fetchByERC_C(
externalReferenceCode, companyId, 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 static CommerceShipment removeByERC_C(
String externalReferenceCode, long companyId)
throws com.liferay.commerce.exception.NoSuchShipmentException {
return getPersistence().removeByERC_C(externalReferenceCode, companyId);
}
/**
* 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 static int countByERC_C(
String externalReferenceCode, long companyId) {
return getPersistence().countByERC_C(externalReferenceCode, companyId);
}
/**
* Caches the commerce shipment in the entity cache if it is enabled.
*
* @param commerceShipment the commerce shipment
*/
public static void cacheResult(CommerceShipment commerceShipment) {
getPersistence().cacheResult(commerceShipment);
}
/**
* Caches the commerce shipments in the entity cache if it is enabled.
*
* @param commerceShipments the commerce shipments
*/
public static void cacheResult(List commerceShipments) {
getPersistence().cacheResult(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 static CommerceShipment create(long commerceShipmentId) {
return getPersistence().create(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 static CommerceShipment remove(long commerceShipmentId)
throws com.liferay.commerce.exception.NoSuchShipmentException {
return getPersistence().remove(commerceShipmentId);
}
public static CommerceShipment updateImpl(
CommerceShipment commerceShipment) {
return getPersistence().updateImpl(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 static CommerceShipment findByPrimaryKey(long commerceShipmentId)
throws com.liferay.commerce.exception.NoSuchShipmentException {
return getPersistence().findByPrimaryKey(commerceShipmentId);
}
/**
* 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 static CommerceShipment fetchByPrimaryKey(long commerceShipmentId) {
return getPersistence().fetchByPrimaryKey(commerceShipmentId);
}
/**
* Returns all the commerce shipments.
*
* @return the commerce shipments
*/
public static List findAll() {
return getPersistence().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 static List findAll(int start, int end) {
return getPersistence().findAll(start, 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 static List findAll(
int start, int end,
OrderByComparator orderByComparator) {
return getPersistence().findAll(start, end, 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 static List findAll(
int start, int end,
OrderByComparator orderByComparator,
boolean useFinderCache) {
return getPersistence().findAll(
start, end, orderByComparator, useFinderCache);
}
/**
* Removes all the commerce shipments from the database.
*/
public static void removeAll() {
getPersistence().removeAll();
}
/**
* Returns the number of commerce shipments.
*
* @return the number of commerce shipments
*/
public static int countAll() {
return getPersistence().countAll();
}
public static CommerceShipmentPersistence getPersistence() {
return _persistence;
}
public static void setPersistence(CommerceShipmentPersistence persistence) {
_persistence = persistence;
}
private static volatile CommerceShipmentPersistence _persistence;
}