Interface CommerceDiscountCommerceAccountGroupRelPersistence
- All Superinterfaces:
com.liferay.portal.kernel.service.persistence.BasePersistence<CommerceDiscountCommerceAccountGroupRel>
Caching information and settings can be found in portal.properties
- See Also:
- Generated:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
cacheResult
(CommerceDiscountCommerceAccountGroupRel commerceDiscountCommerceAccountGroupRel) Caches the commerce discount commerce account group rel in the entity cache if it is enabled.void
cacheResult
(List<CommerceDiscountCommerceAccountGroupRel> commerceDiscountCommerceAccountGroupRels) Caches the commerce discount commerce account group rels in the entity cache if it is enabled.int
countAll()
Returns the number of commerce discount commerce account group rels.int
countByCDI_CAGI
(long commerceDiscountId, long commerceAccountGroupId) Returns the number of commerce discount commerce account group rels where commerceDiscountId = ? and commerceAccountGroupId = ?.int
countByCommerceAccountGroupId
(long commerceAccountGroupId) Returns the number of commerce discount commerce account group rels where commerceAccountGroupId = ?.int
countByCommerceDiscountId
(long commerceDiscountId) Returns the number of commerce discount commerce account group rels where commerceDiscountId = ?.create
(long commerceDiscountCommerceAccountGroupRelId) Creates a new commerce discount commerce account group rel with the primary key.fetchByCDI_CAGI
(long commerceDiscountId, long commerceAccountGroupId) Returns the commerce discount commerce account group rel where commerceDiscountId = ? and commerceAccountGroupId = ? or returnsnull
if it could not be found.fetchByCDI_CAGI
(long commerceDiscountId, long commerceAccountGroupId, boolean useFinderCache) Returns the commerce discount commerce account group rel where commerceDiscountId = ? and commerceAccountGroupId = ? or returnsnull
if it could not be found, optionally using the finder cache.fetchByCommerceAccountGroupId_First
(long commerceAccountGroupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountCommerceAccountGroupRel> orderByComparator) Returns the first commerce discount commerce account group rel in the ordered set where commerceAccountGroupId = ?.fetchByCommerceAccountGroupId_Last
(long commerceAccountGroupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountCommerceAccountGroupRel> orderByComparator) Returns the last commerce discount commerce account group rel in the ordered set where commerceAccountGroupId = ?.fetchByCommerceDiscountId_First
(long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountCommerceAccountGroupRel> orderByComparator) Returns the first commerce discount commerce account group rel in the ordered set where commerceDiscountId = ?.fetchByCommerceDiscountId_Last
(long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountCommerceAccountGroupRel> orderByComparator) Returns the last commerce discount commerce account group rel in the ordered set where commerceDiscountId = ?.fetchByPrimaryKey
(long commerceDiscountCommerceAccountGroupRelId) Returns the commerce discount commerce account group rel with the primary key or returnsnull
if it could not be found.findAll()
Returns all the commerce discount commerce account group rels.findAll
(int start, int end) Returns a range of all the commerce discount commerce account group rels.findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountCommerceAccountGroupRel> orderByComparator) Returns an ordered range of all the commerce discount commerce account group rels.findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountCommerceAccountGroupRel> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce discount commerce account group rels.findByCDI_CAGI
(long commerceDiscountId, long commerceAccountGroupId) Returns the commerce discount commerce account group rel where commerceDiscountId = ? and commerceAccountGroupId = ? or throws aNoSuchDiscountCommerceAccountGroupRelException
if it could not be found.findByCommerceAccountGroupId
(long commerceAccountGroupId) Returns all the commerce discount commerce account group rels where commerceAccountGroupId = ?.findByCommerceAccountGroupId
(long commerceAccountGroupId, int start, int end) Returns a range of all the commerce discount commerce account group rels where commerceAccountGroupId = ?.findByCommerceAccountGroupId
(long commerceAccountGroupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountCommerceAccountGroupRel> orderByComparator) Returns an ordered range of all the commerce discount commerce account group rels where commerceAccountGroupId = ?.findByCommerceAccountGroupId
(long commerceAccountGroupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountCommerceAccountGroupRel> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce discount commerce account group rels where commerceAccountGroupId = ?.findByCommerceAccountGroupId_First
(long commerceAccountGroupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountCommerceAccountGroupRel> orderByComparator) Returns the first commerce discount commerce account group rel in the ordered set where commerceAccountGroupId = ?.findByCommerceAccountGroupId_Last
(long commerceAccountGroupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountCommerceAccountGroupRel> orderByComparator) Returns the last commerce discount commerce account group rel in the ordered set where commerceAccountGroupId = ?.findByCommerceAccountGroupId_PrevAndNext
(long commerceDiscountCommerceAccountGroupRelId, long commerceAccountGroupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountCommerceAccountGroupRel> orderByComparator) Returns the commerce discount commerce account group rels before and after the current commerce discount commerce account group rel in the ordered set where commerceAccountGroupId = ?.findByCommerceDiscountId
(long commerceDiscountId) Returns all the commerce discount commerce account group rels where commerceDiscountId = ?.findByCommerceDiscountId
(long commerceDiscountId, int start, int end) Returns a range of all the commerce discount commerce account group rels where commerceDiscountId = ?.findByCommerceDiscountId
(long commerceDiscountId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountCommerceAccountGroupRel> orderByComparator) Returns an ordered range of all the commerce discount commerce account group rels where commerceDiscountId = ?.findByCommerceDiscountId
(long commerceDiscountId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountCommerceAccountGroupRel> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce discount commerce account group rels where commerceDiscountId = ?.findByCommerceDiscountId_First
(long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountCommerceAccountGroupRel> orderByComparator) Returns the first commerce discount commerce account group rel in the ordered set where commerceDiscountId = ?.findByCommerceDiscountId_Last
(long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountCommerceAccountGroupRel> orderByComparator) Returns the last commerce discount commerce account group rel in the ordered set where commerceDiscountId = ?.findByCommerceDiscountId_PrevAndNext
(long commerceDiscountCommerceAccountGroupRelId, long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountCommerceAccountGroupRel> orderByComparator) Returns the commerce discount commerce account group rels before and after the current commerce discount commerce account group rel in the ordered set where commerceDiscountId = ?.findByPrimaryKey
(long commerceDiscountCommerceAccountGroupRelId) Returns the commerce discount commerce account group rel with the primary key or throws aNoSuchDiscountCommerceAccountGroupRelException
if it could not be found.remove
(long commerceDiscountCommerceAccountGroupRelId) Removes the commerce discount commerce account group rel with the primary key from the database.void
Removes all the commerce discount commerce account group rels from the database.removeByCDI_CAGI
(long commerceDiscountId, long commerceAccountGroupId) Removes the commerce discount commerce account group rel where commerceDiscountId = ? and commerceAccountGroupId = ? from the database.void
removeByCommerceAccountGroupId
(long commerceAccountGroupId) Removes all the commerce discount commerce account group rels where commerceAccountGroupId = ? from the database.void
removeByCommerceDiscountId
(long commerceDiscountId) Removes all the commerce discount commerce account group rels where commerceDiscountId = ? from the database.updateImpl
(CommerceDiscountCommerceAccountGroupRel commerceDiscountCommerceAccountGroupRel) Methods inherited from interface com.liferay.portal.kernel.service.persistence.BasePersistence
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, removeByFunction, setDataSource, unregisterListener, update, update
-
Method Details
-
findByCommerceDiscountId
Returns all the commerce discount commerce account group rels where commerceDiscountId = ?.- Parameters:
commerceDiscountId
- the commerce discount ID- Returns:
- the matching commerce discount commerce account group rels
-
findByCommerceDiscountId
List<CommerceDiscountCommerceAccountGroupRel> findByCommerceDiscountId(long commerceDiscountId, int start, int end) Returns a range of all the commerce discount commerce account group rels where commerceDiscountId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceDiscountCommerceAccountGroupRelModelImpl
.- Parameters:
commerceDiscountId
- the commerce discount IDstart
- the lower bound of the range of commerce discount commerce account group relsend
- the upper bound of the range of commerce discount commerce account group rels (not inclusive)- Returns:
- the range of matching commerce discount commerce account group rels
-
findByCommerceDiscountId
List<CommerceDiscountCommerceAccountGroupRel> findByCommerceDiscountId(long commerceDiscountId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountCommerceAccountGroupRel> orderByComparator) Returns an ordered range of all the commerce discount commerce account group rels where commerceDiscountId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceDiscountCommerceAccountGroupRelModelImpl
.- Parameters:
commerceDiscountId
- the commerce discount IDstart
- the lower bound of the range of commerce discount commerce account group relsend
- the upper bound of the range of commerce discount commerce account group rels (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching commerce discount commerce account group rels
-
findByCommerceDiscountId
List<CommerceDiscountCommerceAccountGroupRel> findByCommerceDiscountId(long commerceDiscountId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountCommerceAccountGroupRel> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce discount commerce account group rels where commerceDiscountId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceDiscountCommerceAccountGroupRelModelImpl
.- Parameters:
commerceDiscountId
- the commerce discount IDstart
- the lower bound of the range of commerce discount commerce account group relsend
- the upper bound of the range of commerce discount commerce account group rels (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 commerce account group rels
-
findByCommerceDiscountId_First
CommerceDiscountCommerceAccountGroupRel findByCommerceDiscountId_First(long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountCommerceAccountGroupRel> orderByComparator) throws NoSuchDiscountCommerceAccountGroupRelException Returns the first commerce discount commerce account group rel 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 commerce account group rel
- Throws:
NoSuchDiscountCommerceAccountGroupRelException
- if a matching commerce discount commerce account group rel could not be found
-
fetchByCommerceDiscountId_First
CommerceDiscountCommerceAccountGroupRel fetchByCommerceDiscountId_First(long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountCommerceAccountGroupRel> orderByComparator) Returns the first commerce discount commerce account group rel 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 commerce account group rel, or
null
if a matching commerce discount commerce account group rel could not be found
-
findByCommerceDiscountId_Last
CommerceDiscountCommerceAccountGroupRel findByCommerceDiscountId_Last(long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountCommerceAccountGroupRel> orderByComparator) throws NoSuchDiscountCommerceAccountGroupRelException Returns the last commerce discount commerce account group rel in the ordered set where commerceDiscountId = ?.- Parameters:
commerceDiscountId
- the commerce discount IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce discount commerce account group rel
- Throws:
NoSuchDiscountCommerceAccountGroupRelException
- if a matching commerce discount commerce account group rel could not be found
-
fetchByCommerceDiscountId_Last
CommerceDiscountCommerceAccountGroupRel fetchByCommerceDiscountId_Last(long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountCommerceAccountGroupRel> orderByComparator) Returns the last commerce discount commerce account group rel in the ordered set where commerceDiscountId = ?.- Parameters:
commerceDiscountId
- the commerce discount IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce discount commerce account group rel, or
null
if a matching commerce discount commerce account group rel could not be found
-
findByCommerceDiscountId_PrevAndNext
CommerceDiscountCommerceAccountGroupRel[] findByCommerceDiscountId_PrevAndNext(long commerceDiscountCommerceAccountGroupRelId, long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountCommerceAccountGroupRel> orderByComparator) throws NoSuchDiscountCommerceAccountGroupRelException Returns the commerce discount commerce account group rels before and after the current commerce discount commerce account group rel in the ordered set where commerceDiscountId = ?.- Parameters:
commerceDiscountCommerceAccountGroupRelId
- the primary key of the current commerce discount commerce account group relcommerceDiscountId
- the commerce discount IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce discount commerce account group rel
- Throws:
NoSuchDiscountCommerceAccountGroupRelException
- if a commerce discount commerce account group rel with the primary key could not be found
-
removeByCommerceDiscountId
void removeByCommerceDiscountId(long commerceDiscountId) Removes all the commerce discount commerce account group rels where commerceDiscountId = ? from the database.- Parameters:
commerceDiscountId
- the commerce discount ID
-
countByCommerceDiscountId
int countByCommerceDiscountId(long commerceDiscountId) Returns the number of commerce discount commerce account group rels where commerceDiscountId = ?.- Parameters:
commerceDiscountId
- the commerce discount ID- Returns:
- the number of matching commerce discount commerce account group rels
-
findByCommerceAccountGroupId
List<CommerceDiscountCommerceAccountGroupRel> findByCommerceAccountGroupId(long commerceAccountGroupId) Returns all the commerce discount commerce account group rels where commerceAccountGroupId = ?.- Parameters:
commerceAccountGroupId
- the commerce account group ID- Returns:
- the matching commerce discount commerce account group rels
-
findByCommerceAccountGroupId
List<CommerceDiscountCommerceAccountGroupRel> findByCommerceAccountGroupId(long commerceAccountGroupId, int start, int end) Returns a range of all the commerce discount commerce account group rels where commerceAccountGroupId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceDiscountCommerceAccountGroupRelModelImpl
.- Parameters:
commerceAccountGroupId
- the commerce account group IDstart
- the lower bound of the range of commerce discount commerce account group relsend
- the upper bound of the range of commerce discount commerce account group rels (not inclusive)- Returns:
- the range of matching commerce discount commerce account group rels
-
findByCommerceAccountGroupId
List<CommerceDiscountCommerceAccountGroupRel> findByCommerceAccountGroupId(long commerceAccountGroupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountCommerceAccountGroupRel> orderByComparator) Returns an ordered range of all the commerce discount commerce account group rels where commerceAccountGroupId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceDiscountCommerceAccountGroupRelModelImpl
.- Parameters:
commerceAccountGroupId
- the commerce account group IDstart
- the lower bound of the range of commerce discount commerce account group relsend
- the upper bound of the range of commerce discount commerce account group rels (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching commerce discount commerce account group rels
-
findByCommerceAccountGroupId
List<CommerceDiscountCommerceAccountGroupRel> findByCommerceAccountGroupId(long commerceAccountGroupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountCommerceAccountGroupRel> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce discount commerce account group rels where commerceAccountGroupId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceDiscountCommerceAccountGroupRelModelImpl
.- Parameters:
commerceAccountGroupId
- the commerce account group IDstart
- the lower bound of the range of commerce discount commerce account group relsend
- the upper bound of the range of commerce discount commerce account group rels (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 commerce account group rels
-
findByCommerceAccountGroupId_First
CommerceDiscountCommerceAccountGroupRel findByCommerceAccountGroupId_First(long commerceAccountGroupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountCommerceAccountGroupRel> orderByComparator) throws NoSuchDiscountCommerceAccountGroupRelException Returns the first commerce discount commerce account group rel in the ordered set where commerceAccountGroupId = ?.- Parameters:
commerceAccountGroupId
- the commerce account group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce discount commerce account group rel
- Throws:
NoSuchDiscountCommerceAccountGroupRelException
- if a matching commerce discount commerce account group rel could not be found
-
fetchByCommerceAccountGroupId_First
CommerceDiscountCommerceAccountGroupRel fetchByCommerceAccountGroupId_First(long commerceAccountGroupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountCommerceAccountGroupRel> orderByComparator) Returns the first commerce discount commerce account group rel in the ordered set where commerceAccountGroupId = ?.- Parameters:
commerceAccountGroupId
- the commerce account group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching commerce discount commerce account group rel, or
null
if a matching commerce discount commerce account group rel could not be found
-
findByCommerceAccountGroupId_Last
CommerceDiscountCommerceAccountGroupRel findByCommerceAccountGroupId_Last(long commerceAccountGroupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountCommerceAccountGroupRel> orderByComparator) throws NoSuchDiscountCommerceAccountGroupRelException Returns the last commerce discount commerce account group rel in the ordered set where commerceAccountGroupId = ?.- Parameters:
commerceAccountGroupId
- the commerce account group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce discount commerce account group rel
- Throws:
NoSuchDiscountCommerceAccountGroupRelException
- if a matching commerce discount commerce account group rel could not be found
-
fetchByCommerceAccountGroupId_Last
CommerceDiscountCommerceAccountGroupRel fetchByCommerceAccountGroupId_Last(long commerceAccountGroupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountCommerceAccountGroupRel> orderByComparator) Returns the last commerce discount commerce account group rel in the ordered set where commerceAccountGroupId = ?.- Parameters:
commerceAccountGroupId
- the commerce account group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching commerce discount commerce account group rel, or
null
if a matching commerce discount commerce account group rel could not be found
-
findByCommerceAccountGroupId_PrevAndNext
CommerceDiscountCommerceAccountGroupRel[] findByCommerceAccountGroupId_PrevAndNext(long commerceDiscountCommerceAccountGroupRelId, long commerceAccountGroupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountCommerceAccountGroupRel> orderByComparator) throws NoSuchDiscountCommerceAccountGroupRelException Returns the commerce discount commerce account group rels before and after the current commerce discount commerce account group rel in the ordered set where commerceAccountGroupId = ?.- Parameters:
commerceDiscountCommerceAccountGroupRelId
- the primary key of the current commerce discount commerce account group relcommerceAccountGroupId
- the commerce account group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next commerce discount commerce account group rel
- Throws:
NoSuchDiscountCommerceAccountGroupRelException
- if a commerce discount commerce account group rel with the primary key could not be found
-
removeByCommerceAccountGroupId
void removeByCommerceAccountGroupId(long commerceAccountGroupId) Removes all the commerce discount commerce account group rels where commerceAccountGroupId = ? from the database.- Parameters:
commerceAccountGroupId
- the commerce account group ID
-
countByCommerceAccountGroupId
int countByCommerceAccountGroupId(long commerceAccountGroupId) Returns the number of commerce discount commerce account group rels where commerceAccountGroupId = ?.- Parameters:
commerceAccountGroupId
- the commerce account group ID- Returns:
- the number of matching commerce discount commerce account group rels
-
findByCDI_CAGI
CommerceDiscountCommerceAccountGroupRel findByCDI_CAGI(long commerceDiscountId, long commerceAccountGroupId) throws NoSuchDiscountCommerceAccountGroupRelException Returns the commerce discount commerce account group rel where commerceDiscountId = ? and commerceAccountGroupId = ? or throws aNoSuchDiscountCommerceAccountGroupRelException
if it could not be found.- Parameters:
commerceDiscountId
- the commerce discount IDcommerceAccountGroupId
- the commerce account group ID- Returns:
- the matching commerce discount commerce account group rel
- Throws:
NoSuchDiscountCommerceAccountGroupRelException
- if a matching commerce discount commerce account group rel could not be found
-
fetchByCDI_CAGI
CommerceDiscountCommerceAccountGroupRel fetchByCDI_CAGI(long commerceDiscountId, long commerceAccountGroupId) Returns the commerce discount commerce account group rel where commerceDiscountId = ? and commerceAccountGroupId = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
commerceDiscountId
- the commerce discount IDcommerceAccountGroupId
- the commerce account group ID- Returns:
- the matching commerce discount commerce account group rel, or
null
if a matching commerce discount commerce account group rel could not be found
-
fetchByCDI_CAGI
CommerceDiscountCommerceAccountGroupRel fetchByCDI_CAGI(long commerceDiscountId, long commerceAccountGroupId, boolean useFinderCache) Returns the commerce discount commerce account group rel where commerceDiscountId = ? and commerceAccountGroupId = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
commerceDiscountId
- the commerce discount IDcommerceAccountGroupId
- the commerce account group IDuseFinderCache
- whether to use the finder cache- Returns:
- the matching commerce discount commerce account group rel, or
null
if a matching commerce discount commerce account group rel could not be found
-
removeByCDI_CAGI
CommerceDiscountCommerceAccountGroupRel removeByCDI_CAGI(long commerceDiscountId, long commerceAccountGroupId) throws NoSuchDiscountCommerceAccountGroupRelException Removes the commerce discount commerce account group rel where commerceDiscountId = ? and commerceAccountGroupId = ? from the database.- Parameters:
commerceDiscountId
- the commerce discount IDcommerceAccountGroupId
- the commerce account group ID- Returns:
- the commerce discount commerce account group rel that was removed
- Throws:
NoSuchDiscountCommerceAccountGroupRelException
-
countByCDI_CAGI
int countByCDI_CAGI(long commerceDiscountId, long commerceAccountGroupId) Returns the number of commerce discount commerce account group rels where commerceDiscountId = ? and commerceAccountGroupId = ?.- Parameters:
commerceDiscountId
- the commerce discount IDcommerceAccountGroupId
- the commerce account group ID- Returns:
- the number of matching commerce discount commerce account group rels
-
cacheResult
Caches the commerce discount commerce account group rel in the entity cache if it is enabled.- Parameters:
commerceDiscountCommerceAccountGroupRel
- the commerce discount commerce account group rel
-
cacheResult
void cacheResult(List<CommerceDiscountCommerceAccountGroupRel> commerceDiscountCommerceAccountGroupRels) Caches the commerce discount commerce account group rels in the entity cache if it is enabled.- Parameters:
commerceDiscountCommerceAccountGroupRels
- the commerce discount commerce account group rels
-
create
Creates a new commerce discount commerce account group rel with the primary key. Does not add the commerce discount commerce account group rel to the database.- Parameters:
commerceDiscountCommerceAccountGroupRelId
- the primary key for the new commerce discount commerce account group rel- Returns:
- the new commerce discount commerce account group rel
-
remove
CommerceDiscountCommerceAccountGroupRel remove(long commerceDiscountCommerceAccountGroupRelId) throws NoSuchDiscountCommerceAccountGroupRelException Removes the commerce discount commerce account group rel with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
commerceDiscountCommerceAccountGroupRelId
- the primary key of the commerce discount commerce account group rel- Returns:
- the commerce discount commerce account group rel that was removed
- Throws:
NoSuchDiscountCommerceAccountGroupRelException
- if a commerce discount commerce account group rel with the primary key could not be found
-
updateImpl
CommerceDiscountCommerceAccountGroupRel updateImpl(CommerceDiscountCommerceAccountGroupRel commerceDiscountCommerceAccountGroupRel) -
findByPrimaryKey
CommerceDiscountCommerceAccountGroupRel findByPrimaryKey(long commerceDiscountCommerceAccountGroupRelId) throws NoSuchDiscountCommerceAccountGroupRelException Returns the commerce discount commerce account group rel with the primary key or throws aNoSuchDiscountCommerceAccountGroupRelException
if it could not be found.- Parameters:
commerceDiscountCommerceAccountGroupRelId
- the primary key of the commerce discount commerce account group rel- Returns:
- the commerce discount commerce account group rel
- Throws:
NoSuchDiscountCommerceAccountGroupRelException
- if a commerce discount commerce account group rel with the primary key could not be found
-
fetchByPrimaryKey
CommerceDiscountCommerceAccountGroupRel fetchByPrimaryKey(long commerceDiscountCommerceAccountGroupRelId) Returns the commerce discount commerce account group rel with the primary key or returnsnull
if it could not be found.- Parameters:
commerceDiscountCommerceAccountGroupRelId
- the primary key of the commerce discount commerce account group rel- Returns:
- the commerce discount commerce account group rel, or
null
if a commerce discount commerce account group rel with the primary key could not be found
-
findAll
List<CommerceDiscountCommerceAccountGroupRel> findAll()Returns all the commerce discount commerce account group rels.- Returns:
- the commerce discount commerce account group rels
-
findAll
Returns a range of all the commerce discount commerce account group rels.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceDiscountCommerceAccountGroupRelModelImpl
.- Parameters:
start
- the lower bound of the range of commerce discount commerce account group relsend
- the upper bound of the range of commerce discount commerce account group rels (not inclusive)- Returns:
- the range of commerce discount commerce account group rels
-
findAll
List<CommerceDiscountCommerceAccountGroupRel> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountCommerceAccountGroupRel> orderByComparator) Returns an ordered range of all the commerce discount commerce account group rels.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceDiscountCommerceAccountGroupRelModelImpl
.- Parameters:
start
- the lower bound of the range of commerce discount commerce account group relsend
- the upper bound of the range of commerce discount commerce account group rels (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of commerce discount commerce account group rels
-
findAll
List<CommerceDiscountCommerceAccountGroupRel> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountCommerceAccountGroupRel> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce discount commerce account group rels.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromCommerceDiscountCommerceAccountGroupRelModelImpl
.- Parameters:
start
- the lower bound of the range of commerce discount commerce account group relsend
- the upper bound of the range of commerce discount commerce account group rels (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of commerce discount commerce account group rels
-
removeAll
void removeAll()Removes all the commerce discount commerce account group rels from the database. -
countAll
int countAll()Returns the number of commerce discount commerce account group rels.- Returns:
- the number of commerce discount commerce account group rels
-