@ProviderType public interface CommerceDiscountUsageEntryPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<CommerceDiscountUsageEntry>
Caching information and settings can be found in portal.properties
com.liferay.commerce.discount.service.persistence.impl.CommerceDiscountUsageEntryPersistenceImpl,
CommerceDiscountUsageEntryUtil| Modifier and Type | Method and Description |
|---|---|
void |
cacheResult(CommerceDiscountUsageEntry commerceDiscountUsageEntry)
Caches the commerce discount usage entry in the entity cache if it is enabled.
|
void |
cacheResult(java.util.List<CommerceDiscountUsageEntry> commerceDiscountUsageEntries)
Caches the commerce discount usage entries in the entity cache if it is enabled.
|
int |
countAll()
Returns the number of commerce discount usage entries.
|
int |
countByGroupId(long groupId)
Returns the number of commerce discount usage entries where groupId = ?.
|
CommerceDiscountUsageEntry |
create(long commerceDiscountUsageEntryId)
Creates a new commerce discount usage entry with the primary key.
|
CommerceDiscountUsageEntry |
fetchByGroupId_First(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUsageEntry> orderByComparator)
Returns the first commerce discount usage entry in the ordered set where groupId = ?.
|
CommerceDiscountUsageEntry |
fetchByGroupId_Last(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUsageEntry> orderByComparator)
Returns the last commerce discount usage entry in the ordered set where groupId = ?.
|
CommerceDiscountUsageEntry |
fetchByPrimaryKey(long commerceDiscountUsageEntryId)
Returns the commerce discount usage entry with the primary key or returns
null if it could not be found. |
java.util.Map<java.io.Serializable,CommerceDiscountUsageEntry> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
java.util.List<CommerceDiscountUsageEntry> |
findAll()
Returns all the commerce discount usage entries.
|
java.util.List<CommerceDiscountUsageEntry> |
findAll(int start,
int end)
Returns a range of all the commerce discount usage entries.
|
java.util.List<CommerceDiscountUsageEntry> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUsageEntry> orderByComparator)
Returns an ordered range of all the commerce discount usage entries.
|
java.util.List<CommerceDiscountUsageEntry> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUsageEntry> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the commerce discount usage entries.
|
CommerceDiscountUsageEntry |
findByGroupId_First(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUsageEntry> orderByComparator)
Returns the first commerce discount usage entry in the ordered set where groupId = ?.
|
CommerceDiscountUsageEntry |
findByGroupId_Last(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUsageEntry> orderByComparator)
Returns the last commerce discount usage entry in the ordered set where groupId = ?.
|
CommerceDiscountUsageEntry[] |
findByGroupId_PrevAndNext(long commerceDiscountUsageEntryId,
long groupId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUsageEntry> orderByComparator)
Returns the commerce discount usage entries before and after the current commerce discount usage entry in the ordered set where groupId = ?.
|
java.util.List<CommerceDiscountUsageEntry> |
findByGroupId(long groupId)
Returns all the commerce discount usage entries where groupId = ?.
|
java.util.List<CommerceDiscountUsageEntry> |
findByGroupId(long groupId,
int start,
int end)
Returns a range of all the commerce discount usage entries where groupId = ?.
|
java.util.List<CommerceDiscountUsageEntry> |
findByGroupId(long groupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUsageEntry> orderByComparator)
Returns an ordered range of all the commerce discount usage entries where groupId = ?.
|
java.util.List<CommerceDiscountUsageEntry> |
findByGroupId(long groupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUsageEntry> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the commerce discount usage entries where groupId = ?.
|
CommerceDiscountUsageEntry |
findByPrimaryKey(long commerceDiscountUsageEntryId)
Returns the commerce discount usage entry with the primary key or throws a
NoSuchDiscountUsageEntryException if it could not be found. |
CommerceDiscountUsageEntry |
remove(long commerceDiscountUsageEntryId)
Removes the commerce discount usage entry with the primary key from the database.
|
void |
removeAll()
Removes all the commerce discount usage entries from the database.
|
void |
removeByGroupId(long groupId)
Removes all the commerce discount usage entries where groupId = ? from the database.
|
CommerceDiscountUsageEntry |
updateImpl(CommerceDiscountUsageEntry commerceDiscountUsageEntry) |
clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, updatejava.util.List<CommerceDiscountUsageEntry> findByGroupId(long groupId)
groupId - the group IDjava.util.List<CommerceDiscountUsageEntry> findByGroupId(long groupId, 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommerceDiscountUsageEntryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId - the group IDstart - the lower bound of the range of commerce discount usage entriesend - the upper bound of the range of commerce discount usage entries (not inclusive)java.util.List<CommerceDiscountUsageEntry> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUsageEntry> 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommerceDiscountUsageEntryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId - the group IDstart - the lower bound of the range of commerce discount usage entriesend - the upper bound of the range of commerce discount usage entries (not inclusive)orderByComparator - the comparator to order the results by (optionally null)java.util.List<CommerceDiscountUsageEntry> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUsageEntry> orderByComparator, boolean retrieveFromCache)
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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommerceDiscountUsageEntryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId - the group IDstart - the lower bound of the range of commerce discount usage entriesend - the upper bound of the range of commerce discount usage entries (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cacheCommerceDiscountUsageEntry findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUsageEntry> orderByComparator) throws NoSuchDiscountUsageEntryException
groupId - the group IDorderByComparator - the comparator to order the set by (optionally null)NoSuchDiscountUsageEntryException - if a matching commerce discount usage entry could not be foundCommerceDiscountUsageEntry fetchByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUsageEntry> orderByComparator)
groupId - the group IDorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce discount usage entry could not be foundCommerceDiscountUsageEntry findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUsageEntry> orderByComparator) throws NoSuchDiscountUsageEntryException
groupId - the group IDorderByComparator - the comparator to order the set by (optionally null)NoSuchDiscountUsageEntryException - if a matching commerce discount usage entry could not be foundCommerceDiscountUsageEntry fetchByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUsageEntry> orderByComparator)
groupId - the group IDorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce discount usage entry could not be foundCommerceDiscountUsageEntry[] findByGroupId_PrevAndNext(long commerceDiscountUsageEntryId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUsageEntry> orderByComparator) throws NoSuchDiscountUsageEntryException
commerceDiscountUsageEntryId - the primary key of the current commerce discount usage entrygroupId - the group IDorderByComparator - the comparator to order the set by (optionally null)NoSuchDiscountUsageEntryException - if a commerce discount usage entry with the primary key could not be foundvoid removeByGroupId(long groupId)
groupId - the group IDint countByGroupId(long groupId)
groupId - the group IDvoid cacheResult(CommerceDiscountUsageEntry commerceDiscountUsageEntry)
commerceDiscountUsageEntry - the commerce discount usage entryvoid cacheResult(java.util.List<CommerceDiscountUsageEntry> commerceDiscountUsageEntries)
commerceDiscountUsageEntries - the commerce discount usage entriesCommerceDiscountUsageEntry create(long commerceDiscountUsageEntryId)
commerceDiscountUsageEntryId - the primary key for the new commerce discount usage entryCommerceDiscountUsageEntry remove(long commerceDiscountUsageEntryId) throws NoSuchDiscountUsageEntryException
commerceDiscountUsageEntryId - the primary key of the commerce discount usage entryNoSuchDiscountUsageEntryException - if a commerce discount usage entry with the primary key could not be foundCommerceDiscountUsageEntry updateImpl(CommerceDiscountUsageEntry commerceDiscountUsageEntry)
CommerceDiscountUsageEntry findByPrimaryKey(long commerceDiscountUsageEntryId) throws NoSuchDiscountUsageEntryException
NoSuchDiscountUsageEntryException if it could not be found.commerceDiscountUsageEntryId - the primary key of the commerce discount usage entryNoSuchDiscountUsageEntryException - if a commerce discount usage entry with the primary key could not be foundCommerceDiscountUsageEntry fetchByPrimaryKey(long commerceDiscountUsageEntryId)
null if it could not be found.commerceDiscountUsageEntryId - the primary key of the commerce discount usage entrynull if a commerce discount usage entry with the primary key could not be foundjava.util.Map<java.io.Serializable,CommerceDiscountUsageEntry> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
fetchByPrimaryKeys in interface com.liferay.portal.kernel.service.persistence.BasePersistence<CommerceDiscountUsageEntry>java.util.List<CommerceDiscountUsageEntry> findAll()
java.util.List<CommerceDiscountUsageEntry> 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommerceDiscountUsageEntryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start - the lower bound of the range of commerce discount usage entriesend - the upper bound of the range of commerce discount usage entries (not inclusive)java.util.List<CommerceDiscountUsageEntry> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUsageEntry> 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommerceDiscountUsageEntryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start - the lower bound of the range of commerce discount usage entriesend - the upper bound of the range of commerce discount usage entries (not inclusive)orderByComparator - the comparator to order the results by (optionally null)java.util.List<CommerceDiscountUsageEntry> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUsageEntry> orderByComparator, boolean retrieveFromCache)
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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommerceDiscountUsageEntryModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start - the lower bound of the range of commerce discount usage entriesend - the upper bound of the range of commerce discount usage entries (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cachevoid removeAll()
int countAll()