@ProviderType public interface AccountGroupPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<AccountGroup>
Caching information and settings can be found in portal.properties
AccountGroupUtil
Modifier and Type | Method and Description |
---|---|
void |
cacheResult(AccountGroup accountGroup)
Caches the account group in the entity cache if it is enabled.
|
void |
cacheResult(java.util.List<AccountGroup> accountGroups)
Caches the account groups in the entity cache if it is enabled.
|
int |
countAll()
Returns the number of account groups.
|
int |
countByC_ERC(long companyId,
java.lang.String externalReferenceCode)
Returns the number of account groups where companyId = ? and externalReferenceCode = ?.
|
int |
countByCompanyId(long companyId)
Returns the number of account groups where companyId = ?.
|
AccountGroup |
create(long accountGroupId)
Creates a new account group with the primary key.
|
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. |
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. |
AccountGroup |
fetchByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<AccountGroup> orderByComparator)
Returns the first account group in the ordered set where companyId = ?.
|
AccountGroup |
fetchByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<AccountGroup> orderByComparator)
Returns the last account group in the ordered set where companyId = ?.
|
AccountGroup |
fetchByPrimaryKey(long accountGroupId)
Returns the account group with the primary key or returns
null if it could not be found. |
java.util.List<AccountGroup> |
findAll()
Returns all the account groups.
|
java.util.List<AccountGroup> |
findAll(int start,
int end)
Returns a range of all the account groups.
|
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.
|
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.
|
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. |
AccountGroup |
findByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<AccountGroup> orderByComparator)
Returns the first account group in the ordered set where companyId = ?.
|
AccountGroup |
findByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<AccountGroup> orderByComparator)
Returns the last account group in the ordered set where companyId = ?.
|
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 = ?.
|
java.util.List<AccountGroup> |
findByCompanyId(long companyId)
Returns all the account groups where companyId = ?.
|
java.util.List<AccountGroup> |
findByCompanyId(long companyId,
int start,
int end)
Returns a range of all the account groups where companyId = ?.
|
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 = ?.
|
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 = ?.
|
AccountGroup |
findByPrimaryKey(long accountGroupId)
Returns the account group with the primary key or throws a
NoSuchGroupException if it could not be found. |
AccountGroup |
remove(long accountGroupId)
Removes the account group with the primary key from the database.
|
void |
removeAll()
Removes all the account groups from the database.
|
AccountGroup |
removeByC_ERC(long companyId,
java.lang.String externalReferenceCode)
Removes the account group where companyId = ? and externalReferenceCode = ? from the database.
|
void |
removeByCompanyId(long companyId)
Removes all the account groups where companyId = ? from the database.
|
AccountGroup |
updateImpl(AccountGroup accountGroup) |
clearCache, clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, fetchByPrimaryKey, fetchByPrimaryKeys, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update
java.util.List<AccountGroup> findByCompanyId(long companyId)
companyId
- the company IDjava.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)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
)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 cacheAccountGroup 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 foundAccountGroup 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 foundAccountGroup 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 foundAccountGroup 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 foundAccountGroup[] 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 foundvoid removeByCompanyId(long companyId)
companyId
- the company IDint countByCompanyId(long companyId)
companyId
- the company IDAccountGroup 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 foundAccountGroup 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 foundAccountGroup 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 foundAccountGroup removeByC_ERC(long companyId, java.lang.String externalReferenceCode) throws NoSuchGroupException
companyId
- the company IDexternalReferenceCode
- the external reference codeNoSuchGroupException
int countByC_ERC(long companyId, java.lang.String externalReferenceCode)
companyId
- the company IDexternalReferenceCode
- the external reference codevoid cacheResult(AccountGroup accountGroup)
accountGroup
- the account groupvoid cacheResult(java.util.List<AccountGroup> accountGroups)
accountGroups
- the account groupsAccountGroup create(long accountGroupId)
accountGroupId
- the primary key for the new account groupAccountGroup remove(long accountGroupId) throws NoSuchGroupException
accountGroupId
- the primary key of the account groupNoSuchGroupException
- if a account group with the primary key could not be foundAccountGroup updateImpl(AccountGroup accountGroup)
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 foundAccountGroup 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 foundjava.util.List<AccountGroup> findAll()
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)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
)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 cachevoid removeAll()
int countAll()