@ProviderType public interface CommerceDiscountUsageEntryPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<CommerceDiscountUsageEntry>
Caching information and settings can be found in portal.properties
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.
|
CommerceDiscountUsageEntry |
create(long commerceDiscountUsageEntryId)
Creates a new commerce discount usage entry with the primary key.
|
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 useFinderCache)
Returns an ordered range of all the commerce discount usage entries.
|
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.
|
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.Map<java.io.Serializable,CommerceDiscountUsageEntry> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
fetchByPrimaryKeys in interface com.liferay.portal.kernel.service.persistence.BasePersistence<CommerceDiscountUsageEntry>void 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.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, then the query will include the default ORDER BY logic from CommerceDiscountUsageEntryModelImpl.
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, then the query will include the default ORDER BY logic from CommerceDiscountUsageEntryModelImpl.
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 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 CommerceDiscountUsageEntryModelImpl.
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)useFinderCache - whether to use the finder cachevoid removeAll()
int countAll()