@ProviderType public interface AccountRolePersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<AccountRole>
Caching information and settings can be found in portal.properties
AccountRoleUtil
Modifier and Type | Method and Description |
---|---|
void |
cacheResult(AccountRole accountRole)
Caches the account role in the entity cache if it is enabled.
|
void |
cacheResult(java.util.List<AccountRole> accountRoles)
Caches the account roles in the entity cache if it is enabled.
|
int |
countAll()
Returns the number of account roles.
|
int |
countByAccountEntryId(long accountEntryId)
Returns the number of account roles where accountEntryId = ?.
|
int |
countByAccountEntryId(long[] accountEntryIds)
Returns the number of account roles where accountEntryId = any ?.
|
int |
countByCompanyId(long companyId)
Returns the number of account roles where companyId = ?.
|
int |
countByRoleId(long roleId)
Returns the number of account roles where roleId = ?.
|
AccountRole |
create(long accountRoleId)
Creates a new account role with the primary key.
|
AccountRole |
fetchByAccountEntryId_First(long accountEntryId,
com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator)
Returns the first account role in the ordered set where accountEntryId = ?.
|
AccountRole |
fetchByAccountEntryId_Last(long accountEntryId,
com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator)
Returns the last account role in the ordered set where accountEntryId = ?.
|
AccountRole |
fetchByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator)
Returns the first account role in the ordered set where companyId = ?.
|
AccountRole |
fetchByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator)
Returns the last account role in the ordered set where companyId = ?.
|
AccountRole |
fetchByPrimaryKey(long accountRoleId)
Returns the account role with the primary key or returns
null if it could not be found. |
AccountRole |
fetchByRoleId(long roleId)
Returns the account role where roleId = ? or returns
null if it could not be found. |
AccountRole |
fetchByRoleId(long roleId,
boolean useFinderCache)
Returns the account role where roleId = ? or returns
null if it could not be found, optionally using the finder cache. |
java.util.List<AccountRole> |
findAll()
Returns all the account roles.
|
java.util.List<AccountRole> |
findAll(int start,
int end)
Returns a range of all the account roles.
|
java.util.List<AccountRole> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator)
Returns an ordered range of all the account roles.
|
java.util.List<AccountRole> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the account roles.
|
AccountRole |
findByAccountEntryId_First(long accountEntryId,
com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator)
Returns the first account role in the ordered set where accountEntryId = ?.
|
AccountRole |
findByAccountEntryId_Last(long accountEntryId,
com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator)
Returns the last account role in the ordered set where accountEntryId = ?.
|
AccountRole[] |
findByAccountEntryId_PrevAndNext(long accountRoleId,
long accountEntryId,
com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator)
Returns the account roles before and after the current account role in the ordered set where accountEntryId = ?.
|
java.util.List<AccountRole> |
findByAccountEntryId(long accountEntryId)
Returns all the account roles where accountEntryId = ?.
|
java.util.List<AccountRole> |
findByAccountEntryId(long[] accountEntryIds)
Returns all the account roles where accountEntryId = any ?.
|
java.util.List<AccountRole> |
findByAccountEntryId(long[] accountEntryIds,
int start,
int end)
Returns a range of all the account roles where accountEntryId = any ?.
|
java.util.List<AccountRole> |
findByAccountEntryId(long[] accountEntryIds,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator)
Returns an ordered range of all the account roles where accountEntryId = any ?.
|
java.util.List<AccountRole> |
findByAccountEntryId(long[] accountEntryIds,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the account roles where accountEntryId = ?, optionally using the finder cache.
|
java.util.List<AccountRole> |
findByAccountEntryId(long accountEntryId,
int start,
int end)
Returns a range of all the account roles where accountEntryId = ?.
|
java.util.List<AccountRole> |
findByAccountEntryId(long accountEntryId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator)
Returns an ordered range of all the account roles where accountEntryId = ?.
|
java.util.List<AccountRole> |
findByAccountEntryId(long accountEntryId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the account roles where accountEntryId = ?.
|
AccountRole |
findByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator)
Returns the first account role in the ordered set where companyId = ?.
|
AccountRole |
findByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator)
Returns the last account role in the ordered set where companyId = ?.
|
AccountRole[] |
findByCompanyId_PrevAndNext(long accountRoleId,
long companyId,
com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator)
Returns the account roles before and after the current account role in the ordered set where companyId = ?.
|
java.util.List<AccountRole> |
findByCompanyId(long companyId)
Returns all the account roles where companyId = ?.
|
java.util.List<AccountRole> |
findByCompanyId(long companyId,
int start,
int end)
Returns a range of all the account roles where companyId = ?.
|
java.util.List<AccountRole> |
findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator)
Returns an ordered range of all the account roles where companyId = ?.
|
java.util.List<AccountRole> |
findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the account roles where companyId = ?.
|
AccountRole |
findByPrimaryKey(long accountRoleId)
Returns the account role with the primary key or throws a
NoSuchRoleException if it could not be found. |
AccountRole |
findByRoleId(long roleId)
Returns the account role where roleId = ? or throws a
NoSuchRoleException if it could not be found. |
AccountRole |
remove(long accountRoleId)
Removes the account role with the primary key from the database.
|
void |
removeAll()
Removes all the account roles from the database.
|
void |
removeByAccountEntryId(long accountEntryId)
Removes all the account roles where accountEntryId = ? from the database.
|
void |
removeByCompanyId(long companyId)
Removes all the account roles where companyId = ? from the database.
|
AccountRole |
removeByRoleId(long roleId)
Removes the account role where roleId = ? from the database.
|
AccountRole |
updateImpl(AccountRole accountRole) |
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<AccountRole> findByCompanyId(long companyId)
companyId
- the company IDjava.util.List<AccountRole> 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 AccountRoleModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of account rolesend
- the upper bound of the range of account roles (not inclusive)java.util.List<AccountRole> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> 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 AccountRoleModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of account rolesend
- the upper bound of the range of account roles (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<AccountRole> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> 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 AccountRoleModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of account rolesend
- the upper bound of the range of account roles (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cacheAccountRole findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator) throws NoSuchRoleException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchRoleException
- if a matching account role could not be foundAccountRole fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching account role could not be foundAccountRole findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator) throws NoSuchRoleException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchRoleException
- if a matching account role could not be foundAccountRole fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching account role could not be foundAccountRole[] findByCompanyId_PrevAndNext(long accountRoleId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator) throws NoSuchRoleException
accountRoleId
- the primary key of the current account rolecompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchRoleException
- if a account role with the primary key could not be foundvoid removeByCompanyId(long companyId)
companyId
- the company IDint countByCompanyId(long companyId)
companyId
- the company IDjava.util.List<AccountRole> findByAccountEntryId(long accountEntryId)
accountEntryId
- the account entry IDjava.util.List<AccountRole> findByAccountEntryId(long accountEntryId, 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 AccountRoleModelImpl
.
accountEntryId
- the account entry IDstart
- the lower bound of the range of account rolesend
- the upper bound of the range of account roles (not inclusive)java.util.List<AccountRole> findByAccountEntryId(long accountEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> 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 AccountRoleModelImpl
.
accountEntryId
- the account entry IDstart
- the lower bound of the range of account rolesend
- the upper bound of the range of account roles (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<AccountRole> findByAccountEntryId(long accountEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> 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 AccountRoleModelImpl
.
accountEntryId
- the account entry IDstart
- the lower bound of the range of account rolesend
- the upper bound of the range of account roles (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cacheAccountRole findByAccountEntryId_First(long accountEntryId, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator) throws NoSuchRoleException
accountEntryId
- the account entry IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchRoleException
- if a matching account role could not be foundAccountRole fetchByAccountEntryId_First(long accountEntryId, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator)
accountEntryId
- the account entry IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching account role could not be foundAccountRole findByAccountEntryId_Last(long accountEntryId, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator) throws NoSuchRoleException
accountEntryId
- the account entry IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchRoleException
- if a matching account role could not be foundAccountRole fetchByAccountEntryId_Last(long accountEntryId, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator)
accountEntryId
- the account entry IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching account role could not be foundAccountRole[] findByAccountEntryId_PrevAndNext(long accountRoleId, long accountEntryId, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> orderByComparator) throws NoSuchRoleException
accountRoleId
- the primary key of the current account roleaccountEntryId
- the account entry IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchRoleException
- if a account role with the primary key could not be foundjava.util.List<AccountRole> findByAccountEntryId(long[] accountEntryIds)
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 AccountRoleModelImpl
.
accountEntryIds
- the account entry IDsjava.util.List<AccountRole> findByAccountEntryId(long[] accountEntryIds, 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 AccountRoleModelImpl
.
accountEntryIds
- the account entry IDsstart
- the lower bound of the range of account rolesend
- the upper bound of the range of account roles (not inclusive)java.util.List<AccountRole> findByAccountEntryId(long[] accountEntryIds, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> 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 AccountRoleModelImpl
.
accountEntryIds
- the account entry IDsstart
- the lower bound of the range of account rolesend
- the upper bound of the range of account roles (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<AccountRole> findByAccountEntryId(long[] accountEntryIds, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> 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 AccountRoleModelImpl
.
accountEntryId
- the account entry IDstart
- the lower bound of the range of account rolesend
- the upper bound of the range of account roles (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachevoid removeByAccountEntryId(long accountEntryId)
accountEntryId
- the account entry IDint countByAccountEntryId(long accountEntryId)
accountEntryId
- the account entry IDint countByAccountEntryId(long[] accountEntryIds)
accountEntryIds
- the account entry IDsAccountRole findByRoleId(long roleId) throws NoSuchRoleException
NoSuchRoleException
if it could not be found.roleId
- the role IDNoSuchRoleException
- if a matching account role could not be foundAccountRole fetchByRoleId(long roleId)
null
if it could not be found. Uses the finder cache.roleId
- the role IDnull
if a matching account role could not be foundAccountRole fetchByRoleId(long roleId, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.roleId
- the role IDuseFinderCache
- whether to use the finder cachenull
if a matching account role could not be foundAccountRole removeByRoleId(long roleId) throws NoSuchRoleException
roleId
- the role IDNoSuchRoleException
int countByRoleId(long roleId)
roleId
- the role IDvoid cacheResult(AccountRole accountRole)
accountRole
- the account rolevoid cacheResult(java.util.List<AccountRole> accountRoles)
accountRoles
- the account rolesAccountRole create(long accountRoleId)
accountRoleId
- the primary key for the new account roleAccountRole remove(long accountRoleId) throws NoSuchRoleException
accountRoleId
- the primary key of the account roleNoSuchRoleException
- if a account role with the primary key could not be foundAccountRole updateImpl(AccountRole accountRole)
AccountRole findByPrimaryKey(long accountRoleId) throws NoSuchRoleException
NoSuchRoleException
if it could not be found.accountRoleId
- the primary key of the account roleNoSuchRoleException
- if a account role with the primary key could not be foundAccountRole fetchByPrimaryKey(long accountRoleId)
null
if it could not be found.accountRoleId
- the primary key of the account rolenull
if a account role with the primary key could not be foundjava.util.List<AccountRole> findAll()
java.util.List<AccountRole> 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 AccountRoleModelImpl
.
start
- the lower bound of the range of account rolesend
- the upper bound of the range of account roles (not inclusive)java.util.List<AccountRole> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> 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 AccountRoleModelImpl
.
start
- the lower bound of the range of account rolesend
- the upper bound of the range of account roles (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)java.util.List<AccountRole> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AccountRole> 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 AccountRoleModelImpl
.
start
- the lower bound of the range of account rolesend
- the upper bound of the range of account roles (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachevoid removeAll()
int countAll()