public class CPDAvailabilityEstimateUtil
extends java.lang.Object
com.liferay.commerce.service.persistence.impl.CPDAvailabilityEstimatePersistenceImpl
and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
Caching information and settings can be found in portal.properties
CPDAvailabilityEstimatePersistence
Constructor and Description |
---|
CPDAvailabilityEstimateUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(CPDAvailabilityEstimate cpdAvailabilityEstimate)
Caches the cpd availability estimate in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<CPDAvailabilityEstimate> cpdAvailabilityEstimates)
Caches the cpd availability estimates in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(CPDAvailabilityEstimate cpdAvailabilityEstimate) |
static int |
countAll()
Returns the number of cpd availability estimates.
|
static int |
countByCommerceAvailabilityEstimateId(long commerceAvailabilityEstimateId)
Returns the number of cpd availability estimates where commerceAvailabilityEstimateId = ?.
|
static int |
countByCProductId(long CProductId)
Returns the number of cpd availability estimates where CProductId = ?.
|
static int |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of cpd availability estimates where uuid = ? and companyId = ?.
|
static int |
countByUuid(java.lang.String uuid)
Returns the number of cpd availability estimates where uuid = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static CPDAvailabilityEstimate |
create(long CPDAvailabilityEstimateId)
Creates a new cpd availability estimate with the primary key.
|
static CPDAvailabilityEstimate |
fetchByCommerceAvailabilityEstimateId_First(long commerceAvailabilityEstimateId,
com.liferay.portal.kernel.util.OrderByComparator<CPDAvailabilityEstimate> orderByComparator)
Returns the first cpd availability estimate in the ordered set where commerceAvailabilityEstimateId = ?.
|
static CPDAvailabilityEstimate |
fetchByCommerceAvailabilityEstimateId_Last(long commerceAvailabilityEstimateId,
com.liferay.portal.kernel.util.OrderByComparator<CPDAvailabilityEstimate> orderByComparator)
Returns the last cpd availability estimate in the ordered set where commerceAvailabilityEstimateId = ?.
|
static CPDAvailabilityEstimate |
fetchByCProductId(long CProductId)
Returns the cpd availability estimate where CProductId = ? or returns
null if it could not be found. |
static CPDAvailabilityEstimate |
fetchByCProductId(long CProductId,
boolean useFinderCache)
Returns the cpd availability estimate where CProductId = ? or returns
null if it could not be found, optionally using the finder cache. |
static CPDAvailabilityEstimate |
fetchByPrimaryKey(long CPDAvailabilityEstimateId)
Returns the cpd availability estimate with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,CPDAvailabilityEstimate> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static CPDAvailabilityEstimate |
fetchByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CPDAvailabilityEstimate> orderByComparator)
Returns the first cpd availability estimate in the ordered set where uuid = ? and companyId = ?.
|
static CPDAvailabilityEstimate |
fetchByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CPDAvailabilityEstimate> orderByComparator)
Returns the last cpd availability estimate in the ordered set where uuid = ? and companyId = ?.
|
static CPDAvailabilityEstimate |
fetchByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CPDAvailabilityEstimate> orderByComparator)
Returns the first cpd availability estimate in the ordered set where uuid = ?.
|
static CPDAvailabilityEstimate |
fetchByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CPDAvailabilityEstimate> orderByComparator)
Returns the last cpd availability estimate in the ordered set where uuid = ?.
|
static java.util.List<CPDAvailabilityEstimate> |
findAll()
Returns all the cpd availability estimates.
|
static java.util.List<CPDAvailabilityEstimate> |
findAll(int start,
int end)
Returns a range of all the cpd availability estimates.
|
static java.util.List<CPDAvailabilityEstimate> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPDAvailabilityEstimate> orderByComparator)
Returns an ordered range of all the cpd availability estimates.
|
static java.util.List<CPDAvailabilityEstimate> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPDAvailabilityEstimate> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the cpd availability estimates.
|
static CPDAvailabilityEstimate |
findByCommerceAvailabilityEstimateId_First(long commerceAvailabilityEstimateId,
com.liferay.portal.kernel.util.OrderByComparator<CPDAvailabilityEstimate> orderByComparator)
Returns the first cpd availability estimate in the ordered set where commerceAvailabilityEstimateId = ?.
|
static CPDAvailabilityEstimate |
findByCommerceAvailabilityEstimateId_Last(long commerceAvailabilityEstimateId,
com.liferay.portal.kernel.util.OrderByComparator<CPDAvailabilityEstimate> orderByComparator)
Returns the last cpd availability estimate in the ordered set where commerceAvailabilityEstimateId = ?.
|
static CPDAvailabilityEstimate[] |
findByCommerceAvailabilityEstimateId_PrevAndNext(long CPDAvailabilityEstimateId,
long commerceAvailabilityEstimateId,
com.liferay.portal.kernel.util.OrderByComparator<CPDAvailabilityEstimate> orderByComparator)
Returns the cpd availability estimates before and after the current cpd availability estimate in the ordered set where commerceAvailabilityEstimateId = ?.
|
static java.util.List<CPDAvailabilityEstimate> |
findByCommerceAvailabilityEstimateId(long commerceAvailabilityEstimateId)
Returns all the cpd availability estimates where commerceAvailabilityEstimateId = ?.
|
static java.util.List<CPDAvailabilityEstimate> |
findByCommerceAvailabilityEstimateId(long commerceAvailabilityEstimateId,
int start,
int end)
Returns a range of all the cpd availability estimates where commerceAvailabilityEstimateId = ?.
|
static java.util.List<CPDAvailabilityEstimate> |
findByCommerceAvailabilityEstimateId(long commerceAvailabilityEstimateId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPDAvailabilityEstimate> orderByComparator)
Returns an ordered range of all the cpd availability estimates where commerceAvailabilityEstimateId = ?.
|
static java.util.List<CPDAvailabilityEstimate> |
findByCommerceAvailabilityEstimateId(long commerceAvailabilityEstimateId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPDAvailabilityEstimate> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the cpd availability estimates where commerceAvailabilityEstimateId = ?.
|
static CPDAvailabilityEstimate |
findByCProductId(long CProductId)
Returns the cpd availability estimate where CProductId = ? or throws a
NoSuchCPDAvailabilityEstimateException if it could not be found. |
static CPDAvailabilityEstimate |
findByPrimaryKey(long CPDAvailabilityEstimateId)
Returns the cpd availability estimate with the primary key or throws a
NoSuchCPDAvailabilityEstimateException if it could not be found. |
static CPDAvailabilityEstimate |
findByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CPDAvailabilityEstimate> orderByComparator)
Returns the first cpd availability estimate in the ordered set where uuid = ? and companyId = ?.
|
static CPDAvailabilityEstimate |
findByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CPDAvailabilityEstimate> orderByComparator)
Returns the last cpd availability estimate in the ordered set where uuid = ? and companyId = ?.
|
static CPDAvailabilityEstimate[] |
findByUuid_C_PrevAndNext(long CPDAvailabilityEstimateId,
java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CPDAvailabilityEstimate> orderByComparator)
Returns the cpd availability estimates before and after the current cpd availability estimate in the ordered set where uuid = ? and companyId = ?.
|
static java.util.List<CPDAvailabilityEstimate> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the cpd availability estimates where uuid = ? and companyId = ?.
|
static java.util.List<CPDAvailabilityEstimate> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end)
Returns a range of all the cpd availability estimates where uuid = ? and companyId = ?.
|
static java.util.List<CPDAvailabilityEstimate> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPDAvailabilityEstimate> orderByComparator)
Returns an ordered range of all the cpd availability estimates where uuid = ? and companyId = ?.
|
static java.util.List<CPDAvailabilityEstimate> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPDAvailabilityEstimate> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the cpd availability estimates where uuid = ? and companyId = ?.
|
static CPDAvailabilityEstimate |
findByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CPDAvailabilityEstimate> orderByComparator)
Returns the first cpd availability estimate in the ordered set where uuid = ?.
|
static CPDAvailabilityEstimate |
findByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CPDAvailabilityEstimate> orderByComparator)
Returns the last cpd availability estimate in the ordered set where uuid = ?.
|
static CPDAvailabilityEstimate[] |
findByUuid_PrevAndNext(long CPDAvailabilityEstimateId,
java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CPDAvailabilityEstimate> orderByComparator)
Returns the cpd availability estimates before and after the current cpd availability estimate in the ordered set where uuid = ?.
|
static java.util.List<CPDAvailabilityEstimate> |
findByUuid(java.lang.String uuid)
Returns all the cpd availability estimates where uuid = ?.
|
static java.util.List<CPDAvailabilityEstimate> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the cpd availability estimates where uuid = ?.
|
static java.util.List<CPDAvailabilityEstimate> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPDAvailabilityEstimate> orderByComparator)
Returns an ordered range of all the cpd availability estimates where uuid = ?.
|
static java.util.List<CPDAvailabilityEstimate> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPDAvailabilityEstimate> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the cpd availability estimates where uuid = ?.
|
static java.util.List<CPDAvailabilityEstimate> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<CPDAvailabilityEstimate> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<CPDAvailabilityEstimate> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CPDAvailabilityEstimate> orderByComparator) |
static CPDAvailabilityEstimatePersistence |
getPersistence() |
static CPDAvailabilityEstimate |
remove(long CPDAvailabilityEstimateId)
Removes the cpd availability estimate with the primary key from the database.
|
static void |
removeAll()
Removes all the cpd availability estimates from the database.
|
static void |
removeByCommerceAvailabilityEstimateId(long commerceAvailabilityEstimateId)
Removes all the cpd availability estimates where commerceAvailabilityEstimateId = ? from the database.
|
static CPDAvailabilityEstimate |
removeByCProductId(long CProductId)
Removes the cpd availability estimate where CProductId = ? from the database.
|
static void |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the cpd availability estimates where uuid = ? and companyId = ? from the database.
|
static void |
removeByUuid(java.lang.String uuid)
Removes all the cpd availability estimates where uuid = ? from the database.
|
static CPDAvailabilityEstimate |
update(CPDAvailabilityEstimate cpdAvailabilityEstimate) |
static CPDAvailabilityEstimate |
update(CPDAvailabilityEstimate cpdAvailabilityEstimate,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static CPDAvailabilityEstimate |
updateImpl(CPDAvailabilityEstimate cpdAvailabilityEstimate) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(CPDAvailabilityEstimate cpdAvailabilityEstimate)
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,CPDAvailabilityEstimate> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<CPDAvailabilityEstimate> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<CPDAvailabilityEstimate> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<CPDAvailabilityEstimate> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDAvailabilityEstimate> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static CPDAvailabilityEstimate update(CPDAvailabilityEstimate cpdAvailabilityEstimate)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static CPDAvailabilityEstimate update(CPDAvailabilityEstimate cpdAvailabilityEstimate, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<CPDAvailabilityEstimate> findByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.util.List<CPDAvailabilityEstimate> 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 CPDAvailabilityEstimateModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of cpd availability estimatesend
- the upper bound of the range of cpd availability estimates (not inclusive)public static java.util.List<CPDAvailabilityEstimate> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDAvailabilityEstimate> 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 CPDAvailabilityEstimateModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of cpd availability estimatesend
- the upper bound of the range of cpd availability estimates (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CPDAvailabilityEstimate> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDAvailabilityEstimate> 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 CPDAvailabilityEstimateModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of cpd availability estimatesend
- the upper bound of the range of cpd availability estimates (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CPDAvailabilityEstimate findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPDAvailabilityEstimate> orderByComparator) throws NoSuchCPDAvailabilityEstimateException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPDAvailabilityEstimateException
- if a matching cpd availability estimate could not be foundpublic static CPDAvailabilityEstimate fetchByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPDAvailabilityEstimate> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cpd availability estimate could not be foundpublic static CPDAvailabilityEstimate findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPDAvailabilityEstimate> orderByComparator) throws NoSuchCPDAvailabilityEstimateException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPDAvailabilityEstimateException
- if a matching cpd availability estimate could not be foundpublic static CPDAvailabilityEstimate fetchByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPDAvailabilityEstimate> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cpd availability estimate could not be foundpublic static CPDAvailabilityEstimate[] findByUuid_PrevAndNext(long CPDAvailabilityEstimateId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CPDAvailabilityEstimate> orderByComparator) throws NoSuchCPDAvailabilityEstimateException
CPDAvailabilityEstimateId
- the primary key of the current cpd availability estimateuuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPDAvailabilityEstimateException
- if a cpd 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<CPDAvailabilityEstimate> findByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<CPDAvailabilityEstimate> 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 CPDAvailabilityEstimateModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of cpd availability estimatesend
- the upper bound of the range of cpd availability estimates (not inclusive)public static java.util.List<CPDAvailabilityEstimate> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDAvailabilityEstimate> 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 CPDAvailabilityEstimateModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of cpd availability estimatesend
- the upper bound of the range of cpd availability estimates (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CPDAvailabilityEstimate> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDAvailabilityEstimate> 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 CPDAvailabilityEstimateModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of cpd availability estimatesend
- the upper bound of the range of cpd availability estimates (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CPDAvailabilityEstimate findByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDAvailabilityEstimate> orderByComparator) throws NoSuchCPDAvailabilityEstimateException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPDAvailabilityEstimateException
- if a matching cpd availability estimate could not be foundpublic static CPDAvailabilityEstimate fetchByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDAvailabilityEstimate> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cpd availability estimate could not be foundpublic static CPDAvailabilityEstimate findByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDAvailabilityEstimate> orderByComparator) throws NoSuchCPDAvailabilityEstimateException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPDAvailabilityEstimateException
- if a matching cpd availability estimate could not be foundpublic static CPDAvailabilityEstimate fetchByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDAvailabilityEstimate> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cpd availability estimate could not be foundpublic static CPDAvailabilityEstimate[] findByUuid_C_PrevAndNext(long CPDAvailabilityEstimateId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CPDAvailabilityEstimate> orderByComparator) throws NoSuchCPDAvailabilityEstimateException
CPDAvailabilityEstimateId
- the primary key of the current cpd availability estimateuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPDAvailabilityEstimateException
- if a cpd 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<CPDAvailabilityEstimate> findByCommerceAvailabilityEstimateId(long commerceAvailabilityEstimateId)
commerceAvailabilityEstimateId
- the commerce availability estimate IDpublic static java.util.List<CPDAvailabilityEstimate> findByCommerceAvailabilityEstimateId(long commerceAvailabilityEstimateId, 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 CPDAvailabilityEstimateModelImpl
.
commerceAvailabilityEstimateId
- the commerce availability estimate IDstart
- the lower bound of the range of cpd availability estimatesend
- the upper bound of the range of cpd availability estimates (not inclusive)public static java.util.List<CPDAvailabilityEstimate> findByCommerceAvailabilityEstimateId(long commerceAvailabilityEstimateId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDAvailabilityEstimate> 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 CPDAvailabilityEstimateModelImpl
.
commerceAvailabilityEstimateId
- the commerce availability estimate IDstart
- the lower bound of the range of cpd availability estimatesend
- the upper bound of the range of cpd availability estimates (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CPDAvailabilityEstimate> findByCommerceAvailabilityEstimateId(long commerceAvailabilityEstimateId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDAvailabilityEstimate> 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 CPDAvailabilityEstimateModelImpl
.
commerceAvailabilityEstimateId
- the commerce availability estimate IDstart
- the lower bound of the range of cpd availability estimatesend
- the upper bound of the range of cpd availability estimates (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CPDAvailabilityEstimate findByCommerceAvailabilityEstimateId_First(long commerceAvailabilityEstimateId, com.liferay.portal.kernel.util.OrderByComparator<CPDAvailabilityEstimate> orderByComparator) throws NoSuchCPDAvailabilityEstimateException
commerceAvailabilityEstimateId
- the commerce availability estimate IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPDAvailabilityEstimateException
- if a matching cpd availability estimate could not be foundpublic static CPDAvailabilityEstimate fetchByCommerceAvailabilityEstimateId_First(long commerceAvailabilityEstimateId, com.liferay.portal.kernel.util.OrderByComparator<CPDAvailabilityEstimate> orderByComparator)
commerceAvailabilityEstimateId
- the commerce availability estimate IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cpd availability estimate could not be foundpublic static CPDAvailabilityEstimate findByCommerceAvailabilityEstimateId_Last(long commerceAvailabilityEstimateId, com.liferay.portal.kernel.util.OrderByComparator<CPDAvailabilityEstimate> orderByComparator) throws NoSuchCPDAvailabilityEstimateException
commerceAvailabilityEstimateId
- the commerce availability estimate IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPDAvailabilityEstimateException
- if a matching cpd availability estimate could not be foundpublic static CPDAvailabilityEstimate fetchByCommerceAvailabilityEstimateId_Last(long commerceAvailabilityEstimateId, com.liferay.portal.kernel.util.OrderByComparator<CPDAvailabilityEstimate> orderByComparator)
commerceAvailabilityEstimateId
- the commerce availability estimate IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cpd availability estimate could not be foundpublic static CPDAvailabilityEstimate[] findByCommerceAvailabilityEstimateId_PrevAndNext(long CPDAvailabilityEstimateId, long commerceAvailabilityEstimateId, com.liferay.portal.kernel.util.OrderByComparator<CPDAvailabilityEstimate> orderByComparator) throws NoSuchCPDAvailabilityEstimateException
CPDAvailabilityEstimateId
- the primary key of the current cpd availability estimatecommerceAvailabilityEstimateId
- the commerce availability estimate IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPDAvailabilityEstimateException
- if a cpd availability estimate with the primary key could not be foundpublic static void removeByCommerceAvailabilityEstimateId(long commerceAvailabilityEstimateId)
commerceAvailabilityEstimateId
- the commerce availability estimate IDpublic static int countByCommerceAvailabilityEstimateId(long commerceAvailabilityEstimateId)
commerceAvailabilityEstimateId
- the commerce availability estimate IDpublic static CPDAvailabilityEstimate findByCProductId(long CProductId) throws NoSuchCPDAvailabilityEstimateException
NoSuchCPDAvailabilityEstimateException
if it could not be found.CProductId
- the c product IDNoSuchCPDAvailabilityEstimateException
- if a matching cpd availability estimate could not be foundpublic static CPDAvailabilityEstimate fetchByCProductId(long CProductId)
null
if it could not be found. Uses the finder cache.CProductId
- the c product IDnull
if a matching cpd availability estimate could not be foundpublic static CPDAvailabilityEstimate fetchByCProductId(long CProductId, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.CProductId
- the c product IDuseFinderCache
- whether to use the finder cachenull
if a matching cpd availability estimate could not be foundpublic static CPDAvailabilityEstimate removeByCProductId(long CProductId) throws NoSuchCPDAvailabilityEstimateException
CProductId
- the c product IDNoSuchCPDAvailabilityEstimateException
public static int countByCProductId(long CProductId)
CProductId
- the c product IDpublic static void cacheResult(CPDAvailabilityEstimate cpdAvailabilityEstimate)
cpdAvailabilityEstimate
- the cpd availability estimatepublic static void cacheResult(java.util.List<CPDAvailabilityEstimate> cpdAvailabilityEstimates)
cpdAvailabilityEstimates
- the cpd availability estimatespublic static CPDAvailabilityEstimate create(long CPDAvailabilityEstimateId)
CPDAvailabilityEstimateId
- the primary key for the new cpd availability estimatepublic static CPDAvailabilityEstimate remove(long CPDAvailabilityEstimateId) throws NoSuchCPDAvailabilityEstimateException
CPDAvailabilityEstimateId
- the primary key of the cpd availability estimateNoSuchCPDAvailabilityEstimateException
- if a cpd availability estimate with the primary key could not be foundpublic static CPDAvailabilityEstimate updateImpl(CPDAvailabilityEstimate cpdAvailabilityEstimate)
public static CPDAvailabilityEstimate findByPrimaryKey(long CPDAvailabilityEstimateId) throws NoSuchCPDAvailabilityEstimateException
NoSuchCPDAvailabilityEstimateException
if it could not be found.CPDAvailabilityEstimateId
- the primary key of the cpd availability estimateNoSuchCPDAvailabilityEstimateException
- if a cpd availability estimate with the primary key could not be foundpublic static CPDAvailabilityEstimate fetchByPrimaryKey(long CPDAvailabilityEstimateId)
null
if it could not be found.CPDAvailabilityEstimateId
- the primary key of the cpd availability estimatenull
if a cpd availability estimate with the primary key could not be foundpublic static java.util.List<CPDAvailabilityEstimate> findAll()
public static java.util.List<CPDAvailabilityEstimate> 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 CPDAvailabilityEstimateModelImpl
.
start
- the lower bound of the range of cpd availability estimatesend
- the upper bound of the range of cpd availability estimates (not inclusive)public static java.util.List<CPDAvailabilityEstimate> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDAvailabilityEstimate> 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 CPDAvailabilityEstimateModelImpl
.
start
- the lower bound of the range of cpd availability estimatesend
- the upper bound of the range of cpd availability estimates (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CPDAvailabilityEstimate> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDAvailabilityEstimate> 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 CPDAvailabilityEstimateModelImpl
.
start
- the lower bound of the range of cpd availability estimatesend
- the upper bound of the range of cpd 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 CPDAvailabilityEstimatePersistence getPersistence()