@ProviderType public interface CommerceDiscountRulePersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<CommerceDiscountRule>
Caching information and settings can be found in portal.properties
CommerceDiscountRuleUtil
Modifier and Type | Method and Description |
---|---|
void |
cacheResult(CommerceDiscountRule commerceDiscountRule)
Caches the commerce discount rule in the entity cache if it is enabled.
|
void |
cacheResult(java.util.List<CommerceDiscountRule> commerceDiscountRules)
Caches the commerce discount rules in the entity cache if it is enabled.
|
int |
countAll()
Returns the number of commerce discount rules.
|
int |
countByCommerceDiscountId(long commerceDiscountId)
Returns the number of commerce discount rules where commerceDiscountId = ?.
|
CommerceDiscountRule |
create(long commerceDiscountRuleId)
Creates a new commerce discount rule with the primary key.
|
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 = ?.
|
CommerceDiscountRule |
fetchByCommerceDiscountId_Last(long commerceDiscountId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountRule> orderByComparator)
Returns the last commerce discount rule in the ordered set where commerceDiscountId = ?.
|
CommerceDiscountRule |
fetchByPrimaryKey(long commerceDiscountRuleId)
Returns the commerce discount rule with the primary key or returns
null if it could not be found. |
java.util.List<CommerceDiscountRule> |
findAll()
Returns all the commerce discount rules.
|
java.util.List<CommerceDiscountRule> |
findAll(int start,
int end)
Returns a range of all the commerce discount rules.
|
java.util.List<CommerceDiscountRule> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountRule> orderByComparator)
Returns an ordered range of all the commerce discount rules.
|
java.util.List<CommerceDiscountRule> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountRule> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce discount rules.
|
CommerceDiscountRule |
findByCommerceDiscountId_First(long commerceDiscountId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountRule> orderByComparator)
Returns the first commerce discount rule in the ordered set where commerceDiscountId = ?.
|
CommerceDiscountRule |
findByCommerceDiscountId_Last(long commerceDiscountId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountRule> orderByComparator)
Returns the last commerce discount rule in the ordered set where commerceDiscountId = ?.
|
CommerceDiscountRule[] |
findByCommerceDiscountId_PrevAndNext(long commerceDiscountRuleId,
long commerceDiscountId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountRule> orderByComparator)
Returns the commerce discount rules before and after the current commerce discount rule in the ordered set where commerceDiscountId = ?.
|
java.util.List<CommerceDiscountRule> |
findByCommerceDiscountId(long commerceDiscountId)
Returns all the commerce discount rules where commerceDiscountId = ?.
|
java.util.List<CommerceDiscountRule> |
findByCommerceDiscountId(long commerceDiscountId,
int start,
int end)
Returns a range of all the commerce discount rules where commerceDiscountId = ?.
|
java.util.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 = ?.
|
java.util.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 = ?.
|
CommerceDiscountRule |
findByPrimaryKey(long commerceDiscountRuleId)
Returns the commerce discount rule with the primary key or throws a
NoSuchDiscountRuleException if it could not be found. |
CommerceDiscountRule |
remove(long commerceDiscountRuleId)
Removes the commerce discount rule with the primary key from the database.
|
void |
removeAll()
Removes all the commerce discount rules from the database.
|
void |
removeByCommerceDiscountId(long commerceDiscountId)
Removes all the commerce discount rules where commerceDiscountId = ? from the database.
|
CommerceDiscountRule |
updateImpl(CommerceDiscountRule commerceDiscountRule) |
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<CommerceDiscountRule> findByCommerceDiscountId(long commerceDiscountId)
commerceDiscountId
- the commerce discount IDjava.util.List<CommerceDiscountRule> 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 CommerceDiscountRuleModelImpl
.
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)java.util.List<CommerceDiscountRule> findByCommerceDiscountId(long commerceDiscountId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountRule> 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 CommerceDiscountRuleModelImpl
.
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 (optionally null
)java.util.List<CommerceDiscountRule> findByCommerceDiscountId(long commerceDiscountId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountRule> 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 CommerceDiscountRuleModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cacheCommerceDiscountRule findByCommerceDiscountId_First(long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountRule> orderByComparator) throws NoSuchDiscountRuleException
commerceDiscountId
- the commerce discount IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDiscountRuleException
- if a matching commerce discount rule could not be foundCommerceDiscountRule fetchByCommerceDiscountId_First(long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountRule> orderByComparator)
commerceDiscountId
- the commerce discount IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce discount rule could not be foundCommerceDiscountRule findByCommerceDiscountId_Last(long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountRule> orderByComparator) throws NoSuchDiscountRuleException
commerceDiscountId
- the commerce discount IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDiscountRuleException
- if a matching commerce discount rule could not be foundCommerceDiscountRule fetchByCommerceDiscountId_Last(long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountRule> orderByComparator)
commerceDiscountId
- the commerce discount IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce discount rule could not be foundCommerceDiscountRule[] findByCommerceDiscountId_PrevAndNext(long commerceDiscountRuleId, long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountRule> orderByComparator) throws NoSuchDiscountRuleException
commerceDiscountRuleId
- the primary key of the current commerce discount rulecommerceDiscountId
- the commerce discount IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDiscountRuleException
- if a commerce discount rule with the primary key could not be foundvoid removeByCommerceDiscountId(long commerceDiscountId)
commerceDiscountId
- the commerce discount IDint countByCommerceDiscountId(long commerceDiscountId)
commerceDiscountId
- the commerce discount IDvoid cacheResult(CommerceDiscountRule commerceDiscountRule)
commerceDiscountRule
- the commerce discount rulevoid cacheResult(java.util.List<CommerceDiscountRule> commerceDiscountRules)
commerceDiscountRules
- the commerce discount rulesCommerceDiscountRule create(long commerceDiscountRuleId)
commerceDiscountRuleId
- the primary key for the new commerce discount ruleCommerceDiscountRule remove(long commerceDiscountRuleId) throws NoSuchDiscountRuleException
commerceDiscountRuleId
- the primary key of the commerce discount ruleNoSuchDiscountRuleException
- if a commerce discount rule with the primary key could not be foundCommerceDiscountRule updateImpl(CommerceDiscountRule commerceDiscountRule)
CommerceDiscountRule findByPrimaryKey(long commerceDiscountRuleId) throws NoSuchDiscountRuleException
NoSuchDiscountRuleException
if it could not be found.commerceDiscountRuleId
- the primary key of the commerce discount ruleNoSuchDiscountRuleException
- if a commerce discount rule with the primary key could not be foundCommerceDiscountRule fetchByPrimaryKey(long commerceDiscountRuleId)
null
if it could not be found.commerceDiscountRuleId
- the primary key of the commerce discount rulenull
if a commerce discount rule with the primary key could not be foundjava.util.List<CommerceDiscountRule> findAll()
java.util.List<CommerceDiscountRule> 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 CommerceDiscountRuleModelImpl
.
start
- the lower bound of the range of commerce discount rulesend
- the upper bound of the range of commerce discount rules (not inclusive)java.util.List<CommerceDiscountRule> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountRule> 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 CommerceDiscountRuleModelImpl
.
start
- 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 (optionally null
)java.util.List<CommerceDiscountRule> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountRule> 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 CommerceDiscountRuleModelImpl
.
start
- 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 (optionally null
)useFinderCache
- whether to use the finder cachevoid removeAll()
int countAll()