Class CommerceDiscountCommerceAccountGroupRelUtil
com.liferay.commerce.discount.service.persistence.impl.CommerceDiscountCommerceAccountGroupRelPersistenceImpl
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 void
cacheResult
(CommerceDiscountCommerceAccountGroupRel commerceDiscountCommerceAccountGroupRel) Caches the commerce discount commerce account group rel in the entity cache if it is enabled.static void
cacheResult
(List<CommerceDiscountCommerceAccountGroupRel> commerceDiscountCommerceAccountGroupRels) Caches the commerce discount commerce account group rels in the entity cache if it is enabled.static void
static void
clearCache
(CommerceDiscountCommerceAccountGroupRel commerceDiscountCommerceAccountGroupRel) static int
countAll()
Returns the number of commerce discount commerce account group rels.static int
countByCDI_CAGI
(long commerceDiscountId, long commerceAccountGroupId) Returns the number of commerce discount commerce account group rels where commerceDiscountId = ? and commerceAccountGroupId = ?.static int
countByCommerceAccountGroupId
(long commerceAccountGroupId) Returns the number of commerce discount commerce account group rels where commerceAccountGroupId = ?.static int
countByCommerceDiscountId
(long commerceDiscountId) Returns the number of commerce discount commerce account group rels where commerceDiscountId = ?.static long
countWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) 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.fetchByPrimaryKeys
(Set<Serializable> primaryKeys) 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.findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) findWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountCommerceAccountGroupRel> orderByComparator) remove
(long commerceDiscountCommerceAccountGroupRelId) Removes the commerce discount commerce account group rel with the primary key from the database.static 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.static void
removeByCommerceAccountGroupId
(long commerceAccountGroupId) Removes all the commerce discount commerce account group rels where commerceAccountGroupId = ? from the database.static void
removeByCommerceDiscountId
(long commerceDiscountId) Removes all the commerce discount commerce account group rels where commerceDiscountId = ? from the database.static void
update
(CommerceDiscountCommerceAccountGroupRel commerceDiscountCommerceAccountGroupRel) update
(CommerceDiscountCommerceAccountGroupRel commerceDiscountCommerceAccountGroupRel, com.liferay.portal.kernel.service.ServiceContext serviceContext) updateImpl
(CommerceDiscountCommerceAccountGroupRel commerceDiscountCommerceAccountGroupRel)
-
Constructor Details
-
CommerceDiscountCommerceAccountGroupRelUtil
public CommerceDiscountCommerceAccountGroupRelUtil()
-
-
Method Details
-
clearCache
public static void clearCache()- See Also:
-
BasePersistence.clearCache()
-
clearCache
public static void clearCache(CommerceDiscountCommerceAccountGroupRel commerceDiscountCommerceAccountGroupRel) - See Also:
-
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
-
countWithDynamicQuery
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.countWithDynamicQuery(DynamicQuery)
-
fetchByPrimaryKeys
public static Map<Serializable,CommerceDiscountCommerceAccountGroupRel> fetchByPrimaryKeys(Set<Serializable> primaryKeys) - See Also:
-
BasePersistence.fetchByPrimaryKeys(Set)
-
findWithDynamicQuery
public static List<CommerceDiscountCommerceAccountGroupRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery)
-
findWithDynamicQuery
public static List<CommerceDiscountCommerceAccountGroupRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
-
findWithDynamicQuery
public static List<CommerceDiscountCommerceAccountGroupRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountCommerceAccountGroupRel> orderByComparator) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
-
update
public static CommerceDiscountCommerceAccountGroupRel update(CommerceDiscountCommerceAccountGroupRel commerceDiscountCommerceAccountGroupRel) - See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
-
update
public static CommerceDiscountCommerceAccountGroupRel update(CommerceDiscountCommerceAccountGroupRel commerceDiscountCommerceAccountGroupRel, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
-
findByCommerceDiscountId
public static List<CommerceDiscountCommerceAccountGroupRel> findByCommerceDiscountId(long commerceDiscountId) 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
public static 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
public static 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
public static 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
public static 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 foundNoSuchDiscountCommerceAccountGroupRelException
-
fetchByCommerceDiscountId_First
public static 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
public static 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 foundNoSuchDiscountCommerceAccountGroupRelException
-
fetchByCommerceDiscountId_Last
public static 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
public static 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 foundNoSuchDiscountCommerceAccountGroupRelException
-
removeByCommerceDiscountId
public static 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
public static 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
public static 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
public static 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
public static 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
public static 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
public static 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 foundNoSuchDiscountCommerceAccountGroupRelException
-
fetchByCommerceAccountGroupId_First
public static 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
public static 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 foundNoSuchDiscountCommerceAccountGroupRelException
-
fetchByCommerceAccountGroupId_Last
public static 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
public static 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 foundNoSuchDiscountCommerceAccountGroupRelException
-
removeByCommerceAccountGroupId
public static 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
public static 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
public static 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 foundNoSuchDiscountCommerceAccountGroupRelException
-
fetchByCDI_CAGI
public static 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
public static 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
public static 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
public static 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
public static void cacheResult(CommerceDiscountCommerceAccountGroupRel commerceDiscountCommerceAccountGroupRel) 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
public static 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
public static CommerceDiscountCommerceAccountGroupRel create(long commerceDiscountCommerceAccountGroupRelId) 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
public static 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 foundNoSuchDiscountCommerceAccountGroupRelException
-
updateImpl
public static CommerceDiscountCommerceAccountGroupRel updateImpl(CommerceDiscountCommerceAccountGroupRel commerceDiscountCommerceAccountGroupRel) -
findByPrimaryKey
public static 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 foundNoSuchDiscountCommerceAccountGroupRelException
-
fetchByPrimaryKey
public static 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
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
public static 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
public static 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
public static void removeAll()Removes all the commerce discount commerce account group rels from the database. -
countAll
public static int countAll()Returns the number of commerce discount commerce account group rels.- Returns:
- the number of commerce discount commerce account group rels
-
getPersistence
-
setPersistence
-