public class CommercePaymentMethodGroupRelUtil
extends java.lang.Object
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
CommercePaymentMethodGroupRelPersistence
Constructor and Description |
---|
CommercePaymentMethodGroupRelUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(CommercePaymentMethodGroupRel commercePaymentMethodGroupRel)
Caches the commerce payment method group rel in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<CommercePaymentMethodGroupRel> commercePaymentMethodGroupRels)
Caches the commerce payment method group rels in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(CommercePaymentMethodGroupRel commercePaymentMethodGroupRel) |
static int |
countAll()
Returns the number of commerce payment method group rels.
|
static int |
countByG_A(long groupId,
boolean active)
Returns the number of commerce payment method group rels where groupId = ? and active = ?.
|
static int |
countByG_E(long groupId,
java.lang.String engineKey)
Returns the number of commerce payment method group rels where groupId = ? and engineKey = ?.
|
static int |
countByGroupId(long groupId)
Returns the number of commerce payment method group rels where groupId = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static CommercePaymentMethodGroupRel |
create(long commercePaymentMethodGroupRelId)
Creates a new commerce payment method group rel with the primary key.
|
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 = ?.
|
static CommercePaymentMethodGroupRel |
fetchByG_A_Last(long groupId,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethodGroupRel> orderByComparator)
Returns the last commerce payment method group rel in the ordered set where groupId = ? and active = ?.
|
static CommercePaymentMethodGroupRel |
fetchByG_E(long groupId,
java.lang.String engineKey)
Returns the commerce payment method group rel where groupId = ? and engineKey = ? or returns
null if it could not be found. |
static CommercePaymentMethodGroupRel |
fetchByG_E(long groupId,
java.lang.String engineKey,
boolean useFinderCache)
Returns the commerce payment method group rel where groupId = ? and engineKey = ? or returns
null if it could not be found, optionally using the finder cache. |
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 = ?.
|
static CommercePaymentMethodGroupRel |
fetchByGroupId_Last(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethodGroupRel> orderByComparator)
Returns the last commerce payment method group rel in the ordered set where groupId = ?.
|
static CommercePaymentMethodGroupRel |
fetchByPrimaryKey(long commercePaymentMethodGroupRelId)
Returns the commerce payment method group rel with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,CommercePaymentMethodGroupRel> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static java.util.List<CommercePaymentMethodGroupRel> |
findAll()
Returns all the commerce payment method group rels.
|
static java.util.List<CommercePaymentMethodGroupRel> |
findAll(int start,
int end)
Returns a range of all the commerce payment method group rels.
|
static java.util.List<CommercePaymentMethodGroupRel> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethodGroupRel> orderByComparator)
Returns an ordered range of all the commerce payment method group rels.
|
static java.util.List<CommercePaymentMethodGroupRel> |
findAll(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.
|
static CommercePaymentMethodGroupRel |
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 = ?.
|
static CommercePaymentMethodGroupRel |
findByG_A_Last(long groupId,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethodGroupRel> orderByComparator)
Returns the last commerce payment method group rel in the ordered set where groupId = ? and active = ?.
|
static CommercePaymentMethodGroupRel[] |
findByG_A_PrevAndNext(long commercePaymentMethodGroupRelId,
long groupId,
boolean active,
com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethodGroupRel> orderByComparator)
Returns the commerce payment method group rels before and after the current commerce payment method group rel in the ordered set where groupId = ? and active = ?.
|
static java.util.List<CommercePaymentMethodGroupRel> |
findByG_A(long groupId,
boolean active)
Returns all the commerce payment method group rels where groupId = ? and active = ?.
|
static java.util.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 java.util.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 java.util.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 = ?.
|
static CommercePaymentMethodGroupRel |
findByG_E(long groupId,
java.lang.String engineKey)
Returns the commerce payment method group rel where groupId = ? and engineKey = ? or throws a
NoSuchPaymentMethodGroupRelException if it could not be found. |
static CommercePaymentMethodGroupRel |
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 = ?.
|
static CommercePaymentMethodGroupRel |
findByGroupId_Last(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethodGroupRel> orderByComparator)
Returns the last commerce payment method group rel in the ordered set where groupId = ?.
|
static CommercePaymentMethodGroupRel[] |
findByGroupId_PrevAndNext(long commercePaymentMethodGroupRelId,
long groupId,
com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethodGroupRel> orderByComparator)
Returns the commerce payment method group rels before and after the current commerce payment method group rel in the ordered set where groupId = ?.
|
static java.util.List<CommercePaymentMethodGroupRel> |
findByGroupId(long groupId)
Returns all the commerce payment method group rels where groupId = ?.
|
static java.util.List<CommercePaymentMethodGroupRel> |
findByGroupId(long groupId,
int start,
int end)
Returns a range of all the commerce payment method group rels where groupId = ?.
|
static java.util.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 java.util.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 = ?.
|
static CommercePaymentMethodGroupRel |
findByPrimaryKey(long commercePaymentMethodGroupRelId)
Returns the commerce payment method group rel with the primary key or throws a
NoSuchPaymentMethodGroupRelException if it could not be found. |
static java.util.List<CommercePaymentMethodGroupRel> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<CommercePaymentMethodGroupRel> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<CommercePaymentMethodGroupRel> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethodGroupRel> orderByComparator) |
static CommercePaymentMethodGroupRelPersistence |
getPersistence() |
static CommercePaymentMethodGroupRel |
remove(long commercePaymentMethodGroupRelId)
Removes the commerce payment method group rel with the primary key from the database.
|
static void |
removeAll()
Removes all the commerce payment method group rels from the database.
|
static void |
removeByG_A(long groupId,
boolean active)
Removes all the commerce payment method group rels where groupId = ? and active = ? from the database.
|
static CommercePaymentMethodGroupRel |
removeByG_E(long groupId,
java.lang.String engineKey)
Removes the commerce payment method group rel where groupId = ? and engineKey = ? from the database.
|
static void |
removeByGroupId(long groupId)
Removes all the commerce payment method group rels where groupId = ? from the database.
|
static CommercePaymentMethodGroupRel |
update(CommercePaymentMethodGroupRel commercePaymentMethodGroupRel) |
static CommercePaymentMethodGroupRel |
update(CommercePaymentMethodGroupRel commercePaymentMethodGroupRel,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static CommercePaymentMethodGroupRel |
updateImpl(CommercePaymentMethodGroupRel commercePaymentMethodGroupRel) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(CommercePaymentMethodGroupRel commercePaymentMethodGroupRel)
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.Map<java.io.Serializable,CommercePaymentMethodGroupRel> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<CommercePaymentMethodGroupRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<CommercePaymentMethodGroupRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<CommercePaymentMethodGroupRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethodGroupRel> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static CommercePaymentMethodGroupRel update(CommercePaymentMethodGroupRel commercePaymentMethodGroupRel)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static CommercePaymentMethodGroupRel update(CommercePaymentMethodGroupRel commercePaymentMethodGroupRel, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<CommercePaymentMethodGroupRel> findByGroupId(long groupId)
groupId
- the group IDpublic static java.util.List<CommercePaymentMethodGroupRel> 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, then the query will include the default ORDER BY logic from CommercePaymentMethodGroupRelModelImpl
.
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)public static java.util.List<CommercePaymentMethodGroupRel> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethodGroupRel> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommercePaymentMethodGroupRelModelImpl
.
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 (optionally null
)public static java.util.List<CommercePaymentMethodGroupRel> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethodGroupRel> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommercePaymentMethodGroupRelModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommercePaymentMethodGroupRel findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethodGroupRel> orderByComparator) throws NoSuchPaymentMethodGroupRelException
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPaymentMethodGroupRelException
- if a matching commerce payment method group rel could not be foundpublic static CommercePaymentMethodGroupRel fetchByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethodGroupRel> orderByComparator)
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce payment method group rel could not be foundpublic static CommercePaymentMethodGroupRel findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethodGroupRel> orderByComparator) throws NoSuchPaymentMethodGroupRelException
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPaymentMethodGroupRelException
- if a matching commerce payment method group rel could not be foundpublic static CommercePaymentMethodGroupRel fetchByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethodGroupRel> orderByComparator)
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce payment method group rel could not be foundpublic static CommercePaymentMethodGroupRel[] findByGroupId_PrevAndNext(long commercePaymentMethodGroupRelId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethodGroupRel> orderByComparator) throws NoSuchPaymentMethodGroupRelException
commercePaymentMethodGroupRelId
- the primary key of the current commerce payment method group relgroupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPaymentMethodGroupRelException
- if a commerce payment method group rel 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 CommercePaymentMethodGroupRel findByG_E(long groupId, java.lang.String engineKey) throws NoSuchPaymentMethodGroupRelException
NoSuchPaymentMethodGroupRelException
if it could not be found.groupId
- the group IDengineKey
- the engine keyNoSuchPaymentMethodGroupRelException
- if a matching commerce payment method group rel could not be foundpublic static CommercePaymentMethodGroupRel 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 group rel could not be foundpublic static CommercePaymentMethodGroupRel fetchByG_E(long groupId, java.lang.String engineKey, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.groupId
- the group IDengineKey
- the engine keyuseFinderCache
- whether to use the finder cachenull
if a matching commerce payment method group rel could not be foundpublic static CommercePaymentMethodGroupRel removeByG_E(long groupId, java.lang.String engineKey) throws NoSuchPaymentMethodGroupRelException
groupId
- the group IDengineKey
- the engine keyNoSuchPaymentMethodGroupRelException
public static int countByG_E(long groupId, java.lang.String engineKey)
groupId
- the group IDengineKey
- the engine keypublic static java.util.List<CommercePaymentMethodGroupRel> findByG_A(long groupId, boolean active)
groupId
- the group IDactive
- the activepublic static java.util.List<CommercePaymentMethodGroupRel> 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, then the query will include the default ORDER BY logic from CommercePaymentMethodGroupRelModelImpl
.
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)public static java.util.List<CommercePaymentMethodGroupRel> findByG_A(long groupId, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethodGroupRel> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommercePaymentMethodGroupRelModelImpl
.
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 (optionally null
)public static java.util.List<CommercePaymentMethodGroupRel> findByG_A(long groupId, boolean active, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethodGroupRel> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommercePaymentMethodGroupRelModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommercePaymentMethodGroupRel findByG_A_First(long groupId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethodGroupRel> orderByComparator) throws NoSuchPaymentMethodGroupRelException
groupId
- the group IDactive
- the activeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPaymentMethodGroupRelException
- if a matching commerce payment method group rel could not be foundpublic static CommercePaymentMethodGroupRel fetchByG_A_First(long groupId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethodGroupRel> orderByComparator)
groupId
- the group IDactive
- the activeorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce payment method group rel could not be foundpublic static CommercePaymentMethodGroupRel findByG_A_Last(long groupId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethodGroupRel> orderByComparator) throws NoSuchPaymentMethodGroupRelException
groupId
- the group IDactive
- the activeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPaymentMethodGroupRelException
- if a matching commerce payment method group rel could not be foundpublic static CommercePaymentMethodGroupRel fetchByG_A_Last(long groupId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethodGroupRel> orderByComparator)
groupId
- the group IDactive
- the activeorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce payment method group rel could not be foundpublic static CommercePaymentMethodGroupRel[] findByG_A_PrevAndNext(long commercePaymentMethodGroupRelId, long groupId, boolean active, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethodGroupRel> orderByComparator) throws NoSuchPaymentMethodGroupRelException
commercePaymentMethodGroupRelId
- the primary key of the current commerce payment method group relgroupId
- the group IDactive
- the activeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchPaymentMethodGroupRelException
- if a commerce payment method group rel 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(CommercePaymentMethodGroupRel commercePaymentMethodGroupRel)
commercePaymentMethodGroupRel
- the commerce payment method group relpublic static void cacheResult(java.util.List<CommercePaymentMethodGroupRel> commercePaymentMethodGroupRels)
commercePaymentMethodGroupRels
- the commerce payment method group relspublic static CommercePaymentMethodGroupRel create(long commercePaymentMethodGroupRelId)
commercePaymentMethodGroupRelId
- the primary key for the new commerce payment method group relpublic static CommercePaymentMethodGroupRel remove(long commercePaymentMethodGroupRelId) throws NoSuchPaymentMethodGroupRelException
commercePaymentMethodGroupRelId
- the primary key of the commerce payment method group relNoSuchPaymentMethodGroupRelException
- if a commerce payment method group rel with the primary key could not be foundpublic static CommercePaymentMethodGroupRel updateImpl(CommercePaymentMethodGroupRel commercePaymentMethodGroupRel)
public static CommercePaymentMethodGroupRel findByPrimaryKey(long commercePaymentMethodGroupRelId) throws NoSuchPaymentMethodGroupRelException
NoSuchPaymentMethodGroupRelException
if it could not be found.commercePaymentMethodGroupRelId
- the primary key of the commerce payment method group relNoSuchPaymentMethodGroupRelException
- if a commerce payment method group rel with the primary key could not be foundpublic static CommercePaymentMethodGroupRel fetchByPrimaryKey(long commercePaymentMethodGroupRelId)
null
if it could not be found.commercePaymentMethodGroupRelId
- the primary key of the commerce payment method group relnull
if a commerce payment method group rel with the primary key could not be foundpublic static java.util.List<CommercePaymentMethodGroupRel> findAll()
public static java.util.List<CommercePaymentMethodGroupRel> findAll(int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommercePaymentMethodGroupRelModelImpl
.
start
- 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)public static java.util.List<CommercePaymentMethodGroupRel> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethodGroupRel> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommercePaymentMethodGroupRelModelImpl
.
start
- 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 (optionally null
)public static java.util.List<CommercePaymentMethodGroupRel> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommercePaymentMethodGroupRel> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from CommercePaymentMethodGroupRelModelImpl
.
start
- 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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static void removeAll()
public static int countAll()
public static CommercePaymentMethodGroupRelPersistence getPersistence()