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

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

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

package com.liferay.commerce.service.persistence;

import com.liferay.commerce.model.CPDAvailabilityEstimate;
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 cpd availability estimate service. This utility wraps com.liferay.commerce.service.persistence.impl.CPDAvailabilityEstimatePersistenceImpl 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 CPDAvailabilityEstimatePersistence * @generated */ public class CPDAvailabilityEstimateUtil { /* * 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( CPDAvailabilityEstimate cpdAvailabilityEstimate) { getPersistence().clearCache(cpdAvailabilityEstimate); } /** * @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 CPDAvailabilityEstimate update( CPDAvailabilityEstimate cpdAvailabilityEstimate) { return getPersistence().update(cpdAvailabilityEstimate); } /** * @see com.liferay.portal.kernel.service.persistence.BasePersistence#update(com.liferay.portal.kernel.model.BaseModel, ServiceContext) */ public static CPDAvailabilityEstimate update( CPDAvailabilityEstimate cpdAvailabilityEstimate, ServiceContext serviceContext) { return getPersistence().update(cpdAvailabilityEstimate, serviceContext); } /** * Returns all the cpd availability estimates where uuid = ?. * * @param uuid the uuid * @return the matching cpd availability estimates */ public static List findByUuid(String uuid) { return getPersistence().findByUuid(uuid); } /** * Returns a range of all the cpd availability estimates 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 CPDAvailabilityEstimateModelImpl. *

* * @param uuid the uuid * @param start the lower bound of the range of cpd availability estimates * @param end the upper bound of the range of cpd availability estimates (not inclusive) * @return the range of matching cpd availability estimates */ public static List findByUuid( String uuid, int start, int end) { return getPersistence().findByUuid(uuid, start, end); } /** * Returns an ordered range of all the cpd availability estimates 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 CPDAvailabilityEstimateModelImpl. *

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

* * @param uuid the uuid * @param start the lower bound of the range of cpd availability estimates * @param end the upper bound of the range of cpd availability estimates (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 cpd availability estimates */ 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 cpd availability estimate 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 cpd availability estimate * @throws NoSuchCPDAvailabilityEstimateException if a matching cpd availability estimate could not be found */ public static CPDAvailabilityEstimate findByUuid_First( String uuid, OrderByComparator orderByComparator) throws com.liferay.commerce.exception. NoSuchCPDAvailabilityEstimateException { return getPersistence().findByUuid_First(uuid, orderByComparator); } /** * Returns the first cpd availability estimate 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 cpd availability estimate, or null if a matching cpd availability estimate could not be found */ public static CPDAvailabilityEstimate fetchByUuid_First( String uuid, OrderByComparator orderByComparator) { return getPersistence().fetchByUuid_First(uuid, orderByComparator); } /** * Returns the last cpd availability estimate 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 cpd availability estimate * @throws NoSuchCPDAvailabilityEstimateException if a matching cpd availability estimate could not be found */ public static CPDAvailabilityEstimate findByUuid_Last( String uuid, OrderByComparator orderByComparator) throws com.liferay.commerce.exception. NoSuchCPDAvailabilityEstimateException { return getPersistence().findByUuid_Last(uuid, orderByComparator); } /** * Returns the last cpd availability estimate 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 cpd availability estimate, or null if a matching cpd availability estimate could not be found */ public static CPDAvailabilityEstimate fetchByUuid_Last( String uuid, OrderByComparator orderByComparator) { return getPersistence().fetchByUuid_Last(uuid, orderByComparator); } /** * Returns the cpd availability estimates before and after the current cpd availability estimate in the ordered set where uuid = ?. * * @param CPDAvailabilityEstimateId the primary key of the current cpd availability estimate * @param uuid the uuid * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next cpd availability estimate * @throws NoSuchCPDAvailabilityEstimateException if a cpd availability estimate with the primary key could not be found */ public static CPDAvailabilityEstimate[] findByUuid_PrevAndNext( long CPDAvailabilityEstimateId, String uuid, OrderByComparator orderByComparator) throws com.liferay.commerce.exception. NoSuchCPDAvailabilityEstimateException { return getPersistence().findByUuid_PrevAndNext( CPDAvailabilityEstimateId, uuid, orderByComparator); } /** * Removes all the cpd availability estimates where uuid = ? from the database. * * @param uuid the uuid */ public static void removeByUuid(String uuid) { getPersistence().removeByUuid(uuid); } /** * Returns the number of cpd availability estimates where uuid = ?. * * @param uuid the uuid * @return the number of matching cpd availability estimates */ public static int countByUuid(String uuid) { return getPersistence().countByUuid(uuid); } /** * Returns all the cpd availability estimates where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @return the matching cpd availability estimates */ public static List findByUuid_C( String uuid, long companyId) { return getPersistence().findByUuid_C(uuid, companyId); } /** * Returns a range of all the cpd availability estimates 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 CPDAvailabilityEstimateModelImpl. *

* * @param uuid the uuid * @param companyId the company ID * @param start the lower bound of the range of cpd availability estimates * @param end the upper bound of the range of cpd availability estimates (not inclusive) * @return the range of matching cpd availability estimates */ 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 cpd availability estimates 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 CPDAvailabilityEstimateModelImpl. *

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

* * @param uuid the uuid * @param companyId the company ID * @param start the lower bound of the range of cpd availability estimates * @param end the upper bound of the range of cpd availability estimates (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 cpd availability estimates */ 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 cpd availability estimate 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 cpd availability estimate * @throws NoSuchCPDAvailabilityEstimateException if a matching cpd availability estimate could not be found */ public static CPDAvailabilityEstimate findByUuid_C_First( String uuid, long companyId, OrderByComparator orderByComparator) throws com.liferay.commerce.exception. NoSuchCPDAvailabilityEstimateException { return getPersistence().findByUuid_C_First( uuid, companyId, orderByComparator); } /** * Returns the first cpd availability estimate 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 cpd availability estimate, or null if a matching cpd availability estimate could not be found */ public static CPDAvailabilityEstimate fetchByUuid_C_First( String uuid, long companyId, OrderByComparator orderByComparator) { return getPersistence().fetchByUuid_C_First( uuid, companyId, orderByComparator); } /** * Returns the last cpd availability estimate 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 cpd availability estimate * @throws NoSuchCPDAvailabilityEstimateException if a matching cpd availability estimate could not be found */ public static CPDAvailabilityEstimate findByUuid_C_Last( String uuid, long companyId, OrderByComparator orderByComparator) throws com.liferay.commerce.exception. NoSuchCPDAvailabilityEstimateException { return getPersistence().findByUuid_C_Last( uuid, companyId, orderByComparator); } /** * Returns the last cpd availability estimate 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 cpd availability estimate, or null if a matching cpd availability estimate could not be found */ public static CPDAvailabilityEstimate fetchByUuid_C_Last( String uuid, long companyId, OrderByComparator orderByComparator) { return getPersistence().fetchByUuid_C_Last( uuid, companyId, orderByComparator); } /** * Returns the cpd availability estimates before and after the current cpd availability estimate in the ordered set where uuid = ? and companyId = ?. * * @param CPDAvailabilityEstimateId the primary key of the current cpd availability estimate * @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 cpd availability estimate * @throws NoSuchCPDAvailabilityEstimateException if a cpd availability estimate with the primary key could not be found */ public static CPDAvailabilityEstimate[] findByUuid_C_PrevAndNext( long CPDAvailabilityEstimateId, String uuid, long companyId, OrderByComparator orderByComparator) throws com.liferay.commerce.exception. NoSuchCPDAvailabilityEstimateException { return getPersistence().findByUuid_C_PrevAndNext( CPDAvailabilityEstimateId, uuid, companyId, orderByComparator); } /** * Removes all the cpd availability estimates 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 cpd availability estimates where uuid = ? and companyId = ?. * * @param uuid the uuid * @param companyId the company ID * @return the number of matching cpd availability estimates */ public static int countByUuid_C(String uuid, long companyId) { return getPersistence().countByUuid_C(uuid, companyId); } /** * Returns all the cpd availability estimates where commerceAvailabilityEstimateId = ?. * * @param commerceAvailabilityEstimateId the commerce availability estimate ID * @return the matching cpd availability estimates */ public static List findByCommerceAvailabilityEstimateId( long commerceAvailabilityEstimateId) { return getPersistence().findByCommerceAvailabilityEstimateId( commerceAvailabilityEstimateId); } /** * Returns a range of all the cpd availability estimates where commerceAvailabilityEstimateId = ?. * *

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

* * @param commerceAvailabilityEstimateId the commerce availability estimate ID * @param start the lower bound of the range of cpd availability estimates * @param end the upper bound of the range of cpd availability estimates (not inclusive) * @return the range of matching cpd availability estimates */ public static List findByCommerceAvailabilityEstimateId( long commerceAvailabilityEstimateId, int start, int end) { return getPersistence().findByCommerceAvailabilityEstimateId( commerceAvailabilityEstimateId, start, end); } /** * Returns an ordered range of all the cpd availability estimates where commerceAvailabilityEstimateId = ?. * *

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

* * @param commerceAvailabilityEstimateId the commerce availability estimate ID * @param start the lower bound of the range of cpd availability estimates * @param end the upper bound of the range of cpd availability estimates (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching cpd availability estimates */ public static List findByCommerceAvailabilityEstimateId( long commerceAvailabilityEstimateId, int start, int end, OrderByComparator orderByComparator) { return getPersistence().findByCommerceAvailabilityEstimateId( commerceAvailabilityEstimateId, start, end, orderByComparator); } /** * Returns an ordered range of all the cpd availability estimates where commerceAvailabilityEstimateId = ?. * *

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

* * @param commerceAvailabilityEstimateId the commerce availability estimate ID * @param start the lower bound of the range of cpd availability estimates * @param end the upper bound of the range of cpd availability estimates (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 cpd availability estimates */ public static List findByCommerceAvailabilityEstimateId( long commerceAvailabilityEstimateId, int start, int end, OrderByComparator orderByComparator, boolean useFinderCache) { return getPersistence().findByCommerceAvailabilityEstimateId( commerceAvailabilityEstimateId, start, end, orderByComparator, useFinderCache); } /** * Returns the first cpd availability estimate in the ordered set where commerceAvailabilityEstimateId = ?. * * @param commerceAvailabilityEstimateId the commerce availability estimate ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching cpd availability estimate * @throws NoSuchCPDAvailabilityEstimateException if a matching cpd availability estimate could not be found */ public static CPDAvailabilityEstimate findByCommerceAvailabilityEstimateId_First( long commerceAvailabilityEstimateId, OrderByComparator orderByComparator) throws com.liferay.commerce.exception. NoSuchCPDAvailabilityEstimateException { return getPersistence().findByCommerceAvailabilityEstimateId_First( commerceAvailabilityEstimateId, orderByComparator); } /** * Returns the first cpd availability estimate in the ordered set where commerceAvailabilityEstimateId = ?. * * @param commerceAvailabilityEstimateId the commerce availability estimate ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching cpd availability estimate, or null if a matching cpd availability estimate could not be found */ public static CPDAvailabilityEstimate fetchByCommerceAvailabilityEstimateId_First( long commerceAvailabilityEstimateId, OrderByComparator orderByComparator) { return getPersistence().fetchByCommerceAvailabilityEstimateId_First( commerceAvailabilityEstimateId, orderByComparator); } /** * Returns the last cpd availability estimate in the ordered set where commerceAvailabilityEstimateId = ?. * * @param commerceAvailabilityEstimateId the commerce availability estimate ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching cpd availability estimate * @throws NoSuchCPDAvailabilityEstimateException if a matching cpd availability estimate could not be found */ public static CPDAvailabilityEstimate findByCommerceAvailabilityEstimateId_Last( long commerceAvailabilityEstimateId, OrderByComparator orderByComparator) throws com.liferay.commerce.exception. NoSuchCPDAvailabilityEstimateException { return getPersistence().findByCommerceAvailabilityEstimateId_Last( commerceAvailabilityEstimateId, orderByComparator); } /** * Returns the last cpd availability estimate in the ordered set where commerceAvailabilityEstimateId = ?. * * @param commerceAvailabilityEstimateId the commerce availability estimate ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching cpd availability estimate, or null if a matching cpd availability estimate could not be found */ public static CPDAvailabilityEstimate fetchByCommerceAvailabilityEstimateId_Last( long commerceAvailabilityEstimateId, OrderByComparator orderByComparator) { return getPersistence().fetchByCommerceAvailabilityEstimateId_Last( commerceAvailabilityEstimateId, orderByComparator); } /** * Returns the cpd availability estimates before and after the current cpd availability estimate in the ordered set where commerceAvailabilityEstimateId = ?. * * @param CPDAvailabilityEstimateId the primary key of the current cpd availability estimate * @param commerceAvailabilityEstimateId the commerce availability estimate ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next cpd availability estimate * @throws NoSuchCPDAvailabilityEstimateException if a cpd availability estimate with the primary key could not be found */ public static CPDAvailabilityEstimate[] findByCommerceAvailabilityEstimateId_PrevAndNext( long CPDAvailabilityEstimateId, long commerceAvailabilityEstimateId, OrderByComparator orderByComparator) throws com.liferay.commerce.exception. NoSuchCPDAvailabilityEstimateException { return getPersistence(). findByCommerceAvailabilityEstimateId_PrevAndNext( CPDAvailabilityEstimateId, commerceAvailabilityEstimateId, orderByComparator); } /** * Removes all the cpd availability estimates where commerceAvailabilityEstimateId = ? from the database. * * @param commerceAvailabilityEstimateId the commerce availability estimate ID */ public static void removeByCommerceAvailabilityEstimateId( long commerceAvailabilityEstimateId) { getPersistence().removeByCommerceAvailabilityEstimateId( commerceAvailabilityEstimateId); } /** * Returns the number of cpd availability estimates where commerceAvailabilityEstimateId = ?. * * @param commerceAvailabilityEstimateId the commerce availability estimate ID * @return the number of matching cpd availability estimates */ public static int countByCommerceAvailabilityEstimateId( long commerceAvailabilityEstimateId) { return getPersistence().countByCommerceAvailabilityEstimateId( commerceAvailabilityEstimateId); } /** * Returns the cpd availability estimate where CProductId = ? or throws a NoSuchCPDAvailabilityEstimateException if it could not be found. * * @param CProductId the c product ID * @return the matching cpd availability estimate * @throws NoSuchCPDAvailabilityEstimateException if a matching cpd availability estimate could not be found */ public static CPDAvailabilityEstimate findByCProductId(long CProductId) throws com.liferay.commerce.exception. NoSuchCPDAvailabilityEstimateException { return getPersistence().findByCProductId(CProductId); } /** * Returns the cpd availability estimate where CProductId = ? or returns null if it could not be found. Uses the finder cache. * * @param CProductId the c product ID * @return the matching cpd availability estimate, or null if a matching cpd availability estimate could not be found */ public static CPDAvailabilityEstimate fetchByCProductId(long CProductId) { return getPersistence().fetchByCProductId(CProductId); } /** * Returns the cpd availability estimate where CProductId = ? or returns null if it could not be found, optionally using the finder cache. * * @param CProductId the c product ID * @param useFinderCache whether to use the finder cache * @return the matching cpd availability estimate, or null if a matching cpd availability estimate could not be found */ public static CPDAvailabilityEstimate fetchByCProductId( long CProductId, boolean useFinderCache) { return getPersistence().fetchByCProductId(CProductId, useFinderCache); } /** * Removes the cpd availability estimate where CProductId = ? from the database. * * @param CProductId the c product ID * @return the cpd availability estimate that was removed */ public static CPDAvailabilityEstimate removeByCProductId(long CProductId) throws com.liferay.commerce.exception. NoSuchCPDAvailabilityEstimateException { return getPersistence().removeByCProductId(CProductId); } /** * Returns the number of cpd availability estimates where CProductId = ?. * * @param CProductId the c product ID * @return the number of matching cpd availability estimates */ public static int countByCProductId(long CProductId) { return getPersistence().countByCProductId(CProductId); } /** * Caches the cpd availability estimate in the entity cache if it is enabled. * * @param cpdAvailabilityEstimate the cpd availability estimate */ public static void cacheResult( CPDAvailabilityEstimate cpdAvailabilityEstimate) { getPersistence().cacheResult(cpdAvailabilityEstimate); } /** * Caches the cpd availability estimates in the entity cache if it is enabled. * * @param cpdAvailabilityEstimates the cpd availability estimates */ public static void cacheResult( List cpdAvailabilityEstimates) { getPersistence().cacheResult(cpdAvailabilityEstimates); } /** * Creates a new cpd availability estimate with the primary key. Does not add the cpd availability estimate to the database. * * @param CPDAvailabilityEstimateId the primary key for the new cpd availability estimate * @return the new cpd availability estimate */ public static CPDAvailabilityEstimate create( long CPDAvailabilityEstimateId) { return getPersistence().create(CPDAvailabilityEstimateId); } /** * Removes the cpd availability estimate with the primary key from the database. Also notifies the appropriate model listeners. * * @param CPDAvailabilityEstimateId the primary key of the cpd availability estimate * @return the cpd availability estimate that was removed * @throws NoSuchCPDAvailabilityEstimateException if a cpd availability estimate with the primary key could not be found */ public static CPDAvailabilityEstimate remove(long CPDAvailabilityEstimateId) throws com.liferay.commerce.exception. NoSuchCPDAvailabilityEstimateException { return getPersistence().remove(CPDAvailabilityEstimateId); } public static CPDAvailabilityEstimate updateImpl( CPDAvailabilityEstimate cpdAvailabilityEstimate) { return getPersistence().updateImpl(cpdAvailabilityEstimate); } /** * Returns the cpd availability estimate with the primary key or throws a NoSuchCPDAvailabilityEstimateException if it could not be found. * * @param CPDAvailabilityEstimateId the primary key of the cpd availability estimate * @return the cpd availability estimate * @throws NoSuchCPDAvailabilityEstimateException if a cpd availability estimate with the primary key could not be found */ public static CPDAvailabilityEstimate findByPrimaryKey( long CPDAvailabilityEstimateId) throws com.liferay.commerce.exception. NoSuchCPDAvailabilityEstimateException { return getPersistence().findByPrimaryKey(CPDAvailabilityEstimateId); } /** * Returns the cpd availability estimate with the primary key or returns null if it could not be found. * * @param CPDAvailabilityEstimateId the primary key of the cpd availability estimate * @return the cpd availability estimate, or null if a cpd availability estimate with the primary key could not be found */ public static CPDAvailabilityEstimate fetchByPrimaryKey( long CPDAvailabilityEstimateId) { return getPersistence().fetchByPrimaryKey(CPDAvailabilityEstimateId); } /** * Returns all the cpd availability estimates. * * @return the cpd availability estimates */ public static List findAll() { return getPersistence().findAll(); } /** * Returns a range of all the cpd availability estimates. * *

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

* * @param start the lower bound of the range of cpd availability estimates * @param end the upper bound of the range of cpd availability estimates (not inclusive) * @return the range of cpd availability estimates */ public static List findAll(int start, int end) { return getPersistence().findAll(start, end); } /** * Returns an ordered range of all the cpd availability estimates. * *

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

* * @param start the lower bound of the range of cpd availability estimates * @param end the upper bound of the range of cpd availability estimates (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of cpd availability estimates */ public static List findAll( int start, int end, OrderByComparator orderByComparator) { return getPersistence().findAll(start, end, orderByComparator); } /** * Returns an ordered range of all the cpd availability estimates. * *

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

* * @param start the lower bound of the range of cpd availability estimates * @param end the upper bound of the range of cpd availability estimates (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 cpd availability estimates */ public static List findAll( int start, int end, OrderByComparator orderByComparator, boolean useFinderCache) { return getPersistence().findAll( start, end, orderByComparator, useFinderCache); } /** * Removes all the cpd availability estimates from the database. */ public static void removeAll() { getPersistence().removeAll(); } /** * Returns the number of cpd availability estimates. * * @return the number of cpd availability estimates */ public static int countAll() { return getPersistence().countAll(); } public static CPDAvailabilityEstimatePersistence getPersistence() { return _persistence; } public static void setPersistence( CPDAvailabilityEstimatePersistence persistence) { _persistence = persistence; } private static volatile CPDAvailabilityEstimatePersistence _persistence; }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy