Class CommerceAvailabilityEstimateUtil
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
cacheResult
(CommerceAvailabilityEstimate commerceAvailabilityEstimate) Caches the commerce availability estimate in the entity cache if it is enabled.static void
cacheResult
(List<CommerceAvailabilityEstimate> commerceAvailabilityEstimates) Caches the commerce availability estimates in the entity cache if it is enabled.static void
static void
clearCache
(CommerceAvailabilityEstimate commerceAvailabilityEstimate) static int
countAll()
Returns the number of commerce availability estimates.static int
countByCompanyId
(long companyId) Returns the number of commerce availability estimates where companyId = ?.static int
countByUuid
(String uuid) Returns the number of commerce availability estimates where uuid = ?.static int
countByUuid_C
(String uuid, long companyId) Returns the number of commerce availability estimates where uuid = ? and companyId = ?.static long
countWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static CommerceAvailabilityEstimate
create
(long commerceAvailabilityEstimateId) Creates a new commerce availability estimate with the primary key.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 = ?.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 = ?.static CommerceAvailabilityEstimate
fetchByPrimaryKey
(long commerceAvailabilityEstimateId) Returns the commerce availability estimate with the primary key or returnsnull
if it could not be found.fetchByPrimaryKeys
(Set<Serializable> primaryKeys) 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 = ?.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 = ?.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 = ?.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 = ?.static List<CommerceAvailabilityEstimate>
findAll()
Returns all the commerce availability estimates.static List<CommerceAvailabilityEstimate>
findAll
(int start, int end) Returns a range of all the commerce availability estimates.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.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.static List<CommerceAvailabilityEstimate>
findByCompanyId
(long companyId) Returns all the commerce availability estimates where companyId = ?.static List<CommerceAvailabilityEstimate>
findByCompanyId
(long companyId, int start, int end) Returns a range of all the commerce availability estimates where companyId = ?.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 = ?.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 = ?.static CommerceAvailabilityEstimate
findByCompanyId_First
(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceAvailabilityEstimate> orderByComparator) Returns the first commerce availability estimate in the ordered set where companyId = ?.static CommerceAvailabilityEstimate
findByCompanyId_Last
(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceAvailabilityEstimate> orderByComparator) Returns the last commerce availability estimate in the ordered set where companyId = ?.static CommerceAvailabilityEstimate[]
findByCompanyId_PrevAndNext
(long commerceAvailabilityEstimateId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceAvailabilityEstimate> orderByComparator) Returns the commerce availability estimates before and after the current commerce availability estimate in the ordered set where companyId = ?.static CommerceAvailabilityEstimate
findByPrimaryKey
(long commerceAvailabilityEstimateId) Returns the commerce availability estimate with the primary key or throws aNoSuchAvailabilityEstimateException
if it could not be found.static List<CommerceAvailabilityEstimate>
findByUuid
(String uuid) Returns all the commerce availability estimates where uuid = ?.static List<CommerceAvailabilityEstimate>
findByUuid
(String uuid, int start, int end) Returns a range of all the commerce availability estimates where uuid = ?.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 = ?.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 = ?.static List<CommerceAvailabilityEstimate>
findByUuid_C
(String uuid, long companyId) Returns all the commerce availability estimates where uuid = ? and companyId = ?.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 = ?.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 = ?.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 = ?.static CommerceAvailabilityEstimate
findByUuid_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 = ?.static CommerceAvailabilityEstimate
findByUuid_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 = ?.static CommerceAvailabilityEstimate[]
findByUuid_C_PrevAndNext
(long commerceAvailabilityEstimateId, String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceAvailabilityEstimate> orderByComparator) Returns the commerce availability estimates before and after the current commerce availability estimate in the ordered set where uuid = ? and companyId = ?.static CommerceAvailabilityEstimate
findByUuid_First
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceAvailabilityEstimate> orderByComparator) Returns the first commerce availability estimate in the ordered set where uuid = ?.static CommerceAvailabilityEstimate
findByUuid_Last
(String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceAvailabilityEstimate> orderByComparator) Returns the last commerce availability estimate in the ordered set where uuid = ?.static CommerceAvailabilityEstimate[]
findByUuid_PrevAndNext
(long commerceAvailabilityEstimateId, String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceAvailabilityEstimate> orderByComparator) Returns the commerce availability estimates before and after the current commerce availability estimate in the ordered set where uuid = ?.static List<CommerceAvailabilityEstimate>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<CommerceAvailabilityEstimate>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<CommerceAvailabilityEstimate>
findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceAvailabilityEstimate> orderByComparator) static CommerceAvailabilityEstimate
remove
(long commerceAvailabilityEstimateId) Removes the commerce availability estimate with the primary key from the database.static void
Removes all the commerce availability estimates from the database.static void
removeByCompanyId
(long companyId) Removes all the commerce availability estimates where companyId = ? from the database.static void
removeByUuid
(String uuid) Removes all the commerce availability estimates where uuid = ? from the database.static void
removeByUuid_C
(String uuid, long companyId) Removes all the commerce availability estimates where uuid = ? and companyId = ? from the database.static void
setPersistence
(CommerceAvailabilityEstimatePersistence persistence) static CommerceAvailabilityEstimate
update
(CommerceAvailabilityEstimate commerceAvailabilityEstimate) static CommerceAvailabilityEstimate
update
(CommerceAvailabilityEstimate commerceAvailabilityEstimate, com.liferay.portal.kernel.service.ServiceContext serviceContext) static CommerceAvailabilityEstimate
updateImpl
(CommerceAvailabilityEstimate commerceAvailabilityEstimate)
-
Constructor Details
-
CommerceAvailabilityEstimateUtil
public CommerceAvailabilityEstimateUtil()
-
-
Method Details
-
clearCache
public static void clearCache()- See Also:
-
BasePersistence.clearCache()
-
clearCache
- 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
Returns all the commerce availability estimates where uuid = ?.- Parameters:
uuid
- the uuid- Returns:
- the matching commerce availability estimates
-
findByUuid
Returns a range of all the commerce availability estimates where uuid = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceAvailabilityEstimateModelImpl
.- Parameters:
uuid
- the uuidstart
- the lower bound of the range of commerce availability estimatesend
- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceAvailabilityEstimateModelImpl
.- Parameters:
uuid
- the uuidstart
- the lower bound of the range of commerce availability estimatesend
- the upper bound of the range of commerce availability estimates (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceAvailabilityEstimateModelImpl
.- Parameters:
uuid
- the uuidstart
- the lower bound of the range of commerce availability estimatesend
- the upper bound of the range of commerce availability estimates (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)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 uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce availability estimate
- Throws:
NoSuchAvailabilityEstimateException
- if a matching commerce availability estimate could not be foundNoSuchAvailabilityEstimateException
-
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 uuidorderByComparator
- the comparator to order the set by (optionallynull
)- 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 uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce availability estimate
- Throws:
NoSuchAvailabilityEstimateException
- if a matching commerce availability estimate could not be foundNoSuchAvailabilityEstimateException
-
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 uuidorderByComparator
- the comparator to order the set by (optionallynull
)- 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 estimateuuid
- the uuidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce availability estimate
- Throws:
NoSuchAvailabilityEstimateException
- if a commerce availability estimate with the primary key could not be foundNoSuchAvailabilityEstimateException
-
removeByUuid
Removes all the commerce availability estimates where uuid = ? from the database.- Parameters:
uuid
- the uuid
-
countByUuid
Returns the number of commerce availability estimates where uuid = ?.- Parameters:
uuid
- the uuid- Returns:
- the number of matching commerce availability estimates
-
findByUuid_C
Returns all the commerce availability estimates where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceAvailabilityEstimateModelImpl
.- Parameters:
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of commerce availability estimatesend
- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceAvailabilityEstimateModelImpl
.- Parameters:
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of commerce availability estimatesend
- the upper bound of the range of commerce availability estimates (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceAvailabilityEstimateModelImpl
.- Parameters:
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of commerce availability estimatesend
- the upper bound of the range of commerce availability estimates (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)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 uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce availability estimate
- Throws:
NoSuchAvailabilityEstimateException
- if a matching commerce availability estimate could not be foundNoSuchAvailabilityEstimateException
-
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 uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- 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 uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce availability estimate
- Throws:
NoSuchAvailabilityEstimateException
- if a matching commerce availability estimate could not be foundNoSuchAvailabilityEstimateException
-
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 uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- 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 estimateuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce availability estimate
- Throws:
NoSuchAvailabilityEstimateException
- if a commerce availability estimate with the primary key could not be foundNoSuchAvailabilityEstimateException
-
removeByUuid_C
Removes all the commerce availability estimates where uuid = ? and companyId = ? from the database.- Parameters:
uuid
- the uuidcompanyId
- the company ID
-
countByUuid_C
Returns the number of commerce availability estimates where uuid = ? and companyId = ?.- Parameters:
uuid
- the uuidcompanyId
- the company ID- Returns:
- the number of matching commerce availability estimates
-
findByCompanyId
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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceAvailabilityEstimateModelImpl
.- Parameters:
companyId
- the company IDstart
- the lower bound of the range of commerce availability estimatesend
- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceAvailabilityEstimateModelImpl
.- Parameters:
companyId
- the company IDstart
- the lower bound of the range of commerce availability estimatesend
- the upper bound of the range of commerce availability estimates (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceAvailabilityEstimateModelImpl
.- Parameters:
companyId
- the company IDstart
- the lower bound of the range of commerce availability estimatesend
- the upper bound of the range of commerce availability estimates (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)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 IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce availability estimate
- Throws:
NoSuchAvailabilityEstimateException
- if a matching commerce availability estimate could not be foundNoSuchAvailabilityEstimateException
-
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 IDorderByComparator
- the comparator to order the set by (optionallynull
)- 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 IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce availability estimate
- Throws:
NoSuchAvailabilityEstimateException
- if a matching commerce availability estimate could not be foundNoSuchAvailabilityEstimateException
-
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 IDorderByComparator
- the comparator to order the set by (optionallynull
)- 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 estimatecompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce availability estimate
- Throws:
NoSuchAvailabilityEstimateException
- if a commerce availability estimate with the primary key could not be foundNoSuchAvailabilityEstimateException
-
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
Caches the commerce availability estimate in the entity cache if it is enabled.- Parameters:
commerceAvailabilityEstimate
- the commerce availability estimate
-
cacheResult
Caches the commerce availability estimates in the entity cache if it is enabled.- Parameters:
commerceAvailabilityEstimates
- the commerce availability estimates
-
create
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 foundNoSuchAvailabilityEstimateException
-
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 aNoSuchAvailabilityEstimateException
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 foundNoSuchAvailabilityEstimateException
-
fetchByPrimaryKey
Returns the commerce availability estimate with the primary key or returnsnull
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
Returns all the commerce availability estimates.- Returns:
- the commerce availability estimates
-
findAll
Returns a range of all the commerce availability estimates.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceAvailabilityEstimateModelImpl
.- Parameters:
start
- the lower bound of the range of commerce availability estimatesend
- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceAvailabilityEstimateModelImpl
.- Parameters:
start
- the lower bound of the range of commerce availability estimatesend
- the upper bound of the range of commerce availability estimates (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceAvailabilityEstimateModelImpl
.- Parameters:
start
- the lower bound of the range of commerce availability estimatesend
- the upper bound of the range of commerce availability estimates (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)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
-
setPersistence
-