public class CommerceAccountGroupUtil
extends java.lang.Object
com.liferay.commerce.account.service.persistence.impl.CommerceAccountGroupPersistenceImpl 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
CommerceAccountGroupPersistence| Constructor and Description |
|---|
CommerceAccountGroupUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
cacheResult(CommerceAccountGroup commerceAccountGroup)
Caches the commerce account group in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<CommerceAccountGroup> commerceAccountGroups)
Caches the commerce account groups in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(CommerceAccountGroup commerceAccountGroup) |
static int |
countAll()
Returns the number of commerce account groups.
|
static int |
countByC_ERC(long companyId,
java.lang.String externalReferenceCode)
Returns the number of commerce account groups where companyId = ? and externalReferenceCode = ?.
|
static int |
countByC_T(long companyId,
int type)
Returns the number of commerce account groups where companyId = ? and type = ?.
|
static int |
countByCommerceAccountGroupIds(long commerceAccountGroupId)
Returns the number of commerce account groups where commerceAccountGroupId = ?.
|
static int |
countByCommerceAccountGroupIds(long[] commerceAccountGroupIds)
Returns the number of commerce account groups where commerceAccountGroupId = any ?.
|
static int |
countByCompanyId(long companyId)
Returns the number of commerce account groups where companyId = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static CommerceAccountGroup |
create(long commerceAccountGroupId)
Creates a new commerce account group with the primary key.
|
static CommerceAccountGroup |
fetchByC_ERC(long companyId,
java.lang.String externalReferenceCode)
Returns the commerce account group where companyId = ? and externalReferenceCode = ? or returns
null if it could not be found. |
static CommerceAccountGroup |
fetchByC_ERC(long companyId,
java.lang.String externalReferenceCode,
boolean useFinderCache)
Returns the commerce account group where companyId = ? and externalReferenceCode = ? or returns
null if it could not be found, optionally using the finder cache. |
static CommerceAccountGroup |
fetchByC_T_First(long companyId,
int type,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountGroup> orderByComparator)
Returns the first commerce account group in the ordered set where companyId = ? and type = ?.
|
static CommerceAccountGroup |
fetchByC_T_Last(long companyId,
int type,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountGroup> orderByComparator)
Returns the last commerce account group in the ordered set where companyId = ? and type = ?.
|
static CommerceAccountGroup |
fetchByCommerceAccountGroupIds_First(long commerceAccountGroupId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountGroup> orderByComparator)
Returns the first commerce account group in the ordered set where commerceAccountGroupId = ?.
|
static CommerceAccountGroup |
fetchByCommerceAccountGroupIds_Last(long commerceAccountGroupId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountGroup> orderByComparator)
Returns the last commerce account group in the ordered set where commerceAccountGroupId = ?.
|
static CommerceAccountGroup |
fetchByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountGroup> orderByComparator)
Returns the first commerce account group in the ordered set where companyId = ?.
|
static CommerceAccountGroup |
fetchByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountGroup> orderByComparator)
Returns the last commerce account group in the ordered set where companyId = ?.
|
static CommerceAccountGroup |
fetchByPrimaryKey(long commerceAccountGroupId)
Returns the commerce account group with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,CommerceAccountGroup> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static int |
filterCountByC_T(long companyId,
int type)
Returns the number of commerce account groups that the user has permission to view where companyId = ? and type = ?.
|
static int |
filterCountByCommerceAccountGroupIds(long commerceAccountGroupId)
Returns the number of commerce account groups that the user has permission to view where commerceAccountGroupId = ?.
|
static int |
filterCountByCommerceAccountGroupIds(long[] commerceAccountGroupIds)
Returns the number of commerce account groups that the user has permission to view where commerceAccountGroupId = any ?.
|
static int |
filterCountByCompanyId(long companyId)
Returns the number of commerce account groups that the user has permission to view where companyId = ?.
|
static CommerceAccountGroup[] |
filterFindByC_T_PrevAndNext(long commerceAccountGroupId,
long companyId,
int type,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountGroup> orderByComparator)
Returns the commerce account groups before and after the current commerce account group in the ordered set of commerce account groups that the user has permission to view where companyId = ? and type = ?.
|
static java.util.List<CommerceAccountGroup> |
filterFindByC_T(long companyId,
int type)
Returns all the commerce account groups that the user has permission to view where companyId = ? and type = ?.
|
static java.util.List<CommerceAccountGroup> |
filterFindByC_T(long companyId,
int type,
int start,
int end)
Returns a range of all the commerce account groups that the user has permission to view where companyId = ? and type = ?.
|
static java.util.List<CommerceAccountGroup> |
filterFindByC_T(long companyId,
int type,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountGroup> orderByComparator)
Returns an ordered range of all the commerce account groups that the user has permissions to view where companyId = ? and type = ?.
|
static java.util.List<CommerceAccountGroup> |
filterFindByCommerceAccountGroupIds(long commerceAccountGroupId)
Returns all the commerce account groups that the user has permission to view where commerceAccountGroupId = ?.
|
static java.util.List<CommerceAccountGroup> |
filterFindByCommerceAccountGroupIds(long[] commerceAccountGroupIds)
Returns all the commerce account groups that the user has permission to view where commerceAccountGroupId = any ?.
|
static java.util.List<CommerceAccountGroup> |
filterFindByCommerceAccountGroupIds(long[] commerceAccountGroupIds,
int start,
int end)
Returns a range of all the commerce account groups that the user has permission to view where commerceAccountGroupId = any ?.
|
static java.util.List<CommerceAccountGroup> |
filterFindByCommerceAccountGroupIds(long[] commerceAccountGroupIds,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountGroup> orderByComparator)
Returns an ordered range of all the commerce account groups that the user has permission to view where commerceAccountGroupId = any ?.
|
static java.util.List<CommerceAccountGroup> |
filterFindByCommerceAccountGroupIds(long commerceAccountGroupId,
int start,
int end)
Returns a range of all the commerce account groups that the user has permission to view where commerceAccountGroupId = ?.
|
static java.util.List<CommerceAccountGroup> |
filterFindByCommerceAccountGroupIds(long commerceAccountGroupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountGroup> orderByComparator)
Returns an ordered range of all the commerce account groups that the user has permissions to view where commerceAccountGroupId = ?.
|
static CommerceAccountGroup[] |
filterFindByCompanyId_PrevAndNext(long commerceAccountGroupId,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountGroup> orderByComparator)
Returns the commerce account groups before and after the current commerce account group in the ordered set of commerce account groups that the user has permission to view where companyId = ?.
|
static java.util.List<CommerceAccountGroup> |
filterFindByCompanyId(long companyId)
Returns all the commerce account groups that the user has permission to view where companyId = ?.
|
static java.util.List<CommerceAccountGroup> |
filterFindByCompanyId(long companyId,
int start,
int end)
Returns a range of all the commerce account groups that the user has permission to view where companyId = ?.
|
static java.util.List<CommerceAccountGroup> |
filterFindByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountGroup> orderByComparator)
Returns an ordered range of all the commerce account groups that the user has permissions to view where companyId = ?.
|
static java.util.List<CommerceAccountGroup> |
findAll()
Returns all the commerce account groups.
|
static java.util.List<CommerceAccountGroup> |
findAll(int start,
int end)
Returns a range of all the commerce account groups.
|
static java.util.List<CommerceAccountGroup> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountGroup> orderByComparator)
Returns an ordered range of all the commerce account groups.
|
static java.util.List<CommerceAccountGroup> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountGroup> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce account groups.
|
static CommerceAccountGroup |
findByC_ERC(long companyId,
java.lang.String externalReferenceCode)
Returns the commerce account group where companyId = ? and externalReferenceCode = ? or throws a
NoSuchAccountGroupException if it could not be found. |
static CommerceAccountGroup |
findByC_T_First(long companyId,
int type,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountGroup> orderByComparator)
Returns the first commerce account group in the ordered set where companyId = ? and type = ?.
|
static CommerceAccountGroup |
findByC_T_Last(long companyId,
int type,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountGroup> orderByComparator)
Returns the last commerce account group in the ordered set where companyId = ? and type = ?.
|
static CommerceAccountGroup[] |
findByC_T_PrevAndNext(long commerceAccountGroupId,
long companyId,
int type,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountGroup> orderByComparator)
Returns the commerce account groups before and after the current commerce account group in the ordered set where companyId = ? and type = ?.
|
static java.util.List<CommerceAccountGroup> |
findByC_T(long companyId,
int type)
Returns all the commerce account groups where companyId = ? and type = ?.
|
static java.util.List<CommerceAccountGroup> |
findByC_T(long companyId,
int type,
int start,
int end)
Returns a range of all the commerce account groups where companyId = ? and type = ?.
|
static java.util.List<CommerceAccountGroup> |
findByC_T(long companyId,
int type,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountGroup> orderByComparator)
Returns an ordered range of all the commerce account groups where companyId = ? and type = ?.
|
static java.util.List<CommerceAccountGroup> |
findByC_T(long companyId,
int type,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountGroup> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce account groups where companyId = ? and type = ?.
|
static CommerceAccountGroup |
findByCommerceAccountGroupIds_First(long commerceAccountGroupId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountGroup> orderByComparator)
Returns the first commerce account group in the ordered set where commerceAccountGroupId = ?.
|
static CommerceAccountGroup |
findByCommerceAccountGroupIds_Last(long commerceAccountGroupId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountGroup> orderByComparator)
Returns the last commerce account group in the ordered set where commerceAccountGroupId = ?.
|
static java.util.List<CommerceAccountGroup> |
findByCommerceAccountGroupIds(long commerceAccountGroupId)
Returns all the commerce account groups where commerceAccountGroupId = ?.
|
static java.util.List<CommerceAccountGroup> |
findByCommerceAccountGroupIds(long[] commerceAccountGroupIds)
Returns all the commerce account groups where commerceAccountGroupId = any ?.
|
static java.util.List<CommerceAccountGroup> |
findByCommerceAccountGroupIds(long[] commerceAccountGroupIds,
int start,
int end)
Returns a range of all the commerce account groups where commerceAccountGroupId = any ?.
|
static java.util.List<CommerceAccountGroup> |
findByCommerceAccountGroupIds(long[] commerceAccountGroupIds,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountGroup> orderByComparator)
Returns an ordered range of all the commerce account groups where commerceAccountGroupId = any ?.
|
static java.util.List<CommerceAccountGroup> |
findByCommerceAccountGroupIds(long[] commerceAccountGroupIds,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountGroup> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce account groups where commerceAccountGroupId = ?, optionally using the finder cache.
|
static java.util.List<CommerceAccountGroup> |
findByCommerceAccountGroupIds(long commerceAccountGroupId,
int start,
int end)
Returns a range of all the commerce account groups where commerceAccountGroupId = ?.
|
static java.util.List<CommerceAccountGroup> |
findByCommerceAccountGroupIds(long commerceAccountGroupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountGroup> orderByComparator)
Returns an ordered range of all the commerce account groups where commerceAccountGroupId = ?.
|
static java.util.List<CommerceAccountGroup> |
findByCommerceAccountGroupIds(long commerceAccountGroupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountGroup> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce account groups where commerceAccountGroupId = ?.
|
static CommerceAccountGroup |
findByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountGroup> orderByComparator)
Returns the first commerce account group in the ordered set where companyId = ?.
|
static CommerceAccountGroup |
findByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountGroup> orderByComparator)
Returns the last commerce account group in the ordered set where companyId = ?.
|
static CommerceAccountGroup[] |
findByCompanyId_PrevAndNext(long commerceAccountGroupId,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountGroup> orderByComparator)
Returns the commerce account groups before and after the current commerce account group in the ordered set where companyId = ?.
|
static java.util.List<CommerceAccountGroup> |
findByCompanyId(long companyId)
Returns all the commerce account groups where companyId = ?.
|
static java.util.List<CommerceAccountGroup> |
findByCompanyId(long companyId,
int start,
int end)
Returns a range of all the commerce account groups where companyId = ?.
|
static java.util.List<CommerceAccountGroup> |
findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountGroup> orderByComparator)
Returns an ordered range of all the commerce account groups where companyId = ?.
|
static java.util.List<CommerceAccountGroup> |
findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountGroup> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the commerce account groups where companyId = ?.
|
static CommerceAccountGroup |
findByPrimaryKey(long commerceAccountGroupId)
Returns the commerce account group with the primary key or throws a
NoSuchAccountGroupException if it could not be found. |
static java.util.List<CommerceAccountGroup> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<CommerceAccountGroup> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<CommerceAccountGroup> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountGroup> orderByComparator) |
static CommerceAccountGroupPersistence |
getPersistence() |
static CommerceAccountGroup |
remove(long commerceAccountGroupId)
Removes the commerce account group with the primary key from the database.
|
static void |
removeAll()
Removes all the commerce account groups from the database.
|
static CommerceAccountGroup |
removeByC_ERC(long companyId,
java.lang.String externalReferenceCode)
Removes the commerce account group where companyId = ? and externalReferenceCode = ? from the database.
|
static void |
removeByC_T(long companyId,
int type)
Removes all the commerce account groups where companyId = ? and type = ? from the database.
|
static void |
removeByCommerceAccountGroupIds(long commerceAccountGroupId)
Removes all the commerce account groups where commerceAccountGroupId = ? from the database.
|
static void |
removeByCompanyId(long companyId)
Removes all the commerce account groups where companyId = ? from the database.
|
static CommerceAccountGroup |
update(CommerceAccountGroup commerceAccountGroup) |
static CommerceAccountGroup |
update(CommerceAccountGroup commerceAccountGroup,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static CommerceAccountGroup |
updateImpl(CommerceAccountGroup commerceAccountGroup) |
public static void clearCache()
BasePersistence.clearCache()public static void clearCache(CommerceAccountGroup commerceAccountGroup)
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,CommerceAccountGroup> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)public static java.util.List<CommerceAccountGroup> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)public static java.util.List<CommerceAccountGroup> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)public static java.util.List<CommerceAccountGroup> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountGroup> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)public static CommerceAccountGroup update(CommerceAccountGroup commerceAccountGroup)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)public static CommerceAccountGroup update(CommerceAccountGroup commerceAccountGroup, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)public static java.util.List<CommerceAccountGroup> findByCommerceAccountGroupIds(long commerceAccountGroupId)
commerceAccountGroupId - the commerce account group IDpublic static java.util.List<CommerceAccountGroup> findByCommerceAccountGroupIds(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 CommerceAccountGroupModelImpl.
commerceAccountGroupId - the commerce account group IDstart - the lower bound of the range of commerce account groupsend - the upper bound of the range of commerce account groups (not inclusive)public static java.util.List<CommerceAccountGroup> findByCommerceAccountGroupIds(long commerceAccountGroupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountGroup> 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 CommerceAccountGroupModelImpl.
commerceAccountGroupId - the commerce account group IDstart - the lower bound of the range of commerce account groupsend - the upper bound of the range of commerce account groups (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static java.util.List<CommerceAccountGroup> findByCommerceAccountGroupIds(long commerceAccountGroupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountGroup> 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 CommerceAccountGroupModelImpl.
commerceAccountGroupId - the commerce account group IDstart - the lower bound of the range of commerce account groupsend - the upper bound of the range of commerce account groups (not inclusive)orderByComparator - the comparator to order the results by (optionally null)useFinderCache - whether to use the finder cachepublic static CommerceAccountGroup findByCommerceAccountGroupIds_First(long commerceAccountGroupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountGroup> orderByComparator) throws NoSuchAccountGroupException
commerceAccountGroupId - the commerce account group IDorderByComparator - the comparator to order the set by (optionally null)NoSuchAccountGroupException - if a matching commerce account group could not be foundpublic static CommerceAccountGroup fetchByCommerceAccountGroupIds_First(long commerceAccountGroupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountGroup> orderByComparator)
commerceAccountGroupId - the commerce account group IDorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce account group could not be foundpublic static CommerceAccountGroup findByCommerceAccountGroupIds_Last(long commerceAccountGroupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountGroup> orderByComparator) throws NoSuchAccountGroupException
commerceAccountGroupId - the commerce account group IDorderByComparator - the comparator to order the set by (optionally null)NoSuchAccountGroupException - if a matching commerce account group could not be foundpublic static CommerceAccountGroup fetchByCommerceAccountGroupIds_Last(long commerceAccountGroupId, com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountGroup> orderByComparator)
commerceAccountGroupId - the commerce account group IDorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce account group could not be foundpublic static java.util.List<CommerceAccountGroup> filterFindByCommerceAccountGroupIds(long commerceAccountGroupId)
commerceAccountGroupId - the commerce account group IDpublic static java.util.List<CommerceAccountGroup> filterFindByCommerceAccountGroupIds(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 CommerceAccountGroupModelImpl.
commerceAccountGroupId - the commerce account group IDstart - the lower bound of the range of commerce account groupsend - the upper bound of the range of commerce account groups (not inclusive)public static java.util.List<CommerceAccountGroup> filterFindByCommerceAccountGroupIds(long commerceAccountGroupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountGroup> 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 CommerceAccountGroupModelImpl.
commerceAccountGroupId - the commerce account group IDstart - the lower bound of the range of commerce account groupsend - the upper bound of the range of commerce account groups (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static java.util.List<CommerceAccountGroup> filterFindByCommerceAccountGroupIds(long[] commerceAccountGroupIds)
commerceAccountGroupIds - the commerce account group IDspublic static java.util.List<CommerceAccountGroup> filterFindByCommerceAccountGroupIds(long[] commerceAccountGroupIds, 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 CommerceAccountGroupModelImpl.
commerceAccountGroupIds - the commerce account group IDsstart - the lower bound of the range of commerce account groupsend - the upper bound of the range of commerce account groups (not inclusive)public static java.util.List<CommerceAccountGroup> filterFindByCommerceAccountGroupIds(long[] commerceAccountGroupIds, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountGroup> 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 CommerceAccountGroupModelImpl.
commerceAccountGroupIds - the commerce account group IDsstart - the lower bound of the range of commerce account groupsend - the upper bound of the range of commerce account groups (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static java.util.List<CommerceAccountGroup> findByCommerceAccountGroupIds(long[] commerceAccountGroupIds)
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 CommerceAccountGroupModelImpl.
commerceAccountGroupIds - the commerce account group IDspublic static java.util.List<CommerceAccountGroup> findByCommerceAccountGroupIds(long[] commerceAccountGroupIds, 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 CommerceAccountGroupModelImpl.
commerceAccountGroupIds - the commerce account group IDsstart - the lower bound of the range of commerce account groupsend - the upper bound of the range of commerce account groups (not inclusive)public static java.util.List<CommerceAccountGroup> findByCommerceAccountGroupIds(long[] commerceAccountGroupIds, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountGroup> 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 CommerceAccountGroupModelImpl.
commerceAccountGroupIds - the commerce account group IDsstart - the lower bound of the range of commerce account groupsend - the upper bound of the range of commerce account groups (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static java.util.List<CommerceAccountGroup> findByCommerceAccountGroupIds(long[] commerceAccountGroupIds, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountGroup> 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 CommerceAccountGroupModelImpl.
commerceAccountGroupIds - the commerce account group IDsstart - the lower bound of the range of commerce account groupsend - the upper bound of the range of commerce account groups (not inclusive)orderByComparator - the comparator to order the results by (optionally null)useFinderCache - whether to use the finder cachepublic static void removeByCommerceAccountGroupIds(long commerceAccountGroupId)
commerceAccountGroupId - the commerce account group IDpublic static int countByCommerceAccountGroupIds(long commerceAccountGroupId)
commerceAccountGroupId - the commerce account group IDpublic static int countByCommerceAccountGroupIds(long[] commerceAccountGroupIds)
commerceAccountGroupIds - the commerce account group IDspublic static int filterCountByCommerceAccountGroupIds(long commerceAccountGroupId)
commerceAccountGroupId - the commerce account group IDpublic static int filterCountByCommerceAccountGroupIds(long[] commerceAccountGroupIds)
commerceAccountGroupIds - the commerce account group IDspublic static java.util.List<CommerceAccountGroup> findByCompanyId(long companyId)
companyId - the company IDpublic static java.util.List<CommerceAccountGroup> findByCompanyId(long companyId, 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 CommerceAccountGroupModelImpl.
companyId - the company IDstart - the lower bound of the range of commerce account groupsend - the upper bound of the range of commerce account groups (not inclusive)public static java.util.List<CommerceAccountGroup> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountGroup> 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 CommerceAccountGroupModelImpl.
companyId - the company IDstart - the lower bound of the range of commerce account groupsend - the upper bound of the range of commerce account groups (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static java.util.List<CommerceAccountGroup> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountGroup> 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 CommerceAccountGroupModelImpl.
companyId - the company IDstart - the lower bound of the range of commerce account groupsend - the upper bound of the range of commerce account groups (not inclusive)orderByComparator - the comparator to order the results by (optionally null)useFinderCache - whether to use the finder cachepublic static CommerceAccountGroup findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountGroup> orderByComparator) throws NoSuchAccountGroupException
companyId - the company IDorderByComparator - the comparator to order the set by (optionally null)NoSuchAccountGroupException - if a matching commerce account group could not be foundpublic static CommerceAccountGroup fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountGroup> orderByComparator)
companyId - the company IDorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce account group could not be foundpublic static CommerceAccountGroup findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountGroup> orderByComparator) throws NoSuchAccountGroupException
companyId - the company IDorderByComparator - the comparator to order the set by (optionally null)NoSuchAccountGroupException - if a matching commerce account group could not be foundpublic static CommerceAccountGroup fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountGroup> orderByComparator)
companyId - the company IDorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce account group could not be foundpublic static CommerceAccountGroup[] findByCompanyId_PrevAndNext(long commerceAccountGroupId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountGroup> orderByComparator) throws NoSuchAccountGroupException
commerceAccountGroupId - the primary key of the current commerce account groupcompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)NoSuchAccountGroupException - if a commerce account group with the primary key could not be foundpublic static java.util.List<CommerceAccountGroup> filterFindByCompanyId(long companyId)
companyId - the company IDpublic static java.util.List<CommerceAccountGroup> filterFindByCompanyId(long companyId, 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 CommerceAccountGroupModelImpl.
companyId - the company IDstart - the lower bound of the range of commerce account groupsend - the upper bound of the range of commerce account groups (not inclusive)public static java.util.List<CommerceAccountGroup> filterFindByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountGroup> 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 CommerceAccountGroupModelImpl.
companyId - the company IDstart - the lower bound of the range of commerce account groupsend - the upper bound of the range of commerce account groups (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static CommerceAccountGroup[] filterFindByCompanyId_PrevAndNext(long commerceAccountGroupId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountGroup> orderByComparator) throws NoSuchAccountGroupException
commerceAccountGroupId - the primary key of the current commerce account groupcompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)NoSuchAccountGroupException - if a commerce account group with the primary key could not be foundpublic static void removeByCompanyId(long companyId)
companyId - the company IDpublic static int countByCompanyId(long companyId)
companyId - the company IDpublic static int filterCountByCompanyId(long companyId)
companyId - the company IDpublic static java.util.List<CommerceAccountGroup> findByC_T(long companyId, int type)
companyId - the company IDtype - the typepublic static java.util.List<CommerceAccountGroup> findByC_T(long companyId, int type, 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 CommerceAccountGroupModelImpl.
companyId - the company IDtype - the typestart - the lower bound of the range of commerce account groupsend - the upper bound of the range of commerce account groups (not inclusive)public static java.util.List<CommerceAccountGroup> findByC_T(long companyId, int type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountGroup> 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 CommerceAccountGroupModelImpl.
companyId - the company IDtype - the typestart - the lower bound of the range of commerce account groupsend - the upper bound of the range of commerce account groups (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static java.util.List<CommerceAccountGroup> findByC_T(long companyId, int type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountGroup> 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 CommerceAccountGroupModelImpl.
companyId - the company IDtype - the typestart - the lower bound of the range of commerce account groupsend - the upper bound of the range of commerce account groups (not inclusive)orderByComparator - the comparator to order the results by (optionally null)useFinderCache - whether to use the finder cachepublic static CommerceAccountGroup findByC_T_First(long companyId, int type, com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountGroup> orderByComparator) throws NoSuchAccountGroupException
companyId - the company IDtype - the typeorderByComparator - the comparator to order the set by (optionally null)NoSuchAccountGroupException - if a matching commerce account group could not be foundpublic static CommerceAccountGroup fetchByC_T_First(long companyId, int type, com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountGroup> orderByComparator)
companyId - the company IDtype - the typeorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce account group could not be foundpublic static CommerceAccountGroup findByC_T_Last(long companyId, int type, com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountGroup> orderByComparator) throws NoSuchAccountGroupException
companyId - the company IDtype - the typeorderByComparator - the comparator to order the set by (optionally null)NoSuchAccountGroupException - if a matching commerce account group could not be foundpublic static CommerceAccountGroup fetchByC_T_Last(long companyId, int type, com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountGroup> orderByComparator)
companyId - the company IDtype - the typeorderByComparator - the comparator to order the set by (optionally null)null if a matching commerce account group could not be foundpublic static CommerceAccountGroup[] findByC_T_PrevAndNext(long commerceAccountGroupId, long companyId, int type, com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountGroup> orderByComparator) throws NoSuchAccountGroupException
commerceAccountGroupId - the primary key of the current commerce account groupcompanyId - the company IDtype - the typeorderByComparator - the comparator to order the set by (optionally null)NoSuchAccountGroupException - if a commerce account group with the primary key could not be foundpublic static java.util.List<CommerceAccountGroup> filterFindByC_T(long companyId, int type)
companyId - the company IDtype - the typepublic static java.util.List<CommerceAccountGroup> filterFindByC_T(long companyId, int type, 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 CommerceAccountGroupModelImpl.
companyId - the company IDtype - the typestart - the lower bound of the range of commerce account groupsend - the upper bound of the range of commerce account groups (not inclusive)public static java.util.List<CommerceAccountGroup> filterFindByC_T(long companyId, int type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountGroup> 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 CommerceAccountGroupModelImpl.
companyId - the company IDtype - the typestart - the lower bound of the range of commerce account groupsend - the upper bound of the range of commerce account groups (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static CommerceAccountGroup[] filterFindByC_T_PrevAndNext(long commerceAccountGroupId, long companyId, int type, com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountGroup> orderByComparator) throws NoSuchAccountGroupException
commerceAccountGroupId - the primary key of the current commerce account groupcompanyId - the company IDtype - the typeorderByComparator - the comparator to order the set by (optionally null)NoSuchAccountGroupException - if a commerce account group with the primary key could not be foundpublic static void removeByC_T(long companyId,
int type)
companyId - the company IDtype - the typepublic static int countByC_T(long companyId,
int type)
companyId - the company IDtype - the typepublic static int filterCountByC_T(long companyId,
int type)
companyId - the company IDtype - the typepublic static CommerceAccountGroup findByC_ERC(long companyId, java.lang.String externalReferenceCode) throws NoSuchAccountGroupException
NoSuchAccountGroupException if it could not be found.companyId - the company IDexternalReferenceCode - the external reference codeNoSuchAccountGroupException - if a matching commerce account group could not be foundpublic static CommerceAccountGroup 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 could not be foundpublic static CommerceAccountGroup 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 could not be foundpublic static CommerceAccountGroup removeByC_ERC(long companyId, java.lang.String externalReferenceCode) throws NoSuchAccountGroupException
companyId - the company IDexternalReferenceCode - the external reference codeNoSuchAccountGroupExceptionpublic static int countByC_ERC(long companyId,
java.lang.String externalReferenceCode)
companyId - the company IDexternalReferenceCode - the external reference codepublic static void cacheResult(CommerceAccountGroup commerceAccountGroup)
commerceAccountGroup - the commerce account grouppublic static void cacheResult(java.util.List<CommerceAccountGroup> commerceAccountGroups)
commerceAccountGroups - the commerce account groupspublic static CommerceAccountGroup create(long commerceAccountGroupId)
commerceAccountGroupId - the primary key for the new commerce account grouppublic static CommerceAccountGroup remove(long commerceAccountGroupId) throws NoSuchAccountGroupException
commerceAccountGroupId - the primary key of the commerce account groupNoSuchAccountGroupException - if a commerce account group with the primary key could not be foundpublic static CommerceAccountGroup updateImpl(CommerceAccountGroup commerceAccountGroup)
public static CommerceAccountGroup findByPrimaryKey(long commerceAccountGroupId) throws NoSuchAccountGroupException
NoSuchAccountGroupException if it could not be found.commerceAccountGroupId - the primary key of the commerce account groupNoSuchAccountGroupException - if a commerce account group with the primary key could not be foundpublic static CommerceAccountGroup fetchByPrimaryKey(long commerceAccountGroupId)
null if it could not be found.commerceAccountGroupId - the primary key of the commerce account groupnull if a commerce account group with the primary key could not be foundpublic static java.util.List<CommerceAccountGroup> findAll()
public static java.util.List<CommerceAccountGroup> 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 CommerceAccountGroupModelImpl.
start - the lower bound of the range of commerce account groupsend - the upper bound of the range of commerce account groups (not inclusive)public static java.util.List<CommerceAccountGroup> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountGroup> 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 CommerceAccountGroupModelImpl.
start - the lower bound of the range of commerce account groupsend - the upper bound of the range of commerce account groups (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public static java.util.List<CommerceAccountGroup> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CommerceAccountGroup> 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 CommerceAccountGroupModelImpl.
start - the lower bound of the range of commerce account groupsend - the upper bound of the range of commerce account groups (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 CommerceAccountGroupPersistence getPersistence()