Class CommerceAvailabilityEstimateUtil

java.lang.Object
com.liferay.commerce.service.persistence.CommerceAvailabilityEstimateUtil

public class CommerceAvailabilityEstimateUtil extends Object
The persistence utility for the commerce availability estimate service. This utility wraps com.liferay.commerce.service.persistence.impl.CommerceAvailabilityEstimatePersistenceImpl 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

See Also:
Generated:
  • Constructor Details

    • CommerceAvailabilityEstimateUtil

      public CommerceAvailabilityEstimateUtil()
  • Method Details

    • clearCache

      public static void clearCache()
      See Also:
      • BasePersistence.clearCache()
    • clearCache

      public static void clearCache(CommerceAvailabilityEstimate commerceAvailabilityEstimate)
      See Also:
      • BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
    • countWithDynamicQuery

      public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      See Also:
      • BasePersistence.countWithDynamicQuery(DynamicQuery)
    • fetchByPrimaryKeys

      public static Map<Serializable,CommerceAvailabilityEstimate> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
      See Also:
      • BasePersistence.fetchByPrimaryKeys(Set)
    • findWithDynamicQuery

      public static List<CommerceAvailabilityEstimate> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery)
    • findWithDynamicQuery

      public static List<CommerceAvailabilityEstimate> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
    • findWithDynamicQuery

      public static List<CommerceAvailabilityEstimate> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceAvailabilityEstimate> orderByComparator)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
    • update

      public static CommerceAvailabilityEstimate update(CommerceAvailabilityEstimate commerceAvailabilityEstimate)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
    • update

      public static CommerceAvailabilityEstimate update(CommerceAvailabilityEstimate commerceAvailabilityEstimate, com.liferay.portal.kernel.service.ServiceContext serviceContext)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
    • findByUuid

      public static List<CommerceAvailabilityEstimate> findByUuid(String uuid)
      Returns all the commerce availability estimates where uuid = ?.
      Parameters:
      uuid - the uuid
      Returns:
      the matching commerce availability estimates
    • findByUuid

      public static List<CommerceAvailabilityEstimate> findByUuid(String uuid, int start, int end)
      Returns a range of all the commerce 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 CommerceAvailabilityEstimateModelImpl.

      Parameters:
      uuid - the uuid
      start - the lower bound of the range of commerce availability estimates
      end - the upper bound of the range of commerce availability estimates (not inclusive)
      Returns:
      the range of matching commerce availability estimates
    • findByUuid

      public static List<CommerceAvailabilityEstimate> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceAvailabilityEstimate> orderByComparator)
      Returns an ordered range of all the commerce 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 CommerceAvailabilityEstimateModelImpl.

      Parameters:
      uuid - the uuid
      start - the lower bound of the range of commerce availability estimates
      end - the upper bound of the range of commerce availability estimates (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching commerce availability estimates
    • findByUuid

      public static List<CommerceAvailabilityEstimate> findByUuid(String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceAvailabilityEstimate> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce 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 CommerceAvailabilityEstimateModelImpl.

      Parameters:
      uuid - the uuid
      start - the lower bound of the range of commerce availability estimates
      end - the upper bound of the range of commerce availability estimates (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching commerce availability estimates
    • findByUuid_First

      public static CommerceAvailabilityEstimate findByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceAvailabilityEstimate> orderByComparator) throws NoSuchAvailabilityEstimateException
      Returns the first commerce availability estimate in the ordered set where uuid = ?.
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce availability estimate
      Throws:
      NoSuchAvailabilityEstimateException - if a matching commerce availability estimate could not be found
      NoSuchAvailabilityEstimateException
    • fetchByUuid_First

      public static CommerceAvailabilityEstimate fetchByUuid_First(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceAvailabilityEstimate> orderByComparator)
      Returns the first commerce availability estimate in the ordered set where uuid = ?.
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce availability estimate, or null if a matching commerce availability estimate could not be found
    • findByUuid_Last

      public static CommerceAvailabilityEstimate findByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceAvailabilityEstimate> orderByComparator) throws NoSuchAvailabilityEstimateException
      Returns the last commerce availability estimate in the ordered set where uuid = ?.
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce availability estimate
      Throws:
      NoSuchAvailabilityEstimateException - if a matching commerce availability estimate could not be found
      NoSuchAvailabilityEstimateException
    • fetchByUuid_Last

      public static CommerceAvailabilityEstimate fetchByUuid_Last(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceAvailabilityEstimate> orderByComparator)
      Returns the last commerce availability estimate in the ordered set where uuid = ?.
      Parameters:
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce availability estimate, or null if a matching commerce availability estimate could not be found
    • findByUuid_PrevAndNext

      public static CommerceAvailabilityEstimate[] findByUuid_PrevAndNext(long commerceAvailabilityEstimateId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceAvailabilityEstimate> orderByComparator) throws NoSuchAvailabilityEstimateException
      Returns the commerce availability estimates before and after the current commerce availability estimate in the ordered set where uuid = ?.
      Parameters:
      commerceAvailabilityEstimateId - the primary key of the current commerce availability estimate
      uuid - the uuid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next commerce availability estimate
      Throws:
      NoSuchAvailabilityEstimateException - if a commerce availability estimate with the primary key could not be found
      NoSuchAvailabilityEstimateException
    • removeByUuid

      public static void removeByUuid(String uuid)
      Removes all the commerce availability estimates where uuid = ? from the database.
      Parameters:
      uuid - the uuid
    • countByUuid

      public static int countByUuid(String uuid)
      Returns the number of commerce availability estimates where uuid = ?.
      Parameters:
      uuid - the uuid
      Returns:
      the number of matching commerce availability estimates
    • findByUuid_C

      public static List<CommerceAvailabilityEstimate> findByUuid_C(String uuid, long companyId)
      Returns all the commerce availability estimates where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      Returns:
      the matching commerce availability estimates
    • findByUuid_C

      public static List<CommerceAvailabilityEstimate> findByUuid_C(String uuid, long companyId, int start, int end)
      Returns a range of all the commerce 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 CommerceAvailabilityEstimateModelImpl.

      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of commerce availability estimates
      end - the upper bound of the range of commerce availability estimates (not inclusive)
      Returns:
      the range of matching commerce availability estimates
    • findByUuid_C

      public static List<CommerceAvailabilityEstimate> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceAvailabilityEstimate> orderByComparator)
      Returns an ordered range of all the commerce 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 CommerceAvailabilityEstimateModelImpl.

      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of commerce availability estimates
      end - the upper bound of the range of commerce availability estimates (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching commerce availability estimates
    • findByUuid_C

      public static List<CommerceAvailabilityEstimate> findByUuid_C(String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceAvailabilityEstimate> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce 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 CommerceAvailabilityEstimateModelImpl.

      Parameters:
      uuid - the uuid
      companyId - the company ID
      start - the lower bound of the range of commerce availability estimates
      end - the upper bound of the range of commerce availability estimates (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching commerce availability estimates
    • findByUuid_C_First

      public static CommerceAvailabilityEstimate findByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceAvailabilityEstimate> orderByComparator) throws NoSuchAvailabilityEstimateException
      Returns the first commerce availability estimate in the ordered set where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce availability estimate
      Throws:
      NoSuchAvailabilityEstimateException - if a matching commerce availability estimate could not be found
      NoSuchAvailabilityEstimateException
    • fetchByUuid_C_First

      public static CommerceAvailabilityEstimate fetchByUuid_C_First(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceAvailabilityEstimate> orderByComparator)
      Returns the first commerce availability estimate in the ordered set where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce availability estimate, or null if a matching commerce availability estimate could not be found
    • findByUuid_C_Last

      public static CommerceAvailabilityEstimate findByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceAvailabilityEstimate> orderByComparator) throws NoSuchAvailabilityEstimateException
      Returns the last commerce availability estimate in the ordered set where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce availability estimate
      Throws:
      NoSuchAvailabilityEstimateException - if a matching commerce availability estimate could not be found
      NoSuchAvailabilityEstimateException
    • fetchByUuid_C_Last

      public static CommerceAvailabilityEstimate fetchByUuid_C_Last(String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceAvailabilityEstimate> orderByComparator)
      Returns the last commerce availability estimate in the ordered set where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce availability estimate, or null if a matching commerce availability estimate could not be found
    • findByUuid_C_PrevAndNext

      public static CommerceAvailabilityEstimate[] findByUuid_C_PrevAndNext(long commerceAvailabilityEstimateId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceAvailabilityEstimate> orderByComparator) throws NoSuchAvailabilityEstimateException
      Returns the commerce availability estimates before and after the current commerce availability estimate in the ordered set where uuid = ? and companyId = ?.
      Parameters:
      commerceAvailabilityEstimateId - the primary key of the current commerce availability estimate
      uuid - the uuid
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next commerce availability estimate
      Throws:
      NoSuchAvailabilityEstimateException - if a commerce availability estimate with the primary key could not be found
      NoSuchAvailabilityEstimateException
    • removeByUuid_C

      public static void removeByUuid_C(String uuid, long companyId)
      Removes all the commerce availability estimates where uuid = ? and companyId = ? from the database.
      Parameters:
      uuid - the uuid
      companyId - the company ID
    • countByUuid_C

      public static int countByUuid_C(String uuid, long companyId)
      Returns the number of commerce availability estimates where uuid = ? and companyId = ?.
      Parameters:
      uuid - the uuid
      companyId - the company ID
      Returns:
      the number of matching commerce availability estimates
    • findByCompanyId

      public static List<CommerceAvailabilityEstimate> findByCompanyId(long companyId)
      Returns all the commerce availability estimates where companyId = ?.
      Parameters:
      companyId - the company ID
      Returns:
      the matching commerce availability estimates
    • findByCompanyId

      public static List<CommerceAvailabilityEstimate> findByCompanyId(long companyId, int start, int end)
      Returns a range of all the commerce availability estimates where 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 CommerceAvailabilityEstimateModelImpl.

      Parameters:
      companyId - the company ID
      start - the lower bound of the range of commerce availability estimates
      end - the upper bound of the range of commerce availability estimates (not inclusive)
      Returns:
      the range of matching commerce availability estimates
    • findByCompanyId

      public static List<CommerceAvailabilityEstimate> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceAvailabilityEstimate> orderByComparator)
      Returns an ordered range of all the commerce availability estimates where 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 CommerceAvailabilityEstimateModelImpl.

      Parameters:
      companyId - the company ID
      start - the lower bound of the range of commerce availability estimates
      end - the upper bound of the range of commerce availability estimates (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching commerce availability estimates
    • findByCompanyId

      public static List<CommerceAvailabilityEstimate> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceAvailabilityEstimate> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce availability estimates where 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 CommerceAvailabilityEstimateModelImpl.

      Parameters:
      companyId - the company ID
      start - the lower bound of the range of commerce availability estimates
      end - the upper bound of the range of commerce availability estimates (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching commerce availability estimates
    • findByCompanyId_First

      public static CommerceAvailabilityEstimate findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceAvailabilityEstimate> orderByComparator) throws NoSuchAvailabilityEstimateException
      Returns the first commerce availability estimate in the ordered set where companyId = ?.
      Parameters:
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce availability estimate
      Throws:
      NoSuchAvailabilityEstimateException - if a matching commerce availability estimate could not be found
      NoSuchAvailabilityEstimateException
    • fetchByCompanyId_First

      public static CommerceAvailabilityEstimate fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceAvailabilityEstimate> orderByComparator)
      Returns the first commerce availability estimate in the ordered set where companyId = ?.
      Parameters:
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching commerce availability estimate, or null if a matching commerce availability estimate could not be found
    • findByCompanyId_Last

      public static CommerceAvailabilityEstimate findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceAvailabilityEstimate> orderByComparator) throws NoSuchAvailabilityEstimateException
      Returns the last commerce availability estimate in the ordered set where companyId = ?.
      Parameters:
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce availability estimate
      Throws:
      NoSuchAvailabilityEstimateException - if a matching commerce availability estimate could not be found
      NoSuchAvailabilityEstimateException
    • fetchByCompanyId_Last

      public static CommerceAvailabilityEstimate fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceAvailabilityEstimate> orderByComparator)
      Returns the last commerce availability estimate in the ordered set where companyId = ?.
      Parameters:
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching commerce availability estimate, or null if a matching commerce availability estimate could not be found
    • findByCompanyId_PrevAndNext

      public static CommerceAvailabilityEstimate[] findByCompanyId_PrevAndNext(long commerceAvailabilityEstimateId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceAvailabilityEstimate> orderByComparator) throws NoSuchAvailabilityEstimateException
      Returns the commerce availability estimates before and after the current commerce availability estimate in the ordered set where companyId = ?.
      Parameters:
      commerceAvailabilityEstimateId - the primary key of the current commerce availability estimate
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next commerce availability estimate
      Throws:
      NoSuchAvailabilityEstimateException - if a commerce availability estimate with the primary key could not be found
      NoSuchAvailabilityEstimateException
    • removeByCompanyId

      public static void removeByCompanyId(long companyId)
      Removes all the commerce availability estimates where companyId = ? from the database.
      Parameters:
      companyId - the company ID
    • countByCompanyId

      public static int countByCompanyId(long companyId)
      Returns the number of commerce availability estimates where companyId = ?.
      Parameters:
      companyId - the company ID
      Returns:
      the number of matching commerce availability estimates
    • cacheResult

      public static void cacheResult(CommerceAvailabilityEstimate commerceAvailabilityEstimate)
      Caches the commerce availability estimate in the entity cache if it is enabled.
      Parameters:
      commerceAvailabilityEstimate - the commerce availability estimate
    • cacheResult

      public static void cacheResult(List<CommerceAvailabilityEstimate> commerceAvailabilityEstimates)
      Caches the commerce availability estimates in the entity cache if it is enabled.
      Parameters:
      commerceAvailabilityEstimates - the commerce availability estimates
    • create

      public static CommerceAvailabilityEstimate create(long commerceAvailabilityEstimateId)
      Creates a new commerce availability estimate with the primary key. Does not add the commerce availability estimate to the database.
      Parameters:
      commerceAvailabilityEstimateId - the primary key for the new commerce availability estimate
      Returns:
      the new commerce availability estimate
    • remove

      public static CommerceAvailabilityEstimate remove(long commerceAvailabilityEstimateId) throws NoSuchAvailabilityEstimateException
      Removes the commerce availability estimate with the primary key from the database. Also notifies the appropriate model listeners.
      Parameters:
      commerceAvailabilityEstimateId - the primary key of the commerce availability estimate
      Returns:
      the commerce availability estimate that was removed
      Throws:
      NoSuchAvailabilityEstimateException - if a commerce availability estimate with the primary key could not be found
      NoSuchAvailabilityEstimateException
    • updateImpl

      public static CommerceAvailabilityEstimate updateImpl(CommerceAvailabilityEstimate commerceAvailabilityEstimate)
    • findByPrimaryKey

      public static CommerceAvailabilityEstimate findByPrimaryKey(long commerceAvailabilityEstimateId) throws NoSuchAvailabilityEstimateException
      Returns the commerce availability estimate with the primary key or throws a NoSuchAvailabilityEstimateException if it could not be found.
      Parameters:
      commerceAvailabilityEstimateId - the primary key of the commerce availability estimate
      Returns:
      the commerce availability estimate
      Throws:
      NoSuchAvailabilityEstimateException - if a commerce availability estimate with the primary key could not be found
      NoSuchAvailabilityEstimateException
    • fetchByPrimaryKey

      public static CommerceAvailabilityEstimate fetchByPrimaryKey(long commerceAvailabilityEstimateId)
      Returns the commerce availability estimate with the primary key or returns null if it could not be found.
      Parameters:
      commerceAvailabilityEstimateId - the primary key of the commerce availability estimate
      Returns:
      the commerce availability estimate, or null if a commerce availability estimate with the primary key could not be found
    • findAll

      public static List<CommerceAvailabilityEstimate> findAll()
      Returns all the commerce availability estimates.
      Returns:
      the commerce availability estimates
    • findAll

      public static List<CommerceAvailabilityEstimate> findAll(int start, int end)
      Returns a range of all the commerce 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 CommerceAvailabilityEstimateModelImpl.

      Parameters:
      start - the lower bound of the range of commerce availability estimates
      end - the upper bound of the range of commerce availability estimates (not inclusive)
      Returns:
      the range of commerce availability estimates
    • findAll

      public static List<CommerceAvailabilityEstimate> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceAvailabilityEstimate> orderByComparator)
      Returns an ordered range of all the commerce 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 CommerceAvailabilityEstimateModelImpl.

      Parameters:
      start - the lower bound of the range of commerce availability estimates
      end - the upper bound of the range of commerce availability estimates (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of commerce availability estimates
    • findAll

      public static List<CommerceAvailabilityEstimate> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceAvailabilityEstimate> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the commerce 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 CommerceAvailabilityEstimateModelImpl.

      Parameters:
      start - the lower bound of the range of commerce availability estimates
      end - the upper bound of the range of commerce availability estimates (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of commerce availability estimates
    • removeAll

      public static void removeAll()
      Removes all the commerce availability estimates from the database.
    • countAll

      public static int countAll()
      Returns the number of commerce availability estimates.
      Returns:
      the number of commerce availability estimates
    • getPersistence

      public static CommerceAvailabilityEstimatePersistence getPersistence()
    • setPersistence

      public static void setPersistence(CommerceAvailabilityEstimatePersistence persistence)