com.liferay.commerce.service.persistence.CommerceShipmentItemPersistence 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.exception.NoSuchShipmentItemException;
import com.liferay.commerce.model.CommerceShipmentItem;
import com.liferay.portal.kernel.service.persistence.BasePersistence;
import org.osgi.annotation.versioning.ProviderType;
/**
* The persistence interface for the commerce shipment item service.
*
*
* Caching information and settings can be found in portal.properties
*
*
* @author Alessio Antonio Rendina
* @see CommerceShipmentItemUtil
* @generated
*/
@ProviderType
public interface CommerceShipmentItemPersistence
extends BasePersistence {
/*
* NOTE FOR DEVELOPERS:
*
* Never modify or reference this interface directly. Always use {@link CommerceShipmentItemUtil} to access the commerce shipment item persistence. Modify service.xml
and rerun ServiceBuilder to regenerate this interface.
*/
/**
* Returns all the commerce shipment items where uuid = ?.
*
* @param uuid the uuid
* @return the matching commerce shipment items
*/
public java.util.List findByUuid(String uuid);
/**
* Returns a range of all the commerce shipment items 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 CommerceShipmentItemModelImpl
.
*
*
* @param uuid the uuid
* @param start the lower bound of the range of commerce shipment items
* @param end the upper bound of the range of commerce shipment items (not inclusive)
* @return the range of matching commerce shipment items
*/
public java.util.List findByUuid(
String uuid, int start, int end);
/**
* Returns an ordered range of all the commerce shipment items 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 CommerceShipmentItemModelImpl
.
*
*
* @param uuid the uuid
* @param start the lower bound of the range of commerce shipment items
* @param end the upper bound of the range of commerce shipment items (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally null
)
* @return the ordered range of matching commerce shipment items
*/
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 shipment items 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 CommerceShipmentItemModelImpl
.
*
*
* @param uuid the uuid
* @param start the lower bound of the range of commerce shipment items
* @param end the upper bound of the range of commerce shipment items (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 shipment items
*/
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 item 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 item
* @throws NoSuchShipmentItemException if a matching commerce shipment item could not be found
*/
public CommerceShipmentItem findByUuid_First(
String uuid,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator)
throws NoSuchShipmentItemException;
/**
* Returns the first commerce shipment item 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 item, or null
if a matching commerce shipment item could not be found
*/
public CommerceShipmentItem fetchByUuid_First(
String uuid,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator);
/**
* Returns the last commerce shipment item 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 item
* @throws NoSuchShipmentItemException if a matching commerce shipment item could not be found
*/
public CommerceShipmentItem findByUuid_Last(
String uuid,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator)
throws NoSuchShipmentItemException;
/**
* Returns the last commerce shipment item 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 item, or null
if a matching commerce shipment item could not be found
*/
public CommerceShipmentItem fetchByUuid_Last(
String uuid,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator);
/**
* Returns the commerce shipment items before and after the current commerce shipment item in the ordered set where uuid = ?.
*
* @param commerceShipmentItemId the primary key of the current commerce shipment item
* @param uuid the uuid
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the previous, current, and next commerce shipment item
* @throws NoSuchShipmentItemException if a commerce shipment item with the primary key could not be found
*/
public CommerceShipmentItem[] findByUuid_PrevAndNext(
long commerceShipmentItemId, String uuid,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator)
throws NoSuchShipmentItemException;
/**
* Removes all the commerce shipment items where uuid = ? from the database.
*
* @param uuid the uuid
*/
public void removeByUuid(String uuid);
/**
* Returns the number of commerce shipment items where uuid = ?.
*
* @param uuid the uuid
* @return the number of matching commerce shipment items
*/
public int countByUuid(String uuid);
/**
* Returns the commerce shipment item where uuid = ? and groupId = ? or throws a NoSuchShipmentItemException
if it could not be found.
*
* @param uuid the uuid
* @param groupId the group ID
* @return the matching commerce shipment item
* @throws NoSuchShipmentItemException if a matching commerce shipment item could not be found
*/
public CommerceShipmentItem findByUUID_G(String uuid, long groupId)
throws NoSuchShipmentItemException;
/**
* Returns the commerce shipment item 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 item, or null
if a matching commerce shipment item could not be found
*/
public CommerceShipmentItem fetchByUUID_G(String uuid, long groupId);
/**
* Returns the commerce shipment item 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 item, or null
if a matching commerce shipment item could not be found
*/
public CommerceShipmentItem fetchByUUID_G(
String uuid, long groupId, boolean useFinderCache);
/**
* Removes the commerce shipment item where uuid = ? and groupId = ? from the database.
*
* @param uuid the uuid
* @param groupId the group ID
* @return the commerce shipment item that was removed
*/
public CommerceShipmentItem removeByUUID_G(String uuid, long groupId)
throws NoSuchShipmentItemException;
/**
* Returns the number of commerce shipment items where uuid = ? and groupId = ?.
*
* @param uuid the uuid
* @param groupId the group ID
* @return the number of matching commerce shipment items
*/
public int countByUUID_G(String uuid, long groupId);
/**
* Returns all the commerce shipment items where uuid = ? and companyId = ?.
*
* @param uuid the uuid
* @param companyId the company ID
* @return the matching commerce shipment items
*/
public java.util.List findByUuid_C(
String uuid, long companyId);
/**
* Returns a range of all the commerce shipment items 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 CommerceShipmentItemModelImpl
.
*
*
* @param uuid the uuid
* @param companyId the company ID
* @param start the lower bound of the range of commerce shipment items
* @param end the upper bound of the range of commerce shipment items (not inclusive)
* @return the range of matching commerce shipment items
*/
public java.util.List findByUuid_C(
String uuid, long companyId, int start, int end);
/**
* Returns an ordered range of all the commerce shipment items 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 CommerceShipmentItemModelImpl
.
*
*
* @param uuid the uuid
* @param companyId the company ID
* @param start the lower bound of the range of commerce shipment items
* @param end the upper bound of the range of commerce shipment items (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally null
)
* @return the ordered range of matching commerce shipment items
*/
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 shipment items 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 CommerceShipmentItemModelImpl
.
*
*
* @param uuid the uuid
* @param companyId the company ID
* @param start the lower bound of the range of commerce shipment items
* @param end the upper bound of the range of commerce shipment items (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 shipment items
*/
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 item 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 item
* @throws NoSuchShipmentItemException if a matching commerce shipment item could not be found
*/
public CommerceShipmentItem findByUuid_C_First(
String uuid, long companyId,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator)
throws NoSuchShipmentItemException;
/**
* Returns the first commerce shipment item 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 item, or null
if a matching commerce shipment item could not be found
*/
public CommerceShipmentItem fetchByUuid_C_First(
String uuid, long companyId,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator);
/**
* Returns the last commerce shipment item 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 item
* @throws NoSuchShipmentItemException if a matching commerce shipment item could not be found
*/
public CommerceShipmentItem findByUuid_C_Last(
String uuid, long companyId,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator)
throws NoSuchShipmentItemException;
/**
* Returns the last commerce shipment item 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 item, or null
if a matching commerce shipment item could not be found
*/
public CommerceShipmentItem fetchByUuid_C_Last(
String uuid, long companyId,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator);
/**
* Returns the commerce shipment items before and after the current commerce shipment item in the ordered set where uuid = ? and companyId = ?.
*
* @param commerceShipmentItemId the primary key of the current commerce shipment item
* @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 item
* @throws NoSuchShipmentItemException if a commerce shipment item with the primary key could not be found
*/
public CommerceShipmentItem[] findByUuid_C_PrevAndNext(
long commerceShipmentItemId, String uuid, long companyId,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator)
throws NoSuchShipmentItemException;
/**
* Removes all the commerce shipment items 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 shipment items where uuid = ? and companyId = ?.
*
* @param uuid the uuid
* @param companyId the company ID
* @return the number of matching commerce shipment items
*/
public int countByUuid_C(String uuid, long companyId);
/**
* Returns all the commerce shipment items where groupId = ?.
*
* @param groupId the group ID
* @return the matching commerce shipment items
*/
public java.util.List findByGroupId(long groupId);
/**
* Returns a range of all the commerce shipment items 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 CommerceShipmentItemModelImpl
.
*
*
* @param groupId the group ID
* @param start the lower bound of the range of commerce shipment items
* @param end the upper bound of the range of commerce shipment items (not inclusive)
* @return the range of matching commerce shipment items
*/
public java.util.List findByGroupId(
long groupId, int start, int end);
/**
* Returns an ordered range of all the commerce shipment items 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 CommerceShipmentItemModelImpl
.
*
*
* @param groupId the group ID
* @param start the lower bound of the range of commerce shipment items
* @param end the upper bound of the range of commerce shipment items (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally null
)
* @return the ordered range of matching commerce shipment items
*/
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 shipment items 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 CommerceShipmentItemModelImpl
.
*
*
* @param groupId the group ID
* @param start the lower bound of the range of commerce shipment items
* @param end the upper bound of the range of commerce shipment items (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 shipment items
*/
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 item 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 item
* @throws NoSuchShipmentItemException if a matching commerce shipment item could not be found
*/
public CommerceShipmentItem findByGroupId_First(
long groupId,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator)
throws NoSuchShipmentItemException;
/**
* Returns the first commerce shipment item 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 item, or null
if a matching commerce shipment item could not be found
*/
public CommerceShipmentItem fetchByGroupId_First(
long groupId,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator);
/**
* Returns the last commerce shipment item 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 item
* @throws NoSuchShipmentItemException if a matching commerce shipment item could not be found
*/
public CommerceShipmentItem findByGroupId_Last(
long groupId,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator)
throws NoSuchShipmentItemException;
/**
* Returns the last commerce shipment item 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 item, or null
if a matching commerce shipment item could not be found
*/
public CommerceShipmentItem fetchByGroupId_Last(
long groupId,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator);
/**
* Returns the commerce shipment items before and after the current commerce shipment item in the ordered set where groupId = ?.
*
* @param commerceShipmentItemId the primary key of the current commerce shipment item
* @param groupId the group ID
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the previous, current, and next commerce shipment item
* @throws NoSuchShipmentItemException if a commerce shipment item with the primary key could not be found
*/
public CommerceShipmentItem[] findByGroupId_PrevAndNext(
long commerceShipmentItemId, long groupId,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator)
throws NoSuchShipmentItemException;
/**
* Removes all the commerce shipment items where groupId = ? from the database.
*
* @param groupId the group ID
*/
public void removeByGroupId(long groupId);
/**
* Returns the number of commerce shipment items where groupId = ?.
*
* @param groupId the group ID
* @return the number of matching commerce shipment items
*/
public int countByGroupId(long groupId);
/**
* Returns all the commerce shipment items where commerceShipmentId = ?.
*
* @param commerceShipmentId the commerce shipment ID
* @return the matching commerce shipment items
*/
public java.util.List findByCommerceShipmentId(
long commerceShipmentId);
/**
* Returns a range of all the commerce shipment items where commerceShipmentId = ?.
*
*
* 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 CommerceShipmentItemModelImpl
.
*
*
* @param commerceShipmentId the commerce shipment ID
* @param start the lower bound of the range of commerce shipment items
* @param end the upper bound of the range of commerce shipment items (not inclusive)
* @return the range of matching commerce shipment items
*/
public java.util.List findByCommerceShipmentId(
long commerceShipmentId, int start, int end);
/**
* Returns an ordered range of all the commerce shipment items where commerceShipmentId = ?.
*
*
* 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 CommerceShipmentItemModelImpl
.
*
*
* @param commerceShipmentId the commerce shipment ID
* @param start the lower bound of the range of commerce shipment items
* @param end the upper bound of the range of commerce shipment items (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally null
)
* @return the ordered range of matching commerce shipment items
*/
public java.util.List findByCommerceShipmentId(
long commerceShipmentId, int start, int end,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator);
/**
* Returns an ordered range of all the commerce shipment items where commerceShipmentId = ?.
*
*
* 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 CommerceShipmentItemModelImpl
.
*
*
* @param commerceShipmentId the commerce shipment ID
* @param start the lower bound of the range of commerce shipment items
* @param end the upper bound of the range of commerce shipment items (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 shipment items
*/
public java.util.List findByCommerceShipmentId(
long commerceShipmentId, int start, int end,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator,
boolean useFinderCache);
/**
* Returns the first commerce shipment item in the ordered set where commerceShipmentId = ?.
*
* @param commerceShipmentId the commerce shipment ID
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the first matching commerce shipment item
* @throws NoSuchShipmentItemException if a matching commerce shipment item could not be found
*/
public CommerceShipmentItem findByCommerceShipmentId_First(
long commerceShipmentId,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator)
throws NoSuchShipmentItemException;
/**
* Returns the first commerce shipment item in the ordered set where commerceShipmentId = ?.
*
* @param commerceShipmentId the commerce shipment ID
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the first matching commerce shipment item, or null
if a matching commerce shipment item could not be found
*/
public CommerceShipmentItem fetchByCommerceShipmentId_First(
long commerceShipmentId,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator);
/**
* Returns the last commerce shipment item in the ordered set where commerceShipmentId = ?.
*
* @param commerceShipmentId the commerce shipment ID
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the last matching commerce shipment item
* @throws NoSuchShipmentItemException if a matching commerce shipment item could not be found
*/
public CommerceShipmentItem findByCommerceShipmentId_Last(
long commerceShipmentId,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator)
throws NoSuchShipmentItemException;
/**
* Returns the last commerce shipment item in the ordered set where commerceShipmentId = ?.
*
* @param commerceShipmentId the commerce shipment ID
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the last matching commerce shipment item, or null
if a matching commerce shipment item could not be found
*/
public CommerceShipmentItem fetchByCommerceShipmentId_Last(
long commerceShipmentId,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator);
/**
* Returns the commerce shipment items before and after the current commerce shipment item in the ordered set where commerceShipmentId = ?.
*
* @param commerceShipmentItemId the primary key of the current commerce shipment item
* @param commerceShipmentId the commerce shipment ID
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the previous, current, and next commerce shipment item
* @throws NoSuchShipmentItemException if a commerce shipment item with the primary key could not be found
*/
public CommerceShipmentItem[] findByCommerceShipmentId_PrevAndNext(
long commerceShipmentItemId, long commerceShipmentId,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator)
throws NoSuchShipmentItemException;
/**
* Removes all the commerce shipment items where commerceShipmentId = ? from the database.
*
* @param commerceShipmentId the commerce shipment ID
*/
public void removeByCommerceShipmentId(long commerceShipmentId);
/**
* Returns the number of commerce shipment items where commerceShipmentId = ?.
*
* @param commerceShipmentId the commerce shipment ID
* @return the number of matching commerce shipment items
*/
public int countByCommerceShipmentId(long commerceShipmentId);
/**
* Returns all the commerce shipment items where commerceOrderItemId = ?.
*
* @param commerceOrderItemId the commerce order item ID
* @return the matching commerce shipment items
*/
public java.util.List findByCommerceOrderItemId(
long commerceOrderItemId);
/**
* Returns a range of all the commerce shipment items where commerceOrderItemId = ?.
*
*
* 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 CommerceShipmentItemModelImpl
.
*
*
* @param commerceOrderItemId the commerce order item ID
* @param start the lower bound of the range of commerce shipment items
* @param end the upper bound of the range of commerce shipment items (not inclusive)
* @return the range of matching commerce shipment items
*/
public java.util.List findByCommerceOrderItemId(
long commerceOrderItemId, int start, int end);
/**
* Returns an ordered range of all the commerce shipment items where commerceOrderItemId = ?.
*
*
* 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 CommerceShipmentItemModelImpl
.
*
*
* @param commerceOrderItemId the commerce order item ID
* @param start the lower bound of the range of commerce shipment items
* @param end the upper bound of the range of commerce shipment items (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally null
)
* @return the ordered range of matching commerce shipment items
*/
public java.util.List findByCommerceOrderItemId(
long commerceOrderItemId, int start, int end,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator);
/**
* Returns an ordered range of all the commerce shipment items where commerceOrderItemId = ?.
*
*
* 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 CommerceShipmentItemModelImpl
.
*
*
* @param commerceOrderItemId the commerce order item ID
* @param start the lower bound of the range of commerce shipment items
* @param end the upper bound of the range of commerce shipment items (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 shipment items
*/
public java.util.List findByCommerceOrderItemId(
long commerceOrderItemId, int start, int end,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator,
boolean useFinderCache);
/**
* Returns the first commerce shipment item in the ordered set where commerceOrderItemId = ?.
*
* @param commerceOrderItemId the commerce order item ID
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the first matching commerce shipment item
* @throws NoSuchShipmentItemException if a matching commerce shipment item could not be found
*/
public CommerceShipmentItem findByCommerceOrderItemId_First(
long commerceOrderItemId,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator)
throws NoSuchShipmentItemException;
/**
* Returns the first commerce shipment item in the ordered set where commerceOrderItemId = ?.
*
* @param commerceOrderItemId the commerce order item ID
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the first matching commerce shipment item, or null
if a matching commerce shipment item could not be found
*/
public CommerceShipmentItem fetchByCommerceOrderItemId_First(
long commerceOrderItemId,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator);
/**
* Returns the last commerce shipment item in the ordered set where commerceOrderItemId = ?.
*
* @param commerceOrderItemId the commerce order item ID
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the last matching commerce shipment item
* @throws NoSuchShipmentItemException if a matching commerce shipment item could not be found
*/
public CommerceShipmentItem findByCommerceOrderItemId_Last(
long commerceOrderItemId,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator)
throws NoSuchShipmentItemException;
/**
* Returns the last commerce shipment item in the ordered set where commerceOrderItemId = ?.
*
* @param commerceOrderItemId the commerce order item ID
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the last matching commerce shipment item, or null
if a matching commerce shipment item could not be found
*/
public CommerceShipmentItem fetchByCommerceOrderItemId_Last(
long commerceOrderItemId,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator);
/**
* Returns the commerce shipment items before and after the current commerce shipment item in the ordered set where commerceOrderItemId = ?.
*
* @param commerceShipmentItemId the primary key of the current commerce shipment item
* @param commerceOrderItemId the commerce order item ID
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the previous, current, and next commerce shipment item
* @throws NoSuchShipmentItemException if a commerce shipment item with the primary key could not be found
*/
public CommerceShipmentItem[] findByCommerceOrderItemId_PrevAndNext(
long commerceShipmentItemId, long commerceOrderItemId,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator)
throws NoSuchShipmentItemException;
/**
* Removes all the commerce shipment items where commerceOrderItemId = ? from the database.
*
* @param commerceOrderItemId the commerce order item ID
*/
public void removeByCommerceOrderItemId(long commerceOrderItemId);
/**
* Returns the number of commerce shipment items where commerceOrderItemId = ?.
*
* @param commerceOrderItemId the commerce order item ID
* @return the number of matching commerce shipment items
*/
public int countByCommerceOrderItemId(long commerceOrderItemId);
/**
* Returns all the commerce shipment items where commerceShipmentId = ? and commerceOrderItemId = ?.
*
* @param commerceShipmentId the commerce shipment ID
* @param commerceOrderItemId the commerce order item ID
* @return the matching commerce shipment items
*/
public java.util.List findByC_C(
long commerceShipmentId, long commerceOrderItemId);
/**
* Returns a range of all the commerce shipment items where commerceShipmentId = ? and commerceOrderItemId = ?.
*
*
* 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 CommerceShipmentItemModelImpl
.
*
*
* @param commerceShipmentId the commerce shipment ID
* @param commerceOrderItemId the commerce order item ID
* @param start the lower bound of the range of commerce shipment items
* @param end the upper bound of the range of commerce shipment items (not inclusive)
* @return the range of matching commerce shipment items
*/
public java.util.List findByC_C(
long commerceShipmentId, long commerceOrderItemId, int start, int end);
/**
* Returns an ordered range of all the commerce shipment items where commerceShipmentId = ? and commerceOrderItemId = ?.
*
*
* 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 CommerceShipmentItemModelImpl
.
*
*
* @param commerceShipmentId the commerce shipment ID
* @param commerceOrderItemId the commerce order item ID
* @param start the lower bound of the range of commerce shipment items
* @param end the upper bound of the range of commerce shipment items (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally null
)
* @return the ordered range of matching commerce shipment items
*/
public java.util.List findByC_C(
long commerceShipmentId, long commerceOrderItemId, int start, int end,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator);
/**
* Returns an ordered range of all the commerce shipment items where commerceShipmentId = ? and commerceOrderItemId = ?.
*
*
* 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 CommerceShipmentItemModelImpl
.
*
*
* @param commerceShipmentId the commerce shipment ID
* @param commerceOrderItemId the commerce order item ID
* @param start the lower bound of the range of commerce shipment items
* @param end the upper bound of the range of commerce shipment items (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 shipment items
*/
public java.util.List findByC_C(
long commerceShipmentId, long commerceOrderItemId, int start, int end,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator,
boolean useFinderCache);
/**
* Returns the first commerce shipment item in the ordered set where commerceShipmentId = ? and commerceOrderItemId = ?.
*
* @param commerceShipmentId the commerce shipment ID
* @param commerceOrderItemId the commerce order item ID
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the first matching commerce shipment item
* @throws NoSuchShipmentItemException if a matching commerce shipment item could not be found
*/
public CommerceShipmentItem findByC_C_First(
long commerceShipmentId, long commerceOrderItemId,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator)
throws NoSuchShipmentItemException;
/**
* Returns the first commerce shipment item in the ordered set where commerceShipmentId = ? and commerceOrderItemId = ?.
*
* @param commerceShipmentId the commerce shipment ID
* @param commerceOrderItemId the commerce order item ID
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the first matching commerce shipment item, or null
if a matching commerce shipment item could not be found
*/
public CommerceShipmentItem fetchByC_C_First(
long commerceShipmentId, long commerceOrderItemId,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator);
/**
* Returns the last commerce shipment item in the ordered set where commerceShipmentId = ? and commerceOrderItemId = ?.
*
* @param commerceShipmentId the commerce shipment ID
* @param commerceOrderItemId the commerce order item ID
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the last matching commerce shipment item
* @throws NoSuchShipmentItemException if a matching commerce shipment item could not be found
*/
public CommerceShipmentItem findByC_C_Last(
long commerceShipmentId, long commerceOrderItemId,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator)
throws NoSuchShipmentItemException;
/**
* Returns the last commerce shipment item in the ordered set where commerceShipmentId = ? and commerceOrderItemId = ?.
*
* @param commerceShipmentId the commerce shipment ID
* @param commerceOrderItemId the commerce order item ID
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the last matching commerce shipment item, or null
if a matching commerce shipment item could not be found
*/
public CommerceShipmentItem fetchByC_C_Last(
long commerceShipmentId, long commerceOrderItemId,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator);
/**
* Returns the commerce shipment items before and after the current commerce shipment item in the ordered set where commerceShipmentId = ? and commerceOrderItemId = ?.
*
* @param commerceShipmentItemId the primary key of the current commerce shipment item
* @param commerceShipmentId the commerce shipment ID
* @param commerceOrderItemId the commerce order item ID
* @param orderByComparator the comparator to order the set by (optionally null
)
* @return the previous, current, and next commerce shipment item
* @throws NoSuchShipmentItemException if a commerce shipment item with the primary key could not be found
*/
public CommerceShipmentItem[] findByC_C_PrevAndNext(
long commerceShipmentItemId, long commerceShipmentId,
long commerceOrderItemId,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator)
throws NoSuchShipmentItemException;
/**
* Removes all the commerce shipment items where commerceShipmentId = ? and commerceOrderItemId = ? from the database.
*
* @param commerceShipmentId the commerce shipment ID
* @param commerceOrderItemId the commerce order item ID
*/
public void removeByC_C(long commerceShipmentId, long commerceOrderItemId);
/**
* Returns the number of commerce shipment items where commerceShipmentId = ? and commerceOrderItemId = ?.
*
* @param commerceShipmentId the commerce shipment ID
* @param commerceOrderItemId the commerce order item ID
* @return the number of matching commerce shipment items
*/
public int countByC_C(long commerceShipmentId, long commerceOrderItemId);
/**
* Returns the commerce shipment item where commerceShipmentId = ? and commerceOrderItemId = ? and commerceInventoryWarehouseId = ? or throws a NoSuchShipmentItemException
if it could not be found.
*
* @param commerceShipmentId the commerce shipment ID
* @param commerceOrderItemId the commerce order item ID
* @param commerceInventoryWarehouseId the commerce inventory warehouse ID
* @return the matching commerce shipment item
* @throws NoSuchShipmentItemException if a matching commerce shipment item could not be found
*/
public CommerceShipmentItem findByC_C_C(
long commerceShipmentId, long commerceOrderItemId,
long commerceInventoryWarehouseId)
throws NoSuchShipmentItemException;
/**
* Returns the commerce shipment item where commerceShipmentId = ? and commerceOrderItemId = ? and commerceInventoryWarehouseId = ? or returns null
if it could not be found. Uses the finder cache.
*
* @param commerceShipmentId the commerce shipment ID
* @param commerceOrderItemId the commerce order item ID
* @param commerceInventoryWarehouseId the commerce inventory warehouse ID
* @return the matching commerce shipment item, or null
if a matching commerce shipment item could not be found
*/
public CommerceShipmentItem fetchByC_C_C(
long commerceShipmentId, long commerceOrderItemId,
long commerceInventoryWarehouseId);
/**
* Returns the commerce shipment item where commerceShipmentId = ? and commerceOrderItemId = ? and commerceInventoryWarehouseId = ? or returns null
if it could not be found, optionally using the finder cache.
*
* @param commerceShipmentId the commerce shipment ID
* @param commerceOrderItemId the commerce order item ID
* @param commerceInventoryWarehouseId the commerce inventory warehouse ID
* @param useFinderCache whether to use the finder cache
* @return the matching commerce shipment item, or null
if a matching commerce shipment item could not be found
*/
public CommerceShipmentItem fetchByC_C_C(
long commerceShipmentId, long commerceOrderItemId,
long commerceInventoryWarehouseId, boolean useFinderCache);
/**
* Removes the commerce shipment item where commerceShipmentId = ? and commerceOrderItemId = ? and commerceInventoryWarehouseId = ? from the database.
*
* @param commerceShipmentId the commerce shipment ID
* @param commerceOrderItemId the commerce order item ID
* @param commerceInventoryWarehouseId the commerce inventory warehouse ID
* @return the commerce shipment item that was removed
*/
public CommerceShipmentItem removeByC_C_C(
long commerceShipmentId, long commerceOrderItemId,
long commerceInventoryWarehouseId)
throws NoSuchShipmentItemException;
/**
* Returns the number of commerce shipment items where commerceShipmentId = ? and commerceOrderItemId = ? and commerceInventoryWarehouseId = ?.
*
* @param commerceShipmentId the commerce shipment ID
* @param commerceOrderItemId the commerce order item ID
* @param commerceInventoryWarehouseId the commerce inventory warehouse ID
* @return the number of matching commerce shipment items
*/
public int countByC_C_C(
long commerceShipmentId, long commerceOrderItemId,
long commerceInventoryWarehouseId);
/**
* Returns the commerce shipment item where externalReferenceCode = ? and companyId = ? or throws a NoSuchShipmentItemException
if it could not be found.
*
* @param externalReferenceCode the external reference code
* @param companyId the company ID
* @return the matching commerce shipment item
* @throws NoSuchShipmentItemException if a matching commerce shipment item could not be found
*/
public CommerceShipmentItem findByERC_C(
String externalReferenceCode, long companyId)
throws NoSuchShipmentItemException;
/**
* Returns the commerce shipment item 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 item, or null
if a matching commerce shipment item could not be found
*/
public CommerceShipmentItem fetchByERC_C(
String externalReferenceCode, long companyId);
/**
* Returns the commerce shipment item 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 item, or null
if a matching commerce shipment item could not be found
*/
public CommerceShipmentItem fetchByERC_C(
String externalReferenceCode, long companyId, boolean useFinderCache);
/**
* Removes the commerce shipment item where externalReferenceCode = ? and companyId = ? from the database.
*
* @param externalReferenceCode the external reference code
* @param companyId the company ID
* @return the commerce shipment item that was removed
*/
public CommerceShipmentItem removeByERC_C(
String externalReferenceCode, long companyId)
throws NoSuchShipmentItemException;
/**
* Returns the number of commerce shipment items where externalReferenceCode = ? and companyId = ?.
*
* @param externalReferenceCode the external reference code
* @param companyId the company ID
* @return the number of matching commerce shipment items
*/
public int countByERC_C(String externalReferenceCode, long companyId);
/**
* Caches the commerce shipment item in the entity cache if it is enabled.
*
* @param commerceShipmentItem the commerce shipment item
*/
public void cacheResult(CommerceShipmentItem commerceShipmentItem);
/**
* Caches the commerce shipment items in the entity cache if it is enabled.
*
* @param commerceShipmentItems the commerce shipment items
*/
public void cacheResult(
java.util.List commerceShipmentItems);
/**
* Creates a new commerce shipment item with the primary key. Does not add the commerce shipment item to the database.
*
* @param commerceShipmentItemId the primary key for the new commerce shipment item
* @return the new commerce shipment item
*/
public CommerceShipmentItem create(long commerceShipmentItemId);
/**
* Removes the commerce shipment item with the primary key from the database. Also notifies the appropriate model listeners.
*
* @param commerceShipmentItemId the primary key of the commerce shipment item
* @return the commerce shipment item that was removed
* @throws NoSuchShipmentItemException if a commerce shipment item with the primary key could not be found
*/
public CommerceShipmentItem remove(long commerceShipmentItemId)
throws NoSuchShipmentItemException;
public CommerceShipmentItem updateImpl(
CommerceShipmentItem commerceShipmentItem);
/**
* Returns the commerce shipment item with the primary key or throws a NoSuchShipmentItemException
if it could not be found.
*
* @param commerceShipmentItemId the primary key of the commerce shipment item
* @return the commerce shipment item
* @throws NoSuchShipmentItemException if a commerce shipment item with the primary key could not be found
*/
public CommerceShipmentItem findByPrimaryKey(long commerceShipmentItemId)
throws NoSuchShipmentItemException;
/**
* Returns the commerce shipment item with the primary key or returns null
if it could not be found.
*
* @param commerceShipmentItemId the primary key of the commerce shipment item
* @return the commerce shipment item, or null
if a commerce shipment item with the primary key could not be found
*/
public CommerceShipmentItem fetchByPrimaryKey(long commerceShipmentItemId);
/**
* Returns all the commerce shipment items.
*
* @return the commerce shipment items
*/
public java.util.List findAll();
/**
* Returns a range of all the commerce shipment items.
*
*
* 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 CommerceShipmentItemModelImpl
.
*
*
* @param start the lower bound of the range of commerce shipment items
* @param end the upper bound of the range of commerce shipment items (not inclusive)
* @return the range of commerce shipment items
*/
public java.util.List findAll(int start, int end);
/**
* Returns an ordered range of all the commerce shipment items.
*
*
* 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 CommerceShipmentItemModelImpl
.
*
*
* @param start the lower bound of the range of commerce shipment items
* @param end the upper bound of the range of commerce shipment items (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally null
)
* @return the ordered range of commerce shipment items
*/
public java.util.List findAll(
int start, int end,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator);
/**
* Returns an ordered range of all the commerce shipment items.
*
*
* 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 CommerceShipmentItemModelImpl
.
*
*
* @param start the lower bound of the range of commerce shipment items
* @param end the upper bound of the range of commerce shipment items (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 shipment items
*/
public java.util.List findAll(
int start, int end,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator,
boolean useFinderCache);
/**
* Removes all the commerce shipment items from the database.
*/
public void removeAll();
/**
* Returns the number of commerce shipment items.
*
* @return the number of commerce shipment items
*/
public int countAll();
}