@ProviderType
public class UserGroupUtil
extends Object
UserGroupPersistenceImpl
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
UserGroupPersistence
,
UserGroupPersistenceImpl
Constructor and Description |
---|
UserGroupUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
addGroup(long pk,
Group group)
Adds an association between the user group and the group.
|
static void |
addGroup(long pk,
long groupPK)
Adds an association between the user group and the group.
|
static void |
addGroups(long pk,
List<Group> groups)
Adds an association between the user group and the groups.
|
static void |
addGroups(long pk,
long[] groupPKs)
Adds an association between the user group and the groups.
|
static void |
addTeam(long pk,
long teamPK)
Adds an association between the user group and the team.
|
static void |
addTeam(long pk,
Team team)
Adds an association between the user group and the team.
|
static void |
addTeams(long pk,
List<Team> teams)
Adds an association between the user group and the teams.
|
static void |
addTeams(long pk,
long[] teamPKs)
Adds an association between the user group and the teams.
|
static void |
addUser(long pk,
long userPK)
Adds an association between the user group and the user.
|
static void |
addUser(long pk,
User user)
Adds an association between the user group and the user.
|
static void |
addUsers(long pk,
List<User> users)
Adds an association between the user group and the users.
|
static void |
addUsers(long pk,
long[] userPKs)
Adds an association between the user group and the users.
|
static void |
cacheResult(List<UserGroup> userGroups)
Caches the user groups in the entity cache if it is enabled.
|
static void |
cacheResult(UserGroup userGroup)
Caches the user group in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(UserGroup userGroup) |
static void |
clearGroups(long pk)
Clears all associations between the user group and its groups.
|
static void |
clearTeams(long pk)
Clears all associations between the user group and its teams.
|
static void |
clearUsers(long pk)
Clears all associations between the user group and its users.
|
static boolean |
containsGroup(long pk,
long groupPK)
Returns
true if the group is associated with the user group. |
static boolean |
containsGroups(long pk)
Returns
true if the user group has any groups associated with it. |
static boolean |
containsTeam(long pk,
long teamPK)
Returns
true if the team is associated with the user group. |
static boolean |
containsTeams(long pk)
Returns
true if the user group has any teams associated with it. |
static boolean |
containsUser(long pk,
long userPK)
Returns
true if the user is associated with the user group. |
static boolean |
containsUsers(long pk)
Returns
true if the user group has any users associated with it. |
static int |
countAll()
Returns the number of user groups.
|
static int |
countByC_LikeN(long companyId,
String name)
Returns the number of user groups where companyId = ? and name LIKE ?.
|
static int |
countByC_N(long companyId,
String name)
Returns the number of user groups where companyId = ? and name = ?.
|
static int |
countByC_P(long companyId,
long parentUserGroupId)
Returns the number of user groups where companyId = ? and parentUserGroupId = ?.
|
static int |
countByCompanyId(long companyId)
Returns the number of user groups where companyId = ?.
|
static int |
countByU_C_P(long userGroupId,
long companyId,
long parentUserGroupId)
Returns the number of user groups where userGroupId > ? and companyId = ? and parentUserGroupId = ?.
|
static int |
countByUuid_C(String uuid,
long companyId)
Returns the number of user groups where uuid = ? and companyId = ?.
|
static int |
countByUuid(String uuid)
Returns the number of user groups where uuid = ?.
|
static long |
countWithDynamicQuery(DynamicQuery dynamicQuery) |
static UserGroup |
create(long userGroupId)
Creates a new user group with the primary key.
|
static UserGroup |
fetchByC_LikeN_First(long companyId,
String name,
OrderByComparator<UserGroup> orderByComparator)
Returns the first user group in the ordered set where companyId = ? and name LIKE ?.
|
static UserGroup |
fetchByC_LikeN_Last(long companyId,
String name,
OrderByComparator<UserGroup> orderByComparator)
Returns the last user group in the ordered set where companyId = ? and name LIKE ?.
|
static UserGroup |
fetchByC_N(long companyId,
String name)
Returns the user group where companyId = ? and name = ? or returns
null if it could not be found. |
static UserGroup |
fetchByC_N(long companyId,
String name,
boolean retrieveFromCache)
Returns the user group where companyId = ? and name = ? or returns
null if it could not be found, optionally using the finder cache. |
static UserGroup |
fetchByC_P_First(long companyId,
long parentUserGroupId,
OrderByComparator<UserGroup> orderByComparator)
Returns the first user group in the ordered set where companyId = ? and parentUserGroupId = ?.
|
static UserGroup |
fetchByC_P_Last(long companyId,
long parentUserGroupId,
OrderByComparator<UserGroup> orderByComparator)
Returns the last user group in the ordered set where companyId = ? and parentUserGroupId = ?.
|
static UserGroup |
fetchByCompanyId_First(long companyId,
OrderByComparator<UserGroup> orderByComparator)
Returns the first user group in the ordered set where companyId = ?.
|
static UserGroup |
fetchByCompanyId_Last(long companyId,
OrderByComparator<UserGroup> orderByComparator)
Returns the last user group in the ordered set where companyId = ?.
|
static UserGroup |
fetchByPrimaryKey(long userGroupId)
Returns the user group with the primary key or returns
null if it could not be found. |
static Map<Serializable,UserGroup> |
fetchByPrimaryKeys(Set<Serializable> primaryKeys) |
static UserGroup |
fetchByU_C_P_First(long userGroupId,
long companyId,
long parentUserGroupId,
OrderByComparator<UserGroup> orderByComparator)
Returns the first user group in the ordered set where userGroupId > ? and companyId = ? and parentUserGroupId = ?.
|
static UserGroup |
fetchByU_C_P_Last(long userGroupId,
long companyId,
long parentUserGroupId,
OrderByComparator<UserGroup> orderByComparator)
Returns the last user group in the ordered set where userGroupId > ? and companyId = ? and parentUserGroupId = ?.
|
static UserGroup |
fetchByUuid_C_First(String uuid,
long companyId,
OrderByComparator<UserGroup> orderByComparator)
Returns the first user group in the ordered set where uuid = ? and companyId = ?.
|
static UserGroup |
fetchByUuid_C_Last(String uuid,
long companyId,
OrderByComparator<UserGroup> orderByComparator)
Returns the last user group in the ordered set where uuid = ? and companyId = ?.
|
static UserGroup |
fetchByUuid_First(String uuid,
OrderByComparator<UserGroup> orderByComparator)
Returns the first user group in the ordered set where uuid = ?.
|
static UserGroup |
fetchByUuid_Last(String uuid,
OrderByComparator<UserGroup> orderByComparator)
Returns the last user group in the ordered set where uuid = ?.
|
static int |
filterCountByC_LikeN(long companyId,
String name)
Returns the number of user groups that the user has permission to view where companyId = ? and name LIKE ?.
|
static int |
filterCountByC_P(long companyId,
long parentUserGroupId)
Returns the number of user groups that the user has permission to view where companyId = ? and parentUserGroupId = ?.
|
static int |
filterCountByCompanyId(long companyId)
Returns the number of user groups that the user has permission to view where companyId = ?.
|
static int |
filterCountByU_C_P(long userGroupId,
long companyId,
long parentUserGroupId)
Returns the number of user groups that the user has permission to view where userGroupId > ? and companyId = ? and parentUserGroupId = ?.
|
static int |
filterCountByUuid_C(String uuid,
long companyId)
Returns the number of user groups that the user has permission to view where uuid = ? and companyId = ?.
|
static int |
filterCountByUuid(String uuid)
Returns the number of user groups that the user has permission to view where uuid = ?.
|
static UserGroup[] |
filterFindByC_LikeN_PrevAndNext(long userGroupId,
long companyId,
String name,
OrderByComparator<UserGroup> orderByComparator)
Returns the user groups before and after the current user group in the ordered set of user groups that the user has permission to view where companyId = ? and name LIKE ?.
|
static List<UserGroup> |
filterFindByC_LikeN(long companyId,
String name)
Returns all the user groups that the user has permission to view where companyId = ? and name LIKE ?.
|
static List<UserGroup> |
filterFindByC_LikeN(long companyId,
String name,
int start,
int end)
Returns a range of all the user groups that the user has permission to view where companyId = ? and name LIKE ?.
|
static List<UserGroup> |
filterFindByC_LikeN(long companyId,
String name,
int start,
int end,
OrderByComparator<UserGroup> orderByComparator)
Returns an ordered range of all the user groups that the user has permissions to view where companyId = ? and name LIKE ?.
|
static UserGroup[] |
filterFindByC_P_PrevAndNext(long userGroupId,
long companyId,
long parentUserGroupId,
OrderByComparator<UserGroup> orderByComparator)
Returns the user groups before and after the current user group in the ordered set of user groups that the user has permission to view where companyId = ? and parentUserGroupId = ?.
|
static List<UserGroup> |
filterFindByC_P(long companyId,
long parentUserGroupId)
Returns all the user groups that the user has permission to view where companyId = ? and parentUserGroupId = ?.
|
static List<UserGroup> |
filterFindByC_P(long companyId,
long parentUserGroupId,
int start,
int end)
Returns a range of all the user groups that the user has permission to view where companyId = ? and parentUserGroupId = ?.
|
static List<UserGroup> |
filterFindByC_P(long companyId,
long parentUserGroupId,
int start,
int end,
OrderByComparator<UserGroup> orderByComparator)
Returns an ordered range of all the user groups that the user has permissions to view where companyId = ? and parentUserGroupId = ?.
|
static UserGroup[] |
filterFindByCompanyId_PrevAndNext(long userGroupId,
long companyId,
OrderByComparator<UserGroup> orderByComparator)
Returns the user groups before and after the current user group in the ordered set of user groups that the user has permission to view where companyId = ?.
|
static List<UserGroup> |
filterFindByCompanyId(long companyId)
Returns all the user groups that the user has permission to view where companyId = ?.
|
static List<UserGroup> |
filterFindByCompanyId(long companyId,
int start,
int end)
Returns a range of all the user groups that the user has permission to view where companyId = ?.
|
static List<UserGroup> |
filterFindByCompanyId(long companyId,
int start,
int end,
OrderByComparator<UserGroup> orderByComparator)
Returns an ordered range of all the user groups that the user has permissions to view where companyId = ?.
|
static List<UserGroup> |
filterFindByU_C_P(long userGroupId,
long companyId,
long parentUserGroupId)
Returns all the user groups that the user has permission to view where userGroupId > ? and companyId = ? and parentUserGroupId = ?.
|
static List<UserGroup> |
filterFindByU_C_P(long userGroupId,
long companyId,
long parentUserGroupId,
int start,
int end)
Returns a range of all the user groups that the user has permission to view where userGroupId > ? and companyId = ? and parentUserGroupId = ?.
|
static List<UserGroup> |
filterFindByU_C_P(long userGroupId,
long companyId,
long parentUserGroupId,
int start,
int end,
OrderByComparator<UserGroup> orderByComparator)
Returns an ordered range of all the user groups that the user has permissions to view where userGroupId > ? and companyId = ? and parentUserGroupId = ?.
|
static UserGroup[] |
filterFindByUuid_C_PrevAndNext(long userGroupId,
String uuid,
long companyId,
OrderByComparator<UserGroup> orderByComparator)
Returns the user groups before and after the current user group in the ordered set of user groups that the user has permission to view where uuid = ? and companyId = ?.
|
static List<UserGroup> |
filterFindByUuid_C(String uuid,
long companyId)
Returns all the user groups that the user has permission to view where uuid = ? and companyId = ?.
|
static List<UserGroup> |
filterFindByUuid_C(String uuid,
long companyId,
int start,
int end)
Returns a range of all the user groups that the user has permission to view where uuid = ? and companyId = ?.
|
static List<UserGroup> |
filterFindByUuid_C(String uuid,
long companyId,
int start,
int end,
OrderByComparator<UserGroup> orderByComparator)
Returns an ordered range of all the user groups that the user has permissions to view where uuid = ? and companyId = ?.
|
static UserGroup[] |
filterFindByUuid_PrevAndNext(long userGroupId,
String uuid,
OrderByComparator<UserGroup> orderByComparator)
Returns the user groups before and after the current user group in the ordered set of user groups that the user has permission to view where uuid = ?.
|
static List<UserGroup> |
filterFindByUuid(String uuid)
Returns all the user groups that the user has permission to view where uuid = ?.
|
static List<UserGroup> |
filterFindByUuid(String uuid,
int start,
int end)
Returns a range of all the user groups that the user has permission to view where uuid = ?.
|
static List<UserGroup> |
filterFindByUuid(String uuid,
int start,
int end,
OrderByComparator<UserGroup> orderByComparator)
Returns an ordered range of all the user groups that the user has permissions to view where uuid = ?.
|
static List<UserGroup> |
findAll()
Returns all the user groups.
|
static List<UserGroup> |
findAll(int start,
int end)
Returns a range of all the user groups.
|
static List<UserGroup> |
findAll(int start,
int end,
OrderByComparator<UserGroup> orderByComparator)
Returns an ordered range of all the user groups.
|
static List<UserGroup> |
findAll(int start,
int end,
OrderByComparator<UserGroup> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the user groups.
|
static UserGroup |
findByC_LikeN_First(long companyId,
String name,
OrderByComparator<UserGroup> orderByComparator)
Returns the first user group in the ordered set where companyId = ? and name LIKE ?.
|
static UserGroup |
findByC_LikeN_Last(long companyId,
String name,
OrderByComparator<UserGroup> orderByComparator)
Returns the last user group in the ordered set where companyId = ? and name LIKE ?.
|
static UserGroup[] |
findByC_LikeN_PrevAndNext(long userGroupId,
long companyId,
String name,
OrderByComparator<UserGroup> orderByComparator)
Returns the user groups before and after the current user group in the ordered set where companyId = ? and name LIKE ?.
|
static List<UserGroup> |
findByC_LikeN(long companyId,
String name)
Returns all the user groups where companyId = ? and name LIKE ?.
|
static List<UserGroup> |
findByC_LikeN(long companyId,
String name,
int start,
int end)
Returns a range of all the user groups where companyId = ? and name LIKE ?.
|
static List<UserGroup> |
findByC_LikeN(long companyId,
String name,
int start,
int end,
OrderByComparator<UserGroup> orderByComparator)
Returns an ordered range of all the user groups where companyId = ? and name LIKE ?.
|
static List<UserGroup> |
findByC_LikeN(long companyId,
String name,
int start,
int end,
OrderByComparator<UserGroup> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the user groups where companyId = ? and name LIKE ?.
|
static UserGroup |
findByC_N(long companyId,
String name)
Returns the user group where companyId = ? and name = ? or throws a
NoSuchUserGroupException if it could not be found. |
static UserGroup |
findByC_P_First(long companyId,
long parentUserGroupId,
OrderByComparator<UserGroup> orderByComparator)
Returns the first user group in the ordered set where companyId = ? and parentUserGroupId = ?.
|
static UserGroup |
findByC_P_Last(long companyId,
long parentUserGroupId,
OrderByComparator<UserGroup> orderByComparator)
Returns the last user group in the ordered set where companyId = ? and parentUserGroupId = ?.
|
static UserGroup[] |
findByC_P_PrevAndNext(long userGroupId,
long companyId,
long parentUserGroupId,
OrderByComparator<UserGroup> orderByComparator)
Returns the user groups before and after the current user group in the ordered set where companyId = ? and parentUserGroupId = ?.
|
static List<UserGroup> |
findByC_P(long companyId,
long parentUserGroupId)
Returns all the user groups where companyId = ? and parentUserGroupId = ?.
|
static List<UserGroup> |
findByC_P(long companyId,
long parentUserGroupId,
int start,
int end)
Returns a range of all the user groups where companyId = ? and parentUserGroupId = ?.
|
static List<UserGroup> |
findByC_P(long companyId,
long parentUserGroupId,
int start,
int end,
OrderByComparator<UserGroup> orderByComparator)
Returns an ordered range of all the user groups where companyId = ? and parentUserGroupId = ?.
|
static List<UserGroup> |
findByC_P(long companyId,
long parentUserGroupId,
int start,
int end,
OrderByComparator<UserGroup> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the user groups where companyId = ? and parentUserGroupId = ?.
|
static UserGroup |
findByCompanyId_First(long companyId,
OrderByComparator<UserGroup> orderByComparator)
Returns the first user group in the ordered set where companyId = ?.
|
static UserGroup |
findByCompanyId_Last(long companyId,
OrderByComparator<UserGroup> orderByComparator)
Returns the last user group in the ordered set where companyId = ?.
|
static UserGroup[] |
findByCompanyId_PrevAndNext(long userGroupId,
long companyId,
OrderByComparator<UserGroup> orderByComparator)
Returns the user groups before and after the current user group in the ordered set where companyId = ?.
|
static List<UserGroup> |
findByCompanyId(long companyId)
Returns all the user groups where companyId = ?.
|
static List<UserGroup> |
findByCompanyId(long companyId,
int start,
int end)
Returns a range of all the user groups where companyId = ?.
|
static List<UserGroup> |
findByCompanyId(long companyId,
int start,
int end,
OrderByComparator<UserGroup> orderByComparator)
Returns an ordered range of all the user groups where companyId = ?.
|
static List<UserGroup> |
findByCompanyId(long companyId,
int start,
int end,
OrderByComparator<UserGroup> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the user groups where companyId = ?.
|
static UserGroup |
findByPrimaryKey(long userGroupId)
Returns the user group with the primary key or throws a
NoSuchUserGroupException if it could not be found. |
static UserGroup |
findByU_C_P_First(long userGroupId,
long companyId,
long parentUserGroupId,
OrderByComparator<UserGroup> orderByComparator)
Returns the first user group in the ordered set where userGroupId > ? and companyId = ? and parentUserGroupId = ?.
|
static UserGroup |
findByU_C_P_Last(long userGroupId,
long companyId,
long parentUserGroupId,
OrderByComparator<UserGroup> orderByComparator)
Returns the last user group in the ordered set where userGroupId > ? and companyId = ? and parentUserGroupId = ?.
|
static List<UserGroup> |
findByU_C_P(long userGroupId,
long companyId,
long parentUserGroupId)
Returns all the user groups where userGroupId > ? and companyId = ? and parentUserGroupId = ?.
|
static List<UserGroup> |
findByU_C_P(long userGroupId,
long companyId,
long parentUserGroupId,
int start,
int end)
Returns a range of all the user groups where userGroupId > ? and companyId = ? and parentUserGroupId = ?.
|
static List<UserGroup> |
findByU_C_P(long userGroupId,
long companyId,
long parentUserGroupId,
int start,
int end,
OrderByComparator<UserGroup> orderByComparator)
Returns an ordered range of all the user groups where userGroupId > ? and companyId = ? and parentUserGroupId = ?.
|
static List<UserGroup> |
findByU_C_P(long userGroupId,
long companyId,
long parentUserGroupId,
int start,
int end,
OrderByComparator<UserGroup> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the user groups where userGroupId > ? and companyId = ? and parentUserGroupId = ?.
|
static UserGroup |
findByUuid_C_First(String uuid,
long companyId,
OrderByComparator<UserGroup> orderByComparator)
Returns the first user group in the ordered set where uuid = ? and companyId = ?.
|
static UserGroup |
findByUuid_C_Last(String uuid,
long companyId,
OrderByComparator<UserGroup> orderByComparator)
Returns the last user group in the ordered set where uuid = ? and companyId = ?.
|
static UserGroup[] |
findByUuid_C_PrevAndNext(long userGroupId,
String uuid,
long companyId,
OrderByComparator<UserGroup> orderByComparator)
Returns the user groups before and after the current user group in the ordered set where uuid = ? and companyId = ?.
|
static List<UserGroup> |
findByUuid_C(String uuid,
long companyId)
Returns all the user groups where uuid = ? and companyId = ?.
|
static List<UserGroup> |
findByUuid_C(String uuid,
long companyId,
int start,
int end)
Returns a range of all the user groups where uuid = ? and companyId = ?.
|
static List<UserGroup> |
findByUuid_C(String uuid,
long companyId,
int start,
int end,
OrderByComparator<UserGroup> orderByComparator)
Returns an ordered range of all the user groups where uuid = ? and companyId = ?.
|
static List<UserGroup> |
findByUuid_C(String uuid,
long companyId,
int start,
int end,
OrderByComparator<UserGroup> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the user groups where uuid = ? and companyId = ?.
|
static UserGroup |
findByUuid_First(String uuid,
OrderByComparator<UserGroup> orderByComparator)
Returns the first user group in the ordered set where uuid = ?.
|
static UserGroup |
findByUuid_Last(String uuid,
OrderByComparator<UserGroup> orderByComparator)
Returns the last user group in the ordered set where uuid = ?.
|
static UserGroup[] |
findByUuid_PrevAndNext(long userGroupId,
String uuid,
OrderByComparator<UserGroup> orderByComparator)
Returns the user groups before and after the current user group in the ordered set where uuid = ?.
|
static List<UserGroup> |
findByUuid(String uuid)
Returns all the user groups where uuid = ?.
|
static List<UserGroup> |
findByUuid(String uuid,
int start,
int end)
Returns a range of all the user groups where uuid = ?.
|
static List<UserGroup> |
findByUuid(String uuid,
int start,
int end,
OrderByComparator<UserGroup> orderByComparator)
Returns an ordered range of all the user groups where uuid = ?.
|
static List<UserGroup> |
findByUuid(String uuid,
int start,
int end,
OrderByComparator<UserGroup> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the user groups where uuid = ?.
|
static List<UserGroup> |
findWithDynamicQuery(DynamicQuery dynamicQuery) |
static List<UserGroup> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end) |
static List<UserGroup> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator<UserGroup> orderByComparator) |
static Set<String> |
getBadColumnNames() |
static long[] |
getGroupPrimaryKeys(long pk)
Returns the primaryKeys of groups associated with the user group.
|
static List<Group> |
getGroups(long pk)
Returns all the groups associated with the user group.
|
static List<Group> |
getGroups(long pk,
int start,
int end)
Returns a range of all the groups associated with the user group.
|
static List<Group> |
getGroups(long pk,
int start,
int end,
OrderByComparator<Group> orderByComparator)
Returns an ordered range of all the groups associated with the user group.
|
static int |
getGroupsSize(long pk)
Returns the number of groups associated with the user group.
|
static UserGroupPersistence |
getPersistence() |
static long[] |
getTeamPrimaryKeys(long pk)
Returns the primaryKeys of teams associated with the user group.
|
static List<Team> |
getTeams(long pk)
Returns all the teams associated with the user group.
|
static List<Team> |
getTeams(long pk,
int start,
int end)
Returns a range of all the teams associated with the user group.
|
static List<Team> |
getTeams(long pk,
int start,
int end,
OrderByComparator<Team> orderByComparator)
Returns an ordered range of all the teams associated with the user group.
|
static int |
getTeamsSize(long pk)
Returns the number of teams associated with the user group.
|
static long[] |
getUserPrimaryKeys(long pk)
Returns the primaryKeys of users associated with the user group.
|
static List<User> |
getUsers(long pk)
Returns all the users associated with the user group.
|
static List<User> |
getUsers(long pk,
int start,
int end)
Returns a range of all the users associated with the user group.
|
static List<User> |
getUsers(long pk,
int start,
int end,
OrderByComparator<User> orderByComparator)
Returns an ordered range of all the users associated with the user group.
|
static int |
getUsersSize(long pk)
Returns the number of users associated with the user group.
|
static UserGroup |
remove(long userGroupId)
Removes the user group with the primary key from the database.
|
static void |
removeAll()
Removes all the user groups from the database.
|
static void |
removeByC_LikeN(long companyId,
String name)
Removes all the user groups where companyId = ? and name LIKE ? from the database.
|
static UserGroup |
removeByC_N(long companyId,
String name)
Removes the user group where companyId = ? and name = ? from the database.
|
static void |
removeByC_P(long companyId,
long parentUserGroupId)
Removes all the user groups where companyId = ? and parentUserGroupId = ? from the database.
|
static void |
removeByCompanyId(long companyId)
Removes all the user groups where companyId = ? from the database.
|
static void |
removeByU_C_P(long userGroupId,
long companyId,
long parentUserGroupId)
Removes all the user groups where userGroupId > ? and companyId = ? and parentUserGroupId = ? from the database.
|
static void |
removeByUuid_C(String uuid,
long companyId)
Removes all the user groups where uuid = ? and companyId = ? from the database.
|
static void |
removeByUuid(String uuid)
Removes all the user groups where uuid = ? from the database.
|
static void |
removeGroup(long pk,
Group group)
Removes the association between the user group and the group.
|
static void |
removeGroup(long pk,
long groupPK)
Removes the association between the user group and the group.
|
static void |
removeGroups(long pk,
List<Group> groups)
Removes the association between the user group and the groups.
|
static void |
removeGroups(long pk,
long[] groupPKs)
Removes the association between the user group and the groups.
|
static void |
removeTeam(long pk,
long teamPK)
Removes the association between the user group and the team.
|
static void |
removeTeam(long pk,
Team team)
Removes the association between the user group and the team.
|
static void |
removeTeams(long pk,
List<Team> teams)
Removes the association between the user group and the teams.
|
static void |
removeTeams(long pk,
long[] teamPKs)
Removes the association between the user group and the teams.
|
static void |
removeUser(long pk,
long userPK)
Removes the association between the user group and the user.
|
static void |
removeUser(long pk,
User user)
Removes the association between the user group and the user.
|
static void |
removeUsers(long pk,
List<User> users)
Removes the association between the user group and the users.
|
static void |
removeUsers(long pk,
long[] userPKs)
Removes the association between the user group and the users.
|
static void |
setGroups(long pk,
List<Group> groups)
Sets the groups associated with the user group, removing and adding associations as necessary.
|
static void |
setGroups(long pk,
long[] groupPKs)
Sets the groups associated with the user group, removing and adding associations as necessary.
|
static void |
setTeams(long pk,
List<Team> teams)
Sets the teams associated with the user group, removing and adding associations as necessary.
|
static void |
setTeams(long pk,
long[] teamPKs)
Sets the teams associated with the user group, removing and adding associations as necessary.
|
static void |
setUsers(long pk,
List<User> users)
Sets the users associated with the user group, removing and adding associations as necessary.
|
static void |
setUsers(long pk,
long[] userPKs)
Sets the users associated with the user group, removing and adding associations as necessary.
|
static UserGroup |
update(UserGroup userGroup) |
static UserGroup |
update(UserGroup userGroup,
ServiceContext serviceContext) |
static UserGroup |
updateImpl(UserGroup userGroup) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(UserGroup userGroup)
public static long countWithDynamicQuery(DynamicQuery dynamicQuery)
public static List<UserGroup> findWithDynamicQuery(DynamicQuery dynamicQuery)
public static List<UserGroup> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end)
public static List<UserGroup> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<UserGroup> orderByComparator)
public static UserGroup update(UserGroup userGroup, ServiceContext serviceContext)
public static List<UserGroup> findByUuid(String uuid)
uuid
- the uuidpublic static List<UserGroup> findByUuid(String uuid, 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from UserGroupModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
uuid
- the uuidstart
- the lower bound of the range of user groupsend
- the upper bound of the range of user groups (not inclusive)public static List<UserGroup> findByUuid(String uuid, int start, int end, OrderByComparator<UserGroup> 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from UserGroupModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
uuid
- the uuidstart
- the lower bound of the range of user groupsend
- the upper bound of the range of user groups (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static List<UserGroup> findByUuid(String uuid, int start, int end, OrderByComparator<UserGroup> orderByComparator, boolean retrieveFromCache)
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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from UserGroupModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
uuid
- the uuidstart
- the lower bound of the range of user groupsend
- the upper bound of the range of user groups (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static UserGroup findByUuid_First(String uuid, OrderByComparator<UserGroup> orderByComparator) throws NoSuchUserGroupException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchUserGroupException
- if a matching user group could not be foundpublic static UserGroup fetchByUuid_First(String uuid, OrderByComparator<UserGroup> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching user group could not be foundpublic static UserGroup findByUuid_Last(String uuid, OrderByComparator<UserGroup> orderByComparator) throws NoSuchUserGroupException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchUserGroupException
- if a matching user group could not be foundpublic static UserGroup fetchByUuid_Last(String uuid, OrderByComparator<UserGroup> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching user group could not be foundpublic static UserGroup[] findByUuid_PrevAndNext(long userGroupId, String uuid, OrderByComparator<UserGroup> orderByComparator) throws NoSuchUserGroupException
userGroupId
- the primary key of the current user groupuuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchUserGroupException
- if a user group with the primary key could not be foundpublic static List<UserGroup> filterFindByUuid(String uuid)
uuid
- the uuidpublic static List<UserGroup> filterFindByUuid(String uuid, 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from UserGroupModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
uuid
- the uuidstart
- the lower bound of the range of user groupsend
- the upper bound of the range of user groups (not inclusive)public static List<UserGroup> filterFindByUuid(String uuid, int start, int end, OrderByComparator<UserGroup> 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from UserGroupModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
uuid
- the uuidstart
- the lower bound of the range of user groupsend
- the upper bound of the range of user groups (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static UserGroup[] filterFindByUuid_PrevAndNext(long userGroupId, String uuid, OrderByComparator<UserGroup> orderByComparator) throws NoSuchUserGroupException
userGroupId
- the primary key of the current user groupuuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchUserGroupException
- if a user group with the primary key could not be foundpublic static void removeByUuid(String uuid)
uuid
- the uuidpublic static int countByUuid(String uuid)
uuid
- the uuidpublic static int filterCountByUuid(String uuid)
uuid
- the uuidpublic static List<UserGroup> findByUuid_C(String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static List<UserGroup> findByUuid_C(String uuid, 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from UserGroupModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of user groupsend
- the upper bound of the range of user groups (not inclusive)public static List<UserGroup> findByUuid_C(String uuid, long companyId, int start, int end, OrderByComparator<UserGroup> 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from UserGroupModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of user groupsend
- the upper bound of the range of user groups (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static List<UserGroup> findByUuid_C(String uuid, long companyId, int start, int end, OrderByComparator<UserGroup> orderByComparator, boolean retrieveFromCache)
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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from UserGroupModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of user groupsend
- the upper bound of the range of user groups (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static UserGroup findByUuid_C_First(String uuid, long companyId, OrderByComparator<UserGroup> orderByComparator) throws NoSuchUserGroupException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchUserGroupException
- if a matching user group could not be foundpublic static UserGroup fetchByUuid_C_First(String uuid, long companyId, OrderByComparator<UserGroup> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching user group could not be foundpublic static UserGroup findByUuid_C_Last(String uuid, long companyId, OrderByComparator<UserGroup> orderByComparator) throws NoSuchUserGroupException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchUserGroupException
- if a matching user group could not be foundpublic static UserGroup fetchByUuid_C_Last(String uuid, long companyId, OrderByComparator<UserGroup> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching user group could not be foundpublic static UserGroup[] findByUuid_C_PrevAndNext(long userGroupId, String uuid, long companyId, OrderByComparator<UserGroup> orderByComparator) throws NoSuchUserGroupException
userGroupId
- the primary key of the current user groupuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchUserGroupException
- if a user group with the primary key could not be foundpublic static List<UserGroup> filterFindByUuid_C(String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static List<UserGroup> filterFindByUuid_C(String uuid, 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from UserGroupModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of user groupsend
- the upper bound of the range of user groups (not inclusive)public static List<UserGroup> filterFindByUuid_C(String uuid, long companyId, int start, int end, OrderByComparator<UserGroup> 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from UserGroupModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of user groupsend
- the upper bound of the range of user groups (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static UserGroup[] filterFindByUuid_C_PrevAndNext(long userGroupId, String uuid, long companyId, OrderByComparator<UserGroup> orderByComparator) throws NoSuchUserGroupException
userGroupId
- the primary key of the current user groupuuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchUserGroupException
- if a user group with the primary key could not be foundpublic static void removeByUuid_C(String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static int countByUuid_C(String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static int filterCountByUuid_C(String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDpublic static List<UserGroup> findByCompanyId(long companyId)
companyId
- the company IDpublic static List<UserGroup> 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from UserGroupModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
companyId
- the company IDstart
- the lower bound of the range of user groupsend
- the upper bound of the range of user groups (not inclusive)public static List<UserGroup> findByCompanyId(long companyId, int start, int end, OrderByComparator<UserGroup> 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from UserGroupModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
companyId
- the company IDstart
- the lower bound of the range of user groupsend
- the upper bound of the range of user groups (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static List<UserGroup> findByCompanyId(long companyId, int start, int end, OrderByComparator<UserGroup> orderByComparator, boolean retrieveFromCache)
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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from UserGroupModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
companyId
- the company IDstart
- the lower bound of the range of user groupsend
- the upper bound of the range of user groups (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static UserGroup findByCompanyId_First(long companyId, OrderByComparator<UserGroup> orderByComparator) throws NoSuchUserGroupException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchUserGroupException
- if a matching user group could not be foundpublic static UserGroup fetchByCompanyId_First(long companyId, OrderByComparator<UserGroup> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching user group could not be foundpublic static UserGroup findByCompanyId_Last(long companyId, OrderByComparator<UserGroup> orderByComparator) throws NoSuchUserGroupException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchUserGroupException
- if a matching user group could not be foundpublic static UserGroup fetchByCompanyId_Last(long companyId, OrderByComparator<UserGroup> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching user group could not be foundpublic static UserGroup[] findByCompanyId_PrevAndNext(long userGroupId, long companyId, OrderByComparator<UserGroup> orderByComparator) throws NoSuchUserGroupException
userGroupId
- the primary key of the current user groupcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchUserGroupException
- if a user group with the primary key could not be foundpublic static List<UserGroup> filterFindByCompanyId(long companyId)
companyId
- the company IDpublic static List<UserGroup> filterFindByCompanyId(long companyId, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from UserGroupModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
companyId
- the company IDstart
- the lower bound of the range of user groupsend
- the upper bound of the range of user groups (not inclusive)public static List<UserGroup> filterFindByCompanyId(long companyId, int start, int end, OrderByComparator<UserGroup> 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from UserGroupModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
companyId
- the company IDstart
- the lower bound of the range of user groupsend
- the upper bound of the range of user groups (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static UserGroup[] filterFindByCompanyId_PrevAndNext(long userGroupId, long companyId, OrderByComparator<UserGroup> orderByComparator) throws NoSuchUserGroupException
userGroupId
- the primary key of the current user groupcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchUserGroupException
- if a user group with the primary key could not be foundpublic static void removeByCompanyId(long companyId)
companyId
- the company IDpublic static int countByCompanyId(long companyId)
companyId
- the company IDpublic static int filterCountByCompanyId(long companyId)
companyId
- the company IDpublic static List<UserGroup> findByC_P(long companyId, long parentUserGroupId)
companyId
- the company IDparentUserGroupId
- the parent user group IDpublic static List<UserGroup> findByC_P(long companyId, long parentUserGroupId, 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from UserGroupModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
companyId
- the company IDparentUserGroupId
- the parent user group IDstart
- the lower bound of the range of user groupsend
- the upper bound of the range of user groups (not inclusive)public static List<UserGroup> findByC_P(long companyId, long parentUserGroupId, int start, int end, OrderByComparator<UserGroup> 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from UserGroupModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
companyId
- the company IDparentUserGroupId
- the parent user group IDstart
- the lower bound of the range of user groupsend
- the upper bound of the range of user groups (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static List<UserGroup> findByC_P(long companyId, long parentUserGroupId, int start, int end, OrderByComparator<UserGroup> orderByComparator, boolean retrieveFromCache)
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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from UserGroupModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
companyId
- the company IDparentUserGroupId
- the parent user group IDstart
- the lower bound of the range of user groupsend
- the upper bound of the range of user groups (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static UserGroup findByC_P_First(long companyId, long parentUserGroupId, OrderByComparator<UserGroup> orderByComparator) throws NoSuchUserGroupException
companyId
- the company IDparentUserGroupId
- the parent user group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchUserGroupException
- if a matching user group could not be foundpublic static UserGroup fetchByC_P_First(long companyId, long parentUserGroupId, OrderByComparator<UserGroup> orderByComparator)
companyId
- the company IDparentUserGroupId
- the parent user group IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching user group could not be foundpublic static UserGroup findByC_P_Last(long companyId, long parentUserGroupId, OrderByComparator<UserGroup> orderByComparator) throws NoSuchUserGroupException
companyId
- the company IDparentUserGroupId
- the parent user group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchUserGroupException
- if a matching user group could not be foundpublic static UserGroup fetchByC_P_Last(long companyId, long parentUserGroupId, OrderByComparator<UserGroup> orderByComparator)
companyId
- the company IDparentUserGroupId
- the parent user group IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching user group could not be foundpublic static UserGroup[] findByC_P_PrevAndNext(long userGroupId, long companyId, long parentUserGroupId, OrderByComparator<UserGroup> orderByComparator) throws NoSuchUserGroupException
userGroupId
- the primary key of the current user groupcompanyId
- the company IDparentUserGroupId
- the parent user group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchUserGroupException
- if a user group with the primary key could not be foundpublic static List<UserGroup> filterFindByC_P(long companyId, long parentUserGroupId)
companyId
- the company IDparentUserGroupId
- the parent user group IDpublic static List<UserGroup> filterFindByC_P(long companyId, long parentUserGroupId, 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from UserGroupModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
companyId
- the company IDparentUserGroupId
- the parent user group IDstart
- the lower bound of the range of user groupsend
- the upper bound of the range of user groups (not inclusive)public static List<UserGroup> filterFindByC_P(long companyId, long parentUserGroupId, int start, int end, OrderByComparator<UserGroup> 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from UserGroupModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
companyId
- the company IDparentUserGroupId
- the parent user group IDstart
- the lower bound of the range of user groupsend
- the upper bound of the range of user groups (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static UserGroup[] filterFindByC_P_PrevAndNext(long userGroupId, long companyId, long parentUserGroupId, OrderByComparator<UserGroup> orderByComparator) throws NoSuchUserGroupException
userGroupId
- the primary key of the current user groupcompanyId
- the company IDparentUserGroupId
- the parent user group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchUserGroupException
- if a user group with the primary key could not be foundpublic static void removeByC_P(long companyId, long parentUserGroupId)
companyId
- the company IDparentUserGroupId
- the parent user group IDpublic static int countByC_P(long companyId, long parentUserGroupId)
companyId
- the company IDparentUserGroupId
- the parent user group IDpublic static int filterCountByC_P(long companyId, long parentUserGroupId)
companyId
- the company IDparentUserGroupId
- the parent user group IDpublic static UserGroup findByC_N(long companyId, String name) throws NoSuchUserGroupException
NoSuchUserGroupException
if it could not be found.companyId
- the company IDname
- the nameNoSuchUserGroupException
- if a matching user group could not be foundpublic static UserGroup fetchByC_N(long companyId, String name)
null
if it could not be found. Uses the finder cache.companyId
- the company IDname
- the namenull
if a matching user group could not be foundpublic static UserGroup fetchByC_N(long companyId, String name, boolean retrieveFromCache)
null
if it could not be found, optionally using the finder cache.companyId
- the company IDname
- the nameretrieveFromCache
- whether to retrieve from the finder cachenull
if a matching user group could not be foundpublic static UserGroup removeByC_N(long companyId, String name) throws NoSuchUserGroupException
companyId
- the company IDname
- the nameNoSuchUserGroupException
public static int countByC_N(long companyId, String name)
companyId
- the company IDname
- the namepublic static List<UserGroup> findByC_LikeN(long companyId, String name)
companyId
- the company IDname
- the namepublic static List<UserGroup> findByC_LikeN(long companyId, String name, 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from UserGroupModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
companyId
- the company IDname
- the namestart
- the lower bound of the range of user groupsend
- the upper bound of the range of user groups (not inclusive)public static List<UserGroup> findByC_LikeN(long companyId, String name, int start, int end, OrderByComparator<UserGroup> 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from UserGroupModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
companyId
- the company IDname
- the namestart
- the lower bound of the range of user groupsend
- the upper bound of the range of user groups (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static List<UserGroup> findByC_LikeN(long companyId, String name, int start, int end, OrderByComparator<UserGroup> orderByComparator, boolean retrieveFromCache)
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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from UserGroupModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
companyId
- the company IDname
- the namestart
- the lower bound of the range of user groupsend
- the upper bound of the range of user groups (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static UserGroup findByC_LikeN_First(long companyId, String name, OrderByComparator<UserGroup> orderByComparator) throws NoSuchUserGroupException
companyId
- the company IDname
- the nameorderByComparator
- the comparator to order the set by (optionally null
)NoSuchUserGroupException
- if a matching user group could not be foundpublic static UserGroup fetchByC_LikeN_First(long companyId, String name, OrderByComparator<UserGroup> orderByComparator)
companyId
- the company IDname
- the nameorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching user group could not be foundpublic static UserGroup findByC_LikeN_Last(long companyId, String name, OrderByComparator<UserGroup> orderByComparator) throws NoSuchUserGroupException
companyId
- the company IDname
- the nameorderByComparator
- the comparator to order the set by (optionally null
)NoSuchUserGroupException
- if a matching user group could not be foundpublic static UserGroup fetchByC_LikeN_Last(long companyId, String name, OrderByComparator<UserGroup> orderByComparator)
companyId
- the company IDname
- the nameorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching user group could not be foundpublic static UserGroup[] findByC_LikeN_PrevAndNext(long userGroupId, long companyId, String name, OrderByComparator<UserGroup> orderByComparator) throws NoSuchUserGroupException
userGroupId
- the primary key of the current user groupcompanyId
- the company IDname
- the nameorderByComparator
- the comparator to order the set by (optionally null
)NoSuchUserGroupException
- if a user group with the primary key could not be foundpublic static List<UserGroup> filterFindByC_LikeN(long companyId, String name)
companyId
- the company IDname
- the namepublic static List<UserGroup> filterFindByC_LikeN(long companyId, String name, 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from UserGroupModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
companyId
- the company IDname
- the namestart
- the lower bound of the range of user groupsend
- the upper bound of the range of user groups (not inclusive)public static List<UserGroup> filterFindByC_LikeN(long companyId, String name, int start, int end, OrderByComparator<UserGroup> 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from UserGroupModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
companyId
- the company IDname
- the namestart
- the lower bound of the range of user groupsend
- the upper bound of the range of user groups (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static UserGroup[] filterFindByC_LikeN_PrevAndNext(long userGroupId, long companyId, String name, OrderByComparator<UserGroup> orderByComparator) throws NoSuchUserGroupException
userGroupId
- the primary key of the current user groupcompanyId
- the company IDname
- the nameorderByComparator
- the comparator to order the set by (optionally null
)NoSuchUserGroupException
- if a user group with the primary key could not be foundpublic static void removeByC_LikeN(long companyId, String name)
companyId
- the company IDname
- the namepublic static int countByC_LikeN(long companyId, String name)
companyId
- the company IDname
- the namepublic static int filterCountByC_LikeN(long companyId, String name)
companyId
- the company IDname
- the namepublic static List<UserGroup> findByU_C_P(long userGroupId, long companyId, long parentUserGroupId)
userGroupId
- the user group IDcompanyId
- the company IDparentUserGroupId
- the parent user group IDpublic static List<UserGroup> findByU_C_P(long userGroupId, long companyId, long parentUserGroupId, 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from UserGroupModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
userGroupId
- the user group IDcompanyId
- the company IDparentUserGroupId
- the parent user group IDstart
- the lower bound of the range of user groupsend
- the upper bound of the range of user groups (not inclusive)public static List<UserGroup> findByU_C_P(long userGroupId, long companyId, long parentUserGroupId, int start, int end, OrderByComparator<UserGroup> 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from UserGroupModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
userGroupId
- the user group IDcompanyId
- the company IDparentUserGroupId
- the parent user group IDstart
- the lower bound of the range of user groupsend
- the upper bound of the range of user groups (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static List<UserGroup> findByU_C_P(long userGroupId, long companyId, long parentUserGroupId, int start, int end, OrderByComparator<UserGroup> orderByComparator, boolean retrieveFromCache)
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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from UserGroupModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
userGroupId
- the user group IDcompanyId
- the company IDparentUserGroupId
- the parent user group IDstart
- the lower bound of the range of user groupsend
- the upper bound of the range of user groups (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static UserGroup findByU_C_P_First(long userGroupId, long companyId, long parentUserGroupId, OrderByComparator<UserGroup> orderByComparator) throws NoSuchUserGroupException
userGroupId
- the user group IDcompanyId
- the company IDparentUserGroupId
- the parent user group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchUserGroupException
- if a matching user group could not be foundpublic static UserGroup fetchByU_C_P_First(long userGroupId, long companyId, long parentUserGroupId, OrderByComparator<UserGroup> orderByComparator)
userGroupId
- the user group IDcompanyId
- the company IDparentUserGroupId
- the parent user group IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching user group could not be foundpublic static UserGroup findByU_C_P_Last(long userGroupId, long companyId, long parentUserGroupId, OrderByComparator<UserGroup> orderByComparator) throws NoSuchUserGroupException
userGroupId
- the user group IDcompanyId
- the company IDparentUserGroupId
- the parent user group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchUserGroupException
- if a matching user group could not be foundpublic static UserGroup fetchByU_C_P_Last(long userGroupId, long companyId, long parentUserGroupId, OrderByComparator<UserGroup> orderByComparator)
userGroupId
- the user group IDcompanyId
- the company IDparentUserGroupId
- the parent user group IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching user group could not be foundpublic static List<UserGroup> filterFindByU_C_P(long userGroupId, long companyId, long parentUserGroupId)
userGroupId
- the user group IDcompanyId
- the company IDparentUserGroupId
- the parent user group IDpublic static List<UserGroup> filterFindByU_C_P(long userGroupId, long companyId, long parentUserGroupId, 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from UserGroupModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
userGroupId
- the user group IDcompanyId
- the company IDparentUserGroupId
- the parent user group IDstart
- the lower bound of the range of user groupsend
- the upper bound of the range of user groups (not inclusive)public static List<UserGroup> filterFindByU_C_P(long userGroupId, long companyId, long parentUserGroupId, int start, int end, OrderByComparator<UserGroup> 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from UserGroupModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
userGroupId
- the user group IDcompanyId
- the company IDparentUserGroupId
- the parent user group IDstart
- the lower bound of the range of user groupsend
- the upper bound of the range of user groups (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static void removeByU_C_P(long userGroupId, long companyId, long parentUserGroupId)
userGroupId
- the user group IDcompanyId
- the company IDparentUserGroupId
- the parent user group IDpublic static int countByU_C_P(long userGroupId, long companyId, long parentUserGroupId)
userGroupId
- the user group IDcompanyId
- the company IDparentUserGroupId
- the parent user group IDpublic static int filterCountByU_C_P(long userGroupId, long companyId, long parentUserGroupId)
userGroupId
- the user group IDcompanyId
- the company IDparentUserGroupId
- the parent user group IDpublic static void cacheResult(UserGroup userGroup)
userGroup
- the user grouppublic static void cacheResult(List<UserGroup> userGroups)
userGroups
- the user groupspublic static UserGroup create(long userGroupId)
userGroupId
- the primary key for the new user grouppublic static UserGroup remove(long userGroupId) throws NoSuchUserGroupException
userGroupId
- the primary key of the user groupNoSuchUserGroupException
- if a user group with the primary key could not be foundpublic static UserGroup findByPrimaryKey(long userGroupId) throws NoSuchUserGroupException
NoSuchUserGroupException
if it could not be found.userGroupId
- the primary key of the user groupNoSuchUserGroupException
- if a user group with the primary key could not be foundpublic static UserGroup fetchByPrimaryKey(long userGroupId)
null
if it could not be found.userGroupId
- the primary key of the user groupnull
if a user group with the primary key could not be foundpublic static Map<Serializable,UserGroup> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
public static List<UserGroup> findAll()
public static List<UserGroup> 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from UserGroupModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start
- the lower bound of the range of user groupsend
- the upper bound of the range of user groups (not inclusive)public static List<UserGroup> findAll(int start, int end, OrderByComparator<UserGroup> 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from UserGroupModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start
- the lower bound of the range of user groupsend
- the upper bound of the range of user groups (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static List<UserGroup> findAll(int start, int end, OrderByComparator<UserGroup> orderByComparator, boolean retrieveFromCache)
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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from UserGroupModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start
- the lower bound of the range of user groupsend
- the upper bound of the range of user groups (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static void removeAll()
public static int countAll()
public static long[] getGroupPrimaryKeys(long pk)
pk
- the primary key of the user grouppublic static List<Group> getGroups(long pk)
pk
- the primary key of the user grouppublic static List<Group> getGroups(long pk, 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from UserGroupModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
pk
- the primary key of the user groupstart
- the lower bound of the range of user groupsend
- the upper bound of the range of user groups (not inclusive)public static List<Group> getGroups(long pk, int start, int end, OrderByComparator<Group> 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from UserGroupModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
pk
- the primary key of the user groupstart
- the lower bound of the range of user groupsend
- the upper bound of the range of user groups (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static int getGroupsSize(long pk)
pk
- the primary key of the user grouppublic static boolean containsGroup(long pk, long groupPK)
true
if the group is associated with the user group.pk
- the primary key of the user groupgroupPK
- the primary key of the grouptrue
if the group is associated with the user group; false
otherwisepublic static boolean containsGroups(long pk)
true
if the user group has any groups associated with it.pk
- the primary key of the user group to check for associations with groupstrue
if the user group has any groups associated with it; false
otherwisepublic static void addGroup(long pk, long groupPK)
pk
- the primary key of the user groupgroupPK
- the primary key of the grouppublic static void addGroup(long pk, Group group)
pk
- the primary key of the user groupgroup
- the grouppublic static void addGroups(long pk, long[] groupPKs)
pk
- the primary key of the user groupgroupPKs
- the primary keys of the groupspublic static void addGroups(long pk, List<Group> groups)
pk
- the primary key of the user groupgroups
- the groupspublic static void clearGroups(long pk)
pk
- the primary key of the user group to clear the associated groups frompublic static void removeGroup(long pk, long groupPK)
pk
- the primary key of the user groupgroupPK
- the primary key of the grouppublic static void removeGroup(long pk, Group group)
pk
- the primary key of the user groupgroup
- the grouppublic static void removeGroups(long pk, long[] groupPKs)
pk
- the primary key of the user groupgroupPKs
- the primary keys of the groupspublic static void removeGroups(long pk, List<Group> groups)
pk
- the primary key of the user groupgroups
- the groupspublic static void setGroups(long pk, long[] groupPKs)
pk
- the primary key of the user groupgroupPKs
- the primary keys of the groups to be associated with the user grouppublic static void setGroups(long pk, List<Group> groups)
pk
- the primary key of the user groupgroups
- the groups to be associated with the user grouppublic static long[] getTeamPrimaryKeys(long pk)
pk
- the primary key of the user grouppublic static List<Team> getTeams(long pk)
pk
- the primary key of the user grouppublic static List<Team> getTeams(long pk, 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from UserGroupModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
pk
- the primary key of the user groupstart
- the lower bound of the range of user groupsend
- the upper bound of the range of user groups (not inclusive)public static List<Team> getTeams(long pk, int start, int end, OrderByComparator<Team> 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from UserGroupModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
pk
- the primary key of the user groupstart
- the lower bound of the range of user groupsend
- the upper bound of the range of user groups (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static int getTeamsSize(long pk)
pk
- the primary key of the user grouppublic static boolean containsTeam(long pk, long teamPK)
true
if the team is associated with the user group.pk
- the primary key of the user groupteamPK
- the primary key of the teamtrue
if the team is associated with the user group; false
otherwisepublic static boolean containsTeams(long pk)
true
if the user group has any teams associated with it.pk
- the primary key of the user group to check for associations with teamstrue
if the user group has any teams associated with it; false
otherwisepublic static void addTeam(long pk, long teamPK)
pk
- the primary key of the user groupteamPK
- the primary key of the teampublic static void addTeam(long pk, Team team)
pk
- the primary key of the user groupteam
- the teampublic static void addTeams(long pk, long[] teamPKs)
pk
- the primary key of the user groupteamPKs
- the primary keys of the teamspublic static void addTeams(long pk, List<Team> teams)
pk
- the primary key of the user groupteams
- the teamspublic static void clearTeams(long pk)
pk
- the primary key of the user group to clear the associated teams frompublic static void removeTeam(long pk, long teamPK)
pk
- the primary key of the user groupteamPK
- the primary key of the teampublic static void removeTeam(long pk, Team team)
pk
- the primary key of the user groupteam
- the teampublic static void removeTeams(long pk, long[] teamPKs)
pk
- the primary key of the user groupteamPKs
- the primary keys of the teamspublic static void removeTeams(long pk, List<Team> teams)
pk
- the primary key of the user groupteams
- the teamspublic static void setTeams(long pk, long[] teamPKs)
pk
- the primary key of the user groupteamPKs
- the primary keys of the teams to be associated with the user grouppublic static void setTeams(long pk, List<Team> teams)
pk
- the primary key of the user groupteams
- the teams to be associated with the user grouppublic static long[] getUserPrimaryKeys(long pk)
pk
- the primary key of the user grouppublic static List<User> getUsers(long pk)
pk
- the primary key of the user grouppublic static List<User> getUsers(long pk, 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from UserGroupModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
pk
- the primary key of the user groupstart
- the lower bound of the range of user groupsend
- the upper bound of the range of user groups (not inclusive)public static List<User> getUsers(long pk, int start, int end, OrderByComparator<User> 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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from UserGroupModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
pk
- the primary key of the user groupstart
- the lower bound of the range of user groupsend
- the upper bound of the range of user groups (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static int getUsersSize(long pk)
pk
- the primary key of the user grouppublic static boolean containsUser(long pk, long userPK)
true
if the user is associated with the user group.pk
- the primary key of the user groupuserPK
- the primary key of the usertrue
if the user is associated with the user group; false
otherwisepublic static boolean containsUsers(long pk)
true
if the user group has any users associated with it.pk
- the primary key of the user group to check for associations with userstrue
if the user group has any users associated with it; false
otherwisepublic static void addUser(long pk, long userPK)
pk
- the primary key of the user groupuserPK
- the primary key of the userpublic static void addUser(long pk, User user)
pk
- the primary key of the user groupuser
- the userpublic static void addUsers(long pk, long[] userPKs)
pk
- the primary key of the user groupuserPKs
- the primary keys of the userspublic static void addUsers(long pk, List<User> users)
pk
- the primary key of the user groupusers
- the userspublic static void clearUsers(long pk)
pk
- the primary key of the user group to clear the associated users frompublic static void removeUser(long pk, long userPK)
pk
- the primary key of the user groupuserPK
- the primary key of the userpublic static void removeUser(long pk, User user)
pk
- the primary key of the user groupuser
- the userpublic static void removeUsers(long pk, long[] userPKs)
pk
- the primary key of the user groupuserPKs
- the primary keys of the userspublic static void removeUsers(long pk, List<User> users)
pk
- the primary key of the user groupusers
- the userspublic static void setUsers(long pk, long[] userPKs)
pk
- the primary key of the user groupuserPKs
- the primary keys of the users to be associated with the user grouppublic static void setUsers(long pk, List<User> users)
pk
- the primary key of the user groupusers
- the users to be associated with the user grouppublic static Set<String> getBadColumnNames()
public static UserGroupPersistence getPersistence()