public class CommercePriceListDiscountRelUtil
extends java.lang.Object
com.liferay.commerce.price.list.service.persistence.impl.CommercePriceListDiscountRelPersistenceImpl
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
CommercePriceListDiscountRelPersistence
Constructor and Description |
---|
CommercePriceListDiscountRelUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(CommercePriceListDiscountRel commercePriceListDiscountRel)
Caches the commerce price list discount rel in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<CommercePriceListDiscountRel> commercePriceListDiscountRels)
Caches the commerce price list discount rels in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(CommercePriceListDiscountRel commercePriceListDiscountRel) |
static int |
countAll()
Returns the number of commerce price list discount rels.
|
static int |
countByCDI_CPI(long commerceDiscountId,
long commercePriceListId)
Returns the number of commerce price list discount rels where commerceDiscountId = ? and commercePriceListId = ?.
|
static int |
countByCommercePriceListId(long commercePriceListId)
Returns the number of commerce price list discount rels where commercePriceListId = ?.
|
static int |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of commerce price list discount rels where uuid = ? and companyId = ?.
|
static int |
countByUuid(java.lang.String uuid)
Returns the number of commerce price list discount rels where uuid = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static CommercePriceListDiscountRel |
create(long commercePriceListDiscountRelId)
Creates a new commerce price list discount rel with the primary key.
|
static CommercePriceListDiscountRel |
fetchByCDI_CPI(long commerceDiscountId,
long commercePriceListId)
Returns the commerce price list discount rel where commerceDiscountId = ? and commercePriceListId = ? or returns
null if it could not be found. |
static CommercePriceListDiscountRel |
fetchByCDI_CPI(long commerceDiscountId,
long commercePriceListId,
boolean useFinderCache)
Returns the commerce price list discount rel where commerceDiscountId = ? and commercePriceListId = ? or returns
null if it could not be found, optionally using the finder cache. |
static CommercePriceListDiscountRel |
fetchByCommercePriceListId_First(long commercePriceListId,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListDiscountRel> orderByComparator)
Returns the first commerce price list discount rel in the ordered set where commercePriceListId = ?.
|
static CommercePriceListDiscountRel |
fetchByCommercePriceListId_Last(long commercePriceListId,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListDiscountRel> orderByComparator)
Returns the last commerce price list discount rel in the ordered set where commercePriceListId = ?.
|
static CommercePriceListDiscountRel |
fetchByPrimaryKey(long commercePriceListDiscountRelId)
Returns the commerce price list discount rel with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,CommercePriceListDiscountRel> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static CommercePriceListDiscountRel |
fetchByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListDiscountRel> orderByComparator)
Returns the first commerce price list discount rel in the ordered set where uuid = ? and companyId = ?.
|
static CommercePriceListDiscountRel |
fetchByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListDiscountRel> orderByComparator)
Returns the last commerce price list discount rel in the ordered set where uuid = ? and companyId = ?.
|
static CommercePriceListDiscountRel |
fetchByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListDiscountRel> orderByComparator)
Returns the first commerce price list discount rel in the ordered set where uuid = ?.
|
static CommercePriceListDiscountRel |
fetchByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListDiscountRel> orderByComparator)
Returns the last commerce price list discount rel in the ordered set where uuid = ?.
|
static java.util.List<CommercePriceListDiscountRel> |
findAll()
Returns all the commerce price list discount rels.
|
static java.util.List<CommercePriceListDiscountRel> |
findAll(int start,
int end)
Returns a range of all the commerce price list discount rels.
|
static java.util.List<CommercePriceListDiscountRel> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListDiscountRel> orderByComparator)
Returns an ordered range of all the commerce price list discount rels.
|
static java.util.List<CommercePriceListDiscountRel> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListDiscountRel> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce price list discount rels.
|
static CommercePriceListDiscountRel |
findByCDI_CPI(long commerceDiscountId,
long commercePriceListId)
Returns the commerce price list discount rel where commerceDiscountId = ? and commercePriceListId = ? or throws a
NoSuchPriceListDiscountRelException if it could not be found. |
static CommercePriceListDiscountRel |
findByCommercePriceListId_First(long commercePriceListId,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListDiscountRel> orderByComparator)
Returns the first commerce price list discount rel in the ordered set where commercePriceListId = ?.
|
static CommercePriceListDiscountRel |
findByCommercePriceListId_Last(long commercePriceListId,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListDiscountRel> orderByComparator)
Returns the last commerce price list discount rel in the ordered set where commercePriceListId = ?.
|
static CommercePriceListDiscountRel[] |
findByCommercePriceListId_PrevAndNext(long commercePriceListDiscountRelId,
long commercePriceListId,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListDiscountRel> orderByComparator)
Returns the commerce price list discount rels before and after the current commerce price list discount rel in the ordered set where commercePriceListId = ?.
|
static java.util.List<CommercePriceListDiscountRel> |
findByCommercePriceListId(long commercePriceListId)
Returns all the commerce price list discount rels where commercePriceListId = ?.
|
static java.util.List<CommercePriceListDiscountRel> |
findByCommercePriceListId(long commercePriceListId,
int start,
int end)
Returns a range of all the commerce price list discount rels where commercePriceListId = ?.
|
static java.util.List<CommercePriceListDiscountRel> |
findByCommercePriceListId(long commercePriceListId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListDiscountRel> orderByComparator)
Returns an ordered range of all the commerce price list discount rels where commercePriceListId = ?.
|
static java.util.List<CommercePriceListDiscountRel> |
findByCommercePriceListId(long commercePriceListId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListDiscountRel> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce price list discount rels where commercePriceListId = ?.
|
static CommercePriceListDiscountRel |
findByPrimaryKey(long commercePriceListDiscountRelId)
Returns the commerce price list discount rel with the primary key or throws a
NoSuchPriceListDiscountRelException if it could not be found. |
static CommercePriceListDiscountRel |
findByUuid_C_First(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListDiscountRel> orderByComparator)
Returns the first commerce price list discount rel in the ordered set where uuid = ? and companyId = ?.
|
static CommercePriceListDiscountRel |
findByUuid_C_Last(java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListDiscountRel> orderByComparator)
Returns the last commerce price list discount rel in the ordered set where uuid = ? and companyId = ?.
|
static CommercePriceListDiscountRel[] |
findByUuid_C_PrevAndNext(long commercePriceListDiscountRelId,
java.lang.String uuid,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListDiscountRel> orderByComparator)
Returns the commerce price list discount rels before and after the current commerce price list discount rel in the ordered set where uuid = ? and companyId = ?.
|
static java.util.List<CommercePriceListDiscountRel> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the commerce price list discount rels where uuid = ? and companyId = ?.
|
static java.util.List<CommercePriceListDiscountRel> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end)
Returns a range of all the commerce price list discount rels where uuid = ? and companyId = ?.
|
static java.util.List<CommercePriceListDiscountRel> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListDiscountRel> orderByComparator)
Returns an ordered range of all the commerce price list discount rels where uuid = ? and companyId = ?.
|
static java.util.List<CommercePriceListDiscountRel> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListDiscountRel> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce price list discount rels where uuid = ? and companyId = ?.
|
static CommercePriceListDiscountRel |
findByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListDiscountRel> orderByComparator)
Returns the first commerce price list discount rel in the ordered set where uuid = ?.
|
static CommercePriceListDiscountRel |
findByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListDiscountRel> orderByComparator)
Returns the last commerce price list discount rel in the ordered set where uuid = ?.
|
static CommercePriceListDiscountRel[] |
findByUuid_PrevAndNext(long commercePriceListDiscountRelId,
java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListDiscountRel> orderByComparator)
Returns the commerce price list discount rels before and after the current commerce price list discount rel in the ordered set where uuid = ?.
|
static java.util.List<CommercePriceListDiscountRel> |
findByUuid(java.lang.String uuid)
Returns all the commerce price list discount rels where uuid = ?.
|
static java.util.List<CommercePriceListDiscountRel> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the commerce price list discount rels where uuid = ?.
|
static java.util.List<CommercePriceListDiscountRel> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListDiscountRel> orderByComparator)
Returns an ordered range of all the commerce price list discount rels where uuid = ?.
|
static java.util.List<CommercePriceListDiscountRel> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListDiscountRel> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce price list discount rels where uuid = ?.
|
static java.util.List<CommercePriceListDiscountRel> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<CommercePriceListDiscountRel> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<CommercePriceListDiscountRel> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListDiscountRel> orderByComparator) |
static CommercePriceListDiscountRelPersistence |
getPersistence() |
static CommercePriceListDiscountRel |
remove(long commercePriceListDiscountRelId)
Removes the commerce price list discount rel with the primary key from the database.
|
static void |
removeAll()
Removes all the commerce price list discount rels from the database.
|
static CommercePriceListDiscountRel |
removeByCDI_CPI(long commerceDiscountId,
long commercePriceListId)
Removes the commerce price list discount rel where commerceDiscountId = ? and commercePriceListId = ? from the database.
|
static void |
removeByCommercePriceListId(long commercePriceListId)
Removes all the commerce price list discount rels where commercePriceListId = ? from the database.
|
static void |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the commerce price list discount rels where uuid = ? and companyId = ? from the database.
|
static void |
removeByUuid(java.lang.String uuid)
Removes all the commerce price list discount rels where uuid = ? from the database.
|
static CommercePriceListDiscountRel |
update(CommercePriceListDiscountRel commercePriceListDiscountRel) |
static CommercePriceListDiscountRel |
update(CommercePriceListDiscountRel commercePriceListDiscountRel,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static CommercePriceListDiscountRel |
updateImpl(CommercePriceListDiscountRel commercePriceListDiscountRel) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(CommercePriceListDiscountRel commercePriceListDiscountRel)
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,CommercePriceListDiscountRel> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<CommercePriceListDiscountRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<CommercePriceListDiscountRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<CommercePriceListDiscountRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListDiscountRel> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static CommercePriceListDiscountRel update(CommercePriceListDiscountRel commercePriceListDiscountRel)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static CommercePriceListDiscountRel update(CommercePriceListDiscountRel commercePriceListDiscountRel, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<CommercePriceListDiscountRel> findByUuid(java.lang.String uuid)
uuid
- the uuidpublic static java.util.List<CommercePriceListDiscountRel> 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 CommercePriceListDiscountRelModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of commerce price list discount relsend
- the upper bound of the range of commerce price list discount rels (not inclusive)public static java.util.List<CommercePriceListDiscountRel> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListDiscountRel> 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 CommercePriceListDiscountRelModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of commerce price list discount relsend
- the upper bound of the range of commerce price list discount rels (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommercePriceListDiscountRel> findByUuid(java.lang.String uuid, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListDiscountRel> 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 CommercePriceListDiscountRelModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of commerce price list discount relsend
- the upper bound of the range of commerce price list discount rels (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommercePriceListDiscountRel findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListDiscountRel> orderByComparator) throws NoSuchPriceListDiscountRelException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPriceListDiscountRelException
- if a matching commerce price list discount rel could not be foundpublic static CommercePriceListDiscountRel fetchByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListDiscountRel> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce price list discount rel could not be foundpublic static CommercePriceListDiscountRel findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListDiscountRel> orderByComparator) throws NoSuchPriceListDiscountRelException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPriceListDiscountRelException
- if a matching commerce price list discount rel could not be foundpublic static CommercePriceListDiscountRel fetchByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListDiscountRel> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce price list discount rel could not be foundpublic static CommercePriceListDiscountRel[] findByUuid_PrevAndNext(long commercePriceListDiscountRelId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListDiscountRel> orderByComparator) throws NoSuchPriceListDiscountRelException
commercePriceListDiscountRelId
- the primary key of the current commerce price list discount reluuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPriceListDiscountRelException
- if a commerce price list discount rel 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<CommercePriceListDiscountRel> findByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static java.util.List<CommercePriceListDiscountRel> 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 CommercePriceListDiscountRelModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of commerce price list discount relsend
- the upper bound of the range of commerce price list discount rels (not inclusive)public static java.util.List<CommercePriceListDiscountRel> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListDiscountRel> 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 CommercePriceListDiscountRelModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of commerce price list discount relsend
- the upper bound of the range of commerce price list discount rels (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommercePriceListDiscountRel> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListDiscountRel> 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 CommercePriceListDiscountRelModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of commerce price list discount relsend
- the upper bound of the range of commerce price list discount rels (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommercePriceListDiscountRel findByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListDiscountRel> orderByComparator) throws NoSuchPriceListDiscountRelException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPriceListDiscountRelException
- if a matching commerce price list discount rel could not be foundpublic static CommercePriceListDiscountRel fetchByUuid_C_First(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListDiscountRel> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce price list discount rel could not be foundpublic static CommercePriceListDiscountRel findByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListDiscountRel> orderByComparator) throws NoSuchPriceListDiscountRelException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPriceListDiscountRelException
- if a matching commerce price list discount rel could not be foundpublic static CommercePriceListDiscountRel fetchByUuid_C_Last(java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListDiscountRel> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce price list discount rel could not be foundpublic static CommercePriceListDiscountRel[] findByUuid_C_PrevAndNext(long commercePriceListDiscountRelId, java.lang.String uuid, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListDiscountRel> orderByComparator) throws NoSuchPriceListDiscountRelException
commercePriceListDiscountRelId
- the primary key of the current commerce price list discount reluuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPriceListDiscountRelException
- if a commerce price list discount rel 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<CommercePriceListDiscountRel> findByCommercePriceListId(long commercePriceListId)
commercePriceListId
- the commerce price list IDpublic static java.util.List<CommercePriceListDiscountRel> findByCommercePriceListId(long commercePriceListId, 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 CommercePriceListDiscountRelModelImpl
.
commercePriceListId
- the commerce price list IDstart
- the lower bound of the range of commerce price list discount relsend
- the upper bound of the range of commerce price list discount rels (not inclusive)public static java.util.List<CommercePriceListDiscountRel> findByCommercePriceListId(long commercePriceListId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListDiscountRel> 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 CommercePriceListDiscountRelModelImpl
.
commercePriceListId
- the commerce price list IDstart
- the lower bound of the range of commerce price list discount relsend
- the upper bound of the range of commerce price list discount rels (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommercePriceListDiscountRel> findByCommercePriceListId(long commercePriceListId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListDiscountRel> 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 CommercePriceListDiscountRelModelImpl
.
commercePriceListId
- the commerce price list IDstart
- the lower bound of the range of commerce price list discount relsend
- the upper bound of the range of commerce price list discount rels (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommercePriceListDiscountRel findByCommercePriceListId_First(long commercePriceListId, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListDiscountRel> orderByComparator) throws NoSuchPriceListDiscountRelException
commercePriceListId
- the commerce price list IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPriceListDiscountRelException
- if a matching commerce price list discount rel could not be foundpublic static CommercePriceListDiscountRel fetchByCommercePriceListId_First(long commercePriceListId, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListDiscountRel> orderByComparator)
commercePriceListId
- the commerce price list IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce price list discount rel could not be foundpublic static CommercePriceListDiscountRel findByCommercePriceListId_Last(long commercePriceListId, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListDiscountRel> orderByComparator) throws NoSuchPriceListDiscountRelException
commercePriceListId
- the commerce price list IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPriceListDiscountRelException
- if a matching commerce price list discount rel could not be foundpublic static CommercePriceListDiscountRel fetchByCommercePriceListId_Last(long commercePriceListId, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListDiscountRel> orderByComparator)
commercePriceListId
- the commerce price list IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce price list discount rel could not be foundpublic static CommercePriceListDiscountRel[] findByCommercePriceListId_PrevAndNext(long commercePriceListDiscountRelId, long commercePriceListId, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListDiscountRel> orderByComparator) throws NoSuchPriceListDiscountRelException
commercePriceListDiscountRelId
- the primary key of the current commerce price list discount relcommercePriceListId
- the commerce price list IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPriceListDiscountRelException
- if a commerce price list discount rel with the primary key could not be foundpublic static void removeByCommercePriceListId(long commercePriceListId)
commercePriceListId
- the commerce price list IDpublic static int countByCommercePriceListId(long commercePriceListId)
commercePriceListId
- the commerce price list IDpublic static CommercePriceListDiscountRel findByCDI_CPI(long commerceDiscountId, long commercePriceListId) throws NoSuchPriceListDiscountRelException
NoSuchPriceListDiscountRelException
if it could not be found.commerceDiscountId
- the commerce discount IDcommercePriceListId
- the commerce price list IDNoSuchPriceListDiscountRelException
- if a matching commerce price list discount rel could not be foundpublic static CommercePriceListDiscountRel fetchByCDI_CPI(long commerceDiscountId, long commercePriceListId)
null
if it could not be found. Uses the finder cache.commerceDiscountId
- the commerce discount IDcommercePriceListId
- the commerce price list IDnull
if a matching commerce price list discount rel could not be foundpublic static CommercePriceListDiscountRel fetchByCDI_CPI(long commerceDiscountId, long commercePriceListId, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.commerceDiscountId
- the commerce discount IDcommercePriceListId
- the commerce price list IDuseFinderCache
- whether to use the finder cachenull
if a matching commerce price list discount rel could not be foundpublic static CommercePriceListDiscountRel removeByCDI_CPI(long commerceDiscountId, long commercePriceListId) throws NoSuchPriceListDiscountRelException
commerceDiscountId
- the commerce discount IDcommercePriceListId
- the commerce price list IDNoSuchPriceListDiscountRelException
public static int countByCDI_CPI(long commerceDiscountId, long commercePriceListId)
commerceDiscountId
- the commerce discount IDcommercePriceListId
- the commerce price list IDpublic static void cacheResult(CommercePriceListDiscountRel commercePriceListDiscountRel)
commercePriceListDiscountRel
- the commerce price list discount relpublic static void cacheResult(java.util.List<CommercePriceListDiscountRel> commercePriceListDiscountRels)
commercePriceListDiscountRels
- the commerce price list discount relspublic static CommercePriceListDiscountRel create(long commercePriceListDiscountRelId)
commercePriceListDiscountRelId
- the primary key for the new commerce price list discount relpublic static CommercePriceListDiscountRel remove(long commercePriceListDiscountRelId) throws NoSuchPriceListDiscountRelException
commercePriceListDiscountRelId
- the primary key of the commerce price list discount relNoSuchPriceListDiscountRelException
- if a commerce price list discount rel with the primary key could not be foundpublic static CommercePriceListDiscountRel updateImpl(CommercePriceListDiscountRel commercePriceListDiscountRel)
public static CommercePriceListDiscountRel findByPrimaryKey(long commercePriceListDiscountRelId) throws NoSuchPriceListDiscountRelException
NoSuchPriceListDiscountRelException
if it could not be found.commercePriceListDiscountRelId
- the primary key of the commerce price list discount relNoSuchPriceListDiscountRelException
- if a commerce price list discount rel with the primary key could not be foundpublic static CommercePriceListDiscountRel fetchByPrimaryKey(long commercePriceListDiscountRelId)
null
if it could not be found.commercePriceListDiscountRelId
- the primary key of the commerce price list discount relnull
if a commerce price list discount rel with the primary key could not be foundpublic static java.util.List<CommercePriceListDiscountRel> findAll()
public static java.util.List<CommercePriceListDiscountRel> 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 CommercePriceListDiscountRelModelImpl
.
start
- the lower bound of the range of commerce price list discount relsend
- the upper bound of the range of commerce price list discount rels (not inclusive)public static java.util.List<CommercePriceListDiscountRel> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListDiscountRel> 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 CommercePriceListDiscountRelModelImpl
.
start
- the lower bound of the range of commerce price list discount relsend
- the upper bound of the range of commerce price list discount rels (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CommercePriceListDiscountRel> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePriceListDiscountRel> 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 CommercePriceListDiscountRelModelImpl
.
start
- the lower bound of the range of commerce price list discount relsend
- the upper bound of the range of commerce price list discount rels (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 CommercePriceListDiscountRelPersistence getPersistence()