@ProviderType public interface CommercePriceListDiscountRelPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<CommercePriceListDiscountRel>, com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<CommercePriceListDiscountRel>
Caching information and settings can be found in portal.properties
CommercePriceListDiscountRelUtil
Modifier and Type | Method and Description |
---|---|
void |
cacheResult(CommercePriceListDiscountRel commercePriceListDiscountRel)
Caches the commerce price list discount rel in the entity cache if it is enabled.
|
void |
cacheResult(java.util.List<CommercePriceListDiscountRel> commercePriceListDiscountRels)
Caches the commerce price list discount rels in the entity cache if it is enabled.
|
int |
countAll()
Returns the number of commerce price list discount rels.
|
int |
countByCDI_CPI(long commerceDiscountId,
long commercePriceListId)
Returns the number of commerce price list discount rels where commerceDiscountId = ? and commercePriceListId = ?.
|
int |
countByCommercePriceListId(long commercePriceListId)
Returns the number of commerce price list discount rels where commercePriceListId = ?.
|
int |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of commerce price list discount rels where uuid = ? and companyId = ?.
|
int |
countByUuid(java.lang.String uuid)
Returns the number of commerce price list discount rels where uuid = ?.
|
CommercePriceListDiscountRel |
create(long commercePriceListDiscountRelId)
Creates a new commerce price list discount rel with the primary key.
|
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. |
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. |
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 = ?.
|
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 = ?.
|
CommercePriceListDiscountRel |
fetchByPrimaryKey(long commercePriceListDiscountRelId)
Returns the commerce price list discount rel with the primary key or returns
null if it could not be found. |
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
java.util.List<CommercePriceListDiscountRel> |
findAll()
Returns all the commerce price list discount rels.
|
java.util.List<CommercePriceListDiscountRel> |
findAll(int start,
int end)
Returns a range of all the commerce price list discount rels.
|
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.
|
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.
|
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. |
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 = ?.
|
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 = ?.
|
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 = ?.
|
java.util.List<CommercePriceListDiscountRel> |
findByCommercePriceListId(long commercePriceListId)
Returns all the commerce price list discount rels where commercePriceListId = ?.
|
java.util.List<CommercePriceListDiscountRel> |
findByCommercePriceListId(long commercePriceListId,
int start,
int end)
Returns a range of all the commerce price list discount rels where commercePriceListId = ?.
|
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 = ?.
|
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 = ?.
|
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. |
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 = ?.
|
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 = ?.
|
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 = ?.
|
java.util.List<CommercePriceListDiscountRel> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the commerce price list discount rels where uuid = ? and companyId = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
java.util.List<CommercePriceListDiscountRel> |
findByUuid(java.lang.String uuid)
Returns all the commerce price list discount rels where uuid = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
CommercePriceListDiscountRel |
remove(long commercePriceListDiscountRelId)
Removes the commerce price list discount rel with the primary key from the database.
|
void |
removeAll()
Removes all the commerce price list discount rels from the database.
|
CommercePriceListDiscountRel |
removeByCDI_CPI(long commerceDiscountId,
long commercePriceListId)
Removes the commerce price list discount rel where commerceDiscountId = ? and commercePriceListId = ? from the database.
|
void |
removeByCommercePriceListId(long commercePriceListId)
Removes all the commerce price list discount rels where commercePriceListId = ? from the database.
|
void |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the commerce price list discount rels where uuid = ? and companyId = ? from the database.
|
void |
removeByUuid(java.lang.String uuid)
Removes all the commerce price list discount rels where uuid = ? from the database.
|
CommercePriceListDiscountRel |
updateImpl(CommercePriceListDiscountRel commercePriceListDiscountRel) |
getCTColumnNames, getMappingTableNames, getTableColumnsMap, getTableName, getUniqueIndexColumnNames
clearCache, clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update
java.util.List<CommercePriceListDiscountRel> findByUuid(java.lang.String uuid)
uuid
- the uuidjava.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)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
)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 cacheCommercePriceListDiscountRel 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 foundCommercePriceListDiscountRel 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 foundCommercePriceListDiscountRel 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 foundCommercePriceListDiscountRel 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 foundCommercePriceListDiscountRel[] 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 foundvoid removeByUuid(java.lang.String uuid)
uuid
- the uuidint countByUuid(java.lang.String uuid)
uuid
- the uuidjava.util.List<CommercePriceListDiscountRel> findByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDjava.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)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
)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 cacheCommercePriceListDiscountRel 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 foundCommercePriceListDiscountRel 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 foundCommercePriceListDiscountRel 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 foundCommercePriceListDiscountRel 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 foundCommercePriceListDiscountRel[] 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 foundvoid removeByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDint countByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDjava.util.List<CommercePriceListDiscountRel> findByCommercePriceListId(long commercePriceListId)
commercePriceListId
- the commerce price list IDjava.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)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
)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 cacheCommercePriceListDiscountRel 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 foundCommercePriceListDiscountRel 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 foundCommercePriceListDiscountRel 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 foundCommercePriceListDiscountRel 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 foundCommercePriceListDiscountRel[] 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 foundvoid removeByCommercePriceListId(long commercePriceListId)
commercePriceListId
- the commerce price list IDint countByCommercePriceListId(long commercePriceListId)
commercePriceListId
- the commerce price list IDCommercePriceListDiscountRel 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 foundCommercePriceListDiscountRel 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 foundCommercePriceListDiscountRel 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 foundCommercePriceListDiscountRel removeByCDI_CPI(long commerceDiscountId, long commercePriceListId) throws NoSuchPriceListDiscountRelException
commerceDiscountId
- the commerce discount IDcommercePriceListId
- the commerce price list IDNoSuchPriceListDiscountRelException
int countByCDI_CPI(long commerceDiscountId, long commercePriceListId)
commerceDiscountId
- the commerce discount IDcommercePriceListId
- the commerce price list IDvoid cacheResult(CommercePriceListDiscountRel commercePriceListDiscountRel)
commercePriceListDiscountRel
- the commerce price list discount relvoid cacheResult(java.util.List<CommercePriceListDiscountRel> commercePriceListDiscountRels)
commercePriceListDiscountRels
- the commerce price list discount relsCommercePriceListDiscountRel create(long commercePriceListDiscountRelId)
commercePriceListDiscountRelId
- the primary key for the new commerce price list discount relCommercePriceListDiscountRel 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 foundCommercePriceListDiscountRel updateImpl(CommercePriceListDiscountRel commercePriceListDiscountRel)
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 foundCommercePriceListDiscountRel 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 foundjava.util.List<CommercePriceListDiscountRel> findAll()
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)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
)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 cachevoid removeAll()
int countAll()