public class CommerceDiscountCommerceAccountGroupRelUtil
extends java.lang.Object
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
CommerceDiscountCommerceAccountGroupRelPersistence
Constructor and Description |
---|
CommerceDiscountCommerceAccountGroupRelUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(CommerceDiscountCommerceAccountGroupRel commerceDiscountCommerceAccountGroupRel)
Caches the commerce discount commerce account group rel in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<CommerceDiscountCommerceAccountGroupRel> commerceDiscountCommerceAccountGroupRels)
Caches the commerce discount commerce account group rels in the entity cache if it is enabled.
|
static void |
clearCache() |
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) |
static CommerceDiscountCommerceAccountGroupRel |
create(long commerceDiscountCommerceAccountGroupRelId)
Creates a new commerce discount commerce account group rel with the primary key.
|
static CommerceDiscountCommerceAccountGroupRel |
fetchByCDI_CAGI(long commerceDiscountId,
long commerceAccountGroupId)
Returns the commerce discount commerce account group rel where commerceDiscountId = ? and commerceAccountGroupId = ? or returns
null if it could not be found. |
static CommerceDiscountCommerceAccountGroupRel |
fetchByCDI_CAGI(long commerceDiscountId,
long commerceAccountGroupId,
boolean useFinderCache)
Returns the commerce discount commerce account group rel where commerceDiscountId = ? and commerceAccountGroupId = ? or returns
null if it could not be found, optionally using the finder cache. |
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 = ?.
|
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 = ?.
|
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 = ?.
|
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 = ?.
|
static CommerceDiscountCommerceAccountGroupRel |
fetchByPrimaryKey(long commerceDiscountCommerceAccountGroupRelId)
Returns the commerce discount commerce account group rel with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,CommerceDiscountCommerceAccountGroupRel> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static java.util.List<CommerceDiscountCommerceAccountGroupRel> |
findAll()
Returns all the commerce discount commerce account group rels.
|
static java.util.List<CommerceDiscountCommerceAccountGroupRel> |
findAll(int start,
int end)
Returns a range of all the commerce discount commerce account group rels.
|
static java.util.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.
|
static java.util.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.
|
static CommerceDiscountCommerceAccountGroupRel |
findByCDI_CAGI(long commerceDiscountId,
long commerceAccountGroupId)
Returns the commerce discount commerce account group rel where commerceDiscountId = ? and commerceAccountGroupId = ? or throws a
NoSuchDiscountCommerceAccountGroupRelException if it could not be found. |
static CommerceDiscountCommerceAccountGroupRel |
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 = ?.
|
static CommerceDiscountCommerceAccountGroupRel |
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 = ?.
|
static CommerceDiscountCommerceAccountGroupRel[] |
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 = ?.
|
static java.util.List<CommerceDiscountCommerceAccountGroupRel> |
findByCommerceAccountGroupId(long commerceAccountGroupId)
Returns all the commerce discount commerce account group rels where commerceAccountGroupId = ?.
|
static java.util.List<CommerceDiscountCommerceAccountGroupRel> |
findByCommerceAccountGroupId(long commerceAccountGroupId,
int start,
int end)
Returns a range of all the commerce discount commerce account group rels where commerceAccountGroupId = ?.
|
static java.util.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 = ?.
|
static java.util.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 = ?.
|
static CommerceDiscountCommerceAccountGroupRel |
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 = ?.
|
static CommerceDiscountCommerceAccountGroupRel |
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 = ?.
|
static CommerceDiscountCommerceAccountGroupRel[] |
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 = ?.
|
static java.util.List<CommerceDiscountCommerceAccountGroupRel> |
findByCommerceDiscountId(long commerceDiscountId)
Returns all the commerce discount commerce account group rels where commerceDiscountId = ?.
|
static java.util.List<CommerceDiscountCommerceAccountGroupRel> |
findByCommerceDiscountId(long commerceDiscountId,
int start,
int end)
Returns a range of all the commerce discount commerce account group rels where commerceDiscountId = ?.
|
static java.util.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 = ?.
|
static java.util.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 = ?.
|
static CommerceDiscountCommerceAccountGroupRel |
findByPrimaryKey(long commerceDiscountCommerceAccountGroupRelId)
Returns the commerce discount commerce account group rel with the primary key or throws a
NoSuchDiscountCommerceAccountGroupRelException if it could not be found. |
static java.util.List<CommerceDiscountCommerceAccountGroupRel> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<CommerceDiscountCommerceAccountGroupRel> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<CommerceDiscountCommerceAccountGroupRel> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountCommerceAccountGroupRel> orderByComparator) |
static CommerceDiscountCommerceAccountGroupRelPersistence |
getPersistence() |
static CommerceDiscountCommerceAccountGroupRel |
remove(long commerceDiscountCommerceAccountGroupRelId)
Removes the commerce discount commerce account group rel with the primary key from the database.
|
static void |
removeAll()
Removes all the commerce discount commerce account group rels from the database.
|
static CommerceDiscountCommerceAccountGroupRel |
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 |
setPersistence(CommerceDiscountCommerceAccountGroupRelPersistence persistence) |
static CommerceDiscountCommerceAccountGroupRel |
update(CommerceDiscountCommerceAccountGroupRel commerceDiscountCommerceAccountGroupRel) |
static CommerceDiscountCommerceAccountGroupRel |
update(CommerceDiscountCommerceAccountGroupRel commerceDiscountCommerceAccountGroupRel,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static CommerceDiscountCommerceAccountGroupRel |
updateImpl(CommerceDiscountCommerceAccountGroupRel commerceDiscountCommerceAccountGroupRel) |
public CommerceDiscountCommerceAccountGroupRelUtil()
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(CommerceDiscountCommerceAccountGroupRel commerceDiscountCommerceAccountGroupRel)
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,CommerceDiscountCommerceAccountGroupRel> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<CommerceDiscountCommerceAccountGroupRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<CommerceDiscountCommerceAccountGroupRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<CommerceDiscountCommerceAccountGroupRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountCommerceAccountGroupRel> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static CommerceDiscountCommerceAccountGroupRel update(CommerceDiscountCommerceAccountGroupRel commerceDiscountCommerceAccountGroupRel)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static CommerceDiscountCommerceAccountGroupRel update(CommerceDiscountCommerceAccountGroupRel commerceDiscountCommerceAccountGroupRel, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<CommerceDiscountCommerceAccountGroupRel> findByCommerceDiscountId(long commerceDiscountId)
commerceDiscountId
- the commerce discount IDpublic static java.util.List<CommerceDiscountCommerceAccountGroupRel> findByCommerceDiscountId(long commerceDiscountId, 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 CommerceDiscountCommerceAccountGroupRelModelImpl
.
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)public static java.util.List<CommerceDiscountCommerceAccountGroupRel> findByCommerceDiscountId(long commerceDiscountId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountCommerceAccountGroupRel> 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 CommerceDiscountCommerceAccountGroupRelModelImpl
.
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 (optionally null
)public static java.util.List<CommerceDiscountCommerceAccountGroupRel> findByCommerceDiscountId(long commerceDiscountId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountCommerceAccountGroupRel> 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 CommerceDiscountCommerceAccountGroupRelModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommerceDiscountCommerceAccountGroupRel findByCommerceDiscountId_First(long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountCommerceAccountGroupRel> orderByComparator) throws NoSuchDiscountCommerceAccountGroupRelException
commerceDiscountId
- the commerce discount IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDiscountCommerceAccountGroupRelException
- if a matching commerce discount commerce account group rel could not be foundpublic static CommerceDiscountCommerceAccountGroupRel fetchByCommerceDiscountId_First(long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountCommerceAccountGroupRel> orderByComparator)
commerceDiscountId
- the commerce discount IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce discount commerce account group rel could not be foundpublic static CommerceDiscountCommerceAccountGroupRel findByCommerceDiscountId_Last(long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountCommerceAccountGroupRel> orderByComparator) throws NoSuchDiscountCommerceAccountGroupRelException
commerceDiscountId
- the commerce discount IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDiscountCommerceAccountGroupRelException
- if a matching commerce discount commerce account group rel could not be foundpublic static CommerceDiscountCommerceAccountGroupRel fetchByCommerceDiscountId_Last(long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountCommerceAccountGroupRel> orderByComparator)
commerceDiscountId
- the commerce discount IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce discount commerce account group rel could not be foundpublic static CommerceDiscountCommerceAccountGroupRel[] findByCommerceDiscountId_PrevAndNext(long commerceDiscountCommerceAccountGroupRelId, long commerceDiscountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountCommerceAccountGroupRel> orderByComparator) throws NoSuchDiscountCommerceAccountGroupRelException
commerceDiscountCommerceAccountGroupRelId
- the primary key of the current commerce discount commerce account group relcommerceDiscountId
- the commerce discount IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDiscountCommerceAccountGroupRelException
- if a commerce discount commerce account group rel with the primary key could not be foundpublic static void removeByCommerceDiscountId(long commerceDiscountId)
commerceDiscountId
- the commerce discount IDpublic static int countByCommerceDiscountId(long commerceDiscountId)
commerceDiscountId
- the commerce discount IDpublic static java.util.List<CommerceDiscountCommerceAccountGroupRel> findByCommerceAccountGroupId(long commerceAccountGroupId)
commerceAccountGroupId
- the commerce account group IDpublic static java.util.List<CommerceDiscountCommerceAccountGroupRel> findByCommerceAccountGroupId(long commerceAccountGroupId, 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 CommerceDiscountCommerceAccountGroupRelModelImpl
.
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)public static java.util.List<CommerceDiscountCommerceAccountGroupRel> findByCommerceAccountGroupId(long commerceAccountGroupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountCommerceAccountGroupRel> 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 CommerceDiscountCommerceAccountGroupRelModelImpl
.
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 (optionally null
)public static java.util.List<CommerceDiscountCommerceAccountGroupRel> findByCommerceAccountGroupId(long commerceAccountGroupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountCommerceAccountGroupRel> 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 CommerceDiscountCommerceAccountGroupRelModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static CommerceDiscountCommerceAccountGroupRel findByCommerceAccountGroupId_First(long commerceAccountGroupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountCommerceAccountGroupRel> orderByComparator) throws NoSuchDiscountCommerceAccountGroupRelException
commerceAccountGroupId
- the commerce account group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDiscountCommerceAccountGroupRelException
- if a matching commerce discount commerce account group rel could not be foundpublic static CommerceDiscountCommerceAccountGroupRel fetchByCommerceAccountGroupId_First(long commerceAccountGroupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountCommerceAccountGroupRel> orderByComparator)
commerceAccountGroupId
- the commerce account group IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce discount commerce account group rel could not be foundpublic static CommerceDiscountCommerceAccountGroupRel findByCommerceAccountGroupId_Last(long commerceAccountGroupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountCommerceAccountGroupRel> orderByComparator) throws NoSuchDiscountCommerceAccountGroupRelException
commerceAccountGroupId
- the commerce account group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchDiscountCommerceAccountGroupRelException
- if a matching commerce discount commerce account group rel could not be foundpublic static CommerceDiscountCommerceAccountGroupRel fetchByCommerceAccountGroupId_Last(long commerceAccountGroupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountCommerceAccountGroupRel> orderByComparator)
commerceAccountGroupId
- the commerce account group IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching commerce discount commerce account group rel could not be foundpublic static CommerceDiscountCommerceAccountGroupRel[] findByCommerceAccountGroupId_PrevAndNext(long commerceDiscountCommerceAccountGroupRelId, long commerceAccountGroupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountCommerceAccountGroupRel> orderByComparator) throws NoSuchDiscountCommerceAccountGroupRelException
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 (optionally null
)NoSuchDiscountCommerceAccountGroupRelException
- if a commerce discount commerce account group rel with the primary key could not be foundpublic static void removeByCommerceAccountGroupId(long commerceAccountGroupId)
commerceAccountGroupId
- the commerce account group IDpublic static int countByCommerceAccountGroupId(long commerceAccountGroupId)
commerceAccountGroupId
- the commerce account group IDpublic static CommerceDiscountCommerceAccountGroupRel findByCDI_CAGI(long commerceDiscountId, long commerceAccountGroupId) throws NoSuchDiscountCommerceAccountGroupRelException
NoSuchDiscountCommerceAccountGroupRelException
if it could not be found.commerceDiscountId
- the commerce discount IDcommerceAccountGroupId
- the commerce account group IDNoSuchDiscountCommerceAccountGroupRelException
- if a matching commerce discount commerce account group rel could not be foundpublic static CommerceDiscountCommerceAccountGroupRel fetchByCDI_CAGI(long commerceDiscountId, long commerceAccountGroupId)
null
if it could not be found. Uses the finder cache.commerceDiscountId
- the commerce discount IDcommerceAccountGroupId
- the commerce account group IDnull
if a matching commerce discount commerce account group rel could not be foundpublic static CommerceDiscountCommerceAccountGroupRel fetchByCDI_CAGI(long commerceDiscountId, long commerceAccountGroupId, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.commerceDiscountId
- the commerce discount IDcommerceAccountGroupId
- the commerce account group IDuseFinderCache
- whether to use the finder cachenull
if a matching commerce discount commerce account group rel could not be foundpublic static CommerceDiscountCommerceAccountGroupRel removeByCDI_CAGI(long commerceDiscountId, long commerceAccountGroupId) throws NoSuchDiscountCommerceAccountGroupRelException
commerceDiscountId
- the commerce discount IDcommerceAccountGroupId
- the commerce account group IDNoSuchDiscountCommerceAccountGroupRelException
public static int countByCDI_CAGI(long commerceDiscountId, long commerceAccountGroupId)
commerceDiscountId
- the commerce discount IDcommerceAccountGroupId
- the commerce account group IDpublic static void cacheResult(CommerceDiscountCommerceAccountGroupRel commerceDiscountCommerceAccountGroupRel)
commerceDiscountCommerceAccountGroupRel
- the commerce discount commerce account group relpublic static void cacheResult(java.util.List<CommerceDiscountCommerceAccountGroupRel> commerceDiscountCommerceAccountGroupRels)
commerceDiscountCommerceAccountGroupRels
- the commerce discount commerce account group relspublic static CommerceDiscountCommerceAccountGroupRel create(long commerceDiscountCommerceAccountGroupRelId)
commerceDiscountCommerceAccountGroupRelId
- the primary key for the new commerce discount commerce account group relpublic static CommerceDiscountCommerceAccountGroupRel remove(long commerceDiscountCommerceAccountGroupRelId) throws NoSuchDiscountCommerceAccountGroupRelException
commerceDiscountCommerceAccountGroupRelId
- the primary key of the commerce discount commerce account group relNoSuchDiscountCommerceAccountGroupRelException
- if a commerce discount commerce account group rel with the primary key could not be foundpublic static CommerceDiscountCommerceAccountGroupRel updateImpl(CommerceDiscountCommerceAccountGroupRel commerceDiscountCommerceAccountGroupRel)
public static CommerceDiscountCommerceAccountGroupRel findByPrimaryKey(long commerceDiscountCommerceAccountGroupRelId) throws NoSuchDiscountCommerceAccountGroupRelException
NoSuchDiscountCommerceAccountGroupRelException
if it could not be found.commerceDiscountCommerceAccountGroupRelId
- the primary key of the commerce discount commerce account group relNoSuchDiscountCommerceAccountGroupRelException
- if a commerce discount commerce account group rel with the primary key could not be foundpublic static CommerceDiscountCommerceAccountGroupRel fetchByPrimaryKey(long commerceDiscountCommerceAccountGroupRelId)
null
if it could not be found.commerceDiscountCommerceAccountGroupRelId
- the primary key of the commerce discount commerce account group relnull
if a commerce discount commerce account group rel with the primary key could not be foundpublic static java.util.List<CommerceDiscountCommerceAccountGroupRel> findAll()
public static java.util.List<CommerceDiscountCommerceAccountGroupRel> 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 CommerceDiscountCommerceAccountGroupRelModelImpl
.
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)public static java.util.List<CommerceDiscountCommerceAccountGroupRel> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountCommerceAccountGroupRel> 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 CommerceDiscountCommerceAccountGroupRelModelImpl
.
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 (optionally null
)public static java.util.List<CommerceDiscountCommerceAccountGroupRel> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceDiscountCommerceAccountGroupRel> 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 CommerceDiscountCommerceAccountGroupRelModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachepublic static void removeAll()
public static int countAll()
public static CommerceDiscountCommerceAccountGroupRelPersistence getPersistence()
public static void setPersistence(CommerceDiscountCommerceAccountGroupRelPersistence persistence)