@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.
|
int |
countByCAI_CDI(long commerceAccountId,
long commerceDiscountId)
Returns the number of commerce discount usage entries where commerceAccountId = ? and commerceDiscountId = ?.
|
int |
countByCAI_COI_CDI(long commerceAccountId,
long commerceOrderId,
long commerceDiscountId)
Returns the number of commerce discount usage entries where commerceAccountId = ? and commerceOrderId = ? and commerceDiscountId = ?.
|
int |
countByCOI_CDI(long commerceOrderId,
long commerceDiscountId)
Returns the number of commerce discount usage entries where commerceOrderId = ? and commerceDiscountId = ?.
|
int |
countByCommerceDiscountId(long commerceDiscountId)
Returns the number of commerce discount usage entries where commerceDiscountId = ?.
|
CommerceDiscountUsageEntry |
create(long commerceDiscountUsageEntryId)
Creates a new commerce discount usage entry with the primary key.
|
CommerceDiscountUsageEntry |
fetchByCAI_CDI_First(long commerceAccountId,
long commerceDiscountId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUsageEntry> orderByComparator)
Returns the first commerce discount usage entry in the ordered set where commerceAccountId = ? and commerceDiscountId = ?.
|
CommerceDiscountUsageEntry |
fetchByCAI_CDI_Last(long commerceAccountId,
long commerceDiscountId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUsageEntry> orderByComparator)
Returns the last commerce discount usage entry in the ordered set where commerceAccountId = ? and commerceDiscountId = ?.
|
CommerceDiscountUsageEntry |
fetchByCAI_COI_CDI_First(long commerceAccountId,
long commerceOrderId,
long commerceDiscountId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUsageEntry> orderByComparator)
Returns the first commerce discount usage entry in the ordered set where commerceAccountId = ? and commerceOrderId = ? and commerceDiscountId = ?.
|
CommerceDiscountUsageEntry |
fetchByCAI_COI_CDI_Last(long commerceAccountId,
long commerceOrderId,
long commerceDiscountId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUsageEntry> orderByComparator)
Returns the last commerce discount usage entry in the ordered set where commerceAccountId = ? and commerceOrderId = ? and commerceDiscountId = ?.
|
CommerceDiscountUsageEntry |
fetchByCOI_CDI_First(long commerceOrderId,
long commerceDiscountId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUsageEntry> orderByComparator)
Returns the first commerce discount usage entry in the ordered set where commerceOrderId = ? and commerceDiscountId = ?.
|
CommerceDiscountUsageEntry |
fetchByCOI_CDI_Last(long commerceOrderId,
long commerceDiscountId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUsageEntry> orderByComparator)
Returns the last commerce discount usage entry in the ordered set where commerceOrderId = ? and commerceDiscountId = ?.
|
CommerceDiscountUsageEntry |
fetchByCommerceDiscountId_First(long commerceDiscountId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUsageEntry> orderByComparator)
Returns the first commerce discount usage entry in the ordered set where commerceDiscountId = ?.
|
CommerceDiscountUsageEntry |
fetchByCommerceDiscountId_Last(long commerceDiscountId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUsageEntry> orderByComparator)
Returns the last commerce discount usage entry in the ordered set where commerceDiscountId = ?.
|
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.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 |
findByCAI_CDI_First(long commerceAccountId,
long commerceDiscountId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUsageEntry> orderByComparator)
Returns the first commerce discount usage entry in the ordered set where commerceAccountId = ? and commerceDiscountId = ?.
|
CommerceDiscountUsageEntry |
findByCAI_CDI_Last(long commerceAccountId,
long commerceDiscountId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUsageEntry> orderByComparator)
Returns the last commerce discount usage entry in the ordered set where commerceAccountId = ? and commerceDiscountId = ?.
|
CommerceDiscountUsageEntry[] |
findByCAI_CDI_PrevAndNext(long commerceDiscountUsageEntryId,
long commerceAccountId,
long commerceDiscountId,
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 commerceAccountId = ? and commerceDiscountId = ?.
|
java.util.List<CommerceDiscountUsageEntry> |
findByCAI_CDI(long commerceAccountId,
long commerceDiscountId)
Returns all the commerce discount usage entries where commerceAccountId = ? and commerceDiscountId = ?.
|
java.util.List<CommerceDiscountUsageEntry> |
findByCAI_CDI(long commerceAccountId,
long commerceDiscountId,
int start,
int end)
Returns a range of all the commerce discount usage entries where commerceAccountId = ? and commerceDiscountId = ?.
|
java.util.List<CommerceDiscountUsageEntry> |
findByCAI_CDI(long commerceAccountId,
long commerceDiscountId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUsageEntry> orderByComparator)
Returns an ordered range of all the commerce discount usage entries where commerceAccountId = ? and commerceDiscountId = ?.
|
java.util.List<CommerceDiscountUsageEntry> |
findByCAI_CDI(long commerceAccountId,
long commerceDiscountId,
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 where commerceAccountId = ? and commerceDiscountId = ?.
|
CommerceDiscountUsageEntry |
findByCAI_COI_CDI_First(long commerceAccountId,
long commerceOrderId,
long commerceDiscountId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUsageEntry> orderByComparator)
Returns the first commerce discount usage entry in the ordered set where commerceAccountId = ? and commerceOrderId = ? and commerceDiscountId = ?.
|
CommerceDiscountUsageEntry |
findByCAI_COI_CDI_Last(long commerceAccountId,
long commerceOrderId,
long commerceDiscountId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUsageEntry> orderByComparator)
Returns the last commerce discount usage entry in the ordered set where commerceAccountId = ? and commerceOrderId = ? and commerceDiscountId = ?.
|
CommerceDiscountUsageEntry[] |
findByCAI_COI_CDI_PrevAndNext(long commerceDiscountUsageEntryId,
long commerceAccountId,
long commerceOrderId,
long commerceDiscountId,
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 commerceAccountId = ? and commerceOrderId = ? and commerceDiscountId = ?.
|
java.util.List<CommerceDiscountUsageEntry> |
findByCAI_COI_CDI(long commerceAccountId,
long commerceOrderId,
long commerceDiscountId)
Returns all the commerce discount usage entries where commerceAccountId = ? and commerceOrderId = ? and commerceDiscountId = ?.
|
java.util.List<CommerceDiscountUsageEntry> |
findByCAI_COI_CDI(long commerceAccountId,
long commerceOrderId,
long commerceDiscountId,
int start,
int end)
Returns a range of all the commerce discount usage entries where commerceAccountId = ? and commerceOrderId = ? and commerceDiscountId = ?.
|
java.util.List<CommerceDiscountUsageEntry> |
findByCAI_COI_CDI(long commerceAccountId,
long commerceOrderId,
long commerceDiscountId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUsageEntry> orderByComparator)
Returns an ordered range of all the commerce discount usage entries where commerceAccountId = ? and commerceOrderId = ? and commerceDiscountId = ?.
|
java.util.List<CommerceDiscountUsageEntry> |
findByCAI_COI_CDI(long commerceAccountId,
long commerceOrderId,
long commerceDiscountId,
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 where commerceAccountId = ? and commerceOrderId = ? and commerceDiscountId = ?.
|
CommerceDiscountUsageEntry |
findByCOI_CDI_First(long commerceOrderId,
long commerceDiscountId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUsageEntry> orderByComparator)
Returns the first commerce discount usage entry in the ordered set where commerceOrderId = ? and commerceDiscountId = ?.
|
CommerceDiscountUsageEntry |
findByCOI_CDI_Last(long commerceOrderId,
long commerceDiscountId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUsageEntry> orderByComparator)
Returns the last commerce discount usage entry in the ordered set where commerceOrderId = ? and commerceDiscountId = ?.
|
CommerceDiscountUsageEntry[] |
findByCOI_CDI_PrevAndNext(long commerceDiscountUsageEntryId,
long commerceOrderId,
long commerceDiscountId,
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 commerceOrderId = ? and commerceDiscountId = ?.
|
java.util.List<CommerceDiscountUsageEntry> |
findByCOI_CDI(long commerceOrderId,
long commerceDiscountId)
Returns all the commerce discount usage entries where commerceOrderId = ? and commerceDiscountId = ?.
|
java.util.List<CommerceDiscountUsageEntry> |
findByCOI_CDI(long commerceOrderId,
long commerceDiscountId,
int start,
int end)
Returns a range of all the commerce discount usage entries where commerceOrderId = ? and commerceDiscountId = ?.
|
java.util.List<CommerceDiscountUsageEntry> |
findByCOI_CDI(long commerceOrderId,
long commerceDiscountId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUsageEntry> orderByComparator)
Returns an ordered range of all the commerce discount usage entries where commerceOrderId = ? and commerceDiscountId = ?.
|
java.util.List<CommerceDiscountUsageEntry> |
findByCOI_CDI(long commerceOrderId,
long commerceDiscountId,
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 where commerceOrderId = ? and commerceDiscountId = ?.
|
CommerceDiscountUsageEntry |
findByCommerceDiscountId_First(long commerceDiscountId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUsageEntry> orderByComparator)
Returns the first commerce discount usage entry in the ordered set where commerceDiscountId = ?.
|
CommerceDiscountUsageEntry |
findByCommerceDiscountId_Last(long commerceDiscountId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUsageEntry> orderByComparator)
Returns the last commerce discount usage entry in the ordered set where commerceDiscountId = ?.
|
CommerceDiscountUsageEntry[] |
findByCommerceDiscountId_PrevAndNext(long commerceDiscountUsageEntryId,
long commerceDiscountId,
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 commerceDiscountId = ?.
|
java.util.List<CommerceDiscountUsageEntry> |
findByCommerceDiscountId(long commerceDiscountId)
Returns all the commerce discount usage entries where commerceDiscountId = ?.
|
java.util.List<CommerceDiscountUsageEntry> |
findByCommerceDiscountId(long commerceDiscountId,
int start,
int end)
Returns a range of all the commerce discount usage entries where commerceDiscountId = ?.
|
java.util.List<CommerceDiscountUsageEntry> |
findByCommerceDiscountId(long commerceDiscountId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUsageEntry> orderByComparator)
Returns an ordered range of all the commerce discount usage entries where commerceDiscountId = ?.
|
java.util.List<CommerceDiscountUsageEntry> |
findByCommerceDiscountId(long commerceDiscountId,
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 where commerceDiscountId = ?.
|
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 |
removeByCAI_CDI(long commerceAccountId,
long commerceDiscountId)
Removes all the commerce discount usage entries where commerceAccountId = ? and commerceDiscountId = ? from the database.
|
void |
removeByCAI_COI_CDI(long commerceAccountId,
long commerceOrderId,
long commerceDiscountId)
Removes all the commerce discount usage entries where commerceAccountId = ? and commerceOrderId = ? and commerceDiscountId = ? from the database.
|
void |
removeByCOI_CDI(long commerceOrderId,
long commerceDiscountId)
Removes all the commerce discount usage entries where commerceOrderId = ? and commerceDiscountId = ? from the database.
|
void |
removeByCommerceDiscountId(long commerceDiscountId)
Removes all the commerce discount usage entries where commerceDiscountId = ? from the database.
|
CommerceDiscountUsageEntry |
updateImpl(CommerceDiscountUsageEntry commerceDiscountUsageEntry) |
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<CommerceDiscountUsageEntry> findByCommerceDiscountId(long commerceDiscountId)
commerceDiscountId
- the commerce discount IDjava.util.List<CommerceDiscountUsageEntry> findByCommerceDiscountId(long commerceDiscountId, 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
.
commerceDiscountId
- the commerce discount 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> findByCommerceDiscountId(long commerceDiscountId, 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
.
commerceDiscountId
- the commerce discount 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> findByCommerceDiscountId(long commerceDiscountId, 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
.
commerceDiscountId
- the commerce discount 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
)useFinderCache
- whether to use the finder cacheCommerceDiscountUsageEntry findByCommerceDiscountId_First(long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUsageEntry> orderByComparator) throws NoSuchDiscountUsageEntryException
commerceDiscountId
- the commerce discount IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDiscountUsageEntryException
- if a matching commerce discount usage entry could not be foundCommerceDiscountUsageEntry fetchByCommerceDiscountId_First(long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUsageEntry> orderByComparator)
commerceDiscountId
- the commerce discount IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce discount usage entry could not be foundCommerceDiscountUsageEntry findByCommerceDiscountId_Last(long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUsageEntry> orderByComparator) throws NoSuchDiscountUsageEntryException
commerceDiscountId
- the commerce discount IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDiscountUsageEntryException
- if a matching commerce discount usage entry could not be foundCommerceDiscountUsageEntry fetchByCommerceDiscountId_Last(long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUsageEntry> orderByComparator)
commerceDiscountId
- the commerce discount IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce discount usage entry could not be foundCommerceDiscountUsageEntry[] findByCommerceDiscountId_PrevAndNext(long commerceDiscountUsageEntryId, long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUsageEntry> orderByComparator) throws NoSuchDiscountUsageEntryException
commerceDiscountUsageEntryId
- the primary key of the current commerce discount usage entrycommerceDiscountId
- the commerce discount 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 removeByCommerceDiscountId(long commerceDiscountId)
commerceDiscountId
- the commerce discount IDint countByCommerceDiscountId(long commerceDiscountId)
commerceDiscountId
- the commerce discount IDjava.util.List<CommerceDiscountUsageEntry> findByCAI_CDI(long commerceAccountId, long commerceDiscountId)
commerceAccountId
- the commerce account IDcommerceDiscountId
- the commerce discount IDjava.util.List<CommerceDiscountUsageEntry> findByCAI_CDI(long commerceAccountId, long commerceDiscountId, 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
.
commerceAccountId
- the commerce account IDcommerceDiscountId
- the commerce discount 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> findByCAI_CDI(long commerceAccountId, long commerceDiscountId, 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
.
commerceAccountId
- the commerce account IDcommerceDiscountId
- the commerce discount 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> findByCAI_CDI(long commerceAccountId, long commerceDiscountId, 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
.
commerceAccountId
- the commerce account IDcommerceDiscountId
- the commerce discount 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
)useFinderCache
- whether to use the finder cacheCommerceDiscountUsageEntry findByCAI_CDI_First(long commerceAccountId, long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUsageEntry> orderByComparator) throws NoSuchDiscountUsageEntryException
commerceAccountId
- the commerce account IDcommerceDiscountId
- the commerce discount IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDiscountUsageEntryException
- if a matching commerce discount usage entry could not be foundCommerceDiscountUsageEntry fetchByCAI_CDI_First(long commerceAccountId, long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUsageEntry> orderByComparator)
commerceAccountId
- the commerce account IDcommerceDiscountId
- the commerce discount IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce discount usage entry could not be foundCommerceDiscountUsageEntry findByCAI_CDI_Last(long commerceAccountId, long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUsageEntry> orderByComparator) throws NoSuchDiscountUsageEntryException
commerceAccountId
- the commerce account IDcommerceDiscountId
- the commerce discount IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDiscountUsageEntryException
- if a matching commerce discount usage entry could not be foundCommerceDiscountUsageEntry fetchByCAI_CDI_Last(long commerceAccountId, long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUsageEntry> orderByComparator)
commerceAccountId
- the commerce account IDcommerceDiscountId
- the commerce discount IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce discount usage entry could not be foundCommerceDiscountUsageEntry[] findByCAI_CDI_PrevAndNext(long commerceDiscountUsageEntryId, long commerceAccountId, long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUsageEntry> orderByComparator) throws NoSuchDiscountUsageEntryException
commerceDiscountUsageEntryId
- the primary key of the current commerce discount usage entrycommerceAccountId
- the commerce account IDcommerceDiscountId
- the commerce discount 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 removeByCAI_CDI(long commerceAccountId, long commerceDiscountId)
commerceAccountId
- the commerce account IDcommerceDiscountId
- the commerce discount IDint countByCAI_CDI(long commerceAccountId, long commerceDiscountId)
commerceAccountId
- the commerce account IDcommerceDiscountId
- the commerce discount IDjava.util.List<CommerceDiscountUsageEntry> findByCOI_CDI(long commerceOrderId, long commerceDiscountId)
commerceOrderId
- the commerce order IDcommerceDiscountId
- the commerce discount IDjava.util.List<CommerceDiscountUsageEntry> findByCOI_CDI(long commerceOrderId, long commerceDiscountId, 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
.
commerceOrderId
- the commerce order IDcommerceDiscountId
- the commerce discount 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> findByCOI_CDI(long commerceOrderId, long commerceDiscountId, 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
.
commerceOrderId
- the commerce order IDcommerceDiscountId
- the commerce discount 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> findByCOI_CDI(long commerceOrderId, long commerceDiscountId, 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
.
commerceOrderId
- the commerce order IDcommerceDiscountId
- the commerce discount 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
)useFinderCache
- whether to use the finder cacheCommerceDiscountUsageEntry findByCOI_CDI_First(long commerceOrderId, long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUsageEntry> orderByComparator) throws NoSuchDiscountUsageEntryException
commerceOrderId
- the commerce order IDcommerceDiscountId
- the commerce discount IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDiscountUsageEntryException
- if a matching commerce discount usage entry could not be foundCommerceDiscountUsageEntry fetchByCOI_CDI_First(long commerceOrderId, long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUsageEntry> orderByComparator)
commerceOrderId
- the commerce order IDcommerceDiscountId
- the commerce discount IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce discount usage entry could not be foundCommerceDiscountUsageEntry findByCOI_CDI_Last(long commerceOrderId, long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUsageEntry> orderByComparator) throws NoSuchDiscountUsageEntryException
commerceOrderId
- the commerce order IDcommerceDiscountId
- the commerce discount IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDiscountUsageEntryException
- if a matching commerce discount usage entry could not be foundCommerceDiscountUsageEntry fetchByCOI_CDI_Last(long commerceOrderId, long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUsageEntry> orderByComparator)
commerceOrderId
- the commerce order IDcommerceDiscountId
- the commerce discount IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce discount usage entry could not be foundCommerceDiscountUsageEntry[] findByCOI_CDI_PrevAndNext(long commerceDiscountUsageEntryId, long commerceOrderId, long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUsageEntry> orderByComparator) throws NoSuchDiscountUsageEntryException
commerceDiscountUsageEntryId
- the primary key of the current commerce discount usage entrycommerceOrderId
- the commerce order IDcommerceDiscountId
- the commerce discount 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 removeByCOI_CDI(long commerceOrderId, long commerceDiscountId)
commerceOrderId
- the commerce order IDcommerceDiscountId
- the commerce discount IDint countByCOI_CDI(long commerceOrderId, long commerceDiscountId)
commerceOrderId
- the commerce order IDcommerceDiscountId
- the commerce discount IDjava.util.List<CommerceDiscountUsageEntry> findByCAI_COI_CDI(long commerceAccountId, long commerceOrderId, long commerceDiscountId)
commerceAccountId
- the commerce account IDcommerceOrderId
- the commerce order IDcommerceDiscountId
- the commerce discount IDjava.util.List<CommerceDiscountUsageEntry> findByCAI_COI_CDI(long commerceAccountId, long commerceOrderId, long commerceDiscountId, 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
.
commerceAccountId
- the commerce account IDcommerceOrderId
- the commerce order IDcommerceDiscountId
- the commerce discount 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> findByCAI_COI_CDI(long commerceAccountId, long commerceOrderId, long commerceDiscountId, 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
.
commerceAccountId
- the commerce account IDcommerceOrderId
- the commerce order IDcommerceDiscountId
- the commerce discount 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> findByCAI_COI_CDI(long commerceAccountId, long commerceOrderId, long commerceDiscountId, 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
.
commerceAccountId
- the commerce account IDcommerceOrderId
- the commerce order IDcommerceDiscountId
- the commerce discount 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
)useFinderCache
- whether to use the finder cacheCommerceDiscountUsageEntry findByCAI_COI_CDI_First(long commerceAccountId, long commerceOrderId, long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUsageEntry> orderByComparator) throws NoSuchDiscountUsageEntryException
commerceAccountId
- the commerce account IDcommerceOrderId
- the commerce order IDcommerceDiscountId
- the commerce discount IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDiscountUsageEntryException
- if a matching commerce discount usage entry could not be foundCommerceDiscountUsageEntry fetchByCAI_COI_CDI_First(long commerceAccountId, long commerceOrderId, long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUsageEntry> orderByComparator)
commerceAccountId
- the commerce account IDcommerceOrderId
- the commerce order IDcommerceDiscountId
- the commerce discount IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce discount usage entry could not be foundCommerceDiscountUsageEntry findByCAI_COI_CDI_Last(long commerceAccountId, long commerceOrderId, long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUsageEntry> orderByComparator) throws NoSuchDiscountUsageEntryException
commerceAccountId
- the commerce account IDcommerceOrderId
- the commerce order IDcommerceDiscountId
- the commerce discount IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDiscountUsageEntryException
- if a matching commerce discount usage entry could not be foundCommerceDiscountUsageEntry fetchByCAI_COI_CDI_Last(long commerceAccountId, long commerceOrderId, long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUsageEntry> orderByComparator)
commerceAccountId
- the commerce account IDcommerceOrderId
- the commerce order IDcommerceDiscountId
- the commerce discount IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce discount usage entry could not be foundCommerceDiscountUsageEntry[] findByCAI_COI_CDI_PrevAndNext(long commerceDiscountUsageEntryId, long commerceAccountId, long commerceOrderId, long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUsageEntry> orderByComparator) throws NoSuchDiscountUsageEntryException
commerceDiscountUsageEntryId
- the primary key of the current commerce discount usage entrycommerceAccountId
- the commerce account IDcommerceOrderId
- the commerce order IDcommerceDiscountId
- the commerce discount 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 removeByCAI_COI_CDI(long commerceAccountId, long commerceOrderId, long commerceDiscountId)
commerceAccountId
- the commerce account IDcommerceOrderId
- the commerce order IDcommerceDiscountId
- the commerce discount IDint countByCAI_COI_CDI(long commerceAccountId, long commerceOrderId, long commerceDiscountId)
commerceAccountId
- the commerce account IDcommerceOrderId
- the commerce order IDcommerceDiscountId
- the commerce discount 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.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()