@ProviderType
public class CommercePaymentMethodUtil
extends java.lang.Object
com.liferay.commerce.service.persistence.impl.CommercePaymentMethodPersistenceImpl 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
CommercePaymentMethodPersistence,
com.liferay.commerce.service.persistence.impl.CommercePaymentMethodPersistenceImpl| Constructor and Description |
|---|
CommercePaymentMethodUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
cacheResult(CommercePaymentMethod commercePaymentMethod)
Caches the commerce payment method in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<CommercePaymentMethod> commercePaymentMethods)
Caches the commerce payment methods in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(CommercePaymentMethod commercePaymentMethod) |
static int |
countAll()
Returns the number of commerce payment methods.
|
static int |
countByG_A(long groupId,
boolean active)
Returns the number of commerce payment methods where groupId = ? and active = ?.
|
static int |
countByG_E(long groupId,
java.lang.String engineKey)
Returns the number of commerce payment methods where groupId = ? and engineKey = ?.
|
static int |
countByGroupId(long groupId)
Returns the number of commerce payment methods where groupId = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static CommercePaymentMethod |
create(long commercePaymentMethodId)
Creates a new commerce payment method with the primary key.
|
static CommercePaymentMethod |
fetchByG_A_First(long groupId,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethod> orderByComparator)
Returns the first commerce payment method in the ordered set where groupId = ? and active = ?.
|
static CommercePaymentMethod |
fetchByG_A_Last(long groupId,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethod> orderByComparator)
Returns the last commerce payment method in the ordered set where groupId = ? and active = ?.
|
static CommercePaymentMethod |
fetchByG_E(long groupId,
java.lang.String engineKey)
Returns the commerce payment method where groupId = ? and engineKey = ? or returns
null if it could not be found. |
static CommercePaymentMethod |
fetchByG_E(long groupId,
java.lang.String engineKey,
boolean retrieveFromCache)
Returns the commerce payment method where groupId = ? and engineKey = ? or returns
null if it could not be found, optionally using the finder cache. |
static CommercePaymentMethod |
fetchByGroupId_First(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethod> orderByComparator)
Returns the first commerce payment method in the ordered set where groupId = ?.
|
static CommercePaymentMethod |
fetchByGroupId_Last(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethod> orderByComparator)
Returns the last commerce payment method in the ordered set where groupId = ?.
|
static CommercePaymentMethod |
fetchByPrimaryKey(long commercePaymentMethodId)
Returns the commerce payment method with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,CommercePaymentMethod> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static java.util.List<CommercePaymentMethod> |
findAll()
Returns all the commerce payment methods.
|
static java.util.List<CommercePaymentMethod> |
findAll(int start,
int end)
Returns a range of all the commerce payment methods.
|
static java.util.List<CommercePaymentMethod> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethod> orderByComparator)
Returns an ordered range of all the commerce payment methods.
|
static java.util.List<CommercePaymentMethod> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethod> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the commerce payment methods.
|
static CommercePaymentMethod |
findByG_A_First(long groupId,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethod> orderByComparator)
Returns the first commerce payment method in the ordered set where groupId = ? and active = ?.
|
static CommercePaymentMethod |
findByG_A_Last(long groupId,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethod> orderByComparator)
Returns the last commerce payment method in the ordered set where groupId = ? and active = ?.
|
static CommercePaymentMethod[] |
findByG_A_PrevAndNext(long commercePaymentMethodId,
long groupId,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethod> orderByComparator)
Returns the commerce payment methods before and after the current commerce payment method in the ordered set where groupId = ? and active = ?.
|
static java.util.List<CommercePaymentMethod> |
findByG_A(long groupId,
boolean active)
Returns all the commerce payment methods where groupId = ? and active = ?.
|
static java.util.List<CommercePaymentMethod> |
findByG_A(long groupId,
boolean active,
int start,
int end)
Returns a range of all the commerce payment methods where groupId = ? and active = ?.
|
static java.util.List<CommercePaymentMethod> |
findByG_A(long groupId,
boolean active,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethod> orderByComparator)
Returns an ordered range of all the commerce payment methods where groupId = ? and active = ?.
|
static java.util.List<CommercePaymentMethod> |
findByG_A(long groupId,
boolean active,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethod> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the commerce payment methods where groupId = ? and active = ?.
|
static CommercePaymentMethod |
findByG_E(long groupId,
java.lang.String engineKey)
Returns the commerce payment method where groupId = ? and engineKey = ? or throws a
NoSuchPaymentMethodException if it could not be found. |
static CommercePaymentMethod |
findByGroupId_First(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethod> orderByComparator)
Returns the first commerce payment method in the ordered set where groupId = ?.
|
static CommercePaymentMethod |
findByGroupId_Last(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethod> orderByComparator)
Returns the last commerce payment method in the ordered set where groupId = ?.
|
static CommercePaymentMethod[] |
findByGroupId_PrevAndNext(long commercePaymentMethodId,
long groupId,
com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethod> orderByComparator)
Returns the commerce payment methods before and after the current commerce payment method in the ordered set where groupId = ?.
|
static java.util.List<CommercePaymentMethod> |
findByGroupId(long groupId)
Returns all the commerce payment methods where groupId = ?.
|
static java.util.List<CommercePaymentMethod> |
findByGroupId(long groupId,
int start,
int end)
Returns a range of all the commerce payment methods where groupId = ?.
|
static java.util.List<CommercePaymentMethod> |
findByGroupId(long groupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethod> orderByComparator)
Returns an ordered range of all the commerce payment methods where groupId = ?.
|
static java.util.List<CommercePaymentMethod> |
findByGroupId(long groupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethod> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the commerce payment methods where groupId = ?.
|
static CommercePaymentMethod |
findByPrimaryKey(long commercePaymentMethodId)
Returns the commerce payment method with the primary key or throws a
NoSuchPaymentMethodException if it could not be found. |
static java.util.List<CommercePaymentMethod> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<CommercePaymentMethod> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<CommercePaymentMethod> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethod> orderByComparator) |
static java.util.Set<java.lang.String> |
getBadColumnNames() |
static CommercePaymentMethodPersistence |
getPersistence() |
static CommercePaymentMethod |
remove(long commercePaymentMethodId)
Removes the commerce payment method with the primary key from the database.
|
static void |
removeAll()
Removes all the commerce payment methods from the database.
|
static void |
removeByG_A(long groupId,
boolean active)
Removes all the commerce payment methods where groupId = ? and active = ? from the database.
|
static CommercePaymentMethod |
removeByG_E(long groupId,
java.lang.String engineKey)
Removes the commerce payment method where groupId = ? and engineKey = ? from the database.
|
static void |
removeByGroupId(long groupId)
Removes all the commerce payment methods where groupId = ? from the database.
|
static CommercePaymentMethod |
update(CommercePaymentMethod commercePaymentMethod) |
static CommercePaymentMethod |
update(CommercePaymentMethod commercePaymentMethod,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static CommercePaymentMethod |
updateImpl(CommercePaymentMethod commercePaymentMethod) |
public static void clearCache()
BasePersistence.clearCache()public static void clearCache(CommercePaymentMethod commercePaymentMethod)
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.countWithDynamicQuery(DynamicQuery)public static java.util.List<CommercePaymentMethod> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)public static java.util.List<CommercePaymentMethod> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)public static java.util.List<CommercePaymentMethod> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethod> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)public static CommercePaymentMethod update(CommercePaymentMethod commercePaymentMethod)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)public static CommercePaymentMethod update(CommercePaymentMethod commercePaymentMethod, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)public static java.util.List<CommercePaymentMethod> findByGroupId(long groupId)
groupId - the group IDpublic static java.util.List<CommercePaymentMethod> findByGroupId(long groupId, int start, int end)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommercePaymentMethodModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId - the group IDstart - the lower bound of the range of commerce payment methodsend - the upper bound of the range of commerce payment methods (not inclusive)public static java.util.List<CommercePaymentMethod> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethod> orderByComparator)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommercePaymentMethodModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId - the group IDstart - the lower bound of the range of commerce payment methodsend - the upper bound of the range of commerce payment methods (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static java.util.List<CommercePaymentMethod> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethod> orderByComparator, boolean retrieveFromCache)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommercePaymentMethodModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId - the group IDstart - the lower bound of the range of commerce payment methodsend - the upper bound of the range of commerce payment methods (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cachepublic static CommercePaymentMethod findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethod> orderByComparator) throws NoSuchPaymentMethodException
groupId - the group IDorderByComparator - the comparator to order the set by (optionally null)NoSuchPaymentMethodException - if a matching commerce payment method could not be foundpublic static CommercePaymentMethod fetchByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethod> orderByComparator)
groupId - the group IDorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce payment method could not be foundpublic static CommercePaymentMethod findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethod> orderByComparator) throws NoSuchPaymentMethodException
groupId - the group IDorderByComparator - the comparator to order the set by (optionally null)NoSuchPaymentMethodException - if a matching commerce payment method could not be foundpublic static CommercePaymentMethod fetchByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethod> orderByComparator)
groupId - the group IDorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce payment method could not be foundpublic static CommercePaymentMethod[] findByGroupId_PrevAndNext(long commercePaymentMethodId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethod> orderByComparator) throws NoSuchPaymentMethodException
commercePaymentMethodId - the primary key of the current commerce payment methodgroupId - the group IDorderByComparator - the comparator to order the set by (optionally null)NoSuchPaymentMethodException - if a commerce payment method with the primary key could not be foundpublic static void removeByGroupId(long groupId)
groupId - the group IDpublic static int countByGroupId(long groupId)
groupId - the group IDpublic static CommercePaymentMethod findByG_E(long groupId, java.lang.String engineKey) throws NoSuchPaymentMethodException
NoSuchPaymentMethodException if it could not be found.groupId - the group IDengineKey - the engine keyNoSuchPaymentMethodException - if a matching commerce payment method could not be foundpublic static CommercePaymentMethod fetchByG_E(long groupId, java.lang.String engineKey)
null if it could not be found. Uses the finder cache.groupId - the group IDengineKey - the engine keynull if a matching commerce payment method could not be foundpublic static CommercePaymentMethod fetchByG_E(long groupId, java.lang.String engineKey, boolean retrieveFromCache)
null if it could not be found, optionally using the finder cache.groupId - the group IDengineKey - the engine keyretrieveFromCache - whether to retrieve from the finder cachenull if a matching commerce payment method could not be foundpublic static CommercePaymentMethod removeByG_E(long groupId, java.lang.String engineKey) throws NoSuchPaymentMethodException
groupId - the group IDengineKey - the engine keyNoSuchPaymentMethodExceptionpublic static int countByG_E(long groupId,
java.lang.String engineKey)
groupId - the group IDengineKey - the engine keypublic static java.util.List<CommercePaymentMethod> findByG_A(long groupId, boolean active)
groupId - the group IDactive - the activepublic static java.util.List<CommercePaymentMethod> findByG_A(long groupId, boolean active, int start, int end)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommercePaymentMethodModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId - the group IDactive - the activestart - the lower bound of the range of commerce payment methodsend - the upper bound of the range of commerce payment methods (not inclusive)public static java.util.List<CommercePaymentMethod> findByG_A(long groupId, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethod> orderByComparator)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommercePaymentMethodModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId - the group IDactive - the activestart - the lower bound of the range of commerce payment methodsend - the upper bound of the range of commerce payment methods (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static java.util.List<CommercePaymentMethod> findByG_A(long groupId, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethod> orderByComparator, boolean retrieveFromCache)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommercePaymentMethodModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
groupId - the group IDactive - the activestart - the lower bound of the range of commerce payment methodsend - the upper bound of the range of commerce payment methods (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cachepublic static CommercePaymentMethod findByG_A_First(long groupId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethod> orderByComparator) throws NoSuchPaymentMethodException
groupId - the group IDactive - the activeorderByComparator - the comparator to order the set by (optionally null)NoSuchPaymentMethodException - if a matching commerce payment method could not be foundpublic static CommercePaymentMethod fetchByG_A_First(long groupId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethod> orderByComparator)
groupId - the group IDactive - the activeorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce payment method could not be foundpublic static CommercePaymentMethod findByG_A_Last(long groupId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethod> orderByComparator) throws NoSuchPaymentMethodException
groupId - the group IDactive - the activeorderByComparator - the comparator to order the set by (optionally null)NoSuchPaymentMethodException - if a matching commerce payment method could not be foundpublic static CommercePaymentMethod fetchByG_A_Last(long groupId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethod> orderByComparator)
groupId - the group IDactive - the activeorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce payment method could not be foundpublic static CommercePaymentMethod[] findByG_A_PrevAndNext(long commercePaymentMethodId, long groupId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethod> orderByComparator) throws NoSuchPaymentMethodException
commercePaymentMethodId - the primary key of the current commerce payment methodgroupId - the group IDactive - the activeorderByComparator - the comparator to order the set by (optionally null)NoSuchPaymentMethodException - if a commerce payment method with the primary key could not be foundpublic static void removeByG_A(long groupId,
boolean active)
groupId - the group IDactive - the activepublic static int countByG_A(long groupId,
boolean active)
groupId - the group IDactive - the activepublic static void cacheResult(CommercePaymentMethod commercePaymentMethod)
commercePaymentMethod - the commerce payment methodpublic static void cacheResult(java.util.List<CommercePaymentMethod> commercePaymentMethods)
commercePaymentMethods - the commerce payment methodspublic static CommercePaymentMethod create(long commercePaymentMethodId)
commercePaymentMethodId - the primary key for the new commerce payment methodpublic static CommercePaymentMethod remove(long commercePaymentMethodId) throws NoSuchPaymentMethodException
commercePaymentMethodId - the primary key of the commerce payment methodNoSuchPaymentMethodException - if a commerce payment method with the primary key could not be foundpublic static CommercePaymentMethod updateImpl(CommercePaymentMethod commercePaymentMethod)
public static CommercePaymentMethod findByPrimaryKey(long commercePaymentMethodId) throws NoSuchPaymentMethodException
NoSuchPaymentMethodException if it could not be found.commercePaymentMethodId - the primary key of the commerce payment methodNoSuchPaymentMethodException - if a commerce payment method with the primary key could not be foundpublic static CommercePaymentMethod fetchByPrimaryKey(long commercePaymentMethodId)
null if it could not be found.commercePaymentMethodId - the primary key of the commerce payment methodnull if a commerce payment method with the primary key could not be foundpublic static java.util.Map<java.io.Serializable,CommercePaymentMethod> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
public static java.util.List<CommercePaymentMethod> findAll()
public static java.util.List<CommercePaymentMethod> findAll(int start, int end)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommercePaymentMethodModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start - the lower bound of the range of commerce payment methodsend - the upper bound of the range of commerce payment methods (not inclusive)public static java.util.List<CommercePaymentMethod> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethod> orderByComparator)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommercePaymentMethodModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start - the lower bound of the range of commerce payment methodsend - the upper bound of the range of commerce payment methods (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static java.util.List<CommercePaymentMethod> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethod> orderByComparator, boolean retrieveFromCache)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from CommercePaymentMethodModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start - the lower bound of the range of commerce payment methodsend - the upper bound of the range of commerce payment methods (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cachepublic static void removeAll()
public static int countAll()
public static java.util.Set<java.lang.String> getBadColumnNames()
public static CommercePaymentMethodPersistence getPersistence()