Interface CommerceDiscountRulePersistence
- All Superinterfaces:
com.liferay.portal.kernel.service.persistence.BasePersistence<CommerceDiscountRule>
Caching information and settings can be found in portal.properties
- See Also:
- Generated:
-
Method Summary
Modifier and TypeMethodDescriptionintcountByCommerceDiscountId(long commerceDiscountId) Returns the number of commerce discount rules where commerceDiscountId = ?.create(long commerceDiscountRuleId) Creates a new commerce discount rule with the primary key.fetchByCommerceDiscountId_First(long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountRule> orderByComparator) Returns the first commerce discount rule in the ordered set where commerceDiscountId = ?.fetchByPrimaryKey(long commerceDiscountRuleId) Returns the commerce discount rule with the primary key or returnsnullif it could not be found.default List<CommerceDiscountRule> findByCommerceDiscountId(long commerceDiscountId) Returns all the commerce discount rules where commerceDiscountId = ?.default List<CommerceDiscountRule> findByCommerceDiscountId(long commerceDiscountId, int start, int end) Returns a range of all the commerce discount rules where commerceDiscountId = ?.default List<CommerceDiscountRule> findByCommerceDiscountId(long commerceDiscountId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountRule> orderByComparator) Returns an ordered range of all the commerce discount rules where commerceDiscountId = ?.findByCommerceDiscountId(long commerceDiscountId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountRule> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce discount rules where commerceDiscountId = ?.findByCommerceDiscountId_First(long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountRule> orderByComparator) Returns the first commerce discount rule in the ordered set where commerceDiscountId = ?.findByPrimaryKey(long commerceDiscountRuleId) Returns the commerce discount rule with the primary key or throws aNoSuchDiscountRuleExceptionif it could not be found.remove(long commerceDiscountRuleId) Removes the commerce discount rule with the primary key from the database.voidremoveByCommerceDiscountId(long commerceDiscountId) Removes all the commerce discount rules where commerceDiscountId = ? from the database.updateImpl(CommerceDiscountRule commerceDiscountRule) Methods inherited from interface com.liferay.portal.kernel.service.persistence.BasePersistence
cacheResult, cacheResult, clearCache, clearCache, clearCache, clearCache, closeSession, countAll, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQuery, dslQueryCount, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findAll, findAll, findAll, findAll, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, reassociateIfAbsent, registerListener, remove, remove, removeAll, removeByFunction, setDataSource, unregisterListener, update, update
-
Method Details
-
findByCommerceDiscountId
List<CommerceDiscountRule> findByCommerceDiscountId(long commerceDiscountId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountRule> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce discount rules 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.CommerceDiscountRuleModelImpl.- Parameters:
commerceDiscountId- the commerce discount IDstart- the lower bound of the range of commerce discount rulesend- the upper bound of the range of commerce discount rules (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 rules
-
findByCommerceDiscountId_First
CommerceDiscountRule findByCommerceDiscountId_First(long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountRule> orderByComparator) throws NoSuchDiscountRuleException Returns the first commerce discount rule 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 rule
- Throws:
NoSuchDiscountRuleException- if a matching commerce discount rule could not be found
-
fetchByCommerceDiscountId_First
CommerceDiscountRule fetchByCommerceDiscountId_First(long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountRule> orderByComparator) Returns the first commerce discount rule 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 rule, or
nullif a matching commerce discount rule could not be found
-
removeByCommerceDiscountId
void removeByCommerceDiscountId(long commerceDiscountId) Removes all the commerce discount rules where commerceDiscountId = ? from the database.- Parameters:
commerceDiscountId- the commerce discount ID
-
countByCommerceDiscountId
int countByCommerceDiscountId(long commerceDiscountId) Returns the number of commerce discount rules where commerceDiscountId = ?.- Parameters:
commerceDiscountId- the commerce discount ID- Returns:
- the number of matching commerce discount rules
-
create
Creates a new commerce discount rule with the primary key. Does not add the commerce discount rule to the database.- Parameters:
commerceDiscountRuleId- the primary key for the new commerce discount rule- Returns:
- the new commerce discount rule
-
remove
Removes the commerce discount rule with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
commerceDiscountRuleId- the primary key of the commerce discount rule- Returns:
- the commerce discount rule that was removed
- Throws:
NoSuchDiscountRuleException- if a commerce discount rule with the primary key could not be found
-
updateImpl
-
findByPrimaryKey
CommerceDiscountRule findByPrimaryKey(long commerceDiscountRuleId) throws NoSuchDiscountRuleException Returns the commerce discount rule with the primary key or throws aNoSuchDiscountRuleExceptionif it could not be found.- Parameters:
commerceDiscountRuleId- the primary key of the commerce discount rule- Returns:
- the commerce discount rule
- Throws:
NoSuchDiscountRuleException- if a commerce discount rule with the primary key could not be found
-
fetchByPrimaryKey
Returns the commerce discount rule with the primary key or returnsnullif it could not be found.- Parameters:
commerceDiscountRuleId- the primary key of the commerce discount rule- Returns:
- the commerce discount rule, or
nullif a commerce discount rule with the primary key could not be found
-
findByCommerceDiscountId
Returns all the commerce discount rules where commerceDiscountId = ?.- Parameters:
commerceDiscountId- the commerce discount ID- Returns:
- the matching commerce discount rules
-
findByCommerceDiscountId
default List<CommerceDiscountRule> findByCommerceDiscountId(long commerceDiscountId, int start, int end) Returns a range of all the commerce discount rules 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.CommerceDiscountRuleModelImpl.- Parameters:
commerceDiscountId- the commerce discount IDstart- the lower bound of the range of commerce discount rulesend- the upper bound of the range of commerce discount rules (not inclusive)- Returns:
- the range of matching commerce discount rules
-
findByCommerceDiscountId
default List<CommerceDiscountRule> findByCommerceDiscountId(long commerceDiscountId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountRule> orderByComparator) Returns an ordered range of all the commerce discount rules 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.CommerceDiscountRuleModelImpl.- Parameters:
commerceDiscountId- the commerce discount IDstart- the lower bound of the range of commerce discount rulesend- the upper bound of the range of commerce discount rules (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching commerce discount rules
-