public class AccountGroupUtil
extends java.lang.Object
com.liferay.account.service.persistence.impl.AccountGroupPersistenceImpl
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
AccountGroupPersistence
Constructor and Description |
---|
AccountGroupUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(AccountGroup accountGroup)
Caches the account group in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<AccountGroup> accountGroups)
Caches the account groups in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(AccountGroup accountGroup) |
static int |
countAll()
Returns the number of account groups.
|
static int |
countByAccountGroupId(long accountGroupId)
Returns the number of account groups where accountGroupId = ?.
|
static int |
countByAccountGroupId(long[] accountGroupIds)
Returns the number of account groups where accountGroupId = any ?.
|
static int |
countByC_D(long companyId,
boolean defaultAccountGroup)
Returns the number of account groups where companyId = ? and defaultAccountGroup = ?.
|
static int |
countByC_ERC(long companyId,
java.lang.String externalReferenceCode)
Returns the number of account groups where companyId = ? and externalReferenceCode = ?.
|
static int |
countByC_T(long companyId,
java.lang.String type)
Returns the number of account groups where companyId = ? and type = ?.
|
static int |
countByCompanyId(long companyId)
Returns the number of account groups where companyId = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static AccountGroup |
create(long accountGroupId)
Creates a new account group with the primary key.
|
static AccountGroup |
fetchByAccountGroupId_First(long accountGroupId,
com.liferay.portal.kernel.util.OrderByComparator<AccountGroup> orderByComparator)
Returns the first account group in the ordered set where accountGroupId = ?.
|
static AccountGroup |
fetchByAccountGroupId_Last(long accountGroupId,
com.liferay.portal.kernel.util.OrderByComparator<AccountGroup> orderByComparator)
Returns the last account group in the ordered set where accountGroupId = ?.
|
static AccountGroup |
fetchByC_D_First(long companyId,
boolean defaultAccountGroup,
com.liferay.portal.kernel.util.OrderByComparator<AccountGroup> orderByComparator)
Returns the first account group in the ordered set where companyId = ? and defaultAccountGroup = ?.
|
static AccountGroup |
fetchByC_D_Last(long companyId,
boolean defaultAccountGroup,
com.liferay.portal.kernel.util.OrderByComparator<AccountGroup> orderByComparator)
Returns the last account group in the ordered set where companyId = ? and defaultAccountGroup = ?.
|
static AccountGroup |
fetchByC_ERC(long companyId,
java.lang.String externalReferenceCode)
Returns the account group where companyId = ? and externalReferenceCode = ? or returns
null if it could not be found. |
static AccountGroup |
fetchByC_ERC(long companyId,
java.lang.String externalReferenceCode,
boolean useFinderCache)
Returns the account group where companyId = ? and externalReferenceCode = ? or returns
null if it could not be found, optionally using the finder cache. |
static AccountGroup |
fetchByC_T_First(long companyId,
java.lang.String type,
com.liferay.portal.kernel.util.OrderByComparator<AccountGroup> orderByComparator)
Returns the first account group in the ordered set where companyId = ? and type = ?.
|
static AccountGroup |
fetchByC_T_Last(long companyId,
java.lang.String type,
com.liferay.portal.kernel.util.OrderByComparator<AccountGroup> orderByComparator)
Returns the last account group in the ordered set where companyId = ? and type = ?.
|
static AccountGroup |
fetchByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<AccountGroup> orderByComparator)
Returns the first account group in the ordered set where companyId = ?.
|
static AccountGroup |
fetchByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<AccountGroup> orderByComparator)
Returns the last account group in the ordered set where companyId = ?.
|
static AccountGroup |
fetchByPrimaryKey(long accountGroupId)
Returns the account group with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,AccountGroup> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static java.util.List<AccountGroup> |
findAll()
Returns all the account groups.
|
static java.util.List<AccountGroup> |
findAll(int start,
int end)
Returns a range of all the account groups.
|
static java.util.List<AccountGroup> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<AccountGroup> orderByComparator)
Returns an ordered range of all the account groups.
|
static java.util.List<AccountGroup> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<AccountGroup> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the account groups.
|
static AccountGroup |
findByAccountGroupId_First(long accountGroupId,
com.liferay.portal.kernel.util.OrderByComparator<AccountGroup> orderByComparator)
Returns the first account group in the ordered set where accountGroupId = ?.
|
static AccountGroup |
findByAccountGroupId_Last(long accountGroupId,
com.liferay.portal.kernel.util.OrderByComparator<AccountGroup> orderByComparator)
Returns the last account group in the ordered set where accountGroupId = ?.
|
static java.util.List<AccountGroup> |
findByAccountGroupId(long accountGroupId)
Returns all the account groups where accountGroupId = ?.
|
static java.util.List<AccountGroup> |
findByAccountGroupId(long[] accountGroupIds)
Returns all the account groups where accountGroupId = any ?.
|
static java.util.List<AccountGroup> |
findByAccountGroupId(long[] accountGroupIds,
int start,
int end)
Returns a range of all the account groups where accountGroupId = any ?.
|
static java.util.List<AccountGroup> |
findByAccountGroupId(long[] accountGroupIds,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<AccountGroup> orderByComparator)
Returns an ordered range of all the account groups where accountGroupId = any ?.
|
static java.util.List<AccountGroup> |
findByAccountGroupId(long[] accountGroupIds,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<AccountGroup> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the account groups where accountGroupId = ?, optionally using the finder cache.
|
static java.util.List<AccountGroup> |
findByAccountGroupId(long accountGroupId,
int start,
int end)
Returns a range of all the account groups where accountGroupId = ?.
|
static java.util.List<AccountGroup> |
findByAccountGroupId(long accountGroupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<AccountGroup> orderByComparator)
Returns an ordered range of all the account groups where accountGroupId = ?.
|
static java.util.List<AccountGroup> |
findByAccountGroupId(long accountGroupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<AccountGroup> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the account groups where accountGroupId = ?.
|
static AccountGroup |
findByC_D_First(long companyId,
boolean defaultAccountGroup,
com.liferay.portal.kernel.util.OrderByComparator<AccountGroup> orderByComparator)
Returns the first account group in the ordered set where companyId = ? and defaultAccountGroup = ?.
|
static AccountGroup |
findByC_D_Last(long companyId,
boolean defaultAccountGroup,
com.liferay.portal.kernel.util.OrderByComparator<AccountGroup> orderByComparator)
Returns the last account group in the ordered set where companyId = ? and defaultAccountGroup = ?.
|
static AccountGroup[] |
findByC_D_PrevAndNext(long accountGroupId,
long companyId,
boolean defaultAccountGroup,
com.liferay.portal.kernel.util.OrderByComparator<AccountGroup> orderByComparator)
Returns the account groups before and after the current account group in the ordered set where companyId = ? and defaultAccountGroup = ?.
|
static java.util.List<AccountGroup> |
findByC_D(long companyId,
boolean defaultAccountGroup)
Returns all the account groups where companyId = ? and defaultAccountGroup = ?.
|
static java.util.List<AccountGroup> |
findByC_D(long companyId,
boolean defaultAccountGroup,
int start,
int end)
Returns a range of all the account groups where companyId = ? and defaultAccountGroup = ?.
|
static java.util.List<AccountGroup> |
findByC_D(long companyId,
boolean defaultAccountGroup,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<AccountGroup> orderByComparator)
Returns an ordered range of all the account groups where companyId = ? and defaultAccountGroup = ?.
|
static java.util.List<AccountGroup> |
findByC_D(long companyId,
boolean defaultAccountGroup,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<AccountGroup> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the account groups where companyId = ? and defaultAccountGroup = ?.
|
static AccountGroup |
findByC_ERC(long companyId,
java.lang.String externalReferenceCode)
Returns the account group where companyId = ? and externalReferenceCode = ? or throws a
NoSuchGroupException if it could not be found. |
static AccountGroup |
findByC_T_First(long companyId,
java.lang.String type,
com.liferay.portal.kernel.util.OrderByComparator<AccountGroup> orderByComparator)
Returns the first account group in the ordered set where companyId = ? and type = ?.
|
static AccountGroup |
findByC_T_Last(long companyId,
java.lang.String type,
com.liferay.portal.kernel.util.OrderByComparator<AccountGroup> orderByComparator)
Returns the last account group in the ordered set where companyId = ? and type = ?.
|
static AccountGroup[] |
findByC_T_PrevAndNext(long accountGroupId,
long companyId,
java.lang.String type,
com.liferay.portal.kernel.util.OrderByComparator<AccountGroup> orderByComparator)
Returns the account groups before and after the current account group in the ordered set where companyId = ? and type = ?.
|
static java.util.List<AccountGroup> |
findByC_T(long companyId,
java.lang.String type)
Returns all the account groups where companyId = ? and type = ?.
|
static java.util.List<AccountGroup> |
findByC_T(long companyId,
java.lang.String type,
int start,
int end)
Returns a range of all the account groups where companyId = ? and type = ?.
|
static java.util.List<AccountGroup> |
findByC_T(long companyId,
java.lang.String type,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<AccountGroup> orderByComparator)
Returns an ordered range of all the account groups where companyId = ? and type = ?.
|
static java.util.List<AccountGroup> |
findByC_T(long companyId,
java.lang.String type,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<AccountGroup> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the account groups where companyId = ? and type = ?.
|
static AccountGroup |
findByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<AccountGroup> orderByComparator)
Returns the first account group in the ordered set where companyId = ?.
|
static AccountGroup |
findByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<AccountGroup> orderByComparator)
Returns the last account group in the ordered set where companyId = ?.
|
static AccountGroup[] |
findByCompanyId_PrevAndNext(long accountGroupId,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<AccountGroup> orderByComparator)
Returns the account groups before and after the current account group in the ordered set where companyId = ?.
|
static java.util.List<AccountGroup> |
findByCompanyId(long companyId)
Returns all the account groups where companyId = ?.
|
static java.util.List<AccountGroup> |
findByCompanyId(long companyId,
int start,
int end)
Returns a range of all the account groups where companyId = ?.
|
static java.util.List<AccountGroup> |
findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<AccountGroup> orderByComparator)
Returns an ordered range of all the account groups where companyId = ?.
|
static java.util.List<AccountGroup> |
findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<AccountGroup> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the account groups where companyId = ?.
|
static AccountGroup |
findByPrimaryKey(long accountGroupId)
Returns the account group with the primary key or throws a
NoSuchGroupException if it could not be found. |
static java.util.List<AccountGroup> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<AccountGroup> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<AccountGroup> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<AccountGroup> orderByComparator) |
static AccountGroupPersistence |
getPersistence() |
static AccountGroup |
remove(long accountGroupId)
Removes the account group with the primary key from the database.
|
static void |
removeAll()
Removes all the account groups from the database.
|
static void |
removeByAccountGroupId(long accountGroupId)
Removes all the account groups where accountGroupId = ? from the database.
|
static void |
removeByC_D(long companyId,
boolean defaultAccountGroup)
Removes all the account groups where companyId = ? and defaultAccountGroup = ? from the database.
|
static AccountGroup |
removeByC_ERC(long companyId,
java.lang.String externalReferenceCode)
Removes the account group where companyId = ? and externalReferenceCode = ? from the database.
|
static void |
removeByC_T(long companyId,
java.lang.String type)
Removes all the account groups where companyId = ? and type = ? from the database.
|
static void |
removeByCompanyId(long companyId)
Removes all the account groups where companyId = ? from the database.
|
static AccountGroup |
update(AccountGroup accountGroup) |
static AccountGroup |
update(AccountGroup accountGroup,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static AccountGroup |
updateImpl(AccountGroup accountGroup) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(AccountGroup accountGroup)
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,AccountGroup> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<AccountGroup> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<AccountGroup> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<AccountGroup> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountGroup> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static AccountGroup update(AccountGroup accountGroup)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static AccountGroup update(AccountGroup accountGroup, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<AccountGroup> findByAccountGroupId(long accountGroupId)
accountGroupId
- the account group IDpublic static java.util.List<AccountGroup> findByAccountGroupId(long accountGroupId, 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 AccountGroupModelImpl
.
accountGroupId
- the account group IDstart
- the lower bound of the range of account groupsend
- the upper bound of the range of account groups (not inclusive)public static java.util.List<AccountGroup> findByAccountGroupId(long accountGroupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountGroup> 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 AccountGroupModelImpl
.
accountGroupId
- the account group IDstart
- the lower bound of the range of account groupsend
- the upper bound of the range of account groups (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<AccountGroup> findByAccountGroupId(long accountGroupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountGroup> 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 AccountGroupModelImpl
.
accountGroupId
- the account group IDstart
- the lower bound of the range of account groupsend
- the upper bound of the range of account groups (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static AccountGroup findByAccountGroupId_First(long accountGroupId, com.liferay.portal.kernel.util.OrderByComparator<AccountGroup> orderByComparator) throws NoSuchGroupException
accountGroupId
- the account group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchGroupException
- if a matching account group could not be foundpublic static AccountGroup fetchByAccountGroupId_First(long accountGroupId, com.liferay.portal.kernel.util.OrderByComparator<AccountGroup> orderByComparator)
accountGroupId
- the account group IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching account group could not be foundpublic static AccountGroup findByAccountGroupId_Last(long accountGroupId, com.liferay.portal.kernel.util.OrderByComparator<AccountGroup> orderByComparator) throws NoSuchGroupException
accountGroupId
- the account group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchGroupException
- if a matching account group could not be foundpublic static AccountGroup fetchByAccountGroupId_Last(long accountGroupId, com.liferay.portal.kernel.util.OrderByComparator<AccountGroup> orderByComparator)
accountGroupId
- the account group IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching account group could not be foundpublic static java.util.List<AccountGroup> findByAccountGroupId(long[] accountGroupIds)
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 AccountGroupModelImpl
.
accountGroupIds
- the account group IDspublic static java.util.List<AccountGroup> findByAccountGroupId(long[] accountGroupIds, 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 AccountGroupModelImpl
.
accountGroupIds
- the account group IDsstart
- the lower bound of the range of account groupsend
- the upper bound of the range of account groups (not inclusive)public static java.util.List<AccountGroup> findByAccountGroupId(long[] accountGroupIds, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountGroup> 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 AccountGroupModelImpl
.
accountGroupIds
- the account group IDsstart
- the lower bound of the range of account groupsend
- the upper bound of the range of account groups (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<AccountGroup> findByAccountGroupId(long[] accountGroupIds, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountGroup> 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 AccountGroupModelImpl
.
accountGroupId
- the account group IDstart
- the lower bound of the range of account groupsend
- the upper bound of the range of account groups (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static void removeByAccountGroupId(long accountGroupId)
accountGroupId
- the account group IDpublic static int countByAccountGroupId(long accountGroupId)
accountGroupId
- the account group IDpublic static int countByAccountGroupId(long[] accountGroupIds)
accountGroupIds
- the account group IDspublic static java.util.List<AccountGroup> findByCompanyId(long companyId)
companyId
- the company IDpublic static java.util.List<AccountGroup> 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 AccountGroupModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of account groupsend
- the upper bound of the range of account groups (not inclusive)public static java.util.List<AccountGroup> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountGroup> 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 AccountGroupModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of account groupsend
- the upper bound of the range of account groups (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<AccountGroup> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountGroup> 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 AccountGroupModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of account groupsend
- the upper bound of the range of account groups (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static AccountGroup findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<AccountGroup> orderByComparator) throws NoSuchGroupException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchGroupException
- if a matching account group could not be foundpublic static AccountGroup fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<AccountGroup> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching account group could not be foundpublic static AccountGroup findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<AccountGroup> orderByComparator) throws NoSuchGroupException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchGroupException
- if a matching account group could not be foundpublic static AccountGroup fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<AccountGroup> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching account group could not be foundpublic static AccountGroup[] findByCompanyId_PrevAndNext(long accountGroupId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<AccountGroup> orderByComparator) throws NoSuchGroupException
accountGroupId
- the primary key of the current account groupcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchGroupException
- if a 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 java.util.List<AccountGroup> findByC_D(long companyId, boolean defaultAccountGroup)
companyId
- the company IDdefaultAccountGroup
- the default account grouppublic static java.util.List<AccountGroup> findByC_D(long companyId, boolean defaultAccountGroup, 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 AccountGroupModelImpl
.
companyId
- the company IDdefaultAccountGroup
- the default account groupstart
- the lower bound of the range of account groupsend
- the upper bound of the range of account groups (not inclusive)public static java.util.List<AccountGroup> findByC_D(long companyId, boolean defaultAccountGroup, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountGroup> 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 AccountGroupModelImpl
.
companyId
- the company IDdefaultAccountGroup
- the default account groupstart
- the lower bound of the range of account groupsend
- the upper bound of the range of account groups (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<AccountGroup> findByC_D(long companyId, boolean defaultAccountGroup, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountGroup> 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 AccountGroupModelImpl
.
companyId
- the company IDdefaultAccountGroup
- the default account groupstart
- the lower bound of the range of account groupsend
- the upper bound of the range of account groups (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static AccountGroup findByC_D_First(long companyId, boolean defaultAccountGroup, com.liferay.portal.kernel.util.OrderByComparator<AccountGroup> orderByComparator) throws NoSuchGroupException
companyId
- the company IDdefaultAccountGroup
- the default account grouporderByComparator
- the comparator to order the set by (optionally null
)NoSuchGroupException
- if a matching account group could not be foundpublic static AccountGroup fetchByC_D_First(long companyId, boolean defaultAccountGroup, com.liferay.portal.kernel.util.OrderByComparator<AccountGroup> orderByComparator)
companyId
- the company IDdefaultAccountGroup
- the default account grouporderByComparator
- the comparator to order the set by (optionally null
)null
if a matching account group could not be foundpublic static AccountGroup findByC_D_Last(long companyId, boolean defaultAccountGroup, com.liferay.portal.kernel.util.OrderByComparator<AccountGroup> orderByComparator) throws NoSuchGroupException
companyId
- the company IDdefaultAccountGroup
- the default account grouporderByComparator
- the comparator to order the set by (optionally null
)NoSuchGroupException
- if a matching account group could not be foundpublic static AccountGroup fetchByC_D_Last(long companyId, boolean defaultAccountGroup, com.liferay.portal.kernel.util.OrderByComparator<AccountGroup> orderByComparator)
companyId
- the company IDdefaultAccountGroup
- the default account grouporderByComparator
- the comparator to order the set by (optionally null
)null
if a matching account group could not be foundpublic static AccountGroup[] findByC_D_PrevAndNext(long accountGroupId, long companyId, boolean defaultAccountGroup, com.liferay.portal.kernel.util.OrderByComparator<AccountGroup> orderByComparator) throws NoSuchGroupException
accountGroupId
- the primary key of the current account groupcompanyId
- the company IDdefaultAccountGroup
- the default account grouporderByComparator
- the comparator to order the set by (optionally null
)NoSuchGroupException
- if a account group with the primary key could not be foundpublic static void removeByC_D(long companyId, boolean defaultAccountGroup)
companyId
- the company IDdefaultAccountGroup
- the default account grouppublic static int countByC_D(long companyId, boolean defaultAccountGroup)
companyId
- the company IDdefaultAccountGroup
- the default account grouppublic static java.util.List<AccountGroup> findByC_T(long companyId, java.lang.String type)
companyId
- the company IDtype
- the typepublic static java.util.List<AccountGroup> findByC_T(long companyId, java.lang.String 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 AccountGroupModelImpl
.
companyId
- the company IDtype
- the typestart
- the lower bound of the range of account groupsend
- the upper bound of the range of account groups (not inclusive)public static java.util.List<AccountGroup> findByC_T(long companyId, java.lang.String type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountGroup> 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 AccountGroupModelImpl
.
companyId
- the company IDtype
- the typestart
- the lower bound of the range of account groupsend
- the upper bound of the range of account groups (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<AccountGroup> findByC_T(long companyId, java.lang.String type, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountGroup> 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 AccountGroupModelImpl
.
companyId
- the company IDtype
- the typestart
- the lower bound of the range of account groupsend
- the upper bound of the range of account groups (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static AccountGroup findByC_T_First(long companyId, java.lang.String type, com.liferay.portal.kernel.util.OrderByComparator<AccountGroup> orderByComparator) throws NoSuchGroupException
companyId
- the company IDtype
- the typeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchGroupException
- if a matching account group could not be foundpublic static AccountGroup fetchByC_T_First(long companyId, java.lang.String type, com.liferay.portal.kernel.util.OrderByComparator<AccountGroup> orderByComparator)
companyId
- the company IDtype
- the typeorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching account group could not be foundpublic static AccountGroup findByC_T_Last(long companyId, java.lang.String type, com.liferay.portal.kernel.util.OrderByComparator<AccountGroup> orderByComparator) throws NoSuchGroupException
companyId
- the company IDtype
- the typeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchGroupException
- if a matching account group could not be foundpublic static AccountGroup fetchByC_T_Last(long companyId, java.lang.String type, com.liferay.portal.kernel.util.OrderByComparator<AccountGroup> orderByComparator)
companyId
- the company IDtype
- the typeorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching account group could not be foundpublic static AccountGroup[] findByC_T_PrevAndNext(long accountGroupId, long companyId, java.lang.String type, com.liferay.portal.kernel.util.OrderByComparator<AccountGroup> orderByComparator) throws NoSuchGroupException
accountGroupId
- the primary key of the current account groupcompanyId
- the company IDtype
- the typeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchGroupException
- if a account group with the primary key could not be foundpublic static void removeByC_T(long companyId, java.lang.String type)
companyId
- the company IDtype
- the typepublic static int countByC_T(long companyId, java.lang.String type)
companyId
- the company IDtype
- the typepublic static AccountGroup findByC_ERC(long companyId, java.lang.String externalReferenceCode) throws NoSuchGroupException
NoSuchGroupException
if it could not be found.companyId
- the company IDexternalReferenceCode
- the external reference codeNoSuchGroupException
- if a matching account group could not be foundpublic static AccountGroup 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 account group could not be foundpublic static AccountGroup 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 account group could not be foundpublic static AccountGroup removeByC_ERC(long companyId, java.lang.String externalReferenceCode) throws NoSuchGroupException
companyId
- the company IDexternalReferenceCode
- the external reference codeNoSuchGroupException
public static int countByC_ERC(long companyId, java.lang.String externalReferenceCode)
companyId
- the company IDexternalReferenceCode
- the external reference codepublic static void cacheResult(AccountGroup accountGroup)
accountGroup
- the account grouppublic static void cacheResult(java.util.List<AccountGroup> accountGroups)
accountGroups
- the account groupspublic static AccountGroup create(long accountGroupId)
accountGroupId
- the primary key for the new account grouppublic static AccountGroup remove(long accountGroupId) throws NoSuchGroupException
accountGroupId
- the primary key of the account groupNoSuchGroupException
- if a account group with the primary key could not be foundpublic static AccountGroup updateImpl(AccountGroup accountGroup)
public static AccountGroup findByPrimaryKey(long accountGroupId) throws NoSuchGroupException
NoSuchGroupException
if it could not be found.accountGroupId
- the primary key of the account groupNoSuchGroupException
- if a account group with the primary key could not be foundpublic static AccountGroup fetchByPrimaryKey(long accountGroupId)
null
if it could not be found.accountGroupId
- the primary key of the account groupnull
if a account group with the primary key could not be foundpublic static java.util.List<AccountGroup> findAll()
public static java.util.List<AccountGroup> 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 AccountGroupModelImpl
.
start
- the lower bound of the range of account groupsend
- the upper bound of the range of account groups (not inclusive)public static java.util.List<AccountGroup> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountGroup> 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 AccountGroupModelImpl
.
start
- the lower bound of the range of account groupsend
- the upper bound of the range of account groups (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<AccountGroup> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountGroup> 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 AccountGroupModelImpl
.
start
- the lower bound of the range of account groupsend
- the upper bound of the range of 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 AccountGroupPersistence getPersistence()