public class CommerceAccountGroupCommerceAccountRelUtil
extends java.lang.Object
com.liferay.commerce.account.service.persistence.impl.CommerceAccountGroupCommerceAccountRelPersistenceImpl 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
CommerceAccountGroupCommerceAccountRelPersistence| Constructor and Description |
|---|
CommerceAccountGroupCommerceAccountRelUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
cacheResult(CommerceAccountGroupCommerceAccountRel commerceAccountGroupCommerceAccountRel)
Caches the commerce account group commerce account rel in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<CommerceAccountGroupCommerceAccountRel> commerceAccountGroupCommerceAccountRels)
Caches the commerce account group commerce account rels in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(CommerceAccountGroupCommerceAccountRel commerceAccountGroupCommerceAccountRel) |
static int |
countAll()
Returns the number of commerce account group commerce account rels.
|
static int |
countByC_C(long commerceAccountGroupId,
long commerceAccountId)
Returns the number of commerce account group commerce account rels where commerceAccountGroupId = ? and commerceAccountId = ?.
|
static int |
countByC_ERC(long companyId,
java.lang.String externalReferenceCode)
Returns the number of commerce account group commerce account rels where companyId = ? and externalReferenceCode = ?.
|
static int |
countByCommerceAccountGroupId(long commerceAccountGroupId)
Returns the number of commerce account group commerce account rels where commerceAccountGroupId = ?.
|
static int |
countByCommerceAccountId(long commerceAccountId)
Returns the number of commerce account group commerce account rels where commerceAccountId = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static CommerceAccountGroupCommerceAccountRel |
create(long commerceAccountGroupCommerceAccountRelId)
Creates a new commerce account group commerce account rel with the primary key.
|
static CommerceAccountGroupCommerceAccountRel |
fetchByC_C(long commerceAccountGroupId,
long commerceAccountId)
Returns the commerce account group commerce account rel where commerceAccountGroupId = ? and commerceAccountId = ? or returns
null if it could not be found. |
static CommerceAccountGroupCommerceAccountRel |
fetchByC_C(long commerceAccountGroupId,
long commerceAccountId,
boolean useFinderCache)
Returns the commerce account group commerce account rel where commerceAccountGroupId = ? and commerceAccountId = ? or returns
null if it could not be found, optionally using the finder cache. |
static CommerceAccountGroupCommerceAccountRel |
fetchByC_ERC(long companyId,
java.lang.String externalReferenceCode)
Returns the commerce account group commerce account rel where companyId = ? and externalReferenceCode = ? or returns
null if it could not be found. |
static CommerceAccountGroupCommerceAccountRel |
fetchByC_ERC(long companyId,
java.lang.String externalReferenceCode,
boolean useFinderCache)
Returns the commerce account group commerce account rel where companyId = ? and externalReferenceCode = ? or returns
null if it could not be found, optionally using the finder cache. |
static CommerceAccountGroupCommerceAccountRel |
fetchByCommerceAccountGroupId_First(long commerceAccountGroupId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountGroupCommerceAccountRel> orderByComparator)
Returns the first commerce account group commerce account rel in the ordered set where commerceAccountGroupId = ?.
|
static CommerceAccountGroupCommerceAccountRel |
fetchByCommerceAccountGroupId_Last(long commerceAccountGroupId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountGroupCommerceAccountRel> orderByComparator)
Returns the last commerce account group commerce account rel in the ordered set where commerceAccountGroupId = ?.
|
static CommerceAccountGroupCommerceAccountRel |
fetchByCommerceAccountId_First(long commerceAccountId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountGroupCommerceAccountRel> orderByComparator)
Returns the first commerce account group commerce account rel in the ordered set where commerceAccountId = ?.
|
static CommerceAccountGroupCommerceAccountRel |
fetchByCommerceAccountId_Last(long commerceAccountId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountGroupCommerceAccountRel> orderByComparator)
Returns the last commerce account group commerce account rel in the ordered set where commerceAccountId = ?.
|
static CommerceAccountGroupCommerceAccountRel |
fetchByPrimaryKey(long commerceAccountGroupCommerceAccountRelId)
Returns the commerce account group commerce account rel with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,CommerceAccountGroupCommerceAccountRel> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static java.util.List<CommerceAccountGroupCommerceAccountRel> |
findAll()
Returns all the commerce account group commerce account rels.
|
static java.util.List<CommerceAccountGroupCommerceAccountRel> |
findAll(int start,
int end)
Returns a range of all the commerce account group commerce account rels.
|
static java.util.List<CommerceAccountGroupCommerceAccountRel> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountGroupCommerceAccountRel> orderByComparator)
Returns an ordered range of all the commerce account group commerce account rels.
|
static java.util.List<CommerceAccountGroupCommerceAccountRel> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountGroupCommerceAccountRel> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce account group commerce account rels.
|
static CommerceAccountGroupCommerceAccountRel |
findByC_C(long commerceAccountGroupId,
long commerceAccountId)
Returns the commerce account group commerce account rel where commerceAccountGroupId = ? and commerceAccountId = ? or throws a
NoSuchAccountGroupCommerceAccountRelException if it could not be found. |
static CommerceAccountGroupCommerceAccountRel |
findByC_ERC(long companyId,
java.lang.String externalReferenceCode)
Returns the commerce account group commerce account rel where companyId = ? and externalReferenceCode = ? or throws a
NoSuchAccountGroupCommerceAccountRelException if it could not be found. |
static CommerceAccountGroupCommerceAccountRel |
findByCommerceAccountGroupId_First(long commerceAccountGroupId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountGroupCommerceAccountRel> orderByComparator)
Returns the first commerce account group commerce account rel in the ordered set where commerceAccountGroupId = ?.
|
static CommerceAccountGroupCommerceAccountRel |
findByCommerceAccountGroupId_Last(long commerceAccountGroupId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountGroupCommerceAccountRel> orderByComparator)
Returns the last commerce account group commerce account rel in the ordered set where commerceAccountGroupId = ?.
|
static CommerceAccountGroupCommerceAccountRel[] |
findByCommerceAccountGroupId_PrevAndNext(long commerceAccountGroupCommerceAccountRelId,
long commerceAccountGroupId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountGroupCommerceAccountRel> orderByComparator)
Returns the commerce account group commerce account rels before and after the current commerce account group commerce account rel in the ordered set where commerceAccountGroupId = ?.
|
static java.util.List<CommerceAccountGroupCommerceAccountRel> |
findByCommerceAccountGroupId(long commerceAccountGroupId)
Returns all the commerce account group commerce account rels where commerceAccountGroupId = ?.
|
static java.util.List<CommerceAccountGroupCommerceAccountRel> |
findByCommerceAccountGroupId(long commerceAccountGroupId,
int start,
int end)
Returns a range of all the commerce account group commerce account rels where commerceAccountGroupId = ?.
|
static java.util.List<CommerceAccountGroupCommerceAccountRel> |
findByCommerceAccountGroupId(long commerceAccountGroupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountGroupCommerceAccountRel> orderByComparator)
Returns an ordered range of all the commerce account group commerce account rels where commerceAccountGroupId = ?.
|
static java.util.List<CommerceAccountGroupCommerceAccountRel> |
findByCommerceAccountGroupId(long commerceAccountGroupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountGroupCommerceAccountRel> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce account group commerce account rels where commerceAccountGroupId = ?.
|
static CommerceAccountGroupCommerceAccountRel |
findByCommerceAccountId_First(long commerceAccountId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountGroupCommerceAccountRel> orderByComparator)
Returns the first commerce account group commerce account rel in the ordered set where commerceAccountId = ?.
|
static CommerceAccountGroupCommerceAccountRel |
findByCommerceAccountId_Last(long commerceAccountId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountGroupCommerceAccountRel> orderByComparator)
Returns the last commerce account group commerce account rel in the ordered set where commerceAccountId = ?.
|
static CommerceAccountGroupCommerceAccountRel[] |
findByCommerceAccountId_PrevAndNext(long commerceAccountGroupCommerceAccountRelId,
long commerceAccountId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountGroupCommerceAccountRel> orderByComparator)
Returns the commerce account group commerce account rels before and after the current commerce account group commerce account rel in the ordered set where commerceAccountId = ?.
|
static java.util.List<CommerceAccountGroupCommerceAccountRel> |
findByCommerceAccountId(long commerceAccountId)
Returns all the commerce account group commerce account rels where commerceAccountId = ?.
|
static java.util.List<CommerceAccountGroupCommerceAccountRel> |
findByCommerceAccountId(long commerceAccountId,
int start,
int end)
Returns a range of all the commerce account group commerce account rels where commerceAccountId = ?.
|
static java.util.List<CommerceAccountGroupCommerceAccountRel> |
findByCommerceAccountId(long commerceAccountId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountGroupCommerceAccountRel> orderByComparator)
Returns an ordered range of all the commerce account group commerce account rels where commerceAccountId = ?.
|
static java.util.List<CommerceAccountGroupCommerceAccountRel> |
findByCommerceAccountId(long commerceAccountId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountGroupCommerceAccountRel> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce account group commerce account rels where commerceAccountId = ?.
|
static CommerceAccountGroupCommerceAccountRel |
findByPrimaryKey(long commerceAccountGroupCommerceAccountRelId)
Returns the commerce account group commerce account rel with the primary key or throws a
NoSuchAccountGroupCommerceAccountRelException if it could not be found. |
static java.util.List<CommerceAccountGroupCommerceAccountRel> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<CommerceAccountGroupCommerceAccountRel> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<CommerceAccountGroupCommerceAccountRel> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountGroupCommerceAccountRel> orderByComparator) |
static CommerceAccountGroupCommerceAccountRelPersistence |
getPersistence() |
static CommerceAccountGroupCommerceAccountRel |
remove(long commerceAccountGroupCommerceAccountRelId)
Removes the commerce account group commerce account rel with the primary key from the database.
|
static void |
removeAll()
Removes all the commerce account group commerce account rels from the database.
|
static CommerceAccountGroupCommerceAccountRel |
removeByC_C(long commerceAccountGroupId,
long commerceAccountId)
Removes the commerce account group commerce account rel where commerceAccountGroupId = ? and commerceAccountId = ? from the database.
|
static CommerceAccountGroupCommerceAccountRel |
removeByC_ERC(long companyId,
java.lang.String externalReferenceCode)
Removes the commerce account group commerce account rel where companyId = ? and externalReferenceCode = ? from the database.
|
static void |
removeByCommerceAccountGroupId(long commerceAccountGroupId)
Removes all the commerce account group commerce account rels where commerceAccountGroupId = ? from the database.
|
static void |
removeByCommerceAccountId(long commerceAccountId)
Removes all the commerce account group commerce account rels where commerceAccountId = ? from the database.
|
static void |
setPersistence(CommerceAccountGroupCommerceAccountRelPersistence persistence) |
static CommerceAccountGroupCommerceAccountRel |
update(CommerceAccountGroupCommerceAccountRel commerceAccountGroupCommerceAccountRel) |
static CommerceAccountGroupCommerceAccountRel |
update(CommerceAccountGroupCommerceAccountRel commerceAccountGroupCommerceAccountRel,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static CommerceAccountGroupCommerceAccountRel |
updateImpl(CommerceAccountGroupCommerceAccountRel commerceAccountGroupCommerceAccountRel) |
public CommerceAccountGroupCommerceAccountRelUtil()
public static void clearCache()
BasePersistence.clearCache()public static void clearCache(CommerceAccountGroupCommerceAccountRel commerceAccountGroupCommerceAccountRel)
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,CommerceAccountGroupCommerceAccountRel> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)public static java.util.List<CommerceAccountGroupCommerceAccountRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)public static java.util.List<CommerceAccountGroupCommerceAccountRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)public static java.util.List<CommerceAccountGroupCommerceAccountRel> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountGroupCommerceAccountRel> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)public static CommerceAccountGroupCommerceAccountRel update(CommerceAccountGroupCommerceAccountRel commerceAccountGroupCommerceAccountRel)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)public static CommerceAccountGroupCommerceAccountRel update(CommerceAccountGroupCommerceAccountRel commerceAccountGroupCommerceAccountRel, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)public static java.util.List<CommerceAccountGroupCommerceAccountRel> findByCommerceAccountGroupId(long commerceAccountGroupId)
commerceAccountGroupId - the commerce account group IDpublic static java.util.List<CommerceAccountGroupCommerceAccountRel> 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 CommerceAccountGroupCommerceAccountRelModelImpl.
commerceAccountGroupId - the commerce account group IDstart - the lower bound of the range of commerce account group commerce account relsend - the upper bound of the range of commerce account group commerce account rels (not inclusive)public static java.util.List<CommerceAccountGroupCommerceAccountRel> findByCommerceAccountGroupId(long commerceAccountGroupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountGroupCommerceAccountRel> 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 CommerceAccountGroupCommerceAccountRelModelImpl.
commerceAccountGroupId - the commerce account group IDstart - the lower bound of the range of commerce account group commerce account relsend - the upper bound of the range of commerce account group commerce account rels (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static java.util.List<CommerceAccountGroupCommerceAccountRel> findByCommerceAccountGroupId(long commerceAccountGroupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountGroupCommerceAccountRel> 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 CommerceAccountGroupCommerceAccountRelModelImpl.
commerceAccountGroupId - the commerce account group IDstart - the lower bound of the range of commerce account group commerce account relsend - the upper bound of the range of commerce account group commerce account rels (not inclusive)orderByComparator - the comparator to order the results by (optionally null)useFinderCache - whether to use the finder cachepublic static CommerceAccountGroupCommerceAccountRel findByCommerceAccountGroupId_First(long commerceAccountGroupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountGroupCommerceAccountRel> orderByComparator) throws NoSuchAccountGroupCommerceAccountRelException
commerceAccountGroupId - the commerce account group IDorderByComparator - the comparator to order the set by (optionally null)NoSuchAccountGroupCommerceAccountRelException - if a matching commerce account group commerce account rel could not be foundpublic static CommerceAccountGroupCommerceAccountRel fetchByCommerceAccountGroupId_First(long commerceAccountGroupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountGroupCommerceAccountRel> orderByComparator)
commerceAccountGroupId - the commerce account group IDorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce account group commerce account rel could not be foundpublic static CommerceAccountGroupCommerceAccountRel findByCommerceAccountGroupId_Last(long commerceAccountGroupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountGroupCommerceAccountRel> orderByComparator) throws NoSuchAccountGroupCommerceAccountRelException
commerceAccountGroupId - the commerce account group IDorderByComparator - the comparator to order the set by (optionally null)NoSuchAccountGroupCommerceAccountRelException - if a matching commerce account group commerce account rel could not be foundpublic static CommerceAccountGroupCommerceAccountRel fetchByCommerceAccountGroupId_Last(long commerceAccountGroupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountGroupCommerceAccountRel> orderByComparator)
commerceAccountGroupId - the commerce account group IDorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce account group commerce account rel could not be foundpublic static CommerceAccountGroupCommerceAccountRel[] findByCommerceAccountGroupId_PrevAndNext(long commerceAccountGroupCommerceAccountRelId, long commerceAccountGroupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountGroupCommerceAccountRel> orderByComparator) throws NoSuchAccountGroupCommerceAccountRelException
commerceAccountGroupCommerceAccountRelId - the primary key of the current commerce account group commerce account relcommerceAccountGroupId - the commerce account group IDorderByComparator - the comparator to order the set by (optionally null)NoSuchAccountGroupCommerceAccountRelException - if a commerce account group commerce account 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 java.util.List<CommerceAccountGroupCommerceAccountRel> findByCommerceAccountId(long commerceAccountId)
commerceAccountId - the commerce account IDpublic static java.util.List<CommerceAccountGroupCommerceAccountRel> findByCommerceAccountId(long commerceAccountId, 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 CommerceAccountGroupCommerceAccountRelModelImpl.
commerceAccountId - the commerce account IDstart - the lower bound of the range of commerce account group commerce account relsend - the upper bound of the range of commerce account group commerce account rels (not inclusive)public static java.util.List<CommerceAccountGroupCommerceAccountRel> findByCommerceAccountId(long commerceAccountId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountGroupCommerceAccountRel> 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 CommerceAccountGroupCommerceAccountRelModelImpl.
commerceAccountId - the commerce account IDstart - the lower bound of the range of commerce account group commerce account relsend - the upper bound of the range of commerce account group commerce account rels (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static java.util.List<CommerceAccountGroupCommerceAccountRel> findByCommerceAccountId(long commerceAccountId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountGroupCommerceAccountRel> 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 CommerceAccountGroupCommerceAccountRelModelImpl.
commerceAccountId - the commerce account IDstart - the lower bound of the range of commerce account group commerce account relsend - the upper bound of the range of commerce account group commerce account rels (not inclusive)orderByComparator - the comparator to order the results by (optionally null)useFinderCache - whether to use the finder cachepublic static CommerceAccountGroupCommerceAccountRel findByCommerceAccountId_First(long commerceAccountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountGroupCommerceAccountRel> orderByComparator) throws NoSuchAccountGroupCommerceAccountRelException
commerceAccountId - the commerce account IDorderByComparator - the comparator to order the set by (optionally null)NoSuchAccountGroupCommerceAccountRelException - if a matching commerce account group commerce account rel could not be foundpublic static CommerceAccountGroupCommerceAccountRel fetchByCommerceAccountId_First(long commerceAccountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountGroupCommerceAccountRel> orderByComparator)
commerceAccountId - the commerce account IDorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce account group commerce account rel could not be foundpublic static CommerceAccountGroupCommerceAccountRel findByCommerceAccountId_Last(long commerceAccountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountGroupCommerceAccountRel> orderByComparator) throws NoSuchAccountGroupCommerceAccountRelException
commerceAccountId - the commerce account IDorderByComparator - the comparator to order the set by (optionally null)NoSuchAccountGroupCommerceAccountRelException - if a matching commerce account group commerce account rel could not be foundpublic static CommerceAccountGroupCommerceAccountRel fetchByCommerceAccountId_Last(long commerceAccountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountGroupCommerceAccountRel> orderByComparator)
commerceAccountId - the commerce account IDorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce account group commerce account rel could not be foundpublic static CommerceAccountGroupCommerceAccountRel[] findByCommerceAccountId_PrevAndNext(long commerceAccountGroupCommerceAccountRelId, long commerceAccountId, com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountGroupCommerceAccountRel> orderByComparator) throws NoSuchAccountGroupCommerceAccountRelException
commerceAccountGroupCommerceAccountRelId - the primary key of the current commerce account group commerce account relcommerceAccountId - the commerce account IDorderByComparator - the comparator to order the set by (optionally null)NoSuchAccountGroupCommerceAccountRelException - if a commerce account group commerce account rel with the primary key could not be foundpublic static void removeByCommerceAccountId(long commerceAccountId)
commerceAccountId - the commerce account IDpublic static int countByCommerceAccountId(long commerceAccountId)
commerceAccountId - the commerce account IDpublic static CommerceAccountGroupCommerceAccountRel findByC_C(long commerceAccountGroupId, long commerceAccountId) throws NoSuchAccountGroupCommerceAccountRelException
NoSuchAccountGroupCommerceAccountRelException if it could not be found.commerceAccountGroupId - the commerce account group IDcommerceAccountId - the commerce account IDNoSuchAccountGroupCommerceAccountRelException - if a matching commerce account group commerce account rel could not be foundpublic static CommerceAccountGroupCommerceAccountRel fetchByC_C(long commerceAccountGroupId, long commerceAccountId)
null if it could not be found. Uses the finder cache.commerceAccountGroupId - the commerce account group IDcommerceAccountId - the commerce account IDnull if a matching commerce account group commerce account rel could not be foundpublic static CommerceAccountGroupCommerceAccountRel fetchByC_C(long commerceAccountGroupId, long commerceAccountId, boolean useFinderCache)
null if it could not be found, optionally using the finder cache.commerceAccountGroupId - the commerce account group IDcommerceAccountId - the commerce account IDuseFinderCache - whether to use the finder cachenull if a matching commerce account group commerce account rel could not be foundpublic static CommerceAccountGroupCommerceAccountRel removeByC_C(long commerceAccountGroupId, long commerceAccountId) throws NoSuchAccountGroupCommerceAccountRelException
commerceAccountGroupId - the commerce account group IDcommerceAccountId - the commerce account IDNoSuchAccountGroupCommerceAccountRelExceptionpublic static int countByC_C(long commerceAccountGroupId,
long commerceAccountId)
commerceAccountGroupId - the commerce account group IDcommerceAccountId - the commerce account IDpublic static CommerceAccountGroupCommerceAccountRel findByC_ERC(long companyId, java.lang.String externalReferenceCode) throws NoSuchAccountGroupCommerceAccountRelException
NoSuchAccountGroupCommerceAccountRelException if it could not be found.companyId - the company IDexternalReferenceCode - the external reference codeNoSuchAccountGroupCommerceAccountRelException - if a matching commerce account group commerce account rel could not be foundpublic static CommerceAccountGroupCommerceAccountRel fetchByC_ERC(long companyId, java.lang.String externalReferenceCode)
null if it could not be found. Uses the finder cache.companyId - the company IDexternalReferenceCode - the external reference codenull if a matching commerce account group commerce account rel could not be foundpublic static CommerceAccountGroupCommerceAccountRel fetchByC_ERC(long companyId, java.lang.String externalReferenceCode, boolean useFinderCache)
null if it could not be found, optionally using the finder cache.companyId - the company IDexternalReferenceCode - the external reference codeuseFinderCache - whether to use the finder cachenull if a matching commerce account group commerce account rel could not be foundpublic static CommerceAccountGroupCommerceAccountRel removeByC_ERC(long companyId, java.lang.String externalReferenceCode) throws NoSuchAccountGroupCommerceAccountRelException
companyId - the company IDexternalReferenceCode - the external reference codeNoSuchAccountGroupCommerceAccountRelExceptionpublic static int countByC_ERC(long companyId,
java.lang.String externalReferenceCode)
companyId - the company IDexternalReferenceCode - the external reference codepublic static void cacheResult(CommerceAccountGroupCommerceAccountRel commerceAccountGroupCommerceAccountRel)
commerceAccountGroupCommerceAccountRel - the commerce account group commerce account relpublic static void cacheResult(java.util.List<CommerceAccountGroupCommerceAccountRel> commerceAccountGroupCommerceAccountRels)
commerceAccountGroupCommerceAccountRels - the commerce account group commerce account relspublic static CommerceAccountGroupCommerceAccountRel create(long commerceAccountGroupCommerceAccountRelId)
commerceAccountGroupCommerceAccountRelId - the primary key for the new commerce account group commerce account relpublic static CommerceAccountGroupCommerceAccountRel remove(long commerceAccountGroupCommerceAccountRelId) throws NoSuchAccountGroupCommerceAccountRelException
commerceAccountGroupCommerceAccountRelId - the primary key of the commerce account group commerce account relNoSuchAccountGroupCommerceAccountRelException - if a commerce account group commerce account rel with the primary key could not be foundpublic static CommerceAccountGroupCommerceAccountRel updateImpl(CommerceAccountGroupCommerceAccountRel commerceAccountGroupCommerceAccountRel)
public static CommerceAccountGroupCommerceAccountRel findByPrimaryKey(long commerceAccountGroupCommerceAccountRelId) throws NoSuchAccountGroupCommerceAccountRelException
NoSuchAccountGroupCommerceAccountRelException if it could not be found.commerceAccountGroupCommerceAccountRelId - the primary key of the commerce account group commerce account relNoSuchAccountGroupCommerceAccountRelException - if a commerce account group commerce account rel with the primary key could not be foundpublic static CommerceAccountGroupCommerceAccountRel fetchByPrimaryKey(long commerceAccountGroupCommerceAccountRelId)
null if it could not be found.commerceAccountGroupCommerceAccountRelId - the primary key of the commerce account group commerce account relnull if a commerce account group commerce account rel with the primary key could not be foundpublic static java.util.List<CommerceAccountGroupCommerceAccountRel> findAll()
public static java.util.List<CommerceAccountGroupCommerceAccountRel> 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 CommerceAccountGroupCommerceAccountRelModelImpl.
start - the lower bound of the range of commerce account group commerce account relsend - the upper bound of the range of commerce account group commerce account rels (not inclusive)public static java.util.List<CommerceAccountGroupCommerceAccountRel> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountGroupCommerceAccountRel> 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 CommerceAccountGroupCommerceAccountRelModelImpl.
start - the lower bound of the range of commerce account group commerce account relsend - the upper bound of the range of commerce account group commerce account rels (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static java.util.List<CommerceAccountGroupCommerceAccountRel> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountGroupCommerceAccountRel> 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 CommerceAccountGroupCommerceAccountRelModelImpl.
start - the lower bound of the range of commerce account group commerce account relsend - the upper bound of the range of commerce account group commerce account 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 CommerceAccountGroupCommerceAccountRelPersistence getPersistence()
public static void setPersistence(CommerceAccountGroupCommerceAccountRelPersistence persistence)