@ProviderType
public class UserUtil
extends java.lang.Object
UserPersistenceImpl 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
UserPersistence,
UserPersistenceImpl| Constructor and Description |
|---|
UserUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addGroup(long pk,
Group group)
Adds an association between the user and the group.
|
static void |
addGroup(long pk,
long groupPK)
Adds an association between the user and the group.
|
static void |
addGroups(long pk,
java.util.List<Group> groups)
Adds an association between the user and the groups.
|
static void |
addGroups(long pk,
long[] groupPKs)
Adds an association between the user and the groups.
|
static void |
addOrganization(long pk,
long organizationPK)
Adds an association between the user and the organization.
|
static void |
addOrganization(long pk,
Organization organization)
Adds an association between the user and the organization.
|
static void |
addOrganizations(long pk,
java.util.List<Organization> organizations)
Adds an association between the user and the organizations.
|
static void |
addOrganizations(long pk,
long[] organizationPKs)
Adds an association between the user and the organizations.
|
static void |
addRole(long pk,
long rolePK)
Adds an association between the user and the role.
|
static void |
addRole(long pk,
Role role)
Adds an association between the user and the role.
|
static void |
addRoles(long pk,
java.util.List<Role> roles)
Adds an association between the user and the roles.
|
static void |
addRoles(long pk,
long[] rolePKs)
Adds an association between the user and the roles.
|
static void |
addTeam(long pk,
long teamPK)
Adds an association between the user and the team.
|
static void |
addTeam(long pk,
Team team)
Adds an association between the user and the team.
|
static void |
addTeams(long pk,
java.util.List<Team> teams)
Adds an association between the user and the teams.
|
static void |
addTeams(long pk,
long[] teamPKs)
Adds an association between the user and the teams.
|
static void |
addUserGroup(long pk,
long userGroupPK)
Adds an association between the user and the user group.
|
static void |
addUserGroup(long pk,
UserGroup userGroup)
Adds an association between the user and the user group.
|
static void |
addUserGroups(long pk,
java.util.List<UserGroup> userGroups)
Adds an association between the user and the user groups.
|
static void |
addUserGroups(long pk,
long[] userGroupPKs)
Adds an association between the user and the user groups.
|
static void |
cacheResult(java.util.List<User> users)
Caches the users in the entity cache if it is enabled.
|
static void |
cacheResult(User user)
Caches the user in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(User user) |
static void |
clearGroups(long pk)
Clears all associations between the user and its groups.
|
static void |
clearOrganizations(long pk)
Clears all associations between the user and its organizations.
|
static void |
clearRoles(long pk)
Clears all associations between the user and its roles.
|
static void |
clearTeams(long pk)
Clears all associations between the user and its teams.
|
static void |
clearUserGroups(long pk)
Clears all associations between the user and its user groups.
|
static boolean |
containsGroup(long pk,
long groupPK)
Returns
true if the group is associated with the user. |
static boolean |
containsGroups(long pk)
Returns
true if the user has any groups associated with it. |
static boolean |
containsOrganization(long pk,
long organizationPK)
Returns
true if the organization is associated with the user. |
static boolean |
containsOrganizations(long pk)
Returns
true if the user has any organizations associated with it. |
static boolean |
containsRole(long pk,
long rolePK)
Returns
true if the role is associated with the user. |
static boolean |
containsRoles(long pk)
Returns
true if the user has any roles associated with it. |
static boolean |
containsTeam(long pk,
long teamPK)
Returns
true if the team is associated with the user. |
static boolean |
containsTeams(long pk)
Returns
true if the user has any teams associated with it. |
static boolean |
containsUserGroup(long pk,
long userGroupPK)
Returns
true if the user group is associated with the user. |
static boolean |
containsUserGroups(long pk)
Returns
true if the user has any user groups associated with it. |
static int |
countAll()
Returns the number of users.
|
static int |
countByC_CD_MD(long companyId,
java.util.Date createDate,
java.util.Date modifiedDate)
Returns the number of users where companyId = ? and createDate = ? and modifiedDate = ?.
|
static int |
countByC_CD(long companyId,
java.util.Date createDate)
Returns the number of users where companyId = ? and createDate = ?.
|
static int |
countByC_DU(long companyId,
boolean defaultUser)
Returns the number of users where companyId = ? and defaultUser = ?.
|
static int |
countByC_EA(long companyId,
java.lang.String emailAddress)
Returns the number of users where companyId = ? and emailAddress = ?.
|
static int |
countByC_FID(long companyId,
long facebookId)
Returns the number of users where companyId = ? and facebookId = ?.
|
static int |
countByC_MD(long companyId,
java.util.Date modifiedDate)
Returns the number of users where companyId = ? and modifiedDate = ?.
|
static int |
countByC_O(long companyId,
java.lang.String openId)
Returns the number of users where companyId = ? and openId = ?.
|
static int |
countByC_S(long companyId,
int status)
Returns the number of users where companyId = ? and status = ?.
|
static int |
countByC_SN(long companyId,
java.lang.String screenName)
Returns the number of users where companyId = ? and screenName = ?.
|
static int |
countByC_U(long companyId,
long userId)
Returns the number of users where companyId = ? and userId = ?.
|
static int |
countByCompanyId(long companyId)
Returns the number of users where companyId = ?.
|
static int |
countByContactId(long contactId)
Returns the number of users where contactId = ?.
|
static int |
countByEmailAddress(java.lang.String emailAddress)
Returns the number of users where emailAddress = ?.
|
static int |
countByPortraitId(long portraitId)
Returns the number of users where portraitId = ?.
|
static int |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of users where uuid = ? and companyId = ?.
|
static int |
countByUuid(java.lang.String uuid)
Returns the number of users where uuid = ?.
|
static long |
countWithDynamicQuery(DynamicQuery dynamicQuery) |
static User |
create(long userId)
Creates a new user with the primary key.
|
static User |
fetchByC_CD_First(long companyId,
java.util.Date createDate,
OrderByComparator orderByComparator)
Returns the first user in the ordered set where companyId = ? and createDate = ?.
|
static User |
fetchByC_CD_Last(long companyId,
java.util.Date createDate,
OrderByComparator orderByComparator)
Returns the last user in the ordered set where companyId = ? and createDate = ?.
|
static User |
fetchByC_CD_MD_First(long companyId,
java.util.Date createDate,
java.util.Date modifiedDate,
OrderByComparator orderByComparator)
Returns the first user in the ordered set where companyId = ? and createDate = ? and modifiedDate = ?.
|
static User |
fetchByC_CD_MD_Last(long companyId,
java.util.Date createDate,
java.util.Date modifiedDate,
OrderByComparator orderByComparator)
Returns the last user in the ordered set where companyId = ? and createDate = ? and modifiedDate = ?.
|
static User |
fetchByC_DU(long companyId,
boolean defaultUser)
Returns the user where companyId = ? and defaultUser = ? or returns
null if it could not be found. |
static User |
fetchByC_DU(long companyId,
boolean defaultUser,
boolean retrieveFromCache)
Returns the user where companyId = ? and defaultUser = ? or returns
null if it could not be found, optionally using the finder cache. |
static User |
fetchByC_EA(long companyId,
java.lang.String emailAddress)
Returns the user where companyId = ? and emailAddress = ? or returns
null if it could not be found. |
static User |
fetchByC_EA(long companyId,
java.lang.String emailAddress,
boolean retrieveFromCache)
Returns the user where companyId = ? and emailAddress = ? or returns
null if it could not be found, optionally using the finder cache. |
static User |
fetchByC_FID(long companyId,
long facebookId)
Returns the user where companyId = ? and facebookId = ? or returns
null if it could not be found. |
static User |
fetchByC_FID(long companyId,
long facebookId,
boolean retrieveFromCache)
Returns the user where companyId = ? and facebookId = ? or returns
null if it could not be found, optionally using the finder cache. |
static User |
fetchByC_MD_First(long companyId,
java.util.Date modifiedDate,
OrderByComparator orderByComparator)
Returns the first user in the ordered set where companyId = ? and modifiedDate = ?.
|
static User |
fetchByC_MD_Last(long companyId,
java.util.Date modifiedDate,
OrderByComparator orderByComparator)
Returns the last user in the ordered set where companyId = ? and modifiedDate = ?.
|
static User |
fetchByC_O(long companyId,
java.lang.String openId)
Returns the user where companyId = ? and openId = ? or returns
null if it could not be found. |
static User |
fetchByC_O(long companyId,
java.lang.String openId,
boolean retrieveFromCache)
Returns the user where companyId = ? and openId = ? or returns
null if it could not be found, optionally using the finder cache. |
static User |
fetchByC_S_First(long companyId,
int status,
OrderByComparator orderByComparator)
Returns the first user in the ordered set where companyId = ? and status = ?.
|
static User |
fetchByC_S_Last(long companyId,
int status,
OrderByComparator orderByComparator)
Returns the last user in the ordered set where companyId = ? and status = ?.
|
static User |
fetchByC_SN(long companyId,
java.lang.String screenName)
Returns the user where companyId = ? and screenName = ? or returns
null if it could not be found. |
static User |
fetchByC_SN(long companyId,
java.lang.String screenName,
boolean retrieveFromCache)
Returns the user where companyId = ? and screenName = ? or returns
null if it could not be found, optionally using the finder cache. |
static User |
fetchByC_U(long companyId,
long userId)
Returns the user where companyId = ? and userId = ? or returns
null if it could not be found. |
static User |
fetchByC_U(long companyId,
long userId,
boolean retrieveFromCache)
Returns the user where companyId = ? and userId = ? or returns
null if it could not be found, optionally using the finder cache. |
static User |
fetchByCompanyId_First(long companyId,
OrderByComparator orderByComparator)
Returns the first user in the ordered set where companyId = ?.
|
static User |
fetchByCompanyId_Last(long companyId,
OrderByComparator orderByComparator)
Returns the last user in the ordered set where companyId = ?.
|
static User |
fetchByContactId(long contactId)
Returns the user where contactId = ? or returns
null if it could not be found. |
static User |
fetchByContactId(long contactId,
boolean retrieveFromCache)
Returns the user where contactId = ? or returns
null if it could not be found, optionally using the finder cache. |
static User |
fetchByEmailAddress_First(java.lang.String emailAddress,
OrderByComparator orderByComparator)
Returns the first user in the ordered set where emailAddress = ?.
|
static User |
fetchByEmailAddress_Last(java.lang.String emailAddress,
OrderByComparator orderByComparator)
Returns the last user in the ordered set where emailAddress = ?.
|
static User |
fetchByPortraitId(long portraitId)
Returns the user where portraitId = ? or returns
null if it could not be found. |
static User |
fetchByPortraitId(long portraitId,
boolean retrieveFromCache)
Returns the user where portraitId = ? or returns
null if it could not be found, optionally using the finder cache. |
static User |
fetchByPrimaryKey(long userId)
Returns the user with the primary key or returns
null if it could not be found. |
static User |
fetchByUuid_C_First(java.lang.String uuid,
long companyId,
OrderByComparator orderByComparator)
Returns the first user in the ordered set where uuid = ? and companyId = ?.
|
static User |
fetchByUuid_C_Last(java.lang.String uuid,
long companyId,
OrderByComparator orderByComparator)
Returns the last user in the ordered set where uuid = ? and companyId = ?.
|
static User |
fetchByUuid_First(java.lang.String uuid,
OrderByComparator orderByComparator)
Returns the first user in the ordered set where uuid = ?.
|
static User |
fetchByUuid_Last(java.lang.String uuid,
OrderByComparator orderByComparator)
Returns the last user in the ordered set where uuid = ?.
|
static java.util.List<User> |
findAll()
Returns all the users.
|
static java.util.List<User> |
findAll(int start,
int end)
Returns a range of all the users.
|
static java.util.List<User> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the users.
|
static User |
findByC_CD_First(long companyId,
java.util.Date createDate,
OrderByComparator orderByComparator)
Returns the first user in the ordered set where companyId = ? and createDate = ?.
|
static User |
findByC_CD_Last(long companyId,
java.util.Date createDate,
OrderByComparator orderByComparator)
Returns the last user in the ordered set where companyId = ? and createDate = ?.
|
static User |
findByC_CD_MD_First(long companyId,
java.util.Date createDate,
java.util.Date modifiedDate,
OrderByComparator orderByComparator)
Returns the first user in the ordered set where companyId = ? and createDate = ? and modifiedDate = ?.
|
static User |
findByC_CD_MD_Last(long companyId,
java.util.Date createDate,
java.util.Date modifiedDate,
OrderByComparator orderByComparator)
Returns the last user in the ordered set where companyId = ? and createDate = ? and modifiedDate = ?.
|
static User[] |
findByC_CD_MD_PrevAndNext(long userId,
long companyId,
java.util.Date createDate,
java.util.Date modifiedDate,
OrderByComparator orderByComparator)
Returns the users before and after the current user in the ordered set where companyId = ? and createDate = ? and modifiedDate = ?.
|
static java.util.List<User> |
findByC_CD_MD(long companyId,
java.util.Date createDate,
java.util.Date modifiedDate)
Returns all the users where companyId = ? and createDate = ? and modifiedDate = ?.
|
static java.util.List<User> |
findByC_CD_MD(long companyId,
java.util.Date createDate,
java.util.Date modifiedDate,
int start,
int end)
Returns a range of all the users where companyId = ? and createDate = ? and modifiedDate = ?.
|
static java.util.List<User> |
findByC_CD_MD(long companyId,
java.util.Date createDate,
java.util.Date modifiedDate,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the users where companyId = ? and createDate = ? and modifiedDate = ?.
|
static User[] |
findByC_CD_PrevAndNext(long userId,
long companyId,
java.util.Date createDate,
OrderByComparator orderByComparator)
Returns the users before and after the current user in the ordered set where companyId = ? and createDate = ?.
|
static java.util.List<User> |
findByC_CD(long companyId,
java.util.Date createDate)
Returns all the users where companyId = ? and createDate = ?.
|
static java.util.List<User> |
findByC_CD(long companyId,
java.util.Date createDate,
int start,
int end)
Returns a range of all the users where companyId = ? and createDate = ?.
|
static java.util.List<User> |
findByC_CD(long companyId,
java.util.Date createDate,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the users where companyId = ? and createDate = ?.
|
static User |
findByC_DU(long companyId,
boolean defaultUser)
Returns the user where companyId = ? and defaultUser = ? or throws a
NoSuchUserException if it could not be found. |
static User |
findByC_EA(long companyId,
java.lang.String emailAddress)
Returns the user where companyId = ? and emailAddress = ? or throws a
NoSuchUserException if it could not be found. |
static User |
findByC_FID(long companyId,
long facebookId)
Returns the user where companyId = ? and facebookId = ? or throws a
NoSuchUserException if it could not be found. |
static User |
findByC_MD_First(long companyId,
java.util.Date modifiedDate,
OrderByComparator orderByComparator)
Returns the first user in the ordered set where companyId = ? and modifiedDate = ?.
|
static User |
findByC_MD_Last(long companyId,
java.util.Date modifiedDate,
OrderByComparator orderByComparator)
Returns the last user in the ordered set where companyId = ? and modifiedDate = ?.
|
static User[] |
findByC_MD_PrevAndNext(long userId,
long companyId,
java.util.Date modifiedDate,
OrderByComparator orderByComparator)
Returns the users before and after the current user in the ordered set where companyId = ? and modifiedDate = ?.
|
static java.util.List<User> |
findByC_MD(long companyId,
java.util.Date modifiedDate)
Returns all the users where companyId = ? and modifiedDate = ?.
|
static java.util.List<User> |
findByC_MD(long companyId,
java.util.Date modifiedDate,
int start,
int end)
Returns a range of all the users where companyId = ? and modifiedDate = ?.
|
static java.util.List<User> |
findByC_MD(long companyId,
java.util.Date modifiedDate,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the users where companyId = ? and modifiedDate = ?.
|
static User |
findByC_O(long companyId,
java.lang.String openId)
Returns the user where companyId = ? and openId = ? or throws a
NoSuchUserException if it could not be found. |
static User |
findByC_S_First(long companyId,
int status,
OrderByComparator orderByComparator)
Returns the first user in the ordered set where companyId = ? and status = ?.
|
static User |
findByC_S_Last(long companyId,
int status,
OrderByComparator orderByComparator)
Returns the last user in the ordered set where companyId = ? and status = ?.
|
static User[] |
findByC_S_PrevAndNext(long userId,
long companyId,
int status,
OrderByComparator orderByComparator)
Returns the users before and after the current user in the ordered set where companyId = ? and status = ?.
|
static java.util.List<User> |
findByC_S(long companyId,
int status)
Returns all the users where companyId = ? and status = ?.
|
static java.util.List<User> |
findByC_S(long companyId,
int status,
int start,
int end)
Returns a range of all the users where companyId = ? and status = ?.
|
static java.util.List<User> |
findByC_S(long companyId,
int status,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the users where companyId = ? and status = ?.
|
static User |
findByC_SN(long companyId,
java.lang.String screenName)
Returns the user where companyId = ? and screenName = ? or throws a
NoSuchUserException if it could not be found. |
static User |
findByC_U(long companyId,
long userId)
Returns the user where companyId = ? and userId = ? or throws a
NoSuchUserException if it could not be found. |
static User |
findByCompanyId_First(long companyId,
OrderByComparator orderByComparator)
Returns the first user in the ordered set where companyId = ?.
|
static User |
findByCompanyId_Last(long companyId,
OrderByComparator orderByComparator)
Returns the last user in the ordered set where companyId = ?.
|
static User[] |
findByCompanyId_PrevAndNext(long userId,
long companyId,
OrderByComparator orderByComparator)
Returns the users before and after the current user in the ordered set where companyId = ?.
|
static java.util.List<User> |
findByCompanyId(long companyId)
Returns all the users where companyId = ?.
|
static java.util.List<User> |
findByCompanyId(long companyId,
int start,
int end)
Returns a range of all the users where companyId = ?.
|
static java.util.List<User> |
findByCompanyId(long companyId,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the users where companyId = ?.
|
static User |
findByContactId(long contactId)
Returns the user where contactId = ? or throws a
NoSuchUserException if it could not be found. |
static User |
findByEmailAddress_First(java.lang.String emailAddress,
OrderByComparator orderByComparator)
Returns the first user in the ordered set where emailAddress = ?.
|
static User |
findByEmailAddress_Last(java.lang.String emailAddress,
OrderByComparator orderByComparator)
Returns the last user in the ordered set where emailAddress = ?.
|
static User[] |
findByEmailAddress_PrevAndNext(long userId,
java.lang.String emailAddress,
OrderByComparator orderByComparator)
Returns the users before and after the current user in the ordered set where emailAddress = ?.
|
static java.util.List<User> |
findByEmailAddress(java.lang.String emailAddress)
Returns all the users where emailAddress = ?.
|
static java.util.List<User> |
findByEmailAddress(java.lang.String emailAddress,
int start,
int end)
Returns a range of all the users where emailAddress = ?.
|
static java.util.List<User> |
findByEmailAddress(java.lang.String emailAddress,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the users where emailAddress = ?.
|
static User |
findByPortraitId(long portraitId)
Returns the user where portraitId = ? or throws a
NoSuchUserException if it could not be found. |
static User |
findByPrimaryKey(long userId)
Returns the user with the primary key or throws a
NoSuchUserException if it could not be found. |
static User |
findByUuid_C_First(java.lang.String uuid,
long companyId,
OrderByComparator orderByComparator)
Returns the first user in the ordered set where uuid = ? and companyId = ?.
|
static User |
findByUuid_C_Last(java.lang.String uuid,
long companyId,
OrderByComparator orderByComparator)
Returns the last user in the ordered set where uuid = ? and companyId = ?.
|
static User[] |
findByUuid_C_PrevAndNext(long userId,
java.lang.String uuid,
long companyId,
OrderByComparator orderByComparator)
Returns the users before and after the current user in the ordered set where uuid = ? and companyId = ?.
|
static java.util.List<User> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the users where uuid = ? and companyId = ?.
|
static java.util.List<User> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end)
Returns a range of all the users where uuid = ? and companyId = ?.
|
static java.util.List<User> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the users where uuid = ? and companyId = ?.
|
static User |
findByUuid_First(java.lang.String uuid,
OrderByComparator orderByComparator)
Returns the first user in the ordered set where uuid = ?.
|
static User |
findByUuid_Last(java.lang.String uuid,
OrderByComparator orderByComparator)
Returns the last user in the ordered set where uuid = ?.
|
static User[] |
findByUuid_PrevAndNext(long userId,
java.lang.String uuid,
OrderByComparator orderByComparator)
Returns the users before and after the current user in the ordered set where uuid = ?.
|
static java.util.List<User> |
findByUuid(java.lang.String uuid)
Returns all the users where uuid = ?.
|
static java.util.List<User> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the users where uuid = ?.
|
static java.util.List<User> |
findByUuid(java.lang.String uuid,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the users where uuid = ?.
|
static java.util.List<User> |
findWithDynamicQuery(DynamicQuery dynamicQuery) |
static java.util.List<User> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<User> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator orderByComparator) |
static java.util.List<Group> |
getGroups(long pk)
Returns all the groups associated with the user.
|
static java.util.List<Group> |
getGroups(long pk,
int start,
int end)
Returns a range of all the groups associated with the user.
|
static java.util.List<Group> |
getGroups(long pk,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the groups associated with the user.
|
static int |
getGroupsSize(long pk)
Returns the number of groups associated with the user.
|
static java.util.List<Organization> |
getOrganizations(long pk)
Returns all the organizations associated with the user.
|
static java.util.List<Organization> |
getOrganizations(long pk,
int start,
int end)
Returns a range of all the organizations associated with the user.
|
static java.util.List<Organization> |
getOrganizations(long pk,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the organizations associated with the user.
|
static int |
getOrganizationsSize(long pk)
Returns the number of organizations associated with the user.
|
static UserPersistence |
getPersistence() |
static java.util.List<Role> |
getRoles(long pk)
Returns all the roles associated with the user.
|
static java.util.List<Role> |
getRoles(long pk,
int start,
int end)
Returns a range of all the roles associated with the user.
|
static java.util.List<Role> |
getRoles(long pk,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the roles associated with the user.
|
static int |
getRolesSize(long pk)
Returns the number of roles associated with the user.
|
static java.util.List<Team> |
getTeams(long pk)
Returns all the teams associated with the user.
|
static java.util.List<Team> |
getTeams(long pk,
int start,
int end)
Returns a range of all the teams associated with the user.
|
static java.util.List<Team> |
getTeams(long pk,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the teams associated with the user.
|
static int |
getTeamsSize(long pk)
Returns the number of teams associated with the user.
|
static java.util.List<UserGroup> |
getUserGroups(long pk)
Returns all the user groups associated with the user.
|
static java.util.List<UserGroup> |
getUserGroups(long pk,
int start,
int end)
Returns a range of all the user groups associated with the user.
|
static java.util.List<UserGroup> |
getUserGroups(long pk,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the user groups associated with the user.
|
static int |
getUserGroupsSize(long pk)
Returns the number of user groups associated with the user.
|
static User |
remove(long userId)
Removes the user with the primary key from the database.
|
static void |
removeAll()
Removes all the users from the database.
|
static void |
removeByC_CD_MD(long companyId,
java.util.Date createDate,
java.util.Date modifiedDate)
Removes all the users where companyId = ? and createDate = ? and modifiedDate = ? from the database.
|
static void |
removeByC_CD(long companyId,
java.util.Date createDate)
Removes all the users where companyId = ? and createDate = ? from the database.
|
static User |
removeByC_DU(long companyId,
boolean defaultUser)
Removes the user where companyId = ? and defaultUser = ? from the database.
|
static User |
removeByC_EA(long companyId,
java.lang.String emailAddress)
Removes the user where companyId = ? and emailAddress = ? from the database.
|
static User |
removeByC_FID(long companyId,
long facebookId)
Removes the user where companyId = ? and facebookId = ? from the database.
|
static void |
removeByC_MD(long companyId,
java.util.Date modifiedDate)
Removes all the users where companyId = ? and modifiedDate = ? from the database.
|
static User |
removeByC_O(long companyId,
java.lang.String openId)
Removes the user where companyId = ? and openId = ? from the database.
|
static void |
removeByC_S(long companyId,
int status)
Removes all the users where companyId = ? and status = ? from the database.
|
static User |
removeByC_SN(long companyId,
java.lang.String screenName)
Removes the user where companyId = ? and screenName = ? from the database.
|
static User |
removeByC_U(long companyId,
long userId)
Removes the user where companyId = ? and userId = ? from the database.
|
static void |
removeByCompanyId(long companyId)
Removes all the users where companyId = ? from the database.
|
static User |
removeByContactId(long contactId)
Removes the user where contactId = ? from the database.
|
static void |
removeByEmailAddress(java.lang.String emailAddress)
Removes all the users where emailAddress = ? from the database.
|
static User |
removeByPortraitId(long portraitId)
Removes the user where portraitId = ? from the database.
|
static void |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the users where uuid = ? and companyId = ? from the database.
|
static void |
removeByUuid(java.lang.String uuid)
Removes all the users where uuid = ? from the database.
|
static void |
removeGroup(long pk,
Group group)
Removes the association between the user and the group.
|
static void |
removeGroup(long pk,
long groupPK)
Removes the association between the user and the group.
|
static void |
removeGroups(long pk,
java.util.List<Group> groups)
Removes the association between the user and the groups.
|
static void |
removeGroups(long pk,
long[] groupPKs)
Removes the association between the user and the groups.
|
static void |
removeOrganization(long pk,
long organizationPK)
Removes the association between the user and the organization.
|
static void |
removeOrganization(long pk,
Organization organization)
Removes the association between the user and the organization.
|
static void |
removeOrganizations(long pk,
java.util.List<Organization> organizations)
Removes the association between the user and the organizations.
|
static void |
removeOrganizations(long pk,
long[] organizationPKs)
Removes the association between the user and the organizations.
|
static void |
removeRole(long pk,
long rolePK)
Removes the association between the user and the role.
|
static void |
removeRole(long pk,
Role role)
Removes the association between the user and the role.
|
static void |
removeRoles(long pk,
java.util.List<Role> roles)
Removes the association between the user and the roles.
|
static void |
removeRoles(long pk,
long[] rolePKs)
Removes the association between the user and the roles.
|
static void |
removeTeam(long pk,
long teamPK)
Removes the association between the user and the team.
|
static void |
removeTeam(long pk,
Team team)
Removes the association between the user and the team.
|
static void |
removeTeams(long pk,
java.util.List<Team> teams)
Removes the association between the user and the teams.
|
static void |
removeTeams(long pk,
long[] teamPKs)
Removes the association between the user and the teams.
|
static void |
removeUserGroup(long pk,
long userGroupPK)
Removes the association between the user and the user group.
|
static void |
removeUserGroup(long pk,
UserGroup userGroup)
Removes the association between the user and the user group.
|
static void |
removeUserGroups(long pk,
java.util.List<UserGroup> userGroups)
Removes the association between the user and the user groups.
|
static void |
removeUserGroups(long pk,
long[] userGroupPKs)
Removes the association between the user and the user groups.
|
static void |
setGroups(long pk,
java.util.List<Group> groups)
Sets the groups associated with the user, removing and adding associations as necessary.
|
static void |
setGroups(long pk,
long[] groupPKs)
Sets the groups associated with the user, removing and adding associations as necessary.
|
static void |
setOrganizations(long pk,
java.util.List<Organization> organizations)
Sets the organizations associated with the user, removing and adding associations as necessary.
|
static void |
setOrganizations(long pk,
long[] organizationPKs)
Sets the organizations associated with the user, removing and adding associations as necessary.
|
void |
setPersistence(UserPersistence persistence)
Deprecated.
As of 6.2.0
|
static void |
setRoles(long pk,
java.util.List<Role> roles)
Sets the roles associated with the user, removing and adding associations as necessary.
|
static void |
setRoles(long pk,
long[] rolePKs)
Sets the roles associated with the user, removing and adding associations as necessary.
|
static void |
setTeams(long pk,
java.util.List<Team> teams)
Sets the teams associated with the user, removing and adding associations as necessary.
|
static void |
setTeams(long pk,
long[] teamPKs)
Sets the teams associated with the user, removing and adding associations as necessary.
|
static void |
setUserGroups(long pk,
java.util.List<UserGroup> userGroups)
Sets the user groups associated with the user, removing and adding associations as necessary.
|
static void |
setUserGroups(long pk,
long[] userGroupPKs)
Sets the user groups associated with the user, removing and adding associations as necessary.
|
static User |
update(User user) |
static User |
update(User user,
ServiceContext serviceContext) |
static User |
updateImpl(User user) |
public static void clearCache()
BasePersistence.clearCache()public static void clearCache(User user)
public static long countWithDynamicQuery(DynamicQuery dynamicQuery) throws SystemException
SystemExceptionBasePersistence.countWithDynamicQuery(DynamicQuery)public static java.util.List<User> findWithDynamicQuery(DynamicQuery dynamicQuery) throws SystemException
SystemExceptionBasePersistence.findWithDynamicQuery(DynamicQuery)public static java.util.List<User> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end) throws SystemException
public static java.util.List<User> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator) throws SystemException
public static User update(User user) throws SystemException
public static User update(User user, ServiceContext serviceContext) throws SystemException
public static java.util.List<User> findByUuid(java.lang.String uuid) throws SystemException
uuid - the uuidSystemException - if a system exception occurredpublic static java.util.List<User> findByUuid(java.lang.String uuid, int start, int end) throws SystemException
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 UserModelImpl. 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 usersend - the upper bound of the range of users (not inclusive)SystemException - if a system exception occurredpublic static java.util.List<User> findByUuid(java.lang.String uuid, int start, int end, OrderByComparator orderByComparator) throws SystemException
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 UserModelImpl. 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 usersend - the upper bound of the range of users (not inclusive)orderByComparator - the comparator to order the results by (optionally null)SystemException - if a system exception occurredpublic static User findByUuid_First(java.lang.String uuid, OrderByComparator orderByComparator) throws NoSuchUserException, SystemException
uuid - the uuidorderByComparator - the comparator to order the set by (optionally null)NoSuchUserException - if a matching user could not be foundSystemException - if a system exception occurredpublic static User fetchByUuid_First(java.lang.String uuid, OrderByComparator orderByComparator) throws SystemException
uuid - the uuidorderByComparator - the comparator to order the set by (optionally null)null if a matching user could not be foundSystemException - if a system exception occurredpublic static User findByUuid_Last(java.lang.String uuid, OrderByComparator orderByComparator) throws NoSuchUserException, SystemException
uuid - the uuidorderByComparator - the comparator to order the set by (optionally null)NoSuchUserException - if a matching user could not be foundSystemException - if a system exception occurredpublic static User fetchByUuid_Last(java.lang.String uuid, OrderByComparator orderByComparator) throws SystemException
uuid - the uuidorderByComparator - the comparator to order the set by (optionally null)null if a matching user could not be foundSystemException - if a system exception occurredpublic static User[] findByUuid_PrevAndNext(long userId, java.lang.String uuid, OrderByComparator orderByComparator) throws NoSuchUserException, SystemException
userId - the primary key of the current useruuid - the uuidorderByComparator - the comparator to order the set by (optionally null)NoSuchUserException - if a user with the primary key could not be foundSystemException - if a system exception occurredpublic static void removeByUuid(java.lang.String uuid)
throws SystemException
uuid - the uuidSystemException - if a system exception occurredpublic static int countByUuid(java.lang.String uuid)
throws SystemException
uuid - the uuidSystemException - if a system exception occurredpublic static java.util.List<User> findByUuid_C(java.lang.String uuid, long companyId) throws SystemException
uuid - the uuidcompanyId - the company IDSystemException - if a system exception occurredpublic static java.util.List<User> findByUuid_C(java.lang.String uuid, long companyId, int start, int end) throws SystemException
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 UserModelImpl. 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 usersend - the upper bound of the range of users (not inclusive)SystemException - if a system exception occurredpublic static java.util.List<User> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, OrderByComparator orderByComparator) throws SystemException
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 UserModelImpl. 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 usersend - the upper bound of the range of users (not inclusive)orderByComparator - the comparator to order the results by (optionally null)SystemException - if a system exception occurredpublic static User findByUuid_C_First(java.lang.String uuid, long companyId, OrderByComparator orderByComparator) throws NoSuchUserException, SystemException
uuid - the uuidcompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)NoSuchUserException - if a matching user could not be foundSystemException - if a system exception occurredpublic static User fetchByUuid_C_First(java.lang.String uuid, long companyId, OrderByComparator orderByComparator) throws SystemException
uuid - the uuidcompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)null if a matching user could not be foundSystemException - if a system exception occurredpublic static User findByUuid_C_Last(java.lang.String uuid, long companyId, OrderByComparator orderByComparator) throws NoSuchUserException, SystemException
uuid - the uuidcompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)NoSuchUserException - if a matching user could not be foundSystemException - if a system exception occurredpublic static User fetchByUuid_C_Last(java.lang.String uuid, long companyId, OrderByComparator orderByComparator) throws SystemException
uuid - the uuidcompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)null if a matching user could not be foundSystemException - if a system exception occurredpublic static User[] findByUuid_C_PrevAndNext(long userId, java.lang.String uuid, long companyId, OrderByComparator orderByComparator) throws NoSuchUserException, SystemException
userId - the primary key of the current useruuid - the uuidcompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)NoSuchUserException - if a user with the primary key could not be foundSystemException - if a system exception occurredpublic static void removeByUuid_C(java.lang.String uuid,
long companyId)
throws SystemException
uuid - the uuidcompanyId - the company IDSystemException - if a system exception occurredpublic static int countByUuid_C(java.lang.String uuid,
long companyId)
throws SystemException
uuid - the uuidcompanyId - the company IDSystemException - if a system exception occurredpublic static java.util.List<User> findByCompanyId(long companyId) throws SystemException
companyId - the company IDSystemException - if a system exception occurredpublic static java.util.List<User> findByCompanyId(long companyId, int start, int end) throws SystemException
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 UserModelImpl. 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 usersend - the upper bound of the range of users (not inclusive)SystemException - if a system exception occurredpublic static java.util.List<User> findByCompanyId(long companyId, int start, int end, OrderByComparator orderByComparator) throws SystemException
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 UserModelImpl. 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 usersend - the upper bound of the range of users (not inclusive)orderByComparator - the comparator to order the results by (optionally null)SystemException - if a system exception occurredpublic static User findByCompanyId_First(long companyId, OrderByComparator orderByComparator) throws NoSuchUserException, SystemException
companyId - the company IDorderByComparator - the comparator to order the set by (optionally null)NoSuchUserException - if a matching user could not be foundSystemException - if a system exception occurredpublic static User fetchByCompanyId_First(long companyId, OrderByComparator orderByComparator) throws SystemException
companyId - the company IDorderByComparator - the comparator to order the set by (optionally null)null if a matching user could not be foundSystemException - if a system exception occurredpublic static User findByCompanyId_Last(long companyId, OrderByComparator orderByComparator) throws NoSuchUserException, SystemException
companyId - the company IDorderByComparator - the comparator to order the set by (optionally null)NoSuchUserException - if a matching user could not be foundSystemException - if a system exception occurredpublic static User fetchByCompanyId_Last(long companyId, OrderByComparator orderByComparator) throws SystemException
companyId - the company IDorderByComparator - the comparator to order the set by (optionally null)null if a matching user could not be foundSystemException - if a system exception occurredpublic static User[] findByCompanyId_PrevAndNext(long userId, long companyId, OrderByComparator orderByComparator) throws NoSuchUserException, SystemException
userId - the primary key of the current usercompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)NoSuchUserException - if a user with the primary key could not be foundSystemException - if a system exception occurredpublic static void removeByCompanyId(long companyId)
throws SystemException
companyId - the company IDSystemException - if a system exception occurredpublic static int countByCompanyId(long companyId)
throws SystemException
companyId - the company IDSystemException - if a system exception occurredpublic static User findByContactId(long contactId) throws NoSuchUserException, SystemException
NoSuchUserException if it could not be found.contactId - the contact IDNoSuchUserException - if a matching user could not be foundSystemException - if a system exception occurredpublic static User fetchByContactId(long contactId) throws SystemException
null if it could not be found. Uses the finder cache.contactId - the contact IDnull if a matching user could not be foundSystemException - if a system exception occurredpublic static User fetchByContactId(long contactId, boolean retrieveFromCache) throws SystemException
null if it could not be found, optionally using the finder cache.contactId - the contact IDretrieveFromCache - whether to use the finder cachenull if a matching user could not be foundSystemException - if a system exception occurredpublic static User removeByContactId(long contactId) throws NoSuchUserException, SystemException
contactId - the contact IDSystemException - if a system exception occurredNoSuchUserExceptionpublic static int countByContactId(long contactId)
throws SystemException
contactId - the contact IDSystemException - if a system exception occurredpublic static java.util.List<User> findByEmailAddress(java.lang.String emailAddress) throws SystemException
emailAddress - the email addressSystemException - if a system exception occurredpublic static java.util.List<User> findByEmailAddress(java.lang.String emailAddress, int start, int end) throws SystemException
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 UserModelImpl. 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.
emailAddress - the email addressstart - the lower bound of the range of usersend - the upper bound of the range of users (not inclusive)SystemException - if a system exception occurredpublic static java.util.List<User> findByEmailAddress(java.lang.String emailAddress, int start, int end, OrderByComparator orderByComparator) throws SystemException
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 UserModelImpl. 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.
emailAddress - the email addressstart - the lower bound of the range of usersend - the upper bound of the range of users (not inclusive)orderByComparator - the comparator to order the results by (optionally null)SystemException - if a system exception occurredpublic static User findByEmailAddress_First(java.lang.String emailAddress, OrderByComparator orderByComparator) throws NoSuchUserException, SystemException
emailAddress - the email addressorderByComparator - the comparator to order the set by (optionally null)NoSuchUserException - if a matching user could not be foundSystemException - if a system exception occurredpublic static User fetchByEmailAddress_First(java.lang.String emailAddress, OrderByComparator orderByComparator) throws SystemException
emailAddress - the email addressorderByComparator - the comparator to order the set by (optionally null)null if a matching user could not be foundSystemException - if a system exception occurredpublic static User findByEmailAddress_Last(java.lang.String emailAddress, OrderByComparator orderByComparator) throws NoSuchUserException, SystemException
emailAddress - the email addressorderByComparator - the comparator to order the set by (optionally null)NoSuchUserException - if a matching user could not be foundSystemException - if a system exception occurredpublic static User fetchByEmailAddress_Last(java.lang.String emailAddress, OrderByComparator orderByComparator) throws SystemException
emailAddress - the email addressorderByComparator - the comparator to order the set by (optionally null)null if a matching user could not be foundSystemException - if a system exception occurredpublic static User[] findByEmailAddress_PrevAndNext(long userId, java.lang.String emailAddress, OrderByComparator orderByComparator) throws NoSuchUserException, SystemException
userId - the primary key of the current useremailAddress - the email addressorderByComparator - the comparator to order the set by (optionally null)NoSuchUserException - if a user with the primary key could not be foundSystemException - if a system exception occurredpublic static void removeByEmailAddress(java.lang.String emailAddress)
throws SystemException
emailAddress - the email addressSystemException - if a system exception occurredpublic static int countByEmailAddress(java.lang.String emailAddress)
throws SystemException
emailAddress - the email addressSystemException - if a system exception occurredpublic static User findByPortraitId(long portraitId) throws NoSuchUserException, SystemException
NoSuchUserException if it could not be found.portraitId - the portrait IDNoSuchUserException - if a matching user could not be foundSystemException - if a system exception occurredpublic static User fetchByPortraitId(long portraitId) throws SystemException
null if it could not be found. Uses the finder cache.portraitId - the portrait IDnull if a matching user could not be foundSystemException - if a system exception occurredpublic static User fetchByPortraitId(long portraitId, boolean retrieveFromCache) throws SystemException
null if it could not be found, optionally using the finder cache.portraitId - the portrait IDretrieveFromCache - whether to use the finder cachenull if a matching user could not be foundSystemException - if a system exception occurredpublic static User removeByPortraitId(long portraitId) throws NoSuchUserException, SystemException
portraitId - the portrait IDSystemException - if a system exception occurredNoSuchUserExceptionpublic static int countByPortraitId(long portraitId)
throws SystemException
portraitId - the portrait IDSystemException - if a system exception occurredpublic static User findByC_U(long companyId, long userId) throws NoSuchUserException, SystemException
NoSuchUserException if it could not be found.companyId - the company IDuserId - the user IDNoSuchUserException - if a matching user could not be foundSystemException - if a system exception occurredpublic static User fetchByC_U(long companyId, long userId) throws SystemException
null if it could not be found. Uses the finder cache.companyId - the company IDuserId - the user IDnull if a matching user could not be foundSystemException - if a system exception occurredpublic static User fetchByC_U(long companyId, long userId, boolean retrieveFromCache) throws SystemException
null if it could not be found, optionally using the finder cache.companyId - the company IDuserId - the user IDretrieveFromCache - whether to use the finder cachenull if a matching user could not be foundSystemException - if a system exception occurredpublic static User removeByC_U(long companyId, long userId) throws NoSuchUserException, SystemException
companyId - the company IDuserId - the user IDSystemException - if a system exception occurredNoSuchUserExceptionpublic static int countByC_U(long companyId,
long userId)
throws SystemException
companyId - the company IDuserId - the user IDSystemException - if a system exception occurredpublic static java.util.List<User> findByC_CD(long companyId, java.util.Date createDate) throws SystemException
companyId - the company IDcreateDate - the create dateSystemException - if a system exception occurredpublic static java.util.List<User> findByC_CD(long companyId, java.util.Date createDate, int start, int end) throws SystemException
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 UserModelImpl. 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 IDcreateDate - the create datestart - the lower bound of the range of usersend - the upper bound of the range of users (not inclusive)SystemException - if a system exception occurredpublic static java.util.List<User> findByC_CD(long companyId, java.util.Date createDate, int start, int end, OrderByComparator orderByComparator) throws SystemException
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 UserModelImpl. 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 IDcreateDate - the create datestart - the lower bound of the range of usersend - the upper bound of the range of users (not inclusive)orderByComparator - the comparator to order the results by (optionally null)SystemException - if a system exception occurredpublic static User findByC_CD_First(long companyId, java.util.Date createDate, OrderByComparator orderByComparator) throws NoSuchUserException, SystemException
companyId - the company IDcreateDate - the create dateorderByComparator - the comparator to order the set by (optionally null)NoSuchUserException - if a matching user could not be foundSystemException - if a system exception occurredpublic static User fetchByC_CD_First(long companyId, java.util.Date createDate, OrderByComparator orderByComparator) throws SystemException
companyId - the company IDcreateDate - the create dateorderByComparator - the comparator to order the set by (optionally null)null if a matching user could not be foundSystemException - if a system exception occurredpublic static User findByC_CD_Last(long companyId, java.util.Date createDate, OrderByComparator orderByComparator) throws NoSuchUserException, SystemException
companyId - the company IDcreateDate - the create dateorderByComparator - the comparator to order the set by (optionally null)NoSuchUserException - if a matching user could not be foundSystemException - if a system exception occurredpublic static User fetchByC_CD_Last(long companyId, java.util.Date createDate, OrderByComparator orderByComparator) throws SystemException
companyId - the company IDcreateDate - the create dateorderByComparator - the comparator to order the set by (optionally null)null if a matching user could not be foundSystemException - if a system exception occurredpublic static User[] findByC_CD_PrevAndNext(long userId, long companyId, java.util.Date createDate, OrderByComparator orderByComparator) throws NoSuchUserException, SystemException
userId - the primary key of the current usercompanyId - the company IDcreateDate - the create dateorderByComparator - the comparator to order the set by (optionally null)NoSuchUserException - if a user with the primary key could not be foundSystemException - if a system exception occurredpublic static void removeByC_CD(long companyId,
java.util.Date createDate)
throws SystemException
companyId - the company IDcreateDate - the create dateSystemException - if a system exception occurredpublic static int countByC_CD(long companyId,
java.util.Date createDate)
throws SystemException
companyId - the company IDcreateDate - the create dateSystemException - if a system exception occurredpublic static java.util.List<User> findByC_MD(long companyId, java.util.Date modifiedDate) throws SystemException
companyId - the company IDmodifiedDate - the modified dateSystemException - if a system exception occurredpublic static java.util.List<User> findByC_MD(long companyId, java.util.Date modifiedDate, int start, int end) throws SystemException
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 UserModelImpl. 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 IDmodifiedDate - the modified datestart - the lower bound of the range of usersend - the upper bound of the range of users (not inclusive)SystemException - if a system exception occurredpublic static java.util.List<User> findByC_MD(long companyId, java.util.Date modifiedDate, int start, int end, OrderByComparator orderByComparator) throws SystemException
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 UserModelImpl. 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 IDmodifiedDate - the modified datestart - the lower bound of the range of usersend - the upper bound of the range of users (not inclusive)orderByComparator - the comparator to order the results by (optionally null)SystemException - if a system exception occurredpublic static User findByC_MD_First(long companyId, java.util.Date modifiedDate, OrderByComparator orderByComparator) throws NoSuchUserException, SystemException
companyId - the company IDmodifiedDate - the modified dateorderByComparator - the comparator to order the set by (optionally null)NoSuchUserException - if a matching user could not be foundSystemException - if a system exception occurredpublic static User fetchByC_MD_First(long companyId, java.util.Date modifiedDate, OrderByComparator orderByComparator) throws SystemException
companyId - the company IDmodifiedDate - the modified dateorderByComparator - the comparator to order the set by (optionally null)null if a matching user could not be foundSystemException - if a system exception occurredpublic static User findByC_MD_Last(long companyId, java.util.Date modifiedDate, OrderByComparator orderByComparator) throws NoSuchUserException, SystemException
companyId - the company IDmodifiedDate - the modified dateorderByComparator - the comparator to order the set by (optionally null)NoSuchUserException - if a matching user could not be foundSystemException - if a system exception occurredpublic static User fetchByC_MD_Last(long companyId, java.util.Date modifiedDate, OrderByComparator orderByComparator) throws SystemException
companyId - the company IDmodifiedDate - the modified dateorderByComparator - the comparator to order the set by (optionally null)null if a matching user could not be foundSystemException - if a system exception occurredpublic static User[] findByC_MD_PrevAndNext(long userId, long companyId, java.util.Date modifiedDate, OrderByComparator orderByComparator) throws NoSuchUserException, SystemException
userId - the primary key of the current usercompanyId - the company IDmodifiedDate - the modified dateorderByComparator - the comparator to order the set by (optionally null)NoSuchUserException - if a user with the primary key could not be foundSystemException - if a system exception occurredpublic static void removeByC_MD(long companyId,
java.util.Date modifiedDate)
throws SystemException
companyId - the company IDmodifiedDate - the modified dateSystemException - if a system exception occurredpublic static int countByC_MD(long companyId,
java.util.Date modifiedDate)
throws SystemException
companyId - the company IDmodifiedDate - the modified dateSystemException - if a system exception occurredpublic static User findByC_DU(long companyId, boolean defaultUser) throws NoSuchUserException, SystemException
NoSuchUserException if it could not be found.companyId - the company IDdefaultUser - the default userNoSuchUserException - if a matching user could not be foundSystemException - if a system exception occurredpublic static User fetchByC_DU(long companyId, boolean defaultUser) throws SystemException
null if it could not be found. Uses the finder cache.companyId - the company IDdefaultUser - the default usernull if a matching user could not be foundSystemException - if a system exception occurredpublic static User fetchByC_DU(long companyId, boolean defaultUser, boolean retrieveFromCache) throws SystemException
null if it could not be found, optionally using the finder cache.companyId - the company IDdefaultUser - the default userretrieveFromCache - whether to use the finder cachenull if a matching user could not be foundSystemException - if a system exception occurredpublic static User removeByC_DU(long companyId, boolean defaultUser) throws NoSuchUserException, SystemException
companyId - the company IDdefaultUser - the default userSystemException - if a system exception occurredNoSuchUserExceptionpublic static int countByC_DU(long companyId,
boolean defaultUser)
throws SystemException
companyId - the company IDdefaultUser - the default userSystemException - if a system exception occurredpublic static User findByC_SN(long companyId, java.lang.String screenName) throws NoSuchUserException, SystemException
NoSuchUserException if it could not be found.companyId - the company IDscreenName - the screen nameNoSuchUserException - if a matching user could not be foundSystemException - if a system exception occurredpublic static User fetchByC_SN(long companyId, java.lang.String screenName) throws SystemException
null if it could not be found. Uses the finder cache.companyId - the company IDscreenName - the screen namenull if a matching user could not be foundSystemException - if a system exception occurredpublic static User fetchByC_SN(long companyId, java.lang.String screenName, boolean retrieveFromCache) throws SystemException
null if it could not be found, optionally using the finder cache.companyId - the company IDscreenName - the screen nameretrieveFromCache - whether to use the finder cachenull if a matching user could not be foundSystemException - if a system exception occurredpublic static User removeByC_SN(long companyId, java.lang.String screenName) throws NoSuchUserException, SystemException
companyId - the company IDscreenName - the screen nameSystemException - if a system exception occurredNoSuchUserExceptionpublic static int countByC_SN(long companyId,
java.lang.String screenName)
throws SystemException
companyId - the company IDscreenName - the screen nameSystemException - if a system exception occurredpublic static User findByC_EA(long companyId, java.lang.String emailAddress) throws NoSuchUserException, SystemException
NoSuchUserException if it could not be found.companyId - the company IDemailAddress - the email addressNoSuchUserException - if a matching user could not be foundSystemException - if a system exception occurredpublic static User fetchByC_EA(long companyId, java.lang.String emailAddress) throws SystemException
null if it could not be found. Uses the finder cache.companyId - the company IDemailAddress - the email addressnull if a matching user could not be foundSystemException - if a system exception occurredpublic static User fetchByC_EA(long companyId, java.lang.String emailAddress, boolean retrieveFromCache) throws SystemException
null if it could not be found, optionally using the finder cache.companyId - the company IDemailAddress - the email addressretrieveFromCache - whether to use the finder cachenull if a matching user could not be foundSystemException - if a system exception occurredpublic static User removeByC_EA(long companyId, java.lang.String emailAddress) throws NoSuchUserException, SystemException
companyId - the company IDemailAddress - the email addressSystemException - if a system exception occurredNoSuchUserExceptionpublic static int countByC_EA(long companyId,
java.lang.String emailAddress)
throws SystemException
companyId - the company IDemailAddress - the email addressSystemException - if a system exception occurredpublic static User findByC_FID(long companyId, long facebookId) throws NoSuchUserException, SystemException
NoSuchUserException if it could not be found.companyId - the company IDfacebookId - the facebook IDNoSuchUserException - if a matching user could not be foundSystemException - if a system exception occurredpublic static User fetchByC_FID(long companyId, long facebookId) throws SystemException
null if it could not be found. Uses the finder cache.companyId - the company IDfacebookId - the facebook IDnull if a matching user could not be foundSystemException - if a system exception occurredpublic static User fetchByC_FID(long companyId, long facebookId, boolean retrieveFromCache) throws SystemException
null if it could not be found, optionally using the finder cache.companyId - the company IDfacebookId - the facebook IDretrieveFromCache - whether to use the finder cachenull if a matching user could not be foundSystemException - if a system exception occurredpublic static User removeByC_FID(long companyId, long facebookId) throws NoSuchUserException, SystemException
companyId - the company IDfacebookId - the facebook IDSystemException - if a system exception occurredNoSuchUserExceptionpublic static int countByC_FID(long companyId,
long facebookId)
throws SystemException
companyId - the company IDfacebookId - the facebook IDSystemException - if a system exception occurredpublic static User findByC_O(long companyId, java.lang.String openId) throws NoSuchUserException, SystemException
NoSuchUserException if it could not be found.companyId - the company IDopenId - the open IDNoSuchUserException - if a matching user could not be foundSystemException - if a system exception occurredpublic static User fetchByC_O(long companyId, java.lang.String openId) throws SystemException
null if it could not be found. Uses the finder cache.companyId - the company IDopenId - the open IDnull if a matching user could not be foundSystemException - if a system exception occurredpublic static User fetchByC_O(long companyId, java.lang.String openId, boolean retrieveFromCache) throws SystemException
null if it could not be found, optionally using the finder cache.companyId - the company IDopenId - the open IDretrieveFromCache - whether to use the finder cachenull if a matching user could not be foundSystemException - if a system exception occurredpublic static User removeByC_O(long companyId, java.lang.String openId) throws NoSuchUserException, SystemException
companyId - the company IDopenId - the open IDSystemException - if a system exception occurredNoSuchUserExceptionpublic static int countByC_O(long companyId,
java.lang.String openId)
throws SystemException
companyId - the company IDopenId - the open IDSystemException - if a system exception occurredpublic static java.util.List<User> findByC_S(long companyId, int status) throws SystemException
companyId - the company IDstatus - the statusSystemException - if a system exception occurredpublic static java.util.List<User> findByC_S(long companyId, int status, int start, int end) throws SystemException
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 UserModelImpl. 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 IDstatus - the statusstart - the lower bound of the range of usersend - the upper bound of the range of users (not inclusive)SystemException - if a system exception occurredpublic static java.util.List<User> findByC_S(long companyId, int status, int start, int end, OrderByComparator orderByComparator) throws SystemException
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 UserModelImpl. 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 IDstatus - the statusstart - the lower bound of the range of usersend - the upper bound of the range of users (not inclusive)orderByComparator - the comparator to order the results by (optionally null)SystemException - if a system exception occurredpublic static User findByC_S_First(long companyId, int status, OrderByComparator orderByComparator) throws NoSuchUserException, SystemException
companyId - the company IDstatus - the statusorderByComparator - the comparator to order the set by (optionally null)NoSuchUserException - if a matching user could not be foundSystemException - if a system exception occurredpublic static User fetchByC_S_First(long companyId, int status, OrderByComparator orderByComparator) throws SystemException
companyId - the company IDstatus - the statusorderByComparator - the comparator to order the set by (optionally null)null if a matching user could not be foundSystemException - if a system exception occurredpublic static User findByC_S_Last(long companyId, int status, OrderByComparator orderByComparator) throws NoSuchUserException, SystemException
companyId - the company IDstatus - the statusorderByComparator - the comparator to order the set by (optionally null)NoSuchUserException - if a matching user could not be foundSystemException - if a system exception occurredpublic static User fetchByC_S_Last(long companyId, int status, OrderByComparator orderByComparator) throws SystemException
companyId - the company IDstatus - the statusorderByComparator - the comparator to order the set by (optionally null)null if a matching user could not be foundSystemException - if a system exception occurredpublic static User[] findByC_S_PrevAndNext(long userId, long companyId, int status, OrderByComparator orderByComparator) throws NoSuchUserException, SystemException
userId - the primary key of the current usercompanyId - the company IDstatus - the statusorderByComparator - the comparator to order the set by (optionally null)NoSuchUserException - if a user with the primary key could not be foundSystemException - if a system exception occurredpublic static void removeByC_S(long companyId,
int status)
throws SystemException
companyId - the company IDstatus - the statusSystemException - if a system exception occurredpublic static int countByC_S(long companyId,
int status)
throws SystemException
companyId - the company IDstatus - the statusSystemException - if a system exception occurredpublic static java.util.List<User> findByC_CD_MD(long companyId, java.util.Date createDate, java.util.Date modifiedDate) throws SystemException
companyId - the company IDcreateDate - the create datemodifiedDate - the modified dateSystemException - if a system exception occurredpublic static java.util.List<User> findByC_CD_MD(long companyId, java.util.Date createDate, java.util.Date modifiedDate, int start, int end) throws SystemException
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 UserModelImpl. 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 IDcreateDate - the create datemodifiedDate - the modified datestart - the lower bound of the range of usersend - the upper bound of the range of users (not inclusive)SystemException - if a system exception occurredpublic static java.util.List<User> findByC_CD_MD(long companyId, java.util.Date createDate, java.util.Date modifiedDate, int start, int end, OrderByComparator orderByComparator) throws SystemException
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 UserModelImpl. 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 IDcreateDate - the create datemodifiedDate - the modified datestart - the lower bound of the range of usersend - the upper bound of the range of users (not inclusive)orderByComparator - the comparator to order the results by (optionally null)SystemException - if a system exception occurredpublic static User findByC_CD_MD_First(long companyId, java.util.Date createDate, java.util.Date modifiedDate, OrderByComparator orderByComparator) throws NoSuchUserException, SystemException
companyId - the company IDcreateDate - the create datemodifiedDate - the modified dateorderByComparator - the comparator to order the set by (optionally null)NoSuchUserException - if a matching user could not be foundSystemException - if a system exception occurredpublic static User fetchByC_CD_MD_First(long companyId, java.util.Date createDate, java.util.Date modifiedDate, OrderByComparator orderByComparator) throws SystemException
companyId - the company IDcreateDate - the create datemodifiedDate - the modified dateorderByComparator - the comparator to order the set by (optionally null)null if a matching user could not be foundSystemException - if a system exception occurredpublic static User findByC_CD_MD_Last(long companyId, java.util.Date createDate, java.util.Date modifiedDate, OrderByComparator orderByComparator) throws NoSuchUserException, SystemException
companyId - the company IDcreateDate - the create datemodifiedDate - the modified dateorderByComparator - the comparator to order the set by (optionally null)NoSuchUserException - if a matching user could not be foundSystemException - if a system exception occurredpublic static User fetchByC_CD_MD_Last(long companyId, java.util.Date createDate, java.util.Date modifiedDate, OrderByComparator orderByComparator) throws SystemException
companyId - the company IDcreateDate - the create datemodifiedDate - the modified dateorderByComparator - the comparator to order the set by (optionally null)null if a matching user could not be foundSystemException - if a system exception occurredpublic static User[] findByC_CD_MD_PrevAndNext(long userId, long companyId, java.util.Date createDate, java.util.Date modifiedDate, OrderByComparator orderByComparator) throws NoSuchUserException, SystemException
userId - the primary key of the current usercompanyId - the company IDcreateDate - the create datemodifiedDate - the modified dateorderByComparator - the comparator to order the set by (optionally null)NoSuchUserException - if a user with the primary key could not be foundSystemException - if a system exception occurredpublic static void removeByC_CD_MD(long companyId,
java.util.Date createDate,
java.util.Date modifiedDate)
throws SystemException
companyId - the company IDcreateDate - the create datemodifiedDate - the modified dateSystemException - if a system exception occurredpublic static int countByC_CD_MD(long companyId,
java.util.Date createDate,
java.util.Date modifiedDate)
throws SystemException
companyId - the company IDcreateDate - the create datemodifiedDate - the modified dateSystemException - if a system exception occurredpublic static void cacheResult(User user)
user - the userpublic static void cacheResult(java.util.List<User> users)
users - the userspublic static User create(long userId)
userId - the primary key for the new userpublic static User remove(long userId) throws NoSuchUserException, SystemException
userId - the primary key of the userNoSuchUserException - if a user with the primary key could not be foundSystemException - if a system exception occurredpublic static User updateImpl(User user) throws SystemException
SystemExceptionpublic static User findByPrimaryKey(long userId) throws NoSuchUserException, SystemException
NoSuchUserException if it could not be found.userId - the primary key of the userNoSuchUserException - if a user with the primary key could not be foundSystemException - if a system exception occurredpublic static User fetchByPrimaryKey(long userId) throws SystemException
null if it could not be found.userId - the primary key of the usernull if a user with the primary key could not be foundSystemException - if a system exception occurredpublic static java.util.List<User> findAll() throws SystemException
SystemException - if a system exception occurredpublic static java.util.List<User> findAll(int start, int end) throws SystemException
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 UserModelImpl. 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 usersend - the upper bound of the range of users (not inclusive)SystemException - if a system exception occurredpublic static java.util.List<User> findAll(int start, int end, OrderByComparator orderByComparator) throws SystemException
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 UserModelImpl. 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 usersend - the upper bound of the range of users (not inclusive)orderByComparator - the comparator to order the results by (optionally null)SystemException - if a system exception occurredpublic static void removeAll()
throws SystemException
SystemException - if a system exception occurredpublic static int countAll()
throws SystemException
SystemException - if a system exception occurredpublic static java.util.List<Group> getGroups(long pk) throws SystemException
pk - the primary key of the userSystemException - if a system exception occurredpublic static java.util.List<Group> getGroups(long pk, int start, int end) throws SystemException
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 UserModelImpl. 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 userstart - the lower bound of the range of usersend - the upper bound of the range of users (not inclusive)SystemException - if a system exception occurredpublic static java.util.List<Group> getGroups(long pk, int start, int end, OrderByComparator orderByComparator) throws SystemException
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 UserModelImpl. 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 userstart - the lower bound of the range of usersend - the upper bound of the range of users (not inclusive)orderByComparator - the comparator to order the results by (optionally null)SystemException - if a system exception occurredpublic static int getGroupsSize(long pk)
throws SystemException
pk - the primary key of the userSystemException - if a system exception occurredpublic static boolean containsGroup(long pk,
long groupPK)
throws SystemException
true if the group is associated with the user.pk - the primary key of the usergroupPK - the primary key of the grouptrue if the group is associated with the user; false otherwiseSystemException - if a system exception occurredpublic static boolean containsGroups(long pk)
throws SystemException
true if the user has any groups associated with it.pk - the primary key of the user to check for associations with groupstrue if the user has any groups associated with it; false otherwiseSystemException - if a system exception occurredpublic static void addGroup(long pk,
long groupPK)
throws SystemException
pk - the primary key of the usergroupPK - the primary key of the groupSystemException - if a system exception occurredpublic static void addGroup(long pk,
Group group)
throws SystemException
pk - the primary key of the usergroup - the groupSystemException - if a system exception occurredpublic static void addGroups(long pk,
long[] groupPKs)
throws SystemException
pk - the primary key of the usergroupPKs - the primary keys of the groupsSystemException - if a system exception occurredpublic static void addGroups(long pk,
java.util.List<Group> groups)
throws SystemException
pk - the primary key of the usergroups - the groupsSystemException - if a system exception occurredpublic static void clearGroups(long pk)
throws SystemException
pk - the primary key of the user to clear the associated groups fromSystemException - if a system exception occurredpublic static void removeGroup(long pk,
long groupPK)
throws SystemException
pk - the primary key of the usergroupPK - the primary key of the groupSystemException - if a system exception occurredpublic static void removeGroup(long pk,
Group group)
throws SystemException
pk - the primary key of the usergroup - the groupSystemException - if a system exception occurredpublic static void removeGroups(long pk,
long[] groupPKs)
throws SystemException
pk - the primary key of the usergroupPKs - the primary keys of the groupsSystemException - if a system exception occurredpublic static void removeGroups(long pk,
java.util.List<Group> groups)
throws SystemException
pk - the primary key of the usergroups - the groupsSystemException - if a system exception occurredpublic static void setGroups(long pk,
long[] groupPKs)
throws SystemException
pk - the primary key of the usergroupPKs - the primary keys of the groups to be associated with the userSystemException - if a system exception occurredpublic static void setGroups(long pk,
java.util.List<Group> groups)
throws SystemException
pk - the primary key of the usergroups - the groups to be associated with the userSystemException - if a system exception occurredpublic static java.util.List<Organization> getOrganizations(long pk) throws SystemException
pk - the primary key of the userSystemException - if a system exception occurredpublic static java.util.List<Organization> getOrganizations(long pk, int start, int end) throws SystemException
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 UserModelImpl. 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 userstart - the lower bound of the range of usersend - the upper bound of the range of users (not inclusive)SystemException - if a system exception occurredpublic static java.util.List<Organization> getOrganizations(long pk, int start, int end, OrderByComparator orderByComparator) throws SystemException
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 UserModelImpl. 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 userstart - the lower bound of the range of usersend - the upper bound of the range of users (not inclusive)orderByComparator - the comparator to order the results by (optionally null)SystemException - if a system exception occurredpublic static int getOrganizationsSize(long pk)
throws SystemException
pk - the primary key of the userSystemException - if a system exception occurredpublic static boolean containsOrganization(long pk,
long organizationPK)
throws SystemException
true if the organization is associated with the user.pk - the primary key of the userorganizationPK - the primary key of the organizationtrue if the organization is associated with the user; false otherwiseSystemException - if a system exception occurredpublic static boolean containsOrganizations(long pk)
throws SystemException
true if the user has any organizations associated with it.pk - the primary key of the user to check for associations with organizationstrue if the user has any organizations associated with it; false otherwiseSystemException - if a system exception occurredpublic static void addOrganization(long pk,
long organizationPK)
throws SystemException
pk - the primary key of the userorganizationPK - the primary key of the organizationSystemException - if a system exception occurredpublic static void addOrganization(long pk,
Organization organization)
throws SystemException
pk - the primary key of the userorganization - the organizationSystemException - if a system exception occurredpublic static void addOrganizations(long pk,
long[] organizationPKs)
throws SystemException
pk - the primary key of the userorganizationPKs - the primary keys of the organizationsSystemException - if a system exception occurredpublic static void addOrganizations(long pk,
java.util.List<Organization> organizations)
throws SystemException
pk - the primary key of the userorganizations - the organizationsSystemException - if a system exception occurredpublic static void clearOrganizations(long pk)
throws SystemException
pk - the primary key of the user to clear the associated organizations fromSystemException - if a system exception occurredpublic static void removeOrganization(long pk,
long organizationPK)
throws SystemException
pk - the primary key of the userorganizationPK - the primary key of the organizationSystemException - if a system exception occurredpublic static void removeOrganization(long pk,
Organization organization)
throws SystemException
pk - the primary key of the userorganization - the organizationSystemException - if a system exception occurredpublic static void removeOrganizations(long pk,
long[] organizationPKs)
throws SystemException
pk - the primary key of the userorganizationPKs - the primary keys of the organizationsSystemException - if a system exception occurredpublic static void removeOrganizations(long pk,
java.util.List<Organization> organizations)
throws SystemException
pk - the primary key of the userorganizations - the organizationsSystemException - if a system exception occurredpublic static void setOrganizations(long pk,
long[] organizationPKs)
throws SystemException
pk - the primary key of the userorganizationPKs - the primary keys of the organizations to be associated with the userSystemException - if a system exception occurredpublic static void setOrganizations(long pk,
java.util.List<Organization> organizations)
throws SystemException
pk - the primary key of the userorganizations - the organizations to be associated with the userSystemException - if a system exception occurredpublic static java.util.List<Role> getRoles(long pk) throws SystemException
pk - the primary key of the userSystemException - if a system exception occurredpublic static java.util.List<Role> getRoles(long pk, int start, int end) throws SystemException
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 UserModelImpl. 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 userstart - the lower bound of the range of usersend - the upper bound of the range of users (not inclusive)SystemException - if a system exception occurredpublic static java.util.List<Role> getRoles(long pk, int start, int end, OrderByComparator orderByComparator) throws SystemException
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 UserModelImpl. 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 userstart - the lower bound of the range of usersend - the upper bound of the range of users (not inclusive)orderByComparator - the comparator to order the results by (optionally null)SystemException - if a system exception occurredpublic static int getRolesSize(long pk)
throws SystemException
pk - the primary key of the userSystemException - if a system exception occurredpublic static boolean containsRole(long pk,
long rolePK)
throws SystemException
true if the role is associated with the user.pk - the primary key of the userrolePK - the primary key of the roletrue if the role is associated with the user; false otherwiseSystemException - if a system exception occurredpublic static boolean containsRoles(long pk)
throws SystemException
true if the user has any roles associated with it.pk - the primary key of the user to check for associations with rolestrue if the user has any roles associated with it; false otherwiseSystemException - if a system exception occurredpublic static void addRole(long pk,
long rolePK)
throws SystemException
pk - the primary key of the userrolePK - the primary key of the roleSystemException - if a system exception occurredpublic static void addRole(long pk,
Role role)
throws SystemException
pk - the primary key of the userrole - the roleSystemException - if a system exception occurredpublic static void addRoles(long pk,
long[] rolePKs)
throws SystemException
pk - the primary key of the userrolePKs - the primary keys of the rolesSystemException - if a system exception occurredpublic static void addRoles(long pk,
java.util.List<Role> roles)
throws SystemException
pk - the primary key of the userroles - the rolesSystemException - if a system exception occurredpublic static void clearRoles(long pk)
throws SystemException
pk - the primary key of the user to clear the associated roles fromSystemException - if a system exception occurredpublic static void removeRole(long pk,
long rolePK)
throws SystemException
pk - the primary key of the userrolePK - the primary key of the roleSystemException - if a system exception occurredpublic static void removeRole(long pk,
Role role)
throws SystemException
pk - the primary key of the userrole - the roleSystemException - if a system exception occurredpublic static void removeRoles(long pk,
long[] rolePKs)
throws SystemException
pk - the primary key of the userrolePKs - the primary keys of the rolesSystemException - if a system exception occurredpublic static void removeRoles(long pk,
java.util.List<Role> roles)
throws SystemException
pk - the primary key of the userroles - the rolesSystemException - if a system exception occurredpublic static void setRoles(long pk,
long[] rolePKs)
throws SystemException
pk - the primary key of the userrolePKs - the primary keys of the roles to be associated with the userSystemException - if a system exception occurredpublic static void setRoles(long pk,
java.util.List<Role> roles)
throws SystemException
pk - the primary key of the userroles - the roles to be associated with the userSystemException - if a system exception occurredpublic static java.util.List<Team> getTeams(long pk) throws SystemException
pk - the primary key of the userSystemException - if a system exception occurredpublic static java.util.List<Team> getTeams(long pk, int start, int end) throws SystemException
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 UserModelImpl. 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 userstart - the lower bound of the range of usersend - the upper bound of the range of users (not inclusive)SystemException - if a system exception occurredpublic static java.util.List<Team> getTeams(long pk, int start, int end, OrderByComparator orderByComparator) throws SystemException
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 UserModelImpl. 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 userstart - the lower bound of the range of usersend - the upper bound of the range of users (not inclusive)orderByComparator - the comparator to order the results by (optionally null)SystemException - if a system exception occurredpublic static int getTeamsSize(long pk)
throws SystemException
pk - the primary key of the userSystemException - if a system exception occurredpublic static boolean containsTeam(long pk,
long teamPK)
throws SystemException
true if the team is associated with the user.pk - the primary key of the userteamPK - the primary key of the teamtrue if the team is associated with the user; false otherwiseSystemException - if a system exception occurredpublic static boolean containsTeams(long pk)
throws SystemException
true if the user has any teams associated with it.pk - the primary key of the user to check for associations with teamstrue if the user has any teams associated with it; false otherwiseSystemException - if a system exception occurredpublic static void addTeam(long pk,
long teamPK)
throws SystemException
pk - the primary key of the userteamPK - the primary key of the teamSystemException - if a system exception occurredpublic static void addTeam(long pk,
Team team)
throws SystemException
pk - the primary key of the userteam - the teamSystemException - if a system exception occurredpublic static void addTeams(long pk,
long[] teamPKs)
throws SystemException
pk - the primary key of the userteamPKs - the primary keys of the teamsSystemException - if a system exception occurredpublic static void addTeams(long pk,
java.util.List<Team> teams)
throws SystemException
pk - the primary key of the userteams - the teamsSystemException - if a system exception occurredpublic static void clearTeams(long pk)
throws SystemException
pk - the primary key of the user to clear the associated teams fromSystemException - if a system exception occurredpublic static void removeTeam(long pk,
long teamPK)
throws SystemException
pk - the primary key of the userteamPK - the primary key of the teamSystemException - if a system exception occurredpublic static void removeTeam(long pk,
Team team)
throws SystemException
pk - the primary key of the userteam - the teamSystemException - if a system exception occurredpublic static void removeTeams(long pk,
long[] teamPKs)
throws SystemException
pk - the primary key of the userteamPKs - the primary keys of the teamsSystemException - if a system exception occurredpublic static void removeTeams(long pk,
java.util.List<Team> teams)
throws SystemException
pk - the primary key of the userteams - the teamsSystemException - if a system exception occurredpublic static void setTeams(long pk,
long[] teamPKs)
throws SystemException
pk - the primary key of the userteamPKs - the primary keys of the teams to be associated with the userSystemException - if a system exception occurredpublic static void setTeams(long pk,
java.util.List<Team> teams)
throws SystemException
pk - the primary key of the userteams - the teams to be associated with the userSystemException - if a system exception occurredpublic static java.util.List<UserGroup> getUserGroups(long pk) throws SystemException
pk - the primary key of the userSystemException - if a system exception occurredpublic static java.util.List<UserGroup> getUserGroups(long pk, int start, int end) throws SystemException
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 UserModelImpl. 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 userstart - the lower bound of the range of usersend - the upper bound of the range of users (not inclusive)SystemException - if a system exception occurredpublic static java.util.List<UserGroup> getUserGroups(long pk, int start, int end, OrderByComparator orderByComparator) throws SystemException
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 UserModelImpl. 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 userstart - the lower bound of the range of usersend - the upper bound of the range of users (not inclusive)orderByComparator - the comparator to order the results by (optionally null)SystemException - if a system exception occurredpublic static int getUserGroupsSize(long pk)
throws SystemException
pk - the primary key of the userSystemException - if a system exception occurredpublic static boolean containsUserGroup(long pk,
long userGroupPK)
throws SystemException
true if the user group is associated with the user.pk - the primary key of the useruserGroupPK - the primary key of the user grouptrue if the user group is associated with the user; false otherwiseSystemException - if a system exception occurredpublic static boolean containsUserGroups(long pk)
throws SystemException
true if the user has any user groups associated with it.pk - the primary key of the user to check for associations with user groupstrue if the user has any user groups associated with it; false otherwiseSystemException - if a system exception occurredpublic static void addUserGroup(long pk,
long userGroupPK)
throws SystemException
pk - the primary key of the useruserGroupPK - the primary key of the user groupSystemException - if a system exception occurredpublic static void addUserGroup(long pk,
UserGroup userGroup)
throws SystemException
pk - the primary key of the useruserGroup - the user groupSystemException - if a system exception occurredpublic static void addUserGroups(long pk,
long[] userGroupPKs)
throws SystemException
pk - the primary key of the useruserGroupPKs - the primary keys of the user groupsSystemException - if a system exception occurredpublic static void addUserGroups(long pk,
java.util.List<UserGroup> userGroups)
throws SystemException
pk - the primary key of the useruserGroups - the user groupsSystemException - if a system exception occurredpublic static void clearUserGroups(long pk)
throws SystemException
pk - the primary key of the user to clear the associated user groups fromSystemException - if a system exception occurredpublic static void removeUserGroup(long pk,
long userGroupPK)
throws SystemException
pk - the primary key of the useruserGroupPK - the primary key of the user groupSystemException - if a system exception occurredpublic static void removeUserGroup(long pk,
UserGroup userGroup)
throws SystemException
pk - the primary key of the useruserGroup - the user groupSystemException - if a system exception occurredpublic static void removeUserGroups(long pk,
long[] userGroupPKs)
throws SystemException
pk - the primary key of the useruserGroupPKs - the primary keys of the user groupsSystemException - if a system exception occurredpublic static void removeUserGroups(long pk,
java.util.List<UserGroup> userGroups)
throws SystemException
pk - the primary key of the useruserGroups - the user groupsSystemException - if a system exception occurredpublic static void setUserGroups(long pk,
long[] userGroupPKs)
throws SystemException
pk - the primary key of the useruserGroupPKs - the primary keys of the user groups to be associated with the userSystemException - if a system exception occurredpublic static void setUserGroups(long pk,
java.util.List<UserGroup> userGroups)
throws SystemException
pk - the primary key of the useruserGroups - the user groups to be associated with the userSystemException - if a system exception occurredpublic static UserPersistence getPersistence()
public void setPersistence(UserPersistence persistence)