public class CommerceAvailabilityEstimateUtil
extends java.lang.Object
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
CommerceAvailabilityEstimatePersistence
Constructor and Description |
---|
CommerceAvailabilityEstimateUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(CommerceAvailabilityEstimate commerceAvailabilityEstimate)
Caches the commerce availability estimate in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<CommerceAvailabilityEstimate> commerceAvailabilityEstimates)
Caches the commerce availability estimates in the entity cache if it is enabled.
|
static void |
clearCache() |
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_C(java.lang.String uuid,
long companyId)
Returns the number of commerce availability estimates where uuid = ? and companyId = ?.
|
static int |
countByUuid(java.lang.String uuid)
Returns the number of commerce availability estimates where uuid = ?.
|
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 returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,CommerceAvailabilityEstimate> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static CommerceAvailabilityEstimate |
fetchByUuid_C_First(java.lang.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(java.lang.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(java.lang.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(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAvailabilityEstimate> orderByComparator)
Returns the last commerce availability estimate in the ordered set where uuid = ?.
|
static java.util.List<CommerceAvailabilityEstimate> |
findAll()
Returns all the commerce availability estimates.
|
static java.util.List<CommerceAvailabilityEstimate> |
findAll(int start,
int end)
Returns a range of all the commerce availability estimates.
|
static java.util.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 java.util.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 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 java.util.List<CommerceAvailabilityEstimate> |
findByCompanyId(long companyId)
Returns all the commerce availability estimates where companyId = ?.
|
static java.util.List<CommerceAvailabilityEstimate> |
findByCompanyId(long companyId,
int start,
int end)
Returns a range of all the commerce availability estimates where companyId = ?.
|
static java.util.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 java.util.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 |
findByPrimaryKey(long commerceAvailabilityEstimateId)
Returns the commerce availability estimate with the primary key or throws a
NoSuchAvailabilityEstimateException if it could not be found. |
static CommerceAvailabilityEstimate |
findByUuid_C_First(java.lang.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(java.lang.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,
java.lang.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 java.util.List<CommerceAvailabilityEstimate> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the commerce availability estimates where uuid = ? and companyId = ?.
|
static java.util.List<CommerceAvailabilityEstimate> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end)
Returns a range of all the commerce availability estimates where uuid = ? and companyId = ?.
|
static java.util.List<CommerceAvailabilityEstimate> |
findByUuid_C(java.lang.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 java.util.List<CommerceAvailabilityEstimate> |
findByUuid_C(java.lang.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_First(java.lang.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(java.lang.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,
java.lang.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 java.util.List<CommerceAvailabilityEstimate> |
findByUuid(java.lang.String uuid)
Returns all the commerce availability estimates where uuid = ?.
|
static java.util.List<CommerceAvailabilityEstimate> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the commerce availability estimates where uuid = ?.
|
static java.util.List<CommerceAvailabilityEstimate> |
findByUuid(java.lang.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 java.util.List<CommerceAvailabilityEstimate> |
findByUuid(java.lang.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 java.util.List<CommerceAvailabilityEstimate> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<CommerceAvailabilityEstimate> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<CommerceAvailabilityEstimate> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAvailabilityEstimate> orderByComparator) |
static CommerceAvailabilityEstimatePersistence |
getPersistence() |
static CommerceAvailabilityEstimate |
remove(long commerceAvailabilityEstimateId)
Removes the commerce availability estimate with the primary key from the database.
|
static void |
removeAll()
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_C(java.lang.String uuid,
long companyId)
Removes all the commerce availability estimates where uuid = ? and companyId = ? from the database.
|
static void |
removeByUuid(java.lang.String uuid)
Removes all the commerce availability estimates where uuid = ? 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) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(CommerceAvailabilityEstimate commerceAvailabilityEstimate)
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.countWithDynamicQuery(DynamicQuery)
public static java.util.Map<java.io.Serializable,CommerceAvailabilityEstimate> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<CommerceAvailabilityEstimate> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<CommerceAvailabilityEstimate> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<CommerceAvailabilityEstimate> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceAvailabilityEstimate> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static CommerceAvailabilityEstimate update(CommerceAvailabilityEstimate commerceAvailabilityEstimate)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static CommerceAvailabilityEstimate update(CommerceAvailabilityEstimate commerceAvailabilityEstimate, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<CommerceAvailabilityEstimate> findByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.util.List<CommerceAvailabilityEstimate> findByUuid(java.lang.String uuid, int start, int end)
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
.
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)public static java.util.List<CommerceAvailabilityEstimate> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceAvailabilityEstimate> orderByComparator)
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
.
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 (optionally null
)public static java.util.List<CommerceAvailabilityEstimate> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceAvailabilityEstimate> orderByComparator, boolean useFinderCache)
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
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommerceAvailabilityEstimate findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceAvailabilityEstimate> orderByComparator) throws NoSuchAvailabilityEstimateException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchAvailabilityEstimateException
- if a matching commerce availability estimate could not be foundpublic static CommerceAvailabilityEstimate fetchByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceAvailabilityEstimate> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce availability estimate could not be foundpublic static CommerceAvailabilityEstimate findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceAvailabilityEstimate> orderByComparator) throws NoSuchAvailabilityEstimateException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchAvailabilityEstimateException
- if a matching commerce availability estimate could not be foundpublic static CommerceAvailabilityEstimate fetchByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceAvailabilityEstimate> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce availability estimate could not be foundpublic static CommerceAvailabilityEstimate[] findByUuid_PrevAndNext(long commerceAvailabilityEstimateId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommerceAvailabilityEstimate> orderByComparator) throws NoSuchAvailabilityEstimateException
commerceAvailabilityEstimateId
- the primary key of the current commerce availability estimateuuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchAvailabilityEstimateException
- if a commerce availability estimate with the primary key could not be foundpublic static void removeByUuid(java.lang.String uuid)
uuid
- the uuidpublic static int countByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.util.List<CommerceAvailabilityEstimate> findByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<CommerceAvailabilityEstimate> findByUuid_C(java.lang.String uuid, long companyId, int start, int end)
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
.
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)public static java.util.List<CommerceAvailabilityEstimate> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceAvailabilityEstimate> orderByComparator)
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
.
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 (optionally null
)public static java.util.List<CommerceAvailabilityEstimate> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceAvailabilityEstimate> orderByComparator, boolean useFinderCache)
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
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommerceAvailabilityEstimate findByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceAvailabilityEstimate> orderByComparator) throws NoSuchAvailabilityEstimateException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchAvailabilityEstimateException
- if a matching commerce availability estimate could not be foundpublic static CommerceAvailabilityEstimate fetchByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceAvailabilityEstimate> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce availability estimate could not be foundpublic static CommerceAvailabilityEstimate findByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceAvailabilityEstimate> orderByComparator) throws NoSuchAvailabilityEstimateException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchAvailabilityEstimateException
- if a matching commerce availability estimate could not be foundpublic static CommerceAvailabilityEstimate fetchByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceAvailabilityEstimate> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce availability estimate could not be foundpublic static CommerceAvailabilityEstimate[] findByUuid_C_PrevAndNext(long commerceAvailabilityEstimateId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceAvailabilityEstimate> orderByComparator) throws NoSuchAvailabilityEstimateException
commerceAvailabilityEstimateId
- the primary key of the current commerce availability estimateuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchAvailabilityEstimateException
- if a commerce availability estimate with the primary key could not be foundpublic static void removeByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static int countByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<CommerceAvailabilityEstimate> findByCompanyId(long companyId)
companyId
- the company IDpublic static java.util.List<CommerceAvailabilityEstimate> findByCompanyId(long companyId, int start, int end)
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
.
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)public static java.util.List<CommerceAvailabilityEstimate> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceAvailabilityEstimate> orderByComparator)
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
.
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 (optionally null
)public static java.util.List<CommerceAvailabilityEstimate> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceAvailabilityEstimate> orderByComparator, boolean useFinderCache)
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
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommerceAvailabilityEstimate findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceAvailabilityEstimate> orderByComparator) throws NoSuchAvailabilityEstimateException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchAvailabilityEstimateException
- if a matching commerce availability estimate could not be foundpublic static CommerceAvailabilityEstimate fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceAvailabilityEstimate> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce availability estimate could not be foundpublic static CommerceAvailabilityEstimate findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceAvailabilityEstimate> orderByComparator) throws NoSuchAvailabilityEstimateException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchAvailabilityEstimateException
- if a matching commerce availability estimate could not be foundpublic static CommerceAvailabilityEstimate fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceAvailabilityEstimate> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce availability estimate could not be foundpublic static CommerceAvailabilityEstimate[] findByCompanyId_PrevAndNext(long commerceAvailabilityEstimateId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceAvailabilityEstimate> orderByComparator) throws NoSuchAvailabilityEstimateException
commerceAvailabilityEstimateId
- the primary key of the current commerce availability estimatecompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchAvailabilityEstimateException
- if a commerce availability estimate with the primary key could not be foundpublic static void removeByCompanyId(long companyId)
companyId
- the company IDpublic static int countByCompanyId(long companyId)
companyId
- the company IDpublic static void cacheResult(CommerceAvailabilityEstimate commerceAvailabilityEstimate)
commerceAvailabilityEstimate
- the commerce availability estimatepublic static void cacheResult(java.util.List<CommerceAvailabilityEstimate> commerceAvailabilityEstimates)
commerceAvailabilityEstimates
- the commerce availability estimatespublic static CommerceAvailabilityEstimate create(long commerceAvailabilityEstimateId)
commerceAvailabilityEstimateId
- the primary key for the new commerce availability estimatepublic static CommerceAvailabilityEstimate remove(long commerceAvailabilityEstimateId) throws NoSuchAvailabilityEstimateException
commerceAvailabilityEstimateId
- the primary key of the commerce availability estimateNoSuchAvailabilityEstimateException
- if a commerce availability estimate with the primary key could not be foundpublic static CommerceAvailabilityEstimate updateImpl(CommerceAvailabilityEstimate commerceAvailabilityEstimate)
public static CommerceAvailabilityEstimate findByPrimaryKey(long commerceAvailabilityEstimateId) throws NoSuchAvailabilityEstimateException
NoSuchAvailabilityEstimateException
if it could not be found.commerceAvailabilityEstimateId
- the primary key of the commerce availability estimateNoSuchAvailabilityEstimateException
- if a commerce availability estimate with the primary key could not be foundpublic static CommerceAvailabilityEstimate fetchByPrimaryKey(long commerceAvailabilityEstimateId)
null
if it could not be found.commerceAvailabilityEstimateId
- the primary key of the commerce availability estimatenull
if a commerce availability estimate with the primary key could not be foundpublic static java.util.List<CommerceAvailabilityEstimate> findAll()
public static java.util.List<CommerceAvailabilityEstimate> findAll(int start, int end)
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
.
start
- the lower bound of the range of commerce availability estimatesend
- the upper bound of the range of commerce availability estimates (not inclusive)public static java.util.List<CommerceAvailabilityEstimate> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceAvailabilityEstimate> orderByComparator)
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
.
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 (optionally null
)public static java.util.List<CommerceAvailabilityEstimate> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceAvailabilityEstimate> orderByComparator, boolean useFinderCache)
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
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static void removeAll()
public static int countAll()
public static CommerceAvailabilityEstimatePersistence getPersistence()
public static void setPersistence(CommerceAvailabilityEstimatePersistence persistence)