Class CommerceDiscountUsageEntryUtil
com.liferay.commerce.discount.service.persistence.impl.CommerceDiscountUsageEntryPersistenceImpl and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
Caching information and settings can be found in portal.properties
- See Also:
- Generated:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcacheResult(CommerceDiscountUsageEntry commerceDiscountUsageEntry) static voidcacheResult(List<CommerceDiscountUsageEntry> commerceDiscountUsageEntries) static voidstatic voidclearCache(CommerceDiscountUsageEntry commerceDiscountUsageEntry) static intcountByCAI_CDI(long commerceAccountId, long commerceDiscountId) Returns the number of commerce discount usage entries where commerceAccountId = ? and commerceDiscountId = ?.static intcountByCAI_COI_CDI(long commerceAccountId, long commerceOrderId, long commerceDiscountId) Returns the number of commerce discount usage entries where commerceAccountId = ? and commerceOrderId = ? and commerceDiscountId = ?.static intcountByCOI_CDI(long commerceOrderId, long commerceDiscountId) Returns the number of commerce discount usage entries where commerceOrderId = ? and commerceDiscountId = ?.static intcountByCommerceDiscountId(long commerceDiscountId) Returns the number of commerce discount usage entries where commerceDiscountId = ?.static longcountWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static CommerceDiscountUsageEntrycreate(long commerceDiscountUsageEntryId) Creates a new commerce discount usage entry with the primary key.static CommerceDiscountUsageEntryfetchByCAI_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 = ?.static CommerceDiscountUsageEntryfetchByCAI_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 = ?.static CommerceDiscountUsageEntryfetchByCOI_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 = ?.static CommerceDiscountUsageEntryfetchByCommerceDiscountId_First(long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUsageEntry> orderByComparator) Returns the first commerce discount usage entry in the ordered set where commerceDiscountId = ?.static CommerceDiscountUsageEntryfetchByPrimaryKey(long commerceDiscountUsageEntryId) Returns the commerce discount usage entry with the primary key or returnsnullif it could not be found.fetchByPrimaryKeys(Set<Serializable> primaryKeys) static List<CommerceDiscountUsageEntry> findByCAI_CDI(long commerceAccountId, long commerceDiscountId) Returns all the commerce discount usage entries where commerceAccountId = ? and commerceDiscountId = ?.static 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 = ?.static 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 = ?.static 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 = ?.static CommerceDiscountUsageEntryfindByCAI_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 = ?.static List<CommerceDiscountUsageEntry> findByCAI_COI_CDI(long commerceAccountId, long commerceOrderId, long commerceDiscountId) Returns all the commerce discount usage entries where commerceAccountId = ? and commerceOrderId = ? and commerceDiscountId = ?.static 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 = ?.static 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 = ?.static 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 = ?.static CommerceDiscountUsageEntryfindByCAI_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 = ?.static List<CommerceDiscountUsageEntry> findByCOI_CDI(long commerceOrderId, long commerceDiscountId) Returns all the commerce discount usage entries where commerceOrderId = ? and commerceDiscountId = ?.static 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 = ?.static 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 = ?.static 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 = ?.static CommerceDiscountUsageEntryfindByCOI_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 = ?.static List<CommerceDiscountUsageEntry> findByCommerceDiscountId(long commerceDiscountId) Returns all the commerce discount usage entries where commerceDiscountId = ?.static List<CommerceDiscountUsageEntry> findByCommerceDiscountId(long commerceDiscountId, int start, int end) Returns a range of all the commerce discount usage entries where commerceDiscountId = ?.static 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 = ?.static 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 = ?.static CommerceDiscountUsageEntryfindByCommerceDiscountId_First(long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUsageEntry> orderByComparator) Returns the first commerce discount usage entry in the ordered set where commerceDiscountId = ?.static CommerceDiscountUsageEntryfindByPrimaryKey(long commerceDiscountUsageEntryId) Returns the commerce discount usage entry with the primary key or throws aNoSuchDiscountUsageEntryExceptionif it could not be found.static List<CommerceDiscountUsageEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<CommerceDiscountUsageEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<CommerceDiscountUsageEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUsageEntry> orderByComparator) static CommerceDiscountUsageEntryremove(long commerceDiscountUsageEntryId) Removes the commerce discount usage entry with the primary key from the database.static voidremoveByCAI_CDI(long commerceAccountId, long commerceDiscountId) Removes all the commerce discount usage entries where commerceAccountId = ? and commerceDiscountId = ? from the database.static voidremoveByCAI_COI_CDI(long commerceAccountId, long commerceOrderId, long commerceDiscountId) Removes all the commerce discount usage entries where commerceAccountId = ? and commerceOrderId = ? and commerceDiscountId = ? from the database.static voidremoveByCOI_CDI(long commerceOrderId, long commerceDiscountId) Removes all the commerce discount usage entries where commerceOrderId = ? and commerceDiscountId = ? from the database.static voidremoveByCommerceDiscountId(long commerceDiscountId) Removes all the commerce discount usage entries where commerceDiscountId = ? from the database.static voidsetPersistence(CommerceDiscountUsageEntryPersistence persistence) static CommerceDiscountUsageEntryupdate(CommerceDiscountUsageEntry commerceDiscountUsageEntry) static CommerceDiscountUsageEntryupdate(CommerceDiscountUsageEntry commerceDiscountUsageEntry, com.liferay.portal.kernel.service.ServiceContext serviceContext) static CommerceDiscountUsageEntryupdateImpl(CommerceDiscountUsageEntry commerceDiscountUsageEntry)
-
Constructor Details
-
CommerceDiscountUsageEntryUtil
public CommerceDiscountUsageEntryUtil()
-
-
Method Details
-
cacheResult
- See Also:
-
cacheResult
- See Also:
-
clearCache
public static void clearCache()- See Also:
-
clearCache
- See Also:
-
countWithDynamicQuery
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
fetchByPrimaryKeys
public static Map<Serializable,CommerceDiscountUsageEntry> fetchByPrimaryKeys(Set<Serializable> primaryKeys) - See Also:
-
findWithDynamicQuery
public static List<CommerceDiscountUsageEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
findWithDynamicQuery
public static List<CommerceDiscountUsageEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
findWithDynamicQuery
public static List<CommerceDiscountUsageEntry> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUsageEntry> orderByComparator) - See Also:
-
update
public static CommerceDiscountUsageEntry update(CommerceDiscountUsageEntry commerceDiscountUsageEntry) - See Also:
-
update
public static CommerceDiscountUsageEntry update(CommerceDiscountUsageEntry commerceDiscountUsageEntry, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
findByCommerceDiscountId
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.discount.model.impl.CommerceDiscountUsageEntryModelImpl.- Parameters:
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 (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching commerce discount usage entries
-
findByCommerceDiscountId_First
public static CommerceDiscountUsageEntry findByCommerceDiscountId_First(long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUsageEntry> orderByComparator) throws NoSuchDiscountUsageEntryException Returns the first commerce discount usage entry in the ordered set where commerceDiscountId = ?.- Parameters:
commerceDiscountId- the commerce discount IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching commerce discount usage entry
-
fetchByCommerceDiscountId_First
public static 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 = ?.- Parameters:
commerceDiscountId- the commerce discount IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching commerce discount usage entry, or
nullif a matching commerce discount usage entry could not be found
-
removeByCommerceDiscountId
public static void removeByCommerceDiscountId(long commerceDiscountId) Removes all the commerce discount usage entries where commerceDiscountId = ? from the database.- Parameters:
commerceDiscountId- the commerce discount ID
-
countByCommerceDiscountId
public static int countByCommerceDiscountId(long commerceDiscountId) Returns the number of commerce discount usage entries where commerceDiscountId = ?.- Parameters:
commerceDiscountId- the commerce discount ID- Returns:
- the number of matching commerce discount usage entries
-
findByCAI_CDI
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.discount.model.impl.CommerceDiscountUsageEntryModelImpl.- Parameters:
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 (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching commerce discount usage entries
-
findByCAI_CDI_First
public static CommerceDiscountUsageEntry findByCAI_CDI_First(long commerceAccountId, long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUsageEntry> orderByComparator) throws NoSuchDiscountUsageEntryException Returns the first commerce discount usage entry in the ordered set where commerceAccountId = ? and commerceDiscountId = ?.- Parameters:
commerceAccountId- the commerce account IDcommerceDiscountId- the commerce discount IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching commerce discount usage entry
-
fetchByCAI_CDI_First
public static 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 = ?.- Parameters:
commerceAccountId- the commerce account IDcommerceDiscountId- the commerce discount IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching commerce discount usage entry, or
nullif a matching commerce discount usage entry could not be found
-
removeByCAI_CDI
public static void removeByCAI_CDI(long commerceAccountId, long commerceDiscountId) Removes all the commerce discount usage entries where commerceAccountId = ? and commerceDiscountId = ? from the database.- Parameters:
commerceAccountId- the commerce account IDcommerceDiscountId- the commerce discount ID
-
countByCAI_CDI
public static int countByCAI_CDI(long commerceAccountId, long commerceDiscountId) Returns the number of commerce discount usage entries where commerceAccountId = ? and commerceDiscountId = ?.- Parameters:
commerceAccountId- the commerce account IDcommerceDiscountId- the commerce discount ID- Returns:
- the number of matching commerce discount usage entries
-
findByCOI_CDI
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.discount.model.impl.CommerceDiscountUsageEntryModelImpl.- Parameters:
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 (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching commerce discount usage entries
-
findByCOI_CDI_First
public static CommerceDiscountUsageEntry findByCOI_CDI_First(long commerceOrderId, long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUsageEntry> orderByComparator) throws NoSuchDiscountUsageEntryException Returns the first commerce discount usage entry in the ordered set where commerceOrderId = ? and commerceDiscountId = ?.- Parameters:
commerceOrderId- the commerce order IDcommerceDiscountId- the commerce discount IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching commerce discount usage entry
-
fetchByCOI_CDI_First
public static 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 = ?.- Parameters:
commerceOrderId- the commerce order IDcommerceDiscountId- the commerce discount IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching commerce discount usage entry, or
nullif a matching commerce discount usage entry could not be found
-
removeByCOI_CDI
public static void removeByCOI_CDI(long commerceOrderId, long commerceDiscountId) Removes all the commerce discount usage entries where commerceOrderId = ? and commerceDiscountId = ? from the database.- Parameters:
commerceOrderId- the commerce order IDcommerceDiscountId- the commerce discount ID
-
countByCOI_CDI
public static int countByCOI_CDI(long commerceOrderId, long commerceDiscountId) Returns the number of commerce discount usage entries where commerceOrderId = ? and commerceDiscountId = ?.- Parameters:
commerceOrderId- the commerce order IDcommerceDiscountId- the commerce discount ID- Returns:
- the number of matching commerce discount usage entries
-
findByCAI_COI_CDI
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.discount.model.impl.CommerceDiscountUsageEntryModelImpl.- Parameters:
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 (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching commerce discount usage entries
-
findByCAI_COI_CDI_First
public static CommerceDiscountUsageEntry findByCAI_COI_CDI_First(long commerceAccountId, long commerceOrderId, long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountUsageEntry> orderByComparator) throws NoSuchDiscountUsageEntryException Returns the first commerce discount usage entry in the ordered set where commerceAccountId = ? and commerceOrderId = ? and commerceDiscountId = ?.- Parameters:
commerceAccountId- the commerce account IDcommerceOrderId- the commerce order IDcommerceDiscountId- the commerce discount IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching commerce discount usage entry
-
fetchByCAI_COI_CDI_First
public static 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 = ?.- Parameters:
commerceAccountId- the commerce account IDcommerceOrderId- the commerce order IDcommerceDiscountId- the commerce discount IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching commerce discount usage entry, or
nullif a matching commerce discount usage entry could not be found
-
removeByCAI_COI_CDI
public static 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.- Parameters:
commerceAccountId- the commerce account IDcommerceOrderId- the commerce order IDcommerceDiscountId- the commerce discount ID
-
countByCAI_COI_CDI
public static int countByCAI_COI_CDI(long commerceAccountId, long commerceOrderId, long commerceDiscountId) Returns the number of commerce discount usage entries where commerceAccountId = ? and commerceOrderId = ? and commerceDiscountId = ?.- Parameters:
commerceAccountId- the commerce account IDcommerceOrderId- the commerce order IDcommerceDiscountId- the commerce discount ID- Returns:
- the number of matching commerce discount usage entries
-
create
Creates a new commerce discount usage entry with the primary key. Does not add the commerce discount usage entry to the database.- Parameters:
commerceDiscountUsageEntryId- the primary key for the new commerce discount usage entry- Returns:
- the new commerce discount usage entry
-
remove
public static CommerceDiscountUsageEntry remove(long commerceDiscountUsageEntryId) throws NoSuchDiscountUsageEntryException Removes the commerce discount usage entry with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
commerceDiscountUsageEntryId- the primary key of the commerce discount usage entry- Returns:
- the commerce discount usage entry that was removed
-
updateImpl
public static CommerceDiscountUsageEntry updateImpl(CommerceDiscountUsageEntry commerceDiscountUsageEntry) -
findByPrimaryKey
public static CommerceDiscountUsageEntry findByPrimaryKey(long commerceDiscountUsageEntryId) throws NoSuchDiscountUsageEntryException Returns the commerce discount usage entry with the primary key or throws aNoSuchDiscountUsageEntryExceptionif it could not be found.- Parameters:
commerceDiscountUsageEntryId- the primary key of the commerce discount usage entry- Returns:
- the commerce discount usage entry
-
fetchByPrimaryKey
Returns the commerce discount usage entry with the primary key or returnsnullif it could not be found.- Parameters:
commerceDiscountUsageEntryId- the primary key of the commerce discount usage entry- Returns:
- the commerce discount usage entry, or
nullif a commerce discount usage entry with the primary key could not be found
-
findByCommerceDiscountId
Returns all the commerce discount usage entries where commerceDiscountId = ?.- Parameters:
commerceDiscountId- the commerce discount ID- Returns:
- the matching commerce discount usage entries
-
findByCommerceDiscountId
public static List<CommerceDiscountUsageEntry> findByCommerceDiscountId(long commerceDiscountId, int start, int end) Returns a range of all the commerce discount usage entries where commerceDiscountId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.discount.model.impl.CommerceDiscountUsageEntryModelImpl.- Parameters:
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)- Returns:
- the range of matching commerce discount usage entries
-
findByCommerceDiscountId
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.discount.model.impl.CommerceDiscountUsageEntryModelImpl.- Parameters:
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 (optionallynull)- Returns:
- the ordered range of matching commerce discount usage entries
-
findByCAI_CDI
public static List<CommerceDiscountUsageEntry> findByCAI_CDI(long commerceAccountId, long commerceDiscountId) Returns all the commerce discount usage entries where commerceAccountId = ? and commerceDiscountId = ?.- Parameters:
commerceAccountId- the commerce account IDcommerceDiscountId- the commerce discount ID- Returns:
- the matching commerce discount usage entries
-
findByCAI_CDI
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.discount.model.impl.CommerceDiscountUsageEntryModelImpl.- Parameters:
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)- Returns:
- the range of matching commerce discount usage entries
-
findByCAI_CDI
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.discount.model.impl.CommerceDiscountUsageEntryModelImpl.- Parameters:
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 (optionallynull)- Returns:
- the ordered range of matching commerce discount usage entries
-
findByCOI_CDI
public static List<CommerceDiscountUsageEntry> findByCOI_CDI(long commerceOrderId, long commerceDiscountId) Returns all the commerce discount usage entries where commerceOrderId = ? and commerceDiscountId = ?.- Parameters:
commerceOrderId- the commerce order IDcommerceDiscountId- the commerce discount ID- Returns:
- the matching commerce discount usage entries
-
findByCOI_CDI
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.discount.model.impl.CommerceDiscountUsageEntryModelImpl.- Parameters:
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)- Returns:
- the range of matching commerce discount usage entries
-
findByCOI_CDI
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.discount.model.impl.CommerceDiscountUsageEntryModelImpl.- Parameters:
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 (optionallynull)- Returns:
- the ordered range of matching commerce discount usage entries
-
findByCAI_COI_CDI
public static List<CommerceDiscountUsageEntry> findByCAI_COI_CDI(long commerceAccountId, long commerceOrderId, long commerceDiscountId) Returns all the commerce discount usage entries where commerceAccountId = ? and commerceOrderId = ? and commerceDiscountId = ?.- Parameters:
commerceAccountId- the commerce account IDcommerceOrderId- the commerce order IDcommerceDiscountId- the commerce discount ID- Returns:
- the matching commerce discount usage entries
-
findByCAI_COI_CDI
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.discount.model.impl.CommerceDiscountUsageEntryModelImpl.- Parameters:
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)- Returns:
- the range of matching commerce discount usage entries
-
findByCAI_COI_CDI
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.commerce.discount.model.impl.CommerceDiscountUsageEntryModelImpl.- Parameters:
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 (optionallynull)- Returns:
- the ordered range of matching commerce discount usage entries
-
getPersistence
-
setPersistence
-