Interface UserGroupGroupRolePersistence
- All Superinterfaces:
BasePersistence<UserGroupGroupRole>,CTPersistence<UserGroupGroupRole>
Caching information and settings can be found in portal.properties
- Author:
- Brian Wing Shun Chan
- See Also:
- Generated:
-
Method Summary
Modifier and TypeMethodDescriptionvoidcacheResult(UserGroupGroupRole userGroupGroupRole) Caches the user group group role in the entity cache if it is enabled.voidcacheResult(List<UserGroupGroupRole> userGroupGroupRoles) Caches the user group group roles in the entity cache if it is enabled.intcountAll()Returns the number of user group group roles.intcountByG_R(long groupId, long roleId) Returns the number of user group group roles where groupId = ? and roleId = ?.intcountByGroupId(long groupId) Returns the number of user group group roles where groupId = ?.intcountByRoleId(long roleId) Returns the number of user group group roles where roleId = ?.intcountByU_G(long userGroupId, long groupId) Returns the number of user group group roles where userGroupId = ? and groupId = ?.intcountByU_G_R(long userGroupId, long groupId, long roleId) Returns the number of user group group roles where userGroupId = ? and groupId = ? and roleId = ?.intcountByUserGroupId(long userGroupId) Returns the number of user group group roles where userGroupId = ?.create(long userGroupGroupRoleId) Creates a new user group group role with the primary key.fetchByG_R_First(long groupId, long roleId, OrderByComparator<UserGroupGroupRole> orderByComparator) Returns the first user group group role in the ordered set where groupId = ? and roleId = ?.fetchByGroupId_First(long groupId, OrderByComparator<UserGroupGroupRole> orderByComparator) Returns the first user group group role in the ordered set where groupId = ?.fetchByPrimaryKey(long userGroupGroupRoleId) Returns the user group group role with the primary key or returnsnullif it could not be found.fetchByRoleId_First(long roleId, OrderByComparator<UserGroupGroupRole> orderByComparator) Returns the first user group group role in the ordered set where roleId = ?.fetchByU_G_First(long userGroupId, long groupId, OrderByComparator<UserGroupGroupRole> orderByComparator) Returns the first user group group role in the ordered set where userGroupId = ? and groupId = ?.fetchByU_G_R(long userGroupId, long groupId, long roleId) Returns the user group group role where userGroupId = ? and groupId = ? and roleId = ? or returnsnullif it could not be found.fetchByU_G_R(long userGroupId, long groupId, long roleId, boolean useFinderCache) Returns the user group group role where userGroupId = ? and groupId = ? and roleId = ? or returnsnullif it could not be found, optionally using the finder cache.fetchByUserGroupId_First(long userGroupId, OrderByComparator<UserGroupGroupRole> orderByComparator) Returns the first user group group role in the ordered set where userGroupId = ?.findAll()Returns all the user group group roles.findAll(int start, int end) Returns a range of all the user group group roles.findAll(int start, int end, OrderByComparator<UserGroupGroupRole> orderByComparator) Returns an ordered range of all the user group group roles.findAll(int start, int end, OrderByComparator<UserGroupGroupRole> orderByComparator, boolean useFinderCache) Returns an ordered range of all the user group group roles.findByG_R(long groupId, long roleId) Returns all the user group group roles where groupId = ? and roleId = ?.findByG_R(long groupId, long roleId, int start, int end) Returns a range of all the user group group roles where groupId = ? and roleId = ?.findByG_R(long groupId, long roleId, int start, int end, OrderByComparator<UserGroupGroupRole> orderByComparator) Returns an ordered range of all the user group group roles where groupId = ? and roleId = ?.findByG_R(long groupId, long roleId, int start, int end, OrderByComparator<UserGroupGroupRole> orderByComparator, boolean useFinderCache) Returns an ordered range of all the user group group roles where groupId = ? and roleId = ?.findByG_R_First(long groupId, long roleId, OrderByComparator<UserGroupGroupRole> orderByComparator) Returns the first user group group role in the ordered set where groupId = ? and roleId = ?.findByGroupId(long groupId) Returns all the user group group roles where groupId = ?.findByGroupId(long groupId, int start, int end) Returns a range of all the user group group roles where groupId = ?.findByGroupId(long groupId, int start, int end, OrderByComparator<UserGroupGroupRole> orderByComparator) Returns an ordered range of all the user group group roles where groupId = ?.findByGroupId(long groupId, int start, int end, OrderByComparator<UserGroupGroupRole> orderByComparator, boolean useFinderCache) Returns an ordered range of all the user group group roles where groupId = ?.findByGroupId_First(long groupId, OrderByComparator<UserGroupGroupRole> orderByComparator) Returns the first user group group role in the ordered set where groupId = ?.findByPrimaryKey(long userGroupGroupRoleId) Returns the user group group role with the primary key or throws aNoSuchUserGroupGroupRoleExceptionif it could not be found.findByRoleId(long roleId) Returns all the user group group roles where roleId = ?.findByRoleId(long roleId, int start, int end) Returns a range of all the user group group roles where roleId = ?.findByRoleId(long roleId, int start, int end, OrderByComparator<UserGroupGroupRole> orderByComparator) Returns an ordered range of all the user group group roles where roleId = ?.findByRoleId(long roleId, int start, int end, OrderByComparator<UserGroupGroupRole> orderByComparator, boolean useFinderCache) Returns an ordered range of all the user group group roles where roleId = ?.findByRoleId_First(long roleId, OrderByComparator<UserGroupGroupRole> orderByComparator) Returns the first user group group role in the ordered set where roleId = ?.findByU_G(long userGroupId, long groupId) Returns all the user group group roles where userGroupId = ? and groupId = ?.findByU_G(long userGroupId, long groupId, int start, int end) Returns a range of all the user group group roles where userGroupId = ? and groupId = ?.findByU_G(long userGroupId, long groupId, int start, int end, OrderByComparator<UserGroupGroupRole> orderByComparator) Returns an ordered range of all the user group group roles where userGroupId = ? and groupId = ?.findByU_G(long userGroupId, long groupId, int start, int end, OrderByComparator<UserGroupGroupRole> orderByComparator, boolean useFinderCache) Returns an ordered range of all the user group group roles where userGroupId = ? and groupId = ?.findByU_G_First(long userGroupId, long groupId, OrderByComparator<UserGroupGroupRole> orderByComparator) Returns the first user group group role in the ordered set where userGroupId = ? and groupId = ?.findByU_G_R(long userGroupId, long groupId, long roleId) Returns the user group group role where userGroupId = ? and groupId = ? and roleId = ? or throws aNoSuchUserGroupGroupRoleExceptionif it could not be found.findByUserGroupId(long userGroupId) Returns all the user group group roles where userGroupId = ?.findByUserGroupId(long userGroupId, int start, int end) Returns a range of all the user group group roles where userGroupId = ?.findByUserGroupId(long userGroupId, int start, int end, OrderByComparator<UserGroupGroupRole> orderByComparator) Returns an ordered range of all the user group group roles where userGroupId = ?.findByUserGroupId(long userGroupId, int start, int end, OrderByComparator<UserGroupGroupRole> orderByComparator, boolean useFinderCache) Returns an ordered range of all the user group group roles where userGroupId = ?.findByUserGroupId_First(long userGroupId, OrderByComparator<UserGroupGroupRole> orderByComparator) Returns the first user group group role in the ordered set where userGroupId = ?.remove(long userGroupGroupRoleId) Removes the user group group role with the primary key from the database.voidRemoves all the user group group roles from the database.voidremoveByG_R(long groupId, long roleId) Removes all the user group group roles where groupId = ? and roleId = ? from the database.voidremoveByGroupId(long groupId) Removes all the user group group roles where groupId = ? from the database.voidremoveByRoleId(long roleId) Removes all the user group group roles where roleId = ? from the database.voidremoveByU_G(long userGroupId, long groupId) Removes all the user group group roles where userGroupId = ? and groupId = ? from the database.removeByU_G_R(long userGroupId, long groupId, long roleId) Removes the user group group role where userGroupId = ? and groupId = ? and roleId = ? from the database.voidremoveByUserGroupId(long userGroupId) Removes all the user group group roles where userGroupId = ? from the database.updateImpl(UserGroupGroupRole userGroupGroupRole) Methods inherited from interface com.liferay.portal.kernel.service.persistence.BasePersistence
clearCache, clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQuery, dslQueryCount, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, removeByFunction, setDataSource, unregisterListener, update, updateMethods inherited from interface com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence
getCTColumnNames, getMappingTableNames, getTableColumnsMap, getTableName, getUniqueIndexColumnNames
-
Method Details
-
findByUserGroupId
Returns all the user group group roles where userGroupId = ?.- Parameters:
userGroupId- the user group ID- Returns:
- the matching user group group roles
-
findByUserGroupId
Returns a range of all the user group group roles where userGroupId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.model.impl.UserGroupGroupRoleModelImpl.- Parameters:
userGroupId- the user group IDstart- the lower bound of the range of user group group rolesend- the upper bound of the range of user group group roles (not inclusive)- Returns:
- the range of matching user group group roles
-
findByUserGroupId
List<UserGroupGroupRole> findByUserGroupId(long userGroupId, int start, int end, OrderByComparator<UserGroupGroupRole> orderByComparator) Returns an ordered range of all the user group group roles where userGroupId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.model.impl.UserGroupGroupRoleModelImpl.- Parameters:
userGroupId- the user group IDstart- the lower bound of the range of user group group rolesend- the upper bound of the range of user group group roles (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching user group group roles
-
findByUserGroupId
List<UserGroupGroupRole> findByUserGroupId(long userGroupId, int start, int end, OrderByComparator<UserGroupGroupRole> orderByComparator, boolean useFinderCache) Returns an ordered range of all the user group group roles where userGroupId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.model.impl.UserGroupGroupRoleModelImpl.- Parameters:
userGroupId- the user group IDstart- the lower bound of the range of user group group rolesend- the upper bound of the range of user group group roles (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching user group group roles
-
findByUserGroupId_First
UserGroupGroupRole findByUserGroupId_First(long userGroupId, OrderByComparator<UserGroupGroupRole> orderByComparator) throws NoSuchUserGroupGroupRoleException Returns the first user group group role in the ordered set where userGroupId = ?.- Parameters:
userGroupId- the user group IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching user group group role
- Throws:
NoSuchUserGroupGroupRoleException- if a matching user group group role could not be found
-
fetchByUserGroupId_First
UserGroupGroupRole fetchByUserGroupId_First(long userGroupId, OrderByComparator<UserGroupGroupRole> orderByComparator) Returns the first user group group role in the ordered set where userGroupId = ?.- Parameters:
userGroupId- the user group IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching user group group role, or
nullif a matching user group group role could not be found
-
removeByUserGroupId
void removeByUserGroupId(long userGroupId) Removes all the user group group roles where userGroupId = ? from the database.- Parameters:
userGroupId- the user group ID
-
countByUserGroupId
int countByUserGroupId(long userGroupId) Returns the number of user group group roles where userGroupId = ?.- Parameters:
userGroupId- the user group ID- Returns:
- the number of matching user group group roles
-
findByGroupId
Returns all the user group group roles where groupId = ?.- Parameters:
groupId- the group ID- Returns:
- the matching user group group roles
-
findByGroupId
Returns a range of all the user group group roles where groupId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.model.impl.UserGroupGroupRoleModelImpl.- Parameters:
groupId- the group IDstart- the lower bound of the range of user group group rolesend- the upper bound of the range of user group group roles (not inclusive)- Returns:
- the range of matching user group group roles
-
findByGroupId
List<UserGroupGroupRole> findByGroupId(long groupId, int start, int end, OrderByComparator<UserGroupGroupRole> orderByComparator) Returns an ordered range of all the user group group roles where groupId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.model.impl.UserGroupGroupRoleModelImpl.- Parameters:
groupId- the group IDstart- the lower bound of the range of user group group rolesend- the upper bound of the range of user group group roles (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching user group group roles
-
findByGroupId
List<UserGroupGroupRole> findByGroupId(long groupId, int start, int end, OrderByComparator<UserGroupGroupRole> orderByComparator, boolean useFinderCache) Returns an ordered range of all the user group group roles where groupId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.model.impl.UserGroupGroupRoleModelImpl.- Parameters:
groupId- the group IDstart- the lower bound of the range of user group group rolesend- the upper bound of the range of user group group roles (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching user group group roles
-
findByGroupId_First
UserGroupGroupRole findByGroupId_First(long groupId, OrderByComparator<UserGroupGroupRole> orderByComparator) throws NoSuchUserGroupGroupRoleException Returns the first user group group role in the ordered set where groupId = ?.- Parameters:
groupId- the group IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching user group group role
- Throws:
NoSuchUserGroupGroupRoleException- if a matching user group group role could not be found
-
fetchByGroupId_First
UserGroupGroupRole fetchByGroupId_First(long groupId, OrderByComparator<UserGroupGroupRole> orderByComparator) Returns the first user group group role in the ordered set where groupId = ?.- Parameters:
groupId- the group IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching user group group role, or
nullif a matching user group group role could not be found
-
removeByGroupId
void removeByGroupId(long groupId) Removes all the user group group roles where groupId = ? from the database.- Parameters:
groupId- the group ID
-
countByGroupId
int countByGroupId(long groupId) Returns the number of user group group roles where groupId = ?.- Parameters:
groupId- the group ID- Returns:
- the number of matching user group group roles
-
findByRoleId
Returns all the user group group roles where roleId = ?.- Parameters:
roleId- the role ID- Returns:
- the matching user group group roles
-
findByRoleId
Returns a range of all the user group group roles where roleId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.model.impl.UserGroupGroupRoleModelImpl.- Parameters:
roleId- the role IDstart- the lower bound of the range of user group group rolesend- the upper bound of the range of user group group roles (not inclusive)- Returns:
- the range of matching user group group roles
-
findByRoleId
List<UserGroupGroupRole> findByRoleId(long roleId, int start, int end, OrderByComparator<UserGroupGroupRole> orderByComparator) Returns an ordered range of all the user group group roles where roleId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.model.impl.UserGroupGroupRoleModelImpl.- Parameters:
roleId- the role IDstart- the lower bound of the range of user group group rolesend- the upper bound of the range of user group group roles (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching user group group roles
-
findByRoleId
List<UserGroupGroupRole> findByRoleId(long roleId, int start, int end, OrderByComparator<UserGroupGroupRole> orderByComparator, boolean useFinderCache) Returns an ordered range of all the user group group roles where roleId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.model.impl.UserGroupGroupRoleModelImpl.- Parameters:
roleId- the role IDstart- the lower bound of the range of user group group rolesend- the upper bound of the range of user group group roles (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching user group group roles
-
findByRoleId_First
UserGroupGroupRole findByRoleId_First(long roleId, OrderByComparator<UserGroupGroupRole> orderByComparator) throws NoSuchUserGroupGroupRoleException Returns the first user group group role in the ordered set where roleId = ?.- Parameters:
roleId- the role IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching user group group role
- Throws:
NoSuchUserGroupGroupRoleException- if a matching user group group role could not be found
-
fetchByRoleId_First
UserGroupGroupRole fetchByRoleId_First(long roleId, OrderByComparator<UserGroupGroupRole> orderByComparator) Returns the first user group group role in the ordered set where roleId = ?.- Parameters:
roleId- the role IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching user group group role, or
nullif a matching user group group role could not be found
-
removeByRoleId
void removeByRoleId(long roleId) Removes all the user group group roles where roleId = ? from the database.- Parameters:
roleId- the role ID
-
countByRoleId
int countByRoleId(long roleId) Returns the number of user group group roles where roleId = ?.- Parameters:
roleId- the role ID- Returns:
- the number of matching user group group roles
-
findByU_G
Returns all the user group group roles where userGroupId = ? and groupId = ?.- Parameters:
userGroupId- the user group IDgroupId- the group ID- Returns:
- the matching user group group roles
-
findByU_G
Returns a range of all the user group group roles where userGroupId = ? and groupId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.model.impl.UserGroupGroupRoleModelImpl.- Parameters:
userGroupId- the user group IDgroupId- the group IDstart- the lower bound of the range of user group group rolesend- the upper bound of the range of user group group roles (not inclusive)- Returns:
- the range of matching user group group roles
-
findByU_G
List<UserGroupGroupRole> findByU_G(long userGroupId, long groupId, int start, int end, OrderByComparator<UserGroupGroupRole> orderByComparator) Returns an ordered range of all the user group group roles where userGroupId = ? and groupId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.model.impl.UserGroupGroupRoleModelImpl.- Parameters:
userGroupId- the user group IDgroupId- the group IDstart- the lower bound of the range of user group group rolesend- the upper bound of the range of user group group roles (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching user group group roles
-
findByU_G
List<UserGroupGroupRole> findByU_G(long userGroupId, long groupId, int start, int end, OrderByComparator<UserGroupGroupRole> orderByComparator, boolean useFinderCache) Returns an ordered range of all the user group group roles where userGroupId = ? and groupId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.model.impl.UserGroupGroupRoleModelImpl.- Parameters:
userGroupId- the user group IDgroupId- the group IDstart- the lower bound of the range of user group group rolesend- the upper bound of the range of user group group roles (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching user group group roles
-
findByU_G_First
UserGroupGroupRole findByU_G_First(long userGroupId, long groupId, OrderByComparator<UserGroupGroupRole> orderByComparator) throws NoSuchUserGroupGroupRoleException Returns the first user group group role in the ordered set where userGroupId = ? and groupId = ?.- Parameters:
userGroupId- the user group IDgroupId- the group IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching user group group role
- Throws:
NoSuchUserGroupGroupRoleException- if a matching user group group role could not be found
-
fetchByU_G_First
UserGroupGroupRole fetchByU_G_First(long userGroupId, long groupId, OrderByComparator<UserGroupGroupRole> orderByComparator) Returns the first user group group role in the ordered set where userGroupId = ? and groupId = ?.- Parameters:
userGroupId- the user group IDgroupId- the group IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching user group group role, or
nullif a matching user group group role could not be found
-
removeByU_G
void removeByU_G(long userGroupId, long groupId) Removes all the user group group roles where userGroupId = ? and groupId = ? from the database.- Parameters:
userGroupId- the user group IDgroupId- the group ID
-
countByU_G
int countByU_G(long userGroupId, long groupId) Returns the number of user group group roles where userGroupId = ? and groupId = ?.- Parameters:
userGroupId- the user group IDgroupId- the group ID- Returns:
- the number of matching user group group roles
-
findByG_R
Returns all the user group group roles where groupId = ? and roleId = ?.- Parameters:
groupId- the group IDroleId- the role ID- Returns:
- the matching user group group roles
-
findByG_R
Returns a range of all the user group group roles where groupId = ? and roleId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.model.impl.UserGroupGroupRoleModelImpl.- Parameters:
groupId- the group IDroleId- the role IDstart- the lower bound of the range of user group group rolesend- the upper bound of the range of user group group roles (not inclusive)- Returns:
- the range of matching user group group roles
-
findByG_R
List<UserGroupGroupRole> findByG_R(long groupId, long roleId, int start, int end, OrderByComparator<UserGroupGroupRole> orderByComparator) Returns an ordered range of all the user group group roles where groupId = ? and roleId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.model.impl.UserGroupGroupRoleModelImpl.- Parameters:
groupId- the group IDroleId- the role IDstart- the lower bound of the range of user group group rolesend- the upper bound of the range of user group group roles (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching user group group roles
-
findByG_R
List<UserGroupGroupRole> findByG_R(long groupId, long roleId, int start, int end, OrderByComparator<UserGroupGroupRole> orderByComparator, boolean useFinderCache) Returns an ordered range of all the user group group roles where groupId = ? and roleId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.model.impl.UserGroupGroupRoleModelImpl.- Parameters:
groupId- the group IDroleId- the role IDstart- the lower bound of the range of user group group rolesend- the upper bound of the range of user group group roles (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching user group group roles
-
findByG_R_First
UserGroupGroupRole findByG_R_First(long groupId, long roleId, OrderByComparator<UserGroupGroupRole> orderByComparator) throws NoSuchUserGroupGroupRoleException Returns the first user group group role in the ordered set where groupId = ? and roleId = ?.- Parameters:
groupId- the group IDroleId- the role IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching user group group role
- Throws:
NoSuchUserGroupGroupRoleException- if a matching user group group role could not be found
-
fetchByG_R_First
UserGroupGroupRole fetchByG_R_First(long groupId, long roleId, OrderByComparator<UserGroupGroupRole> orderByComparator) Returns the first user group group role in the ordered set where groupId = ? and roleId = ?.- Parameters:
groupId- the group IDroleId- the role IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching user group group role, or
nullif a matching user group group role could not be found
-
removeByG_R
void removeByG_R(long groupId, long roleId) Removes all the user group group roles where groupId = ? and roleId = ? from the database.- Parameters:
groupId- the group IDroleId- the role ID
-
countByG_R
int countByG_R(long groupId, long roleId) Returns the number of user group group roles where groupId = ? and roleId = ?.- Parameters:
groupId- the group IDroleId- the role ID- Returns:
- the number of matching user group group roles
-
findByU_G_R
UserGroupGroupRole findByU_G_R(long userGroupId, long groupId, long roleId) throws NoSuchUserGroupGroupRoleException Returns the user group group role where userGroupId = ? and groupId = ? and roleId = ? or throws aNoSuchUserGroupGroupRoleExceptionif it could not be found.- Parameters:
userGroupId- the user group IDgroupId- the group IDroleId- the role ID- Returns:
- the matching user group group role
- Throws:
NoSuchUserGroupGroupRoleException- if a matching user group group role could not be found
-
fetchByU_G_R
Returns the user group group role where userGroupId = ? and groupId = ? and roleId = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
userGroupId- the user group IDgroupId- the group IDroleId- the role ID- Returns:
- the matching user group group role, or
nullif a matching user group group role could not be found
-
fetchByU_G_R
UserGroupGroupRole fetchByU_G_R(long userGroupId, long groupId, long roleId, boolean useFinderCache) Returns the user group group role where userGroupId = ? and groupId = ? and roleId = ? or returnsnullif it could not be found, optionally using the finder cache.- Parameters:
userGroupId- the user group IDgroupId- the group IDroleId- the role IDuseFinderCache- whether to use the finder cache- Returns:
- the matching user group group role, or
nullif a matching user group group role could not be found
-
removeByU_G_R
UserGroupGroupRole removeByU_G_R(long userGroupId, long groupId, long roleId) throws NoSuchUserGroupGroupRoleException Removes the user group group role where userGroupId = ? and groupId = ? and roleId = ? from the database.- Parameters:
userGroupId- the user group IDgroupId- the group IDroleId- the role ID- Returns:
- the user group group role that was removed
- Throws:
NoSuchUserGroupGroupRoleException
-
countByU_G_R
int countByU_G_R(long userGroupId, long groupId, long roleId) Returns the number of user group group roles where userGroupId = ? and groupId = ? and roleId = ?.- Parameters:
userGroupId- the user group IDgroupId- the group IDroleId- the role ID- Returns:
- the number of matching user group group roles
-
cacheResult
Caches the user group group role in the entity cache if it is enabled.- Parameters:
userGroupGroupRole- the user group group role
-
cacheResult
Caches the user group group roles in the entity cache if it is enabled.- Parameters:
userGroupGroupRoles- the user group group roles
-
create
Creates a new user group group role with the primary key. Does not add the user group group role to the database.- Parameters:
userGroupGroupRoleId- the primary key for the new user group group role- Returns:
- the new user group group role
-
remove
Removes the user group group role with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
userGroupGroupRoleId- the primary key of the user group group role- Returns:
- the user group group role that was removed
- Throws:
NoSuchUserGroupGroupRoleException- if a user group group role with the primary key could not be found
-
updateImpl
-
findByPrimaryKey
UserGroupGroupRole findByPrimaryKey(long userGroupGroupRoleId) throws NoSuchUserGroupGroupRoleException Returns the user group group role with the primary key or throws aNoSuchUserGroupGroupRoleExceptionif it could not be found.- Parameters:
userGroupGroupRoleId- the primary key of the user group group role- Returns:
- the user group group role
- Throws:
NoSuchUserGroupGroupRoleException- if a user group group role with the primary key could not be found
-
fetchByPrimaryKey
Returns the user group group role with the primary key or returnsnullif it could not be found.- Parameters:
userGroupGroupRoleId- the primary key of the user group group role- Returns:
- the user group group role, or
nullif a user group group role with the primary key could not be found
-
findAll
List<UserGroupGroupRole> findAll()Returns all the user group group roles.- Returns:
- the user group group roles
-
findAll
Returns a range of all the user group group roles.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.model.impl.UserGroupGroupRoleModelImpl.- Parameters:
start- the lower bound of the range of user group group rolesend- the upper bound of the range of user group group roles (not inclusive)- Returns:
- the range of user group group roles
-
findAll
List<UserGroupGroupRole> findAll(int start, int end, OrderByComparator<UserGroupGroupRole> orderByComparator) Returns an ordered range of all the user group group roles.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.model.impl.UserGroupGroupRoleModelImpl.- Parameters:
start- the lower bound of the range of user group group rolesend- the upper bound of the range of user group group roles (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of user group group roles
-
findAll
List<UserGroupGroupRole> findAll(int start, int end, OrderByComparator<UserGroupGroupRole> orderByComparator, boolean useFinderCache) Returns an ordered range of all the user group group roles.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.model.impl.UserGroupGroupRoleModelImpl.- Parameters:
start- the lower bound of the range of user group group rolesend- the upper bound of the range of user group group roles (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of user group group roles
-
removeAll
void removeAll()Removes all the user group group roles from the database. -
countAll
int countAll()Returns the number of user group group roles.- Returns:
- the number of user group group roles
-