Class CommercePaymentMethodGroupRelUtil
com.liferay.commerce.payment.service.persistence.impl.CommercePaymentMethodGroupRelPersistenceImpl and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
Caching information and settings can be found in portal.properties
- See Also:
- Generated:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcacheResult(CommercePaymentMethodGroupRel commercePaymentMethodGroupRel) static voidcacheResult(List<CommercePaymentMethodGroupRel> commercePaymentMethodGroupRels) static voidstatic voidclearCache(CommercePaymentMethodGroupRel commercePaymentMethodGroupRel) static intcountByG_A(long groupId, boolean active) Returns the number of commerce payment method group rels where groupId = ? and active = ?.static intcountByG_P(long groupId, String paymentIntegrationKey) Returns the number of commerce payment method group rels where groupId = ? and paymentIntegrationKey = ?.static intcountByGroupId(long groupId) Returns the number of commerce payment method group rels where groupId = ?.static longcountWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) create(long commercePaymentMethodGroupRelId) Creates a new commerce payment method group rel with the primary key.fetchByG_A_First(long groupId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethodGroupRel> orderByComparator) Returns the first commerce payment method group rel in the ordered set where groupId = ? and active = ?.fetchByG_P(long groupId, String paymentIntegrationKey) Returns the commerce payment method group rel where groupId = ? and paymentIntegrationKey = ? or returnsnullif it could not be found.fetchByG_P(long groupId, String paymentIntegrationKey, boolean useFinderCache) Returns the commerce payment method group rel where groupId = ? and paymentIntegrationKey = ? or returnsnullif it could not be found, optionally using the finder cache.fetchByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethodGroupRel> orderByComparator) Returns the first commerce payment method group rel in the ordered set where groupId = ?.fetchByPrimaryKey(long commercePaymentMethodGroupRelId) Returns the commerce payment method group rel with the primary key or returnsnullif it could not be found.fetchByPrimaryKeys(Set<Serializable> primaryKeys) static intfilterCountByG_A(long groupId, boolean active) Returns the number of commerce payment method group rels that the user has permission to view where groupId = ? and active = ?.static intfilterCountByGroupId(long groupId) Returns the number of commerce payment method group rels that the user has permission to view where groupId = ?.static List<CommercePaymentMethodGroupRel> filterFindByG_A(long groupId, boolean active) Returns all the commerce payment method group rels that the user has permission to view where groupId = ? and active = ?.static List<CommercePaymentMethodGroupRel> filterFindByG_A(long groupId, boolean active, int start, int end) Returns a range of all the commerce payment method group rels that the user has permission to view where groupId = ? and active = ?.static List<CommercePaymentMethodGroupRel> filterFindByG_A(long groupId, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethodGroupRel> orderByComparator) Returns an ordered range of all the commerce payment method group rels that the user has permissions to view where groupId = ? and active = ?.static List<CommercePaymentMethodGroupRel> filterFindByGroupId(long groupId) Returns all the commerce payment method group rels that the user has permission to view where groupId = ?.static List<CommercePaymentMethodGroupRel> filterFindByGroupId(long groupId, int start, int end) Returns a range of all the commerce payment method group rels that the user has permission to view where groupId = ?.static List<CommercePaymentMethodGroupRel> filterFindByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethodGroupRel> orderByComparator) Returns an ordered range of all the commerce payment method group rels that the user has permissions to view where groupId = ?.static List<CommercePaymentMethodGroupRel> findByG_A(long groupId, boolean active) Returns all the commerce payment method group rels where groupId = ? and active = ?.static List<CommercePaymentMethodGroupRel> findByG_A(long groupId, boolean active, int start, int end) Returns a range of all the commerce payment method group rels where groupId = ? and active = ?.static List<CommercePaymentMethodGroupRel> findByG_A(long groupId, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethodGroupRel> orderByComparator) Returns an ordered range of all the commerce payment method group rels where groupId = ? and active = ?.static List<CommercePaymentMethodGroupRel> findByG_A(long groupId, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethodGroupRel> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce payment method group rels where groupId = ? and active = ?.findByG_A_First(long groupId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethodGroupRel> orderByComparator) Returns the first commerce payment method group rel in the ordered set where groupId = ? and active = ?.Returns the commerce payment method group rel where groupId = ? and paymentIntegrationKey = ? or throws aNoSuchPaymentMethodGroupRelExceptionif it could not be found.static List<CommercePaymentMethodGroupRel> findByGroupId(long groupId) Returns all the commerce payment method group rels where groupId = ?.static List<CommercePaymentMethodGroupRel> findByGroupId(long groupId, int start, int end) Returns a range of all the commerce payment method group rels where groupId = ?.static List<CommercePaymentMethodGroupRel> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethodGroupRel> orderByComparator) Returns an ordered range of all the commerce payment method group rels where groupId = ?.static List<CommercePaymentMethodGroupRel> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethodGroupRel> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce payment method group rels where groupId = ?.findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethodGroupRel> orderByComparator) Returns the first commerce payment method group rel in the ordered set where groupId = ?.findByPrimaryKey(long commercePaymentMethodGroupRelId) Returns the commerce payment method group rel with the primary key or throws aNoSuchPaymentMethodGroupRelExceptionif it could not be found.static List<CommercePaymentMethodGroupRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<CommercePaymentMethodGroupRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<CommercePaymentMethodGroupRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethodGroupRel> orderByComparator) remove(long commercePaymentMethodGroupRelId) Removes the commerce payment method group rel with the primary key from the database.static voidremoveByG_A(long groupId, boolean active) Removes all the commerce payment method group rels where groupId = ? and active = ? from the database.removeByG_P(long groupId, String paymentIntegrationKey) Removes the commerce payment method group rel where groupId = ? and paymentIntegrationKey = ? from the database.static voidremoveByGroupId(long groupId) Removes all the commerce payment method group rels where groupId = ? from the database.static voidsetPersistence(CommercePaymentMethodGroupRelPersistence persistence) update(CommercePaymentMethodGroupRel commercePaymentMethodGroupRel) update(CommercePaymentMethodGroupRel commercePaymentMethodGroupRel, com.liferay.portal.kernel.service.ServiceContext serviceContext) updateImpl(CommercePaymentMethodGroupRel commercePaymentMethodGroupRel)
-
Constructor Details
-
CommercePaymentMethodGroupRelUtil
public CommercePaymentMethodGroupRelUtil()
-
-
Method Details
-
cacheResult
- See Also:
-
cacheResult
- See Also:
-
clearCache
public static void clearCache()- See Also:
-
clearCache
- See Also:
-
countWithDynamicQuery
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
fetchByPrimaryKeys
public static Map<Serializable,CommercePaymentMethodGroupRel> fetchByPrimaryKeys(Set<Serializable> primaryKeys) - See Also:
-
findWithDynamicQuery
public static List<CommercePaymentMethodGroupRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
findWithDynamicQuery
public static List<CommercePaymentMethodGroupRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
findWithDynamicQuery
public static List<CommercePaymentMethodGroupRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethodGroupRel> orderByComparator) - See Also:
-
update
public static CommercePaymentMethodGroupRel update(CommercePaymentMethodGroupRel commercePaymentMethodGroupRel) - See Also:
-
update
public static CommercePaymentMethodGroupRel update(CommercePaymentMethodGroupRel commercePaymentMethodGroupRel, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
findByGroupId
public static List<CommercePaymentMethodGroupRel> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethodGroupRel> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce payment method group rels where groupId = ?.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.payment.model.impl.CommercePaymentMethodGroupRelModelImpl.- Parameters:
groupId- the group IDstart- the lower bound of the range of commerce payment method group relsend- the upper bound of the range of commerce payment method 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 payment method group rels
-
findByGroupId_First
public static CommercePaymentMethodGroupRel findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethodGroupRel> orderByComparator) throws NoSuchPaymentMethodGroupRelException Returns the first commerce payment method group rel in the ordered set where groupId = ?.- Parameters:
groupId- the group IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching commerce payment method group rel
-
fetchByGroupId_First
public static CommercePaymentMethodGroupRel fetchByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethodGroupRel> orderByComparator) Returns the first commerce payment method group rel in the ordered set where groupId = ?.- Parameters:
groupId- the group IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching commerce payment method group rel, or
nullif a matching commerce payment method group rel could not be found
-
filterFindByGroupId
public static List<CommercePaymentMethodGroupRel> filterFindByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethodGroupRel> orderByComparator) Returns an ordered range of all the commerce payment method group rels that the user has permissions to view where groupId = ?.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.payment.model.impl.CommercePaymentMethodGroupRelModelImpl.- Parameters:
groupId- the group IDstart- the lower bound of the range of commerce payment method group relsend- the upper bound of the range of commerce payment method group rels (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching commerce payment method group rels that the user has permission to view
-
removeByGroupId
public static void removeByGroupId(long groupId) Removes all the commerce payment method group rels where groupId = ? from the database.- Parameters:
groupId- the group ID
-
countByGroupId
public static int countByGroupId(long groupId) Returns the number of commerce payment method group rels where groupId = ?.- Parameters:
groupId- the group ID- Returns:
- the number of matching commerce payment method group rels
-
filterCountByGroupId
public static int filterCountByGroupId(long groupId) Returns the number of commerce payment method group rels that the user has permission to view where groupId = ?.- Parameters:
groupId- the group ID- Returns:
- the number of matching commerce payment method group rels that the user has permission to view
-
findByG_A
public static List<CommercePaymentMethodGroupRel> findByG_A(long groupId, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethodGroupRel> orderByComparator, boolean useFinderCache) Returns an ordered range of all the commerce payment method group rels where groupId = ? and active = ?.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.payment.model.impl.CommercePaymentMethodGroupRelModelImpl.- Parameters:
groupId- the group IDactive- the activestart- the lower bound of the range of commerce payment method group relsend- the upper bound of the range of commerce payment method 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 payment method group rels
-
findByG_A_First
public static CommercePaymentMethodGroupRel findByG_A_First(long groupId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethodGroupRel> orderByComparator) throws NoSuchPaymentMethodGroupRelException Returns the first commerce payment method group rel in the ordered set where groupId = ? and active = ?.- Parameters:
groupId- the group IDactive- the activeorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching commerce payment method group rel
-
fetchByG_A_First
public static CommercePaymentMethodGroupRel fetchByG_A_First(long groupId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethodGroupRel> orderByComparator) Returns the first commerce payment method group rel in the ordered set where groupId = ? and active = ?.- Parameters:
groupId- the group IDactive- the activeorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching commerce payment method group rel, or
nullif a matching commerce payment method group rel could not be found
-
filterFindByG_A
public static List<CommercePaymentMethodGroupRel> filterFindByG_A(long groupId, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethodGroupRel> orderByComparator) Returns an ordered range of all the commerce payment method group rels that the user has permissions to view where groupId = ? and active = ?.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.payment.model.impl.CommercePaymentMethodGroupRelModelImpl.- Parameters:
groupId- the group IDactive- the activestart- the lower bound of the range of commerce payment method group relsend- the upper bound of the range of commerce payment method group rels (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching commerce payment method group rels that the user has permission to view
-
removeByG_A
public static void removeByG_A(long groupId, boolean active) Removes all the commerce payment method group rels where groupId = ? and active = ? from the database.- Parameters:
groupId- the group IDactive- the active
-
countByG_A
public static int countByG_A(long groupId, boolean active) Returns the number of commerce payment method group rels where groupId = ? and active = ?.- Parameters:
groupId- the group IDactive- the active- Returns:
- the number of matching commerce payment method group rels
-
filterCountByG_A
public static int filterCountByG_A(long groupId, boolean active) Returns the number of commerce payment method group rels that the user has permission to view where groupId = ? and active = ?.- Parameters:
groupId- the group IDactive- the active- Returns:
- the number of matching commerce payment method group rels that the user has permission to view
-
findByG_P
public static CommercePaymentMethodGroupRel findByG_P(long groupId, String paymentIntegrationKey) throws NoSuchPaymentMethodGroupRelException Returns the commerce payment method group rel where groupId = ? and paymentIntegrationKey = ? or throws aNoSuchPaymentMethodGroupRelExceptionif it could not be found.- Parameters:
groupId- the group IDpaymentIntegrationKey- the payment integration key- Returns:
- the matching commerce payment method group rel
-
fetchByG_P
public static CommercePaymentMethodGroupRel fetchByG_P(long groupId, String paymentIntegrationKey, boolean useFinderCache) Returns the commerce payment method group rel where groupId = ? and paymentIntegrationKey = ? or returnsnullif it could not be found, optionally using the finder cache.- Parameters:
groupId- the group IDpaymentIntegrationKey- the payment integration keyuseFinderCache- whether to use the finder cache- Returns:
- the matching commerce payment method group rel, or
nullif a matching commerce payment method group rel could not be found
-
removeByG_P
public static CommercePaymentMethodGroupRel removeByG_P(long groupId, String paymentIntegrationKey) throws NoSuchPaymentMethodGroupRelException Removes the commerce payment method group rel where groupId = ? and paymentIntegrationKey = ? from the database.- Parameters:
groupId- the group IDpaymentIntegrationKey- the payment integration key- Returns:
- the commerce payment method group rel that was removed
- Throws:
NoSuchPaymentMethodGroupRelException
-
countByG_P
Returns the number of commerce payment method group rels where groupId = ? and paymentIntegrationKey = ?.- Parameters:
groupId- the group IDpaymentIntegrationKey- the payment integration key- Returns:
- the number of matching commerce payment method group rels
-
create
Creates a new commerce payment method group rel with the primary key. Does not add the commerce payment method group rel to the database.- Parameters:
commercePaymentMethodGroupRelId- the primary key for the new commerce payment method group rel- Returns:
- the new commerce payment method group rel
-
remove
public static CommercePaymentMethodGroupRel remove(long commercePaymentMethodGroupRelId) throws NoSuchPaymentMethodGroupRelException Removes the commerce payment method group rel with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
commercePaymentMethodGroupRelId- the primary key of the commerce payment method group rel- Returns:
- the commerce payment method group rel that was removed
-
updateImpl
public static CommercePaymentMethodGroupRel updateImpl(CommercePaymentMethodGroupRel commercePaymentMethodGroupRel) -
findByPrimaryKey
public static CommercePaymentMethodGroupRel findByPrimaryKey(long commercePaymentMethodGroupRelId) throws NoSuchPaymentMethodGroupRelException Returns the commerce payment method group rel with the primary key or throws aNoSuchPaymentMethodGroupRelExceptionif it could not be found.- Parameters:
commercePaymentMethodGroupRelId- the primary key of the commerce payment method group rel- Returns:
- the commerce payment method group rel
-
fetchByPrimaryKey
Returns the commerce payment method group rel with the primary key or returnsnullif it could not be found.- Parameters:
commercePaymentMethodGroupRelId- the primary key of the commerce payment method group rel- Returns:
- the commerce payment method group rel, or
nullif a commerce payment method group rel with the primary key could not be found
-
fetchByG_P
Returns the commerce payment method group rel where groupId = ? and paymentIntegrationKey = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
groupId- the group IDpaymentIntegrationKey- the payment integration key- Returns:
- the matching commerce payment method group rel, or
nullif a matching commerce payment method group rel could not be found
-
findByGroupId
Returns all the commerce payment method group rels where groupId = ?.- Parameters:
groupId- the group ID- Returns:
- the matching commerce payment method group rels
-
findByGroupId
Returns a range of all the commerce payment method group rels where groupId = ?.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.payment.model.impl.CommercePaymentMethodGroupRelModelImpl.- Parameters:
groupId- the group IDstart- the lower bound of the range of commerce payment method group relsend- the upper bound of the range of commerce payment method group rels (not inclusive)- Returns:
- the range of matching commerce payment method group rels
-
findByGroupId
public static List<CommercePaymentMethodGroupRel> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethodGroupRel> orderByComparator) Returns an ordered range of all the commerce payment method group rels where groupId = ?.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.payment.model.impl.CommercePaymentMethodGroupRelModelImpl.- Parameters:
groupId- the group IDstart- the lower bound of the range of commerce payment method group relsend- the upper bound of the range of commerce payment method group rels (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching commerce payment method group rels
-
filterFindByGroupId
Returns all the commerce payment method group rels that the user has permission to view where groupId = ?.- Parameters:
groupId- the group ID- Returns:
- the matching commerce payment method group rels that the user has permission to view
-
filterFindByGroupId
public static List<CommercePaymentMethodGroupRel> filterFindByGroupId(long groupId, int start, int end) Returns a range of all the commerce payment method group rels that the user has permission to view where groupId = ?.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.payment.model.impl.CommercePaymentMethodGroupRelModelImpl.- Parameters:
groupId- the group IDstart- the lower bound of the range of commerce payment method group relsend- the upper bound of the range of commerce payment method group rels (not inclusive)- Returns:
- the range of matching commerce payment method group rels that the user has permission to view
-
findByG_A
Returns all the commerce payment method group rels where groupId = ? and active = ?.- Parameters:
groupId- the group IDactive- the active- Returns:
- the matching commerce payment method group rels
-
findByG_A
public static List<CommercePaymentMethodGroupRel> findByG_A(long groupId, boolean active, int start, int end) Returns a range of all the commerce payment method group rels where groupId = ? and active = ?.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.payment.model.impl.CommercePaymentMethodGroupRelModelImpl.- Parameters:
groupId- the group IDactive- the activestart- the lower bound of the range of commerce payment method group relsend- the upper bound of the range of commerce payment method group rels (not inclusive)- Returns:
- the range of matching commerce payment method group rels
-
findByG_A
public static List<CommercePaymentMethodGroupRel> findByG_A(long groupId, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethodGroupRel> orderByComparator) Returns an ordered range of all the commerce payment method group rels where groupId = ? and active = ?.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.payment.model.impl.CommercePaymentMethodGroupRelModelImpl.- Parameters:
groupId- the group IDactive- the activestart- the lower bound of the range of commerce payment method group relsend- the upper bound of the range of commerce payment method group rels (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching commerce payment method group rels
-
filterFindByG_A
Returns all the commerce payment method group rels that the user has permission to view where groupId = ? and active = ?.- Parameters:
groupId- the group IDactive- the active- Returns:
- the matching commerce payment method group rels that the user has permission to view
-
filterFindByG_A
public static List<CommercePaymentMethodGroupRel> filterFindByG_A(long groupId, boolean active, int start, int end) Returns a range of all the commerce payment method group rels that the user has permission to view where groupId = ? and active = ?.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.payment.model.impl.CommercePaymentMethodGroupRelModelImpl.- Parameters:
groupId- the group IDactive- the activestart- the lower bound of the range of commerce payment method group relsend- the upper bound of the range of commerce payment method group rels (not inclusive)- Returns:
- the range of matching commerce payment method group rels that the user has permission to view
-
getPersistence
-
setPersistence
-