@ProviderType public interface UserPersistence extends BasePersistence<User>, CTPersistence<User>
Caching information and settings can be found in portal.properties
UserUtil
Modifier and Type | Method and Description |
---|---|
boolean |
addGroup(long pk,
Group group)
Adds an association between the user and the group.
|
boolean |
addGroup(long pk,
long groupPK)
Adds an association between the user and the group.
|
boolean |
addGroups(long pk,
java.util.List<Group> groups)
Adds an association between the user and the groups.
|
boolean |
addGroups(long pk,
long[] groupPKs)
Adds an association between the user and the groups.
|
boolean |
addOrganization(long pk,
long organizationPK)
Adds an association between the user and the organization.
|
boolean |
addOrganization(long pk,
Organization organization)
Adds an association between the user and the organization.
|
boolean |
addOrganizations(long pk,
java.util.List<Organization> organizations)
Adds an association between the user and the organizations.
|
boolean |
addOrganizations(long pk,
long[] organizationPKs)
Adds an association between the user and the organizations.
|
boolean |
addRole(long pk,
long rolePK)
Adds an association between the user and the role.
|
boolean |
addRole(long pk,
Role role)
Adds an association between the user and the role.
|
boolean |
addRoles(long pk,
java.util.List<Role> roles)
Adds an association between the user and the roles.
|
boolean |
addRoles(long pk,
long[] rolePKs)
Adds an association between the user and the roles.
|
boolean |
addTeam(long pk,
long teamPK)
Adds an association between the user and the team.
|
boolean |
addTeam(long pk,
Team team)
Adds an association between the user and the team.
|
boolean |
addTeams(long pk,
java.util.List<Team> teams)
Adds an association between the user and the teams.
|
boolean |
addTeams(long pk,
long[] teamPKs)
Adds an association between the user and the teams.
|
boolean |
addUserGroup(long pk,
long userGroupPK)
Adds an association between the user and the user group.
|
boolean |
addUserGroup(long pk,
UserGroup userGroup)
Adds an association between the user and the user group.
|
boolean |
addUserGroups(long pk,
java.util.List<UserGroup> userGroups)
Adds an association between the user and the user groups.
|
boolean |
addUserGroups(long pk,
long[] userGroupPKs)
Adds an association between the user and the user groups.
|
void |
cacheResult(java.util.List<User> users)
Caches the users in the entity cache if it is enabled.
|
void |
cacheResult(User user)
Caches the user in the entity cache if it is enabled.
|
void |
clearGroups(long pk)
Clears all associations between the user and its groups.
|
void |
clearOrganizations(long pk)
Clears all associations between the user and its organizations.
|
void |
clearRoles(long pk)
Clears all associations between the user and its roles.
|
void |
clearTeams(long pk)
Clears all associations between the user and its teams.
|
void |
clearUserGroups(long pk)
Clears all associations between the user and its user groups.
|
boolean |
containsGroup(long pk,
long groupPK)
Returns
true if the group is associated with the user. |
boolean |
containsGroups(long pk)
Returns
true if the user has any groups associated with it. |
boolean |
containsOrganization(long pk,
long organizationPK)
Returns
true if the organization is associated with the user. |
boolean |
containsOrganizations(long pk)
Returns
true if the user has any organizations associated with it. |
boolean |
containsRole(long pk,
long rolePK)
Returns
true if the role is associated with the user. |
boolean |
containsRoles(long pk)
Returns
true if the user has any roles associated with it. |
boolean |
containsTeam(long pk,
long teamPK)
Returns
true if the team is associated with the user. |
boolean |
containsTeams(long pk)
Returns
true if the user has any teams associated with it. |
boolean |
containsUserGroup(long pk,
long userGroupPK)
Returns
true if the user group is associated with the user. |
boolean |
containsUserGroups(long pk)
Returns
true if the user has any user groups associated with it. |
int |
countAll()
Returns the number of users.
|
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 = ?.
|
int |
countByC_CD(long companyId,
java.util.Date createDate)
Returns the number of users where companyId = ? and createDate = ?.
|
int |
countByC_EA(long companyId,
java.lang.String emailAddress)
Returns the number of users where companyId = ? and emailAddress = ?.
|
int |
countByC_FID(long companyId,
long facebookId)
Returns the number of users where companyId = ? and facebookId = ?.
|
int |
countByC_GUID(long companyId,
java.lang.String googleUserId)
Returns the number of users where companyId = ? and googleUserId = ?.
|
int |
countByC_MD(long companyId,
java.util.Date modifiedDate)
Returns the number of users where companyId = ? and modifiedDate = ?.
|
int |
countByC_O(long companyId,
java.lang.String openId)
Returns the number of users where companyId = ? and openId = ?.
|
int |
countByC_S(long companyId,
int status)
Returns the number of users where companyId = ? and status = ?.
|
int |
countByC_SN(long companyId,
java.lang.String screenName)
Returns the number of users where companyId = ? and screenName = ?.
|
int |
countByC_T_S(long companyId,
int type,
int status)
Returns the number of users where companyId = ? and type = ? and status = ?.
|
int |
countByC_T(long companyId,
int type)
Returns the number of users where companyId = ? and type = ?.
|
int |
countByC_U(long companyId,
long userId)
Returns the number of users where companyId = ? and userId = ?.
|
int |
countByCompanyId(long companyId)
Returns the number of users where companyId = ?.
|
int |
countByContactId(long contactId)
Returns the number of users where contactId = ?.
|
int |
countByEmailAddress(java.lang.String emailAddress)
Returns the number of users where emailAddress = ?.
|
int |
countByERC_C(java.lang.String externalReferenceCode,
long companyId)
Returns the number of users where externalReferenceCode = ? and companyId = ?.
|
int |
countByGtU_C(long userId,
long companyId)
Returns the number of users where userId > ? and companyId = ?.
|
int |
countByPortraitId(long portraitId)
Returns the number of users where portraitId = ?.
|
int |
countByUuid_C(java.lang.String uuid,
long companyId)
Returns the number of users where uuid = ? and companyId = ?.
|
int |
countByUuid(java.lang.String uuid)
Returns the number of users where uuid = ?.
|
User |
create(long userId)
Creates a new user with the primary key.
|
User |
fetchByC_CD_First(long companyId,
java.util.Date createDate,
OrderByComparator<User> orderByComparator)
Returns the first user in the ordered set where companyId = ? and createDate = ?.
|
User |
fetchByC_CD_Last(long companyId,
java.util.Date createDate,
OrderByComparator<User> orderByComparator)
Returns the last user in the ordered set where companyId = ? and createDate = ?.
|
User |
fetchByC_CD_MD_First(long companyId,
java.util.Date createDate,
java.util.Date modifiedDate,
OrderByComparator<User> orderByComparator)
Returns the first user in the ordered set where companyId = ? and createDate = ? and modifiedDate = ?.
|
User |
fetchByC_CD_MD_Last(long companyId,
java.util.Date createDate,
java.util.Date modifiedDate,
OrderByComparator<User> orderByComparator)
Returns the last user in the ordered set where companyId = ? and createDate = ? and modifiedDate = ?.
|
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. |
User |
fetchByC_EA(long companyId,
java.lang.String emailAddress,
boolean useFinderCache)
Returns the user where companyId = ? and emailAddress = ? or returns
null if it could not be found, optionally using the finder cache. |
User |
fetchByC_FID(long companyId,
long facebookId)
Returns the user where companyId = ? and facebookId = ? or returns
null if it could not be found. |
User |
fetchByC_FID(long companyId,
long facebookId,
boolean useFinderCache)
Returns the user where companyId = ? and facebookId = ? or returns
null if it could not be found, optionally using the finder cache. |
User |
fetchByC_GUID(long companyId,
java.lang.String googleUserId)
Returns the user where companyId = ? and googleUserId = ? or returns
null if it could not be found. |
User |
fetchByC_GUID(long companyId,
java.lang.String googleUserId,
boolean useFinderCache)
Returns the user where companyId = ? and googleUserId = ? or returns
null if it could not be found, optionally using the finder cache. |
User |
fetchByC_MD_First(long companyId,
java.util.Date modifiedDate,
OrderByComparator<User> orderByComparator)
Returns the first user in the ordered set where companyId = ? and modifiedDate = ?.
|
User |
fetchByC_MD_Last(long companyId,
java.util.Date modifiedDate,
OrderByComparator<User> orderByComparator)
Returns the last user in the ordered set where companyId = ? and modifiedDate = ?.
|
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. |
User |
fetchByC_O(long companyId,
java.lang.String openId,
boolean useFinderCache)
Returns the user where companyId = ? and openId = ? or returns
null if it could not be found, optionally using the finder cache. |
User |
fetchByC_S_First(long companyId,
int status,
OrderByComparator<User> orderByComparator)
Returns the first user in the ordered set where companyId = ? and status = ?.
|
User |
fetchByC_S_Last(long companyId,
int status,
OrderByComparator<User> orderByComparator)
Returns the last user in the ordered set where companyId = ? and status = ?.
|
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. |
User |
fetchByC_SN(long companyId,
java.lang.String screenName,
boolean useFinderCache)
Returns the user where companyId = ? and screenName = ? or returns
null if it could not be found, optionally using the finder cache. |
User |
fetchByC_T_First(long companyId,
int type,
OrderByComparator<User> orderByComparator)
Returns the first user in the ordered set where companyId = ? and type = ?.
|
User |
fetchByC_T_Last(long companyId,
int type,
OrderByComparator<User> orderByComparator)
Returns the last user in the ordered set where companyId = ? and type = ?.
|
User |
fetchByC_T_S_First(long companyId,
int type,
int status,
OrderByComparator<User> orderByComparator)
Returns the first user in the ordered set where companyId = ? and type = ? and status = ?.
|
User |
fetchByC_T_S_Last(long companyId,
int type,
int status,
OrderByComparator<User> orderByComparator)
Returns the last user in the ordered set where companyId = ? and type = ? and status = ?.
|
User |
fetchByC_U(long companyId,
long userId)
Returns the user where companyId = ? and userId = ? or returns
null if it could not be found. |
User |
fetchByC_U(long companyId,
long userId,
boolean useFinderCache)
Returns the user where companyId = ? and userId = ? or returns
null if it could not be found, optionally using the finder cache. |
User |
fetchByCompanyId_First(long companyId,
OrderByComparator<User> orderByComparator)
Returns the first user in the ordered set where companyId = ?.
|
User |
fetchByCompanyId_Last(long companyId,
OrderByComparator<User> orderByComparator)
Returns the last user in the ordered set where companyId = ?.
|
User |
fetchByContactId(long contactId)
Returns the user where contactId = ? or returns
null if it could not be found. |
User |
fetchByContactId(long contactId,
boolean useFinderCache)
Returns the user where contactId = ? or returns
null if it could not be found, optionally using the finder cache. |
User |
fetchByEmailAddress_First(java.lang.String emailAddress,
OrderByComparator<User> orderByComparator)
Returns the first user in the ordered set where emailAddress = ?.
|
User |
fetchByEmailAddress_Last(java.lang.String emailAddress,
OrderByComparator<User> orderByComparator)
Returns the last user in the ordered set where emailAddress = ?.
|
User |
fetchByERC_C(java.lang.String externalReferenceCode,
long companyId)
Returns the user where externalReferenceCode = ? and companyId = ? or returns
null if it could not be found. |
User |
fetchByERC_C(java.lang.String externalReferenceCode,
long companyId,
boolean useFinderCache)
Returns the user where externalReferenceCode = ? and companyId = ? or returns
null if it could not be found, optionally using the finder cache. |
User |
fetchByGtU_C_First(long userId,
long companyId,
OrderByComparator<User> orderByComparator)
Returns the first user in the ordered set where userId > ? and companyId = ?.
|
User |
fetchByGtU_C_Last(long userId,
long companyId,
OrderByComparator<User> orderByComparator)
Returns the last user in the ordered set where userId > ? and companyId = ?.
|
User |
fetchByPortraitId(long portraitId)
Returns the user where portraitId = ? or returns
null if it could not be found. |
User |
fetchByPortraitId(long portraitId,
boolean useFinderCache)
Returns the user where portraitId = ? or returns
null if it could not be found, optionally using the finder cache. |
User |
fetchByPrimaryKey(long userId)
Returns the user with the primary key or returns
null if it could not be found. |
User |
fetchByUuid_C_First(java.lang.String uuid,
long companyId,
OrderByComparator<User> orderByComparator)
Returns the first user in the ordered set where uuid = ? and companyId = ?.
|
User |
fetchByUuid_C_Last(java.lang.String uuid,
long companyId,
OrderByComparator<User> orderByComparator)
Returns the last user in the ordered set where uuid = ? and companyId = ?.
|
User |
fetchByUuid_First(java.lang.String uuid,
OrderByComparator<User> orderByComparator)
Returns the first user in the ordered set where uuid = ?.
|
User |
fetchByUuid_Last(java.lang.String uuid,
OrderByComparator<User> orderByComparator)
Returns the last user in the ordered set where uuid = ?.
|
java.util.List<User> |
findAll()
Returns all the users.
|
java.util.List<User> |
findAll(int start,
int end)
Returns a range of all the users.
|
java.util.List<User> |
findAll(int start,
int end,
OrderByComparator<User> orderByComparator)
Returns an ordered range of all the users.
|
java.util.List<User> |
findAll(int start,
int end,
OrderByComparator<User> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the users.
|
User |
findByC_CD_First(long companyId,
java.util.Date createDate,
OrderByComparator<User> orderByComparator)
Returns the first user in the ordered set where companyId = ? and createDate = ?.
|
User |
findByC_CD_Last(long companyId,
java.util.Date createDate,
OrderByComparator<User> orderByComparator)
Returns the last user in the ordered set where companyId = ? and createDate = ?.
|
User |
findByC_CD_MD_First(long companyId,
java.util.Date createDate,
java.util.Date modifiedDate,
OrderByComparator<User> orderByComparator)
Returns the first user in the ordered set where companyId = ? and createDate = ? and modifiedDate = ?.
|
User |
findByC_CD_MD_Last(long companyId,
java.util.Date createDate,
java.util.Date modifiedDate,
OrderByComparator<User> orderByComparator)
Returns the last user in the ordered set where companyId = ? and createDate = ? and modifiedDate = ?.
|
User[] |
findByC_CD_MD_PrevAndNext(long userId,
long companyId,
java.util.Date createDate,
java.util.Date modifiedDate,
OrderByComparator<User> orderByComparator)
Returns the users before and after the current user in the ordered set where companyId = ? and createDate = ? and modifiedDate = ?.
|
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 = ?.
|
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 = ?.
|
java.util.List<User> |
findByC_CD_MD(long companyId,
java.util.Date createDate,
java.util.Date modifiedDate,
int start,
int end,
OrderByComparator<User> orderByComparator)
Returns an ordered range of all the users where companyId = ? and createDate = ? and modifiedDate = ?.
|
java.util.List<User> |
findByC_CD_MD(long companyId,
java.util.Date createDate,
java.util.Date modifiedDate,
int start,
int end,
OrderByComparator<User> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the users where companyId = ? and createDate = ? and modifiedDate = ?.
|
User[] |
findByC_CD_PrevAndNext(long userId,
long companyId,
java.util.Date createDate,
OrderByComparator<User> orderByComparator)
Returns the users before and after the current user in the ordered set where companyId = ? and createDate = ?.
|
java.util.List<User> |
findByC_CD(long companyId,
java.util.Date createDate)
Returns all the users where companyId = ? and createDate = ?.
|
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 = ?.
|
java.util.List<User> |
findByC_CD(long companyId,
java.util.Date createDate,
int start,
int end,
OrderByComparator<User> orderByComparator)
Returns an ordered range of all the users where companyId = ? and createDate = ?.
|
java.util.List<User> |
findByC_CD(long companyId,
java.util.Date createDate,
int start,
int end,
OrderByComparator<User> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the users where companyId = ? and createDate = ?.
|
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. |
User |
findByC_FID(long companyId,
long facebookId)
Returns the user where companyId = ? and facebookId = ? or throws a
NoSuchUserException if it could not be found. |
User |
findByC_GUID(long companyId,
java.lang.String googleUserId)
Returns the user where companyId = ? and googleUserId = ? or throws a
NoSuchUserException if it could not be found. |
User |
findByC_MD_First(long companyId,
java.util.Date modifiedDate,
OrderByComparator<User> orderByComparator)
Returns the first user in the ordered set where companyId = ? and modifiedDate = ?.
|
User |
findByC_MD_Last(long companyId,
java.util.Date modifiedDate,
OrderByComparator<User> orderByComparator)
Returns the last user in the ordered set where companyId = ? and modifiedDate = ?.
|
User[] |
findByC_MD_PrevAndNext(long userId,
long companyId,
java.util.Date modifiedDate,
OrderByComparator<User> orderByComparator)
Returns the users before and after the current user in the ordered set where companyId = ? and modifiedDate = ?.
|
java.util.List<User> |
findByC_MD(long companyId,
java.util.Date modifiedDate)
Returns all the users where companyId = ? and modifiedDate = ?.
|
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 = ?.
|
java.util.List<User> |
findByC_MD(long companyId,
java.util.Date modifiedDate,
int start,
int end,
OrderByComparator<User> orderByComparator)
Returns an ordered range of all the users where companyId = ? and modifiedDate = ?.
|
java.util.List<User> |
findByC_MD(long companyId,
java.util.Date modifiedDate,
int start,
int end,
OrderByComparator<User> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the users where companyId = ? and modifiedDate = ?.
|
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. |
User |
findByC_S_First(long companyId,
int status,
OrderByComparator<User> orderByComparator)
Returns the first user in the ordered set where companyId = ? and status = ?.
|
User |
findByC_S_Last(long companyId,
int status,
OrderByComparator<User> orderByComparator)
Returns the last user in the ordered set where companyId = ? and status = ?.
|
User[] |
findByC_S_PrevAndNext(long userId,
long companyId,
int status,
OrderByComparator<User> orderByComparator)
Returns the users before and after the current user in the ordered set where companyId = ? and status = ?.
|
java.util.List<User> |
findByC_S(long companyId,
int status)
Returns all the users where companyId = ? and status = ?.
|
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 = ?.
|
java.util.List<User> |
findByC_S(long companyId,
int status,
int start,
int end,
OrderByComparator<User> orderByComparator)
Returns an ordered range of all the users where companyId = ? and status = ?.
|
java.util.List<User> |
findByC_S(long companyId,
int status,
int start,
int end,
OrderByComparator<User> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the users where companyId = ? and status = ?.
|
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. |
User |
findByC_T_First(long companyId,
int type,
OrderByComparator<User> orderByComparator)
Returns the first user in the ordered set where companyId = ? and type = ?.
|
User |
findByC_T_Last(long companyId,
int type,
OrderByComparator<User> orderByComparator)
Returns the last user in the ordered set where companyId = ? and type = ?.
|
User[] |
findByC_T_PrevAndNext(long userId,
long companyId,
int type,
OrderByComparator<User> orderByComparator)
Returns the users before and after the current user in the ordered set where companyId = ? and type = ?.
|
User |
findByC_T_S_First(long companyId,
int type,
int status,
OrderByComparator<User> orderByComparator)
Returns the first user in the ordered set where companyId = ? and type = ? and status = ?.
|
User |
findByC_T_S_Last(long companyId,
int type,
int status,
OrderByComparator<User> orderByComparator)
Returns the last user in the ordered set where companyId = ? and type = ? and status = ?.
|
User[] |
findByC_T_S_PrevAndNext(long userId,
long companyId,
int type,
int status,
OrderByComparator<User> orderByComparator)
Returns the users before and after the current user in the ordered set where companyId = ? and type = ? and status = ?.
|
java.util.List<User> |
findByC_T_S(long companyId,
int type,
int status)
Returns all the users where companyId = ? and type = ? and status = ?.
|
java.util.List<User> |
findByC_T_S(long companyId,
int type,
int status,
int start,
int end)
Returns a range of all the users where companyId = ? and type = ? and status = ?.
|
java.util.List<User> |
findByC_T_S(long companyId,
int type,
int status,
int start,
int end,
OrderByComparator<User> orderByComparator)
Returns an ordered range of all the users where companyId = ? and type = ? and status = ?.
|
java.util.List<User> |
findByC_T_S(long companyId,
int type,
int status,
int start,
int end,
OrderByComparator<User> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the users where companyId = ? and type = ? and status = ?.
|
java.util.List<User> |
findByC_T(long companyId,
int type)
Returns all the users where companyId = ? and type = ?.
|
java.util.List<User> |
findByC_T(long companyId,
int type,
int start,
int end)
Returns a range of all the users where companyId = ? and type = ?.
|
java.util.List<User> |
findByC_T(long companyId,
int type,
int start,
int end,
OrderByComparator<User> orderByComparator)
Returns an ordered range of all the users where companyId = ? and type = ?.
|
java.util.List<User> |
findByC_T(long companyId,
int type,
int start,
int end,
OrderByComparator<User> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the users where companyId = ? and type = ?.
|
User |
findByC_U(long companyId,
long userId)
Returns the user where companyId = ? and userId = ? or throws a
NoSuchUserException if it could not be found. |
User |
findByCompanyId_First(long companyId,
OrderByComparator<User> orderByComparator)
Returns the first user in the ordered set where companyId = ?.
|
User |
findByCompanyId_Last(long companyId,
OrderByComparator<User> orderByComparator)
Returns the last user in the ordered set where companyId = ?.
|
User[] |
findByCompanyId_PrevAndNext(long userId,
long companyId,
OrderByComparator<User> orderByComparator)
Returns the users before and after the current user in the ordered set where companyId = ?.
|
java.util.List<User> |
findByCompanyId(long companyId)
Returns all the users where companyId = ?.
|
java.util.List<User> |
findByCompanyId(long companyId,
int start,
int end)
Returns a range of all the users where companyId = ?.
|
java.util.List<User> |
findByCompanyId(long companyId,
int start,
int end,
OrderByComparator<User> orderByComparator)
Returns an ordered range of all the users where companyId = ?.
|
java.util.List<User> |
findByCompanyId(long companyId,
int start,
int end,
OrderByComparator<User> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the users where companyId = ?.
|
User |
findByContactId(long contactId)
Returns the user where contactId = ? or throws a
NoSuchUserException if it could not be found. |
User |
findByEmailAddress_First(java.lang.String emailAddress,
OrderByComparator<User> orderByComparator)
Returns the first user in the ordered set where emailAddress = ?.
|
User |
findByEmailAddress_Last(java.lang.String emailAddress,
OrderByComparator<User> orderByComparator)
Returns the last user in the ordered set where emailAddress = ?.
|
User[] |
findByEmailAddress_PrevAndNext(long userId,
java.lang.String emailAddress,
OrderByComparator<User> orderByComparator)
Returns the users before and after the current user in the ordered set where emailAddress = ?.
|
java.util.List<User> |
findByEmailAddress(java.lang.String emailAddress)
Returns all the users where emailAddress = ?.
|
java.util.List<User> |
findByEmailAddress(java.lang.String emailAddress,
int start,
int end)
Returns a range of all the users where emailAddress = ?.
|
java.util.List<User> |
findByEmailAddress(java.lang.String emailAddress,
int start,
int end,
OrderByComparator<User> orderByComparator)
Returns an ordered range of all the users where emailAddress = ?.
|
java.util.List<User> |
findByEmailAddress(java.lang.String emailAddress,
int start,
int end,
OrderByComparator<User> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the users where emailAddress = ?.
|
User |
findByERC_C(java.lang.String externalReferenceCode,
long companyId)
Returns the user where externalReferenceCode = ? and companyId = ? or throws a
NoSuchUserException if it could not be found. |
User |
findByGtU_C_First(long userId,
long companyId,
OrderByComparator<User> orderByComparator)
Returns the first user in the ordered set where userId > ? and companyId = ?.
|
User |
findByGtU_C_Last(long userId,
long companyId,
OrderByComparator<User> orderByComparator)
Returns the last user in the ordered set where userId > ? and companyId = ?.
|
java.util.List<User> |
findByGtU_C(long userId,
long companyId)
Returns all the users where userId > ? and companyId = ?.
|
java.util.List<User> |
findByGtU_C(long userId,
long companyId,
int start,
int end)
Returns a range of all the users where userId > ? and companyId = ?.
|
java.util.List<User> |
findByGtU_C(long userId,
long companyId,
int start,
int end,
OrderByComparator<User> orderByComparator)
Returns an ordered range of all the users where userId > ? and companyId = ?.
|
java.util.List<User> |
findByGtU_C(long userId,
long companyId,
int start,
int end,
OrderByComparator<User> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the users where userId > ? and companyId = ?.
|
User |
findByPortraitId(long portraitId)
Returns the user where portraitId = ? or throws a
NoSuchUserException if it could not be found. |
User |
findByPrimaryKey(long userId)
Returns the user with the primary key or throws a
NoSuchUserException if it could not be found. |
User |
findByUuid_C_First(java.lang.String uuid,
long companyId,
OrderByComparator<User> orderByComparator)
Returns the first user in the ordered set where uuid = ? and companyId = ?.
|
User |
findByUuid_C_Last(java.lang.String uuid,
long companyId,
OrderByComparator<User> orderByComparator)
Returns the last user in the ordered set where uuid = ? and companyId = ?.
|
User[] |
findByUuid_C_PrevAndNext(long userId,
java.lang.String uuid,
long companyId,
OrderByComparator<User> orderByComparator)
Returns the users before and after the current user in the ordered set where uuid = ? and companyId = ?.
|
java.util.List<User> |
findByUuid_C(java.lang.String uuid,
long companyId)
Returns all the users where uuid = ? and companyId = ?.
|
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 = ?.
|
java.util.List<User> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
OrderByComparator<User> orderByComparator)
Returns an ordered range of all the users where uuid = ? and companyId = ?.
|
java.util.List<User> |
findByUuid_C(java.lang.String uuid,
long companyId,
int start,
int end,
OrderByComparator<User> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the users where uuid = ? and companyId = ?.
|
User |
findByUuid_First(java.lang.String uuid,
OrderByComparator<User> orderByComparator)
Returns the first user in the ordered set where uuid = ?.
|
User |
findByUuid_Last(java.lang.String uuid,
OrderByComparator<User> orderByComparator)
Returns the last user in the ordered set where uuid = ?.
|
User[] |
findByUuid_PrevAndNext(long userId,
java.lang.String uuid,
OrderByComparator<User> orderByComparator)
Returns the users before and after the current user in the ordered set where uuid = ?.
|
java.util.List<User> |
findByUuid(java.lang.String uuid)
Returns all the users where uuid = ?.
|
java.util.List<User> |
findByUuid(java.lang.String uuid,
int start,
int end)
Returns a range of all the users where uuid = ?.
|
java.util.List<User> |
findByUuid(java.lang.String uuid,
int start,
int end,
OrderByComparator<User> orderByComparator)
Returns an ordered range of all the users where uuid = ?.
|
java.util.List<User> |
findByUuid(java.lang.String uuid,
int start,
int end,
OrderByComparator<User> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the users where uuid = ?.
|
long[] |
getGroupPrimaryKeys(long pk)
Returns the primaryKeys of groups associated with the user.
|
java.util.List<Group> |
getGroups(long pk)
Returns all the groups associated with the user.
|
java.util.List<Group> |
getGroups(long pk,
int start,
int end)
Returns a range of all the groups associated with the user.
|
java.util.List<Group> |
getGroups(long pk,
int start,
int end,
OrderByComparator<Group> orderByComparator)
Returns an ordered range of all the groups associated with the user.
|
int |
getGroupsSize(long pk)
Returns the number of groups associated with the user.
|
long[] |
getOrganizationPrimaryKeys(long pk)
Returns the primaryKeys of organizations associated with the user.
|
java.util.List<Organization> |
getOrganizations(long pk)
Returns all the organizations associated with the user.
|
java.util.List<Organization> |
getOrganizations(long pk,
int start,
int end)
Returns a range of all the organizations associated with the user.
|
java.util.List<Organization> |
getOrganizations(long pk,
int start,
int end,
OrderByComparator<Organization> orderByComparator)
Returns an ordered range of all the organizations associated with the user.
|
int |
getOrganizationsSize(long pk)
Returns the number of organizations associated with the user.
|
long[] |
getRolePrimaryKeys(long pk)
Returns the primaryKeys of roles associated with the user.
|
java.util.List<Role> |
getRoles(long pk)
Returns all the roles associated with the user.
|
java.util.List<Role> |
getRoles(long pk,
int start,
int end)
Returns a range of all the roles associated with the user.
|
java.util.List<Role> |
getRoles(long pk,
int start,
int end,
OrderByComparator<Role> orderByComparator)
Returns an ordered range of all the roles associated with the user.
|
int |
getRolesSize(long pk)
Returns the number of roles associated with the user.
|
long[] |
getTeamPrimaryKeys(long pk)
Returns the primaryKeys of teams associated with the user.
|
java.util.List<Team> |
getTeams(long pk)
Returns all the teams associated with the user.
|
java.util.List<Team> |
getTeams(long pk,
int start,
int end)
Returns a range of all the teams associated with the user.
|
java.util.List<Team> |
getTeams(long pk,
int start,
int end,
OrderByComparator<Team> orderByComparator)
Returns an ordered range of all the teams associated with the user.
|
int |
getTeamsSize(long pk)
Returns the number of teams associated with the user.
|
long[] |
getUserGroupPrimaryKeys(long pk)
Returns the primaryKeys of user groups associated with the user.
|
java.util.List<UserGroup> |
getUserGroups(long pk)
Returns all the user groups associated with the user.
|
java.util.List<UserGroup> |
getUserGroups(long pk,
int start,
int end)
Returns a range of all the user groups associated with the user.
|
java.util.List<UserGroup> |
getUserGroups(long pk,
int start,
int end,
OrderByComparator<UserGroup> orderByComparator)
Returns an ordered range of all the user groups associated with the user.
|
int |
getUserGroupsSize(long pk)
Returns the number of user groups associated with the user.
|
User |
remove(long userId)
Removes the user with the primary key from the database.
|
void |
removeAll()
Removes all the users from the database.
|
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.
|
void |
removeByC_CD(long companyId,
java.util.Date createDate)
Removes all the users where companyId = ? and createDate = ? from the database.
|
User |
removeByC_EA(long companyId,
java.lang.String emailAddress)
Removes the user where companyId = ? and emailAddress = ? from the database.
|
User |
removeByC_FID(long companyId,
long facebookId)
Removes the user where companyId = ? and facebookId = ? from the database.
|
User |
removeByC_GUID(long companyId,
java.lang.String googleUserId)
Removes the user where companyId = ? and googleUserId = ? from the database.
|
void |
removeByC_MD(long companyId,
java.util.Date modifiedDate)
Removes all the users where companyId = ? and modifiedDate = ? from the database.
|
User |
removeByC_O(long companyId,
java.lang.String openId)
Removes the user where companyId = ? and openId = ? from the database.
|
void |
removeByC_S(long companyId,
int status)
Removes all the users where companyId = ? and status = ? from the database.
|
User |
removeByC_SN(long companyId,
java.lang.String screenName)
Removes the user where companyId = ? and screenName = ? from the database.
|
void |
removeByC_T_S(long companyId,
int type,
int status)
Removes all the users where companyId = ? and type = ? and status = ? from the database.
|
void |
removeByC_T(long companyId,
int type)
Removes all the users where companyId = ? and type = ? from the database.
|
User |
removeByC_U(long companyId,
long userId)
Removes the user where companyId = ? and userId = ? from the database.
|
void |
removeByCompanyId(long companyId)
Removes all the users where companyId = ? from the database.
|
User |
removeByContactId(long contactId)
Removes the user where contactId = ? from the database.
|
void |
removeByEmailAddress(java.lang.String emailAddress)
Removes all the users where emailAddress = ? from the database.
|
User |
removeByERC_C(java.lang.String externalReferenceCode,
long companyId)
Removes the user where externalReferenceCode = ? and companyId = ? from the database.
|
void |
removeByGtU_C(long userId,
long companyId)
Removes all the users where userId > ? and companyId = ? from the database.
|
User |
removeByPortraitId(long portraitId)
Removes the user where portraitId = ? from the database.
|
void |
removeByUuid_C(java.lang.String uuid,
long companyId)
Removes all the users where uuid = ? and companyId = ? from the database.
|
void |
removeByUuid(java.lang.String uuid)
Removes all the users where uuid = ? from the database.
|
void |
removeGroup(long pk,
Group group)
Removes the association between the user and the group.
|
void |
removeGroup(long pk,
long groupPK)
Removes the association between the user and the group.
|
void |
removeGroups(long pk,
java.util.List<Group> groups)
Removes the association between the user and the groups.
|
void |
removeGroups(long pk,
long[] groupPKs)
Removes the association between the user and the groups.
|
void |
removeOrganization(long pk,
long organizationPK)
Removes the association between the user and the organization.
|
void |
removeOrganization(long pk,
Organization organization)
Removes the association between the user and the organization.
|
void |
removeOrganizations(long pk,
java.util.List<Organization> organizations)
Removes the association between the user and the organizations.
|
void |
removeOrganizations(long pk,
long[] organizationPKs)
Removes the association between the user and the organizations.
|
void |
removeRole(long pk,
long rolePK)
Removes the association between the user and the role.
|
void |
removeRole(long pk,
Role role)
Removes the association between the user and the role.
|
void |
removeRoles(long pk,
java.util.List<Role> roles)
Removes the association between the user and the roles.
|
void |
removeRoles(long pk,
long[] rolePKs)
Removes the association between the user and the roles.
|
void |
removeTeam(long pk,
long teamPK)
Removes the association between the user and the team.
|
void |
removeTeam(long pk,
Team team)
Removes the association between the user and the team.
|
void |
removeTeams(long pk,
java.util.List<Team> teams)
Removes the association between the user and the teams.
|
void |
removeTeams(long pk,
long[] teamPKs)
Removes the association between the user and the teams.
|
void |
removeUserGroup(long pk,
long userGroupPK)
Removes the association between the user and the user group.
|
void |
removeUserGroup(long pk,
UserGroup userGroup)
Removes the association between the user and the user group.
|
void |
removeUserGroups(long pk,
java.util.List<UserGroup> userGroups)
Removes the association between the user and the user groups.
|
void |
removeUserGroups(long pk,
long[] userGroupPKs)
Removes the association between the user and the user groups.
|
void |
setGroups(long pk,
java.util.List<Group> groups)
Sets the groups associated with the user, removing and adding associations as necessary.
|
void |
setGroups(long pk,
long[] groupPKs)
Sets the groups associated with the user, removing and adding associations as necessary.
|
void |
setOrganizations(long pk,
java.util.List<Organization> organizations)
Sets the organizations associated with the user, removing and adding associations as necessary.
|
void |
setOrganizations(long pk,
long[] organizationPKs)
Sets the organizations associated with the user, removing and adding associations as necessary.
|
void |
setRoles(long pk,
java.util.List<Role> roles)
Sets the roles associated with the user, removing and adding associations as necessary.
|
void |
setRoles(long pk,
long[] rolePKs)
Sets the roles associated with the user, removing and adding associations as necessary.
|
void |
setTeams(long pk,
java.util.List<Team> teams)
Sets the teams associated with the user, removing and adding associations as necessary.
|
void |
setTeams(long pk,
long[] teamPKs)
Sets the teams associated with the user, removing and adding associations as necessary.
|
void |
setUserGroups(long pk,
java.util.List<UserGroup> userGroups)
Sets the user groups associated with the user, removing and adding associations as necessary.
|
void |
setUserGroups(long pk,
long[] userGroupPKs)
Sets the user groups associated with the user, removing and adding associations as necessary.
|
User |
updateImpl(User user) |
getCTColumnNames, getMappingTableNames, getTableColumnsMap, getTableName, getUniqueIndexColumnNames
clearCache, clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update
java.util.List<User> findByUuid(java.lang.String uuid)
uuid
- the uuidjava.util.List<User> findByUuid(java.lang.String uuid, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from UserModelImpl
.
uuid
- the uuidstart
- the lower bound of the range of usersend
- the upper bound of the range of users (not inclusive)java.util.List<User> findByUuid(java.lang.String uuid, int start, int end, OrderByComparator<User> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from UserModelImpl
.
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
)java.util.List<User> findByUuid(java.lang.String uuid, int start, int end, OrderByComparator<User> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from UserModelImpl
.
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
)useFinderCache
- whether to use the finder cacheUser findByUuid_First(java.lang.String uuid, OrderByComparator<User> orderByComparator) throws NoSuchUserException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchUserException
- if a matching user could not be foundUser fetchByUuid_First(java.lang.String uuid, OrderByComparator<User> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching user could not be foundUser findByUuid_Last(java.lang.String uuid, OrderByComparator<User> orderByComparator) throws NoSuchUserException
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)NoSuchUserException
- if a matching user could not be foundUser fetchByUuid_Last(java.lang.String uuid, OrderByComparator<User> orderByComparator)
uuid
- the uuidorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching user could not be foundUser[] findByUuid_PrevAndNext(long userId, java.lang.String uuid, OrderByComparator<User> orderByComparator) throws NoSuchUserException
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 foundvoid removeByUuid(java.lang.String uuid)
uuid
- the uuidint countByUuid(java.lang.String uuid)
uuid
- the uuidjava.util.List<User> findByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDjava.util.List<User> findByUuid_C(java.lang.String uuid, long companyId, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from UserModelImpl
.
uuid
- the uuidcompanyId
- the company IDstart
- the lower bound of the range of usersend
- the upper bound of the range of users (not inclusive)java.util.List<User> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, OrderByComparator<User> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from UserModelImpl
.
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
)java.util.List<User> findByUuid_C(java.lang.String uuid, long companyId, int start, int end, OrderByComparator<User> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from UserModelImpl
.
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
)useFinderCache
- whether to use the finder cacheUser findByUuid_C_First(java.lang.String uuid, long companyId, OrderByComparator<User> orderByComparator) throws NoSuchUserException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchUserException
- if a matching user could not be foundUser fetchByUuid_C_First(java.lang.String uuid, long companyId, OrderByComparator<User> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching user could not be foundUser findByUuid_C_Last(java.lang.String uuid, long companyId, OrderByComparator<User> orderByComparator) throws NoSuchUserException
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchUserException
- if a matching user could not be foundUser fetchByUuid_C_Last(java.lang.String uuid, long companyId, OrderByComparator<User> orderByComparator)
uuid
- the uuidcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching user could not be foundUser[] findByUuid_C_PrevAndNext(long userId, java.lang.String uuid, long companyId, OrderByComparator<User> orderByComparator) throws NoSuchUserException
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 foundvoid removeByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDint countByUuid_C(java.lang.String uuid, long companyId)
uuid
- the uuidcompanyId
- the company IDjava.util.List<User> findByCompanyId(long companyId)
companyId
- the company IDjava.util.List<User> findByCompanyId(long companyId, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from UserModelImpl
.
companyId
- the company IDstart
- the lower bound of the range of usersend
- the upper bound of the range of users (not inclusive)java.util.List<User> findByCompanyId(long companyId, int start, int end, OrderByComparator<User> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from UserModelImpl
.
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
)java.util.List<User> findByCompanyId(long companyId, int start, int end, OrderByComparator<User> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from UserModelImpl
.
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
)useFinderCache
- whether to use the finder cacheUser findByCompanyId_First(long companyId, OrderByComparator<User> orderByComparator) throws NoSuchUserException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchUserException
- if a matching user could not be foundUser fetchByCompanyId_First(long companyId, OrderByComparator<User> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching user could not be foundUser findByCompanyId_Last(long companyId, OrderByComparator<User> orderByComparator) throws NoSuchUserException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchUserException
- if a matching user could not be foundUser fetchByCompanyId_Last(long companyId, OrderByComparator<User> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching user could not be foundUser[] findByCompanyId_PrevAndNext(long userId, long companyId, OrderByComparator<User> orderByComparator) throws NoSuchUserException
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 foundvoid removeByCompanyId(long companyId)
companyId
- the company IDint countByCompanyId(long companyId)
companyId
- the company IDUser findByContactId(long contactId) throws NoSuchUserException
NoSuchUserException
if it could not be found.contactId
- the contact IDNoSuchUserException
- if a matching user could not be foundUser fetchByContactId(long contactId)
null
if it could not be found. Uses the finder cache.contactId
- the contact IDnull
if a matching user could not be foundUser fetchByContactId(long contactId, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.contactId
- the contact IDuseFinderCache
- whether to use the finder cachenull
if a matching user could not be foundUser removeByContactId(long contactId) throws NoSuchUserException
contactId
- the contact IDNoSuchUserException
int countByContactId(long contactId)
contactId
- the contact IDjava.util.List<User> findByEmailAddress(java.lang.String emailAddress)
emailAddress
- the email addressjava.util.List<User> findByEmailAddress(java.lang.String emailAddress, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from UserModelImpl
.
emailAddress
- the email addressstart
- the lower bound of the range of usersend
- the upper bound of the range of users (not inclusive)java.util.List<User> findByEmailAddress(java.lang.String emailAddress, int start, int end, OrderByComparator<User> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from UserModelImpl
.
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
)java.util.List<User> findByEmailAddress(java.lang.String emailAddress, int start, int end, OrderByComparator<User> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from UserModelImpl
.
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
)useFinderCache
- whether to use the finder cacheUser findByEmailAddress_First(java.lang.String emailAddress, OrderByComparator<User> orderByComparator) throws NoSuchUserException
emailAddress
- the email addressorderByComparator
- the comparator to order the set by (optionally null
)NoSuchUserException
- if a matching user could not be foundUser fetchByEmailAddress_First(java.lang.String emailAddress, OrderByComparator<User> orderByComparator)
emailAddress
- the email addressorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching user could not be foundUser findByEmailAddress_Last(java.lang.String emailAddress, OrderByComparator<User> orderByComparator) throws NoSuchUserException
emailAddress
- the email addressorderByComparator
- the comparator to order the set by (optionally null
)NoSuchUserException
- if a matching user could not be foundUser fetchByEmailAddress_Last(java.lang.String emailAddress, OrderByComparator<User> orderByComparator)
emailAddress
- the email addressorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching user could not be foundUser[] findByEmailAddress_PrevAndNext(long userId, java.lang.String emailAddress, OrderByComparator<User> orderByComparator) throws NoSuchUserException
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 foundvoid removeByEmailAddress(java.lang.String emailAddress)
emailAddress
- the email addressint countByEmailAddress(java.lang.String emailAddress)
emailAddress
- the email addressUser findByPortraitId(long portraitId) throws NoSuchUserException
NoSuchUserException
if it could not be found.portraitId
- the portrait IDNoSuchUserException
- if a matching user could not be foundUser fetchByPortraitId(long portraitId)
null
if it could not be found. Uses the finder cache.portraitId
- the portrait IDnull
if a matching user could not be foundUser fetchByPortraitId(long portraitId, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.portraitId
- the portrait IDuseFinderCache
- whether to use the finder cachenull
if a matching user could not be foundUser removeByPortraitId(long portraitId) throws NoSuchUserException
portraitId
- the portrait IDNoSuchUserException
int countByPortraitId(long portraitId)
portraitId
- the portrait IDjava.util.List<User> findByGtU_C(long userId, long companyId)
userId
- the user IDcompanyId
- the company IDjava.util.List<User> findByGtU_C(long userId, long companyId, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from UserModelImpl
.
userId
- the user IDcompanyId
- the company IDstart
- the lower bound of the range of usersend
- the upper bound of the range of users (not inclusive)java.util.List<User> findByGtU_C(long userId, long companyId, int start, int end, OrderByComparator<User> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from UserModelImpl
.
userId
- the user IDcompanyId
- 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
)java.util.List<User> findByGtU_C(long userId, long companyId, int start, int end, OrderByComparator<User> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from UserModelImpl
.
userId
- the user IDcompanyId
- 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
)useFinderCache
- whether to use the finder cacheUser findByGtU_C_First(long userId, long companyId, OrderByComparator<User> orderByComparator) throws NoSuchUserException
userId
- the user IDcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchUserException
- if a matching user could not be foundUser fetchByGtU_C_First(long userId, long companyId, OrderByComparator<User> orderByComparator)
userId
- the user IDcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching user could not be foundUser findByGtU_C_Last(long userId, long companyId, OrderByComparator<User> orderByComparator) throws NoSuchUserException
userId
- the user IDcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchUserException
- if a matching user could not be foundUser fetchByGtU_C_Last(long userId, long companyId, OrderByComparator<User> orderByComparator)
userId
- the user IDcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching user could not be foundvoid removeByGtU_C(long userId, long companyId)
userId
- the user IDcompanyId
- the company IDint countByGtU_C(long userId, long companyId)
userId
- the user IDcompanyId
- the company IDUser findByC_U(long companyId, long userId) throws NoSuchUserException
NoSuchUserException
if it could not be found.companyId
- the company IDuserId
- the user IDNoSuchUserException
- if a matching user could not be foundUser fetchByC_U(long companyId, long userId)
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 foundUser fetchByC_U(long companyId, long userId, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.companyId
- the company IDuserId
- the user IDuseFinderCache
- whether to use the finder cachenull
if a matching user could not be foundUser removeByC_U(long companyId, long userId) throws NoSuchUserException
companyId
- the company IDuserId
- the user IDNoSuchUserException
int countByC_U(long companyId, long userId)
companyId
- the company IDuserId
- the user IDjava.util.List<User> findByC_CD(long companyId, java.util.Date createDate)
companyId
- the company IDcreateDate
- the create datejava.util.List<User> findByC_CD(long companyId, java.util.Date createDate, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from UserModelImpl
.
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)java.util.List<User> findByC_CD(long companyId, java.util.Date createDate, int start, int end, OrderByComparator<User> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from UserModelImpl
.
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
)java.util.List<User> findByC_CD(long companyId, java.util.Date createDate, int start, int end, OrderByComparator<User> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from UserModelImpl
.
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
)useFinderCache
- whether to use the finder cacheUser findByC_CD_First(long companyId, java.util.Date createDate, OrderByComparator<User> orderByComparator) throws NoSuchUserException
companyId
- the company IDcreateDate
- the create dateorderByComparator
- the comparator to order the set by (optionally null
)NoSuchUserException
- if a matching user could not be foundUser fetchByC_CD_First(long companyId, java.util.Date createDate, OrderByComparator<User> orderByComparator)
companyId
- the company IDcreateDate
- the create dateorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching user could not be foundUser findByC_CD_Last(long companyId, java.util.Date createDate, OrderByComparator<User> orderByComparator) throws NoSuchUserException
companyId
- the company IDcreateDate
- the create dateorderByComparator
- the comparator to order the set by (optionally null
)NoSuchUserException
- if a matching user could not be foundUser fetchByC_CD_Last(long companyId, java.util.Date createDate, OrderByComparator<User> orderByComparator)
companyId
- the company IDcreateDate
- the create dateorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching user could not be foundUser[] findByC_CD_PrevAndNext(long userId, long companyId, java.util.Date createDate, OrderByComparator<User> orderByComparator) throws NoSuchUserException
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 foundvoid removeByC_CD(long companyId, java.util.Date createDate)
companyId
- the company IDcreateDate
- the create dateint countByC_CD(long companyId, java.util.Date createDate)
companyId
- the company IDcreateDate
- the create datejava.util.List<User> findByC_MD(long companyId, java.util.Date modifiedDate)
companyId
- the company IDmodifiedDate
- the modified datejava.util.List<User> findByC_MD(long companyId, java.util.Date modifiedDate, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from UserModelImpl
.
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)java.util.List<User> findByC_MD(long companyId, java.util.Date modifiedDate, int start, int end, OrderByComparator<User> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from UserModelImpl
.
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
)java.util.List<User> findByC_MD(long companyId, java.util.Date modifiedDate, int start, int end, OrderByComparator<User> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from UserModelImpl
.
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
)useFinderCache
- whether to use the finder cacheUser findByC_MD_First(long companyId, java.util.Date modifiedDate, OrderByComparator<User> orderByComparator) throws NoSuchUserException
companyId
- the company IDmodifiedDate
- the modified dateorderByComparator
- the comparator to order the set by (optionally null
)NoSuchUserException
- if a matching user could not be foundUser fetchByC_MD_First(long companyId, java.util.Date modifiedDate, OrderByComparator<User> orderByComparator)
companyId
- the company IDmodifiedDate
- the modified dateorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching user could not be foundUser findByC_MD_Last(long companyId, java.util.Date modifiedDate, OrderByComparator<User> orderByComparator) throws NoSuchUserException
companyId
- the company IDmodifiedDate
- the modified dateorderByComparator
- the comparator to order the set by (optionally null
)NoSuchUserException
- if a matching user could not be foundUser fetchByC_MD_Last(long companyId, java.util.Date modifiedDate, OrderByComparator<User> orderByComparator)
companyId
- the company IDmodifiedDate
- the modified dateorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching user could not be foundUser[] findByC_MD_PrevAndNext(long userId, long companyId, java.util.Date modifiedDate, OrderByComparator<User> orderByComparator) throws NoSuchUserException
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 foundvoid removeByC_MD(long companyId, java.util.Date modifiedDate)
companyId
- the company IDmodifiedDate
- the modified dateint countByC_MD(long companyId, java.util.Date modifiedDate)
companyId
- the company IDmodifiedDate
- the modified dateUser findByC_SN(long companyId, java.lang.String screenName) throws NoSuchUserException
NoSuchUserException
if it could not be found.companyId
- the company IDscreenName
- the screen nameNoSuchUserException
- if a matching user could not be foundUser fetchByC_SN(long companyId, java.lang.String screenName)
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 foundUser fetchByC_SN(long companyId, java.lang.String screenName, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.companyId
- the company IDscreenName
- the screen nameuseFinderCache
- whether to use the finder cachenull
if a matching user could not be foundUser removeByC_SN(long companyId, java.lang.String screenName) throws NoSuchUserException
companyId
- the company IDscreenName
- the screen nameNoSuchUserException
int countByC_SN(long companyId, java.lang.String screenName)
companyId
- the company IDscreenName
- the screen nameUser findByC_EA(long companyId, java.lang.String emailAddress) throws NoSuchUserException
NoSuchUserException
if it could not be found.companyId
- the company IDemailAddress
- the email addressNoSuchUserException
- if a matching user could not be foundUser fetchByC_EA(long companyId, java.lang.String emailAddress)
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 foundUser fetchByC_EA(long companyId, java.lang.String emailAddress, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.companyId
- the company IDemailAddress
- the email addressuseFinderCache
- whether to use the finder cachenull
if a matching user could not be foundUser removeByC_EA(long companyId, java.lang.String emailAddress) throws NoSuchUserException
companyId
- the company IDemailAddress
- the email addressNoSuchUserException
int countByC_EA(long companyId, java.lang.String emailAddress)
companyId
- the company IDemailAddress
- the email addressUser findByC_FID(long companyId, long facebookId) throws NoSuchUserException
NoSuchUserException
if it could not be found.companyId
- the company IDfacebookId
- the facebook IDNoSuchUserException
- if a matching user could not be foundUser fetchByC_FID(long companyId, long facebookId)
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 foundUser fetchByC_FID(long companyId, long facebookId, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.companyId
- the company IDfacebookId
- the facebook IDuseFinderCache
- whether to use the finder cachenull
if a matching user could not be foundUser removeByC_FID(long companyId, long facebookId) throws NoSuchUserException
companyId
- the company IDfacebookId
- the facebook IDNoSuchUserException
int countByC_FID(long companyId, long facebookId)
companyId
- the company IDfacebookId
- the facebook IDUser findByC_GUID(long companyId, java.lang.String googleUserId) throws NoSuchUserException
NoSuchUserException
if it could not be found.companyId
- the company IDgoogleUserId
- the google user IDNoSuchUserException
- if a matching user could not be foundUser fetchByC_GUID(long companyId, java.lang.String googleUserId)
null
if it could not be found. Uses the finder cache.companyId
- the company IDgoogleUserId
- the google user IDnull
if a matching user could not be foundUser fetchByC_GUID(long companyId, java.lang.String googleUserId, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.companyId
- the company IDgoogleUserId
- the google user IDuseFinderCache
- whether to use the finder cachenull
if a matching user could not be foundUser removeByC_GUID(long companyId, java.lang.String googleUserId) throws NoSuchUserException
companyId
- the company IDgoogleUserId
- the google user IDNoSuchUserException
int countByC_GUID(long companyId, java.lang.String googleUserId)
companyId
- the company IDgoogleUserId
- the google user IDUser findByC_O(long companyId, java.lang.String openId) throws NoSuchUserException
NoSuchUserException
if it could not be found.companyId
- the company IDopenId
- the open IDNoSuchUserException
- if a matching user could not be foundUser fetchByC_O(long companyId, java.lang.String openId)
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 foundUser fetchByC_O(long companyId, java.lang.String openId, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.companyId
- the company IDopenId
- the open IDuseFinderCache
- whether to use the finder cachenull
if a matching user could not be foundUser removeByC_O(long companyId, java.lang.String openId) throws NoSuchUserException
companyId
- the company IDopenId
- the open IDNoSuchUserException
int countByC_O(long companyId, java.lang.String openId)
companyId
- the company IDopenId
- the open IDjava.util.List<User> findByC_T(long companyId, int type)
companyId
- the company IDtype
- the typejava.util.List<User> findByC_T(long companyId, int type, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from UserModelImpl
.
companyId
- the company IDtype
- the typestart
- the lower bound of the range of usersend
- the upper bound of the range of users (not inclusive)java.util.List<User> findByC_T(long companyId, int type, int start, int end, OrderByComparator<User> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from UserModelImpl
.
companyId
- the company IDtype
- the typestart
- 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
)java.util.List<User> findByC_T(long companyId, int type, int start, int end, OrderByComparator<User> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from UserModelImpl
.
companyId
- the company IDtype
- the typestart
- 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
)useFinderCache
- whether to use the finder cacheUser findByC_T_First(long companyId, int type, OrderByComparator<User> orderByComparator) throws NoSuchUserException
companyId
- the company IDtype
- the typeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchUserException
- if a matching user could not be foundUser fetchByC_T_First(long companyId, int type, OrderByComparator<User> orderByComparator)
companyId
- the company IDtype
- the typeorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching user could not be foundUser findByC_T_Last(long companyId, int type, OrderByComparator<User> orderByComparator) throws NoSuchUserException
companyId
- the company IDtype
- the typeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchUserException
- if a matching user could not be foundUser fetchByC_T_Last(long companyId, int type, OrderByComparator<User> orderByComparator)
companyId
- the company IDtype
- the typeorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching user could not be foundUser[] findByC_T_PrevAndNext(long userId, long companyId, int type, OrderByComparator<User> orderByComparator) throws NoSuchUserException
userId
- the primary key of the current usercompanyId
- the company IDtype
- the typeorderByComparator
- the comparator to order the set by (optionally null
)NoSuchUserException
- if a user with the primary key could not be foundvoid removeByC_T(long companyId, int type)
companyId
- the company IDtype
- the typeint countByC_T(long companyId, int type)
companyId
- the company IDtype
- the typejava.util.List<User> findByC_S(long companyId, int status)
companyId
- the company IDstatus
- the statusjava.util.List<User> findByC_S(long companyId, int status, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from UserModelImpl
.
companyId
- the company IDstatus
- the statusstart
- the lower bound of the range of usersend
- the upper bound of the range of users (not inclusive)java.util.List<User> findByC_S(long companyId, int status, int start, int end, OrderByComparator<User> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from UserModelImpl
.
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
)java.util.List<User> findByC_S(long companyId, int status, int start, int end, OrderByComparator<User> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from UserModelImpl
.
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
)useFinderCache
- whether to use the finder cacheUser findByC_S_First(long companyId, int status, OrderByComparator<User> orderByComparator) throws NoSuchUserException
companyId
- the company IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchUserException
- if a matching user could not be foundUser fetchByC_S_First(long companyId, int status, OrderByComparator<User> orderByComparator)
companyId
- the company IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching user could not be foundUser findByC_S_Last(long companyId, int status, OrderByComparator<User> orderByComparator) throws NoSuchUserException
companyId
- the company IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchUserException
- if a matching user could not be foundUser fetchByC_S_Last(long companyId, int status, OrderByComparator<User> orderByComparator)
companyId
- the company IDstatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching user could not be foundUser[] findByC_S_PrevAndNext(long userId, long companyId, int status, OrderByComparator<User> orderByComparator) throws NoSuchUserException
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 foundvoid removeByC_S(long companyId, int status)
companyId
- the company IDstatus
- the statusint countByC_S(long companyId, int status)
companyId
- the company IDstatus
- the statusjava.util.List<User> findByC_CD_MD(long companyId, java.util.Date createDate, java.util.Date modifiedDate)
companyId
- the company IDcreateDate
- the create datemodifiedDate
- the modified datejava.util.List<User> findByC_CD_MD(long companyId, java.util.Date createDate, java.util.Date modifiedDate, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from UserModelImpl
.
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)java.util.List<User> findByC_CD_MD(long companyId, java.util.Date createDate, java.util.Date modifiedDate, int start, int end, OrderByComparator<User> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from UserModelImpl
.
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
)java.util.List<User> findByC_CD_MD(long companyId, java.util.Date createDate, java.util.Date modifiedDate, int start, int end, OrderByComparator<User> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from UserModelImpl
.
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
)useFinderCache
- whether to use the finder cacheUser findByC_CD_MD_First(long companyId, java.util.Date createDate, java.util.Date modifiedDate, OrderByComparator<User> orderByComparator) throws NoSuchUserException
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 foundUser fetchByC_CD_MD_First(long companyId, java.util.Date createDate, java.util.Date modifiedDate, OrderByComparator<User> orderByComparator)
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 foundUser findByC_CD_MD_Last(long companyId, java.util.Date createDate, java.util.Date modifiedDate, OrderByComparator<User> orderByComparator) throws NoSuchUserException
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 foundUser fetchByC_CD_MD_Last(long companyId, java.util.Date createDate, java.util.Date modifiedDate, OrderByComparator<User> orderByComparator)
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 foundUser[] findByC_CD_MD_PrevAndNext(long userId, long companyId, java.util.Date createDate, java.util.Date modifiedDate, OrderByComparator<User> orderByComparator) throws NoSuchUserException
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 foundvoid removeByC_CD_MD(long companyId, java.util.Date createDate, java.util.Date modifiedDate)
companyId
- the company IDcreateDate
- the create datemodifiedDate
- the modified dateint countByC_CD_MD(long companyId, java.util.Date createDate, java.util.Date modifiedDate)
companyId
- the company IDcreateDate
- the create datemodifiedDate
- the modified datejava.util.List<User> findByC_T_S(long companyId, int type, int status)
companyId
- the company IDtype
- the typestatus
- the statusjava.util.List<User> findByC_T_S(long companyId, int type, int status, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from UserModelImpl
.
companyId
- the company IDtype
- the typestatus
- the statusstart
- the lower bound of the range of usersend
- the upper bound of the range of users (not inclusive)java.util.List<User> findByC_T_S(long companyId, int type, int status, int start, int end, OrderByComparator<User> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from UserModelImpl
.
companyId
- the company IDtype
- the typestatus
- 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
)java.util.List<User> findByC_T_S(long companyId, int type, int status, int start, int end, OrderByComparator<User> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from UserModelImpl
.
companyId
- the company IDtype
- the typestatus
- 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
)useFinderCache
- whether to use the finder cacheUser findByC_T_S_First(long companyId, int type, int status, OrderByComparator<User> orderByComparator) throws NoSuchUserException
companyId
- the company IDtype
- the typestatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchUserException
- if a matching user could not be foundUser fetchByC_T_S_First(long companyId, int type, int status, OrderByComparator<User> orderByComparator)
companyId
- the company IDtype
- the typestatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching user could not be foundUser findByC_T_S_Last(long companyId, int type, int status, OrderByComparator<User> orderByComparator) throws NoSuchUserException
companyId
- the company IDtype
- the typestatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchUserException
- if a matching user could not be foundUser fetchByC_T_S_Last(long companyId, int type, int status, OrderByComparator<User> orderByComparator)
companyId
- the company IDtype
- the typestatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching user could not be foundUser[] findByC_T_S_PrevAndNext(long userId, long companyId, int type, int status, OrderByComparator<User> orderByComparator) throws NoSuchUserException
userId
- the primary key of the current usercompanyId
- the company IDtype
- the typestatus
- the statusorderByComparator
- the comparator to order the set by (optionally null
)NoSuchUserException
- if a user with the primary key could not be foundvoid removeByC_T_S(long companyId, int type, int status)
companyId
- the company IDtype
- the typestatus
- the statusint countByC_T_S(long companyId, int type, int status)
companyId
- the company IDtype
- the typestatus
- the statusUser findByERC_C(java.lang.String externalReferenceCode, long companyId) throws NoSuchUserException
NoSuchUserException
if it could not be found.externalReferenceCode
- the external reference codecompanyId
- the company IDNoSuchUserException
- if a matching user could not be foundUser fetchByERC_C(java.lang.String externalReferenceCode, long companyId)
null
if it could not be found. Uses the finder cache.externalReferenceCode
- the external reference codecompanyId
- the company IDnull
if a matching user could not be foundUser fetchByERC_C(java.lang.String externalReferenceCode, long companyId, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.externalReferenceCode
- the external reference codecompanyId
- the company IDuseFinderCache
- whether to use the finder cachenull
if a matching user could not be foundUser removeByERC_C(java.lang.String externalReferenceCode, long companyId) throws NoSuchUserException
externalReferenceCode
- the external reference codecompanyId
- the company IDNoSuchUserException
int countByERC_C(java.lang.String externalReferenceCode, long companyId)
externalReferenceCode
- the external reference codecompanyId
- the company IDvoid cacheResult(User user)
user
- the uservoid cacheResult(java.util.List<User> users)
users
- the usersUser create(long userId)
userId
- the primary key for the new userUser remove(long userId) throws NoSuchUserException
userId
- the primary key of the userNoSuchUserException
- if a user with the primary key could not be foundUser findByPrimaryKey(long userId) throws NoSuchUserException
NoSuchUserException
if it could not be found.userId
- the primary key of the userNoSuchUserException
- if a user with the primary key could not be foundUser fetchByPrimaryKey(long userId)
null
if it could not be found.userId
- the primary key of the usernull
if a user with the primary key could not be foundjava.util.List<User> findAll()
java.util.List<User> findAll(int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from UserModelImpl
.
start
- the lower bound of the range of usersend
- the upper bound of the range of users (not inclusive)java.util.List<User> findAll(int start, int end, OrderByComparator<User> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from UserModelImpl
.
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
)java.util.List<User> findAll(int start, int end, OrderByComparator<User> orderByComparator, boolean useFinderCache)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from UserModelImpl
.
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
)useFinderCache
- whether to use the finder cachevoid removeAll()
int countAll()
long[] getGroupPrimaryKeys(long pk)
pk
- the primary key of the userjava.util.List<Group> getGroups(long pk)
pk
- the primary key of the userjava.util.List<Group> getGroups(long pk, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from UserModelImpl
.
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)java.util.List<Group> getGroups(long pk, int start, int end, OrderByComparator<Group> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from UserModelImpl
.
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
)int getGroupsSize(long pk)
pk
- the primary key of the userboolean containsGroup(long pk, long groupPK)
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
otherwiseboolean containsGroups(long pk)
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
otherwiseboolean addGroup(long pk, long groupPK)
pk
- the primary key of the usergroupPK
- the primary key of the grouptrue
if an association between the user and the group was added; false
if they were already associatedboolean addGroup(long pk, Group group)
pk
- the primary key of the usergroup
- the grouptrue
if an association between the user and the group was added; false
if they were already associatedboolean addGroups(long pk, long[] groupPKs)
pk
- the primary key of the usergroupPKs
- the primary keys of the groupstrue
if at least one association between the user and the groups was added; false
if they were all already associatedboolean addGroups(long pk, java.util.List<Group> groups)
pk
- the primary key of the usergroups
- the groupstrue
if at least one association between the user and the groups was added; false
if they were all already associatedvoid clearGroups(long pk)
pk
- the primary key of the user to clear the associated groups fromvoid removeGroup(long pk, long groupPK)
pk
- the primary key of the usergroupPK
- the primary key of the groupvoid removeGroup(long pk, Group group)
pk
- the primary key of the usergroup
- the groupvoid removeGroups(long pk, long[] groupPKs)
pk
- the primary key of the usergroupPKs
- the primary keys of the groupsvoid removeGroups(long pk, java.util.List<Group> groups)
pk
- the primary key of the usergroups
- the groupsvoid setGroups(long pk, long[] groupPKs)
pk
- the primary key of the usergroupPKs
- the primary keys of the groups to be associated with the uservoid setGroups(long pk, java.util.List<Group> groups)
pk
- the primary key of the usergroups
- the groups to be associated with the userlong[] getOrganizationPrimaryKeys(long pk)
pk
- the primary key of the userjava.util.List<Organization> getOrganizations(long pk)
pk
- the primary key of the userjava.util.List<Organization> getOrganizations(long pk, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from UserModelImpl
.
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)java.util.List<Organization> getOrganizations(long pk, int start, int end, OrderByComparator<Organization> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from UserModelImpl
.
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
)int getOrganizationsSize(long pk)
pk
- the primary key of the userboolean containsOrganization(long pk, long organizationPK)
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
otherwiseboolean containsOrganizations(long pk)
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
otherwiseboolean addOrganization(long pk, long organizationPK)
pk
- the primary key of the userorganizationPK
- the primary key of the organizationtrue
if an association between the user and the organization was added; false
if they were already associatedboolean addOrganization(long pk, Organization organization)
pk
- the primary key of the userorganization
- the organizationtrue
if an association between the user and the organization was added; false
if they were already associatedboolean addOrganizations(long pk, long[] organizationPKs)
pk
- the primary key of the userorganizationPKs
- the primary keys of the organizationstrue
if at least one association between the user and the organizations was added; false
if they were all already associatedboolean addOrganizations(long pk, java.util.List<Organization> organizations)
pk
- the primary key of the userorganizations
- the organizationstrue
if at least one association between the user and the organizations was added; false
if they were all already associatedvoid clearOrganizations(long pk)
pk
- the primary key of the user to clear the associated organizations fromvoid removeOrganization(long pk, long organizationPK)
pk
- the primary key of the userorganizationPK
- the primary key of the organizationvoid removeOrganization(long pk, Organization organization)
pk
- the primary key of the userorganization
- the organizationvoid removeOrganizations(long pk, long[] organizationPKs)
pk
- the primary key of the userorganizationPKs
- the primary keys of the organizationsvoid removeOrganizations(long pk, java.util.List<Organization> organizations)
pk
- the primary key of the userorganizations
- the organizationsvoid setOrganizations(long pk, long[] organizationPKs)
pk
- the primary key of the userorganizationPKs
- the primary keys of the organizations to be associated with the uservoid setOrganizations(long pk, java.util.List<Organization> organizations)
pk
- the primary key of the userorganizations
- the organizations to be associated with the userlong[] getRolePrimaryKeys(long pk)
pk
- the primary key of the userjava.util.List<Role> getRoles(long pk)
pk
- the primary key of the userjava.util.List<Role> getRoles(long pk, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from UserModelImpl
.
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)java.util.List<Role> getRoles(long pk, int start, int end, OrderByComparator<Role> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from UserModelImpl
.
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
)int getRolesSize(long pk)
pk
- the primary key of the userboolean containsRole(long pk, long rolePK)
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
otherwiseboolean containsRoles(long pk)
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
otherwiseboolean addRole(long pk, long rolePK)
pk
- the primary key of the userrolePK
- the primary key of the roletrue
if an association between the user and the role was added; false
if they were already associatedboolean addRole(long pk, Role role)
pk
- the primary key of the userrole
- the roletrue
if an association between the user and the role was added; false
if they were already associatedboolean addRoles(long pk, long[] rolePKs)
pk
- the primary key of the userrolePKs
- the primary keys of the rolestrue
if at least one association between the user and the roles was added; false
if they were all already associatedboolean addRoles(long pk, java.util.List<Role> roles)
pk
- the primary key of the userroles
- the rolestrue
if at least one association between the user and the roles was added; false
if they were all already associatedvoid clearRoles(long pk)
pk
- the primary key of the user to clear the associated roles fromvoid removeRole(long pk, long rolePK)
pk
- the primary key of the userrolePK
- the primary key of the rolevoid removeRole(long pk, Role role)
pk
- the primary key of the userrole
- the rolevoid removeRoles(long pk, long[] rolePKs)
pk
- the primary key of the userrolePKs
- the primary keys of the rolesvoid removeRoles(long pk, java.util.List<Role> roles)
pk
- the primary key of the userroles
- the rolesvoid setRoles(long pk, long[] rolePKs)
pk
- the primary key of the userrolePKs
- the primary keys of the roles to be associated with the uservoid setRoles(long pk, java.util.List<Role> roles)
pk
- the primary key of the userroles
- the roles to be associated with the userlong[] getTeamPrimaryKeys(long pk)
pk
- the primary key of the userjava.util.List<Team> getTeams(long pk)
pk
- the primary key of the userjava.util.List<Team> getTeams(long pk, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from UserModelImpl
.
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)java.util.List<Team> getTeams(long pk, int start, int end, OrderByComparator<Team> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from UserModelImpl
.
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
)int getTeamsSize(long pk)
pk
- the primary key of the userboolean containsTeam(long pk, long teamPK)
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
otherwiseboolean containsTeams(long pk)
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
otherwiseboolean addTeam(long pk, long teamPK)
pk
- the primary key of the userteamPK
- the primary key of the teamtrue
if an association between the user and the team was added; false
if they were already associatedboolean addTeam(long pk, Team team)
pk
- the primary key of the userteam
- the teamtrue
if an association between the user and the team was added; false
if they were already associatedboolean addTeams(long pk, long[] teamPKs)
pk
- the primary key of the userteamPKs
- the primary keys of the teamstrue
if at least one association between the user and the teams was added; false
if they were all already associatedboolean addTeams(long pk, java.util.List<Team> teams)
pk
- the primary key of the userteams
- the teamstrue
if at least one association between the user and the teams was added; false
if they were all already associatedvoid clearTeams(long pk)
pk
- the primary key of the user to clear the associated teams fromvoid removeTeam(long pk, long teamPK)
pk
- the primary key of the userteamPK
- the primary key of the teamvoid removeTeam(long pk, Team team)
pk
- the primary key of the userteam
- the teamvoid removeTeams(long pk, long[] teamPKs)
pk
- the primary key of the userteamPKs
- the primary keys of the teamsvoid removeTeams(long pk, java.util.List<Team> teams)
pk
- the primary key of the userteams
- the teamsvoid setTeams(long pk, long[] teamPKs)
pk
- the primary key of the userteamPKs
- the primary keys of the teams to be associated with the uservoid setTeams(long pk, java.util.List<Team> teams)
pk
- the primary key of the userteams
- the teams to be associated with the userlong[] getUserGroupPrimaryKeys(long pk)
pk
- the primary key of the userjava.util.List<UserGroup> getUserGroups(long pk)
pk
- the primary key of the userjava.util.List<UserGroup> getUserGroups(long pk, int start, int end)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from UserModelImpl
.
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)java.util.List<UserGroup> getUserGroups(long pk, int start, int end, OrderByComparator<UserGroup> orderByComparator)
Useful when paginating results. Returns a maximum of end - start
instances. start
and end
are not primary keys, they are indexes in the result set. Thus, 0
refers to the first result in the set. Setting both start
and end
to QueryUtil#ALL_POS
will return the full result set. If orderByComparator
is specified, then the query will include the given ORDER BY logic. If orderByComparator
is absent, then the query will include the default ORDER BY logic from UserModelImpl
.
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
)int getUserGroupsSize(long pk)
pk
- the primary key of the userboolean containsUserGroup(long pk, long userGroupPK)
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
otherwiseboolean containsUserGroups(long pk)
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
otherwiseboolean addUserGroup(long pk, long userGroupPK)
pk
- the primary key of the useruserGroupPK
- the primary key of the user grouptrue
if an association between the user and the user group was added; false
if they were already associatedboolean addUserGroup(long pk, UserGroup userGroup)
pk
- the primary key of the useruserGroup
- the user grouptrue
if an association between the user and the user group was added; false
if they were already associatedboolean addUserGroups(long pk, long[] userGroupPKs)
pk
- the primary key of the useruserGroupPKs
- the primary keys of the user groupstrue
if at least one association between the user and the user groups was added; false
if they were all already associatedboolean addUserGroups(long pk, java.util.List<UserGroup> userGroups)
pk
- the primary key of the useruserGroups
- the user groupstrue
if at least one association between the user and the user groups was added; false
if they were all already associatedvoid clearUserGroups(long pk)
pk
- the primary key of the user to clear the associated user groups fromvoid removeUserGroup(long pk, long userGroupPK)
pk
- the primary key of the useruserGroupPK
- the primary key of the user groupvoid removeUserGroup(long pk, UserGroup userGroup)
pk
- the primary key of the useruserGroup
- the user groupvoid removeUserGroups(long pk, long[] userGroupPKs)
pk
- the primary key of the useruserGroupPKs
- the primary keys of the user groupsvoid removeUserGroups(long pk, java.util.List<UserGroup> userGroups)
pk
- the primary key of the useruserGroups
- the user groupsvoid setUserGroups(long pk, long[] userGroupPKs)
pk
- the primary key of the useruserGroupPKs
- the primary keys of the user groups to be associated with the uservoid setUserGroups(long pk, java.util.List<UserGroup> userGroups)
pk
- the primary key of the useruserGroups
- the user groups to be associated with the user