Interface UserPersistence
- All Superinterfaces:
BasePersistence<User>,CTPersistence<User>
Caching information and settings can be found in portal.properties
- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Method Summary
Modifier and TypeMethodDescriptionbooleanaddGroup(long pk, long groupPK) Adds an association between the user and the group.booleanAdds an association between the user and the group.booleanaddGroups(long pk, long[] groupPKs) Adds an association between the user and the groups.booleanAdds an association between the user and the groups.booleanaddOrganization(long pk, long organizationPK) Adds an association between the user and the organization.booleanaddOrganization(long pk, Organization organization) Adds an association between the user and the organization.booleanaddOrganizations(long pk, long[] organizationPKs) Adds an association between the user and the organizations.booleanaddOrganizations(long pk, List<Organization> organizations) Adds an association between the user and the organizations.booleanaddRole(long pk, long rolePK) Adds an association between the user and the role.booleanAdds an association between the user and the role.booleanaddRoles(long pk, long[] rolePKs) Adds an association between the user and the roles.booleanAdds an association between the user and the roles.booleanaddTeam(long pk, long teamPK) Adds an association between the user and the team.booleanAdds an association between the user and the team.booleanaddTeams(long pk, long[] teamPKs) Adds an association between the user and the teams.booleanAdds an association between the user and the teams.booleanaddUserGroup(long pk, long userGroupPK) Adds an association between the user and the user group.booleanaddUserGroup(long pk, UserGroup userGroup) Adds an association between the user and the user group.booleanaddUserGroups(long pk, long[] userGroupPKs) Adds an association between the user and the user groups.booleanaddUserGroups(long pk, List<UserGroup> userGroups) Adds an association between the user and the user groups.voidcacheResult(User user) Caches the user in the entity cache if it is enabled.voidcacheResult(List<User> users) Caches the users in the entity cache if it is enabled.voidclearGroups(long pk) Clears all associations between the user and its groups.voidclearOrganizations(long pk) Clears all associations between the user and its organizations.voidclearRoles(long pk) Clears all associations between the user and its roles.voidclearTeams(long pk) Clears all associations between the user and its teams.voidclearUserGroups(long pk) Clears all associations between the user and its user groups.booleancontainsGroup(long pk, long groupPK) Returnstrueif the group is associated with the user.booleancontainsGroups(long pk) Returnstrueif the user has any groups associated with it.booleancontainsOrganization(long pk, long organizationPK) Returnstrueif the organization is associated with the user.booleancontainsOrganizations(long pk) Returnstrueif the user has any organizations associated with it.booleancontainsRole(long pk, long rolePK) Returnstrueif the role is associated with the user.booleancontainsRoles(long pk) Returnstrueif the user has any roles associated with it.booleancontainsTeam(long pk, long teamPK) Returnstrueif the team is associated with the user.booleancontainsTeams(long pk) Returnstrueif the user has any teams associated with it.booleancontainsUserGroup(long pk, long userGroupPK) Returnstrueif the user group is associated with the user.booleancontainsUserGroups(long pk) Returnstrueif the user has any user groups associated with it.intcountAll()Returns the number of users.intcountByC_CD(long companyId, Date createDate) Returns the number of users where companyId = ? and createDate = ?.intcountByC_CD_MD(long companyId, Date createDate, Date modifiedDate) Returns the number of users where companyId = ? and createDate = ? and modifiedDate = ?.intcountByC_EA(long companyId, String emailAddress) Returns the number of users where companyId = ? and emailAddress = ?.intcountByC_FID(long companyId, long facebookId) Returns the number of users where companyId = ? and facebookId = ?.intcountByC_GUID(long companyId, String googleUserId) Returns the number of users where companyId = ? and googleUserId = ?.intcountByC_MD(long companyId, Date modifiedDate) Returns the number of users where companyId = ? and modifiedDate = ?.intcountByC_O(long companyId, String openId) Returns the number of users where companyId = ? and openId = ?.intcountByC_S(long companyId, int status) Returns the number of users where companyId = ? and status = ?.intcountByC_SN(long companyId, String screenName) Returns the number of users where companyId = ? and screenName = ?.intcountByC_T(long companyId, int type) Returns the number of users where companyId = ? and type = ?.intcountByC_T_S(long companyId, int type, int status) Returns the number of users where companyId = ? and type = ? and status = ?.intcountByC_U(long companyId, long userId) Returns the number of users where companyId = ? and userId = ?.intcountByCompanyId(long companyId) Returns the number of users where companyId = ?.intcountByContactId(long contactId) Returns the number of users where contactId = ?.intcountByEmailAddress(String emailAddress) Returns the number of users where emailAddress = ?.intcountByERC_C(String externalReferenceCode, long companyId) Returns the number of users where externalReferenceCode = ? and companyId = ?.intcountByGtU_C(long userId, long companyId) Returns the number of users where userId > ? and companyId = ?.intcountByPortraitId(long portraitId) Returns the number of users where portraitId = ?.intcountByUuid(String uuid) Returns the number of users where uuid = ?.intcountByUuid_C(String uuid, long companyId) Returns the number of users where uuid = ? and companyId = ?.create(long userId) Creates a new user with the primary key.fetchByC_CD_First(long companyId, Date createDate, OrderByComparator<User> orderByComparator) Returns the first user in the ordered set where companyId = ? and createDate = ?.fetchByC_CD_Last(long companyId, Date createDate, OrderByComparator<User> orderByComparator) Returns the last user in the ordered set where companyId = ? and createDate = ?.fetchByC_CD_MD_First(long companyId, Date createDate, Date modifiedDate, OrderByComparator<User> orderByComparator) Returns the first user in the ordered set where companyId = ? and createDate = ? and modifiedDate = ?.fetchByC_CD_MD_Last(long companyId, Date createDate, Date modifiedDate, OrderByComparator<User> orderByComparator) Returns the last user in the ordered set where companyId = ? and createDate = ? and modifiedDate = ?.fetchByC_EA(long companyId, String emailAddress) Returns the user where companyId = ? and emailAddress = ? or returnsnullif it could not be found.fetchByC_EA(long companyId, String emailAddress, boolean useFinderCache) Returns the user where companyId = ? and emailAddress = ? or returnsnullif it could not be found, optionally using the finder cache.fetchByC_FID(long companyId, long facebookId) Returns the user where companyId = ? and facebookId = ? or returnsnullif it could not be found.fetchByC_FID(long companyId, long facebookId, boolean useFinderCache) Returns the user where companyId = ? and facebookId = ? or returnsnullif it could not be found, optionally using the finder cache.fetchByC_GUID(long companyId, String googleUserId) Returns the user where companyId = ? and googleUserId = ? or returnsnullif it could not be found.fetchByC_GUID(long companyId, String googleUserId, boolean useFinderCache) Returns the user where companyId = ? and googleUserId = ? or returnsnullif it could not be found, optionally using the finder cache.fetchByC_MD_First(long companyId, Date modifiedDate, OrderByComparator<User> orderByComparator) Returns the first user in the ordered set where companyId = ? and modifiedDate = ?.fetchByC_MD_Last(long companyId, Date modifiedDate, OrderByComparator<User> orderByComparator) Returns the last user in the ordered set where companyId = ? and modifiedDate = ?.fetchByC_O(long companyId, String openId) Returns the user where companyId = ? and openId = ? or returnsnullif it could not be found.fetchByC_O(long companyId, String openId, boolean useFinderCache) Returns the user where companyId = ? and openId = ? or returnsnullif it could not be found, optionally using the finder cache.fetchByC_S_First(long companyId, int status, OrderByComparator<User> orderByComparator) Returns the first user in the ordered set where companyId = ? and status = ?.fetchByC_S_Last(long companyId, int status, OrderByComparator<User> orderByComparator) Returns the last user in the ordered set where companyId = ? and status = ?.fetchByC_SN(long companyId, String screenName) Returns the user where companyId = ? and screenName = ? or returnsnullif it could not be found.fetchByC_SN(long companyId, String screenName, boolean useFinderCache) Returns the user where companyId = ? and screenName = ? or returnsnullif it could not be found, optionally using the finder cache.fetchByC_T_First(long companyId, int type, OrderByComparator<User> orderByComparator) Returns the first user in the ordered set where companyId = ? and type = ?.fetchByC_T_Last(long companyId, int type, OrderByComparator<User> orderByComparator) Returns the last user in the ordered set where companyId = ? and type = ?.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 = ?.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 = ?.fetchByC_U(long companyId, long userId) Returns the user where companyId = ? and userId = ? or returnsnullif it could not be found.fetchByC_U(long companyId, long userId, boolean useFinderCache) Returns the user where companyId = ? and userId = ? or returnsnullif it could not be found, optionally using the finder cache.fetchByCompanyId_First(long companyId, OrderByComparator<User> orderByComparator) Returns the first user in the ordered set where companyId = ?.fetchByCompanyId_Last(long companyId, OrderByComparator<User> orderByComparator) Returns the last user in the ordered set where companyId = ?.fetchByContactId(long contactId) Returns the user where contactId = ? or returnsnullif it could not be found.fetchByContactId(long contactId, boolean useFinderCache) Returns the user where contactId = ? or returnsnullif it could not be found, optionally using the finder cache.fetchByEmailAddress_First(String emailAddress, OrderByComparator<User> orderByComparator) Returns the first user in the ordered set where emailAddress = ?.fetchByEmailAddress_Last(String emailAddress, OrderByComparator<User> orderByComparator) Returns the last user in the ordered set where emailAddress = ?.fetchByERC_C(String externalReferenceCode, long companyId) Returns the user where externalReferenceCode = ? and companyId = ? or returnsnullif it could not be found.fetchByERC_C(String externalReferenceCode, long companyId, boolean useFinderCache) Returns the user where externalReferenceCode = ? and companyId = ? or returnsnullif it could not be found, optionally using the finder cache.fetchByGtU_C_First(long userId, long companyId, OrderByComparator<User> orderByComparator) Returns the first user in the ordered set where userId > ? and companyId = ?.fetchByGtU_C_Last(long userId, long companyId, OrderByComparator<User> orderByComparator) Returns the last user in the ordered set where userId > ? and companyId = ?.fetchByPortraitId(long portraitId) Returns the user where portraitId = ? or returnsnullif it could not be found.fetchByPortraitId(long portraitId, boolean useFinderCache) Returns the user where portraitId = ? or returnsnullif it could not be found, optionally using the finder cache.fetchByPrimaryKey(long userId) Returns the user with the primary key or returnsnullif it could not be found.fetchByUuid_C_First(String uuid, long companyId, OrderByComparator<User> orderByComparator) Returns the first user in the ordered set where uuid = ? and companyId = ?.fetchByUuid_C_Last(String uuid, long companyId, OrderByComparator<User> orderByComparator) Returns the last user in the ordered set where uuid = ? and companyId = ?.fetchByUuid_First(String uuid, OrderByComparator<User> orderByComparator) Returns the first user in the ordered set where uuid = ?.fetchByUuid_Last(String uuid, OrderByComparator<User> orderByComparator) Returns the last user in the ordered set where uuid = ?.findAll()Returns all the users.findAll(int start, int end) Returns a range of all the users.findAll(int start, int end, OrderByComparator<User> orderByComparator) Returns an ordered range of all the users.findAll(int start, int end, OrderByComparator<User> orderByComparator, boolean useFinderCache) Returns an ordered range of all the users.findByC_CD(long companyId, Date createDate) Returns all the users where companyId = ? and createDate = ?.findByC_CD(long companyId, Date createDate, int start, int end) Returns a range of all the users where companyId = ? and createDate = ?.findByC_CD(long companyId, Date createDate, int start, int end, OrderByComparator<User> orderByComparator) Returns an ordered range of all the users where companyId = ? and createDate = ?.findByC_CD(long companyId, Date createDate, int start, int end, OrderByComparator<User> orderByComparator, boolean useFinderCache) Returns an ordered range of all the users where companyId = ? and createDate = ?.findByC_CD_First(long companyId, Date createDate, OrderByComparator<User> orderByComparator) Returns the first user in the ordered set where companyId = ? and createDate = ?.findByC_CD_Last(long companyId, Date createDate, OrderByComparator<User> orderByComparator) Returns the last user in the ordered set where companyId = ? and createDate = ?.findByC_CD_MD(long companyId, Date createDate, Date modifiedDate) Returns all the users where companyId = ? and createDate = ? and modifiedDate = ?.findByC_CD_MD(long companyId, Date createDate, Date modifiedDate, int start, int end) Returns a range of all the users where companyId = ? and createDate = ? and modifiedDate = ?.findByC_CD_MD(long companyId, Date createDate, Date modifiedDate, int start, int end, OrderByComparator<User> orderByComparator) Returns an ordered range of all the users where companyId = ? and createDate = ? and modifiedDate = ?.findByC_CD_MD(long companyId, Date createDate, 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 = ?.findByC_CD_MD_First(long companyId, Date createDate, Date modifiedDate, OrderByComparator<User> orderByComparator) Returns the first user in the ordered set where companyId = ? and createDate = ? and modifiedDate = ?.findByC_CD_MD_Last(long companyId, Date createDate, 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, Date createDate, Date modifiedDate, OrderByComparator<User> orderByComparator) Returns the users before and after the current user in the ordered set where companyId = ? and createDate = ? and modifiedDate = ?.User[]findByC_CD_PrevAndNext(long userId, long companyId, Date createDate, OrderByComparator<User> orderByComparator) Returns the users before and after the current user in the ordered set where companyId = ? and createDate = ?.findByC_EA(long companyId, String emailAddress) Returns the user where companyId = ? and emailAddress = ? or throws aNoSuchUserExceptionif it could not be found.findByC_FID(long companyId, long facebookId) Returns the user where companyId = ? and facebookId = ? or throws aNoSuchUserExceptionif it could not be found.findByC_GUID(long companyId, String googleUserId) Returns the user where companyId = ? and googleUserId = ? or throws aNoSuchUserExceptionif it could not be found.findByC_MD(long companyId, Date modifiedDate) Returns all the users where companyId = ? and modifiedDate = ?.findByC_MD(long companyId, Date modifiedDate, int start, int end) Returns a range of all the users where companyId = ? and modifiedDate = ?.findByC_MD(long companyId, Date modifiedDate, int start, int end, OrderByComparator<User> orderByComparator) Returns an ordered range of all the users where companyId = ? and modifiedDate = ?.findByC_MD(long companyId, Date modifiedDate, int start, int end, OrderByComparator<User> orderByComparator, boolean useFinderCache) Returns an ordered range of all the users where companyId = ? and modifiedDate = ?.findByC_MD_First(long companyId, Date modifiedDate, OrderByComparator<User> orderByComparator) Returns the first user in the ordered set where companyId = ? and modifiedDate = ?.findByC_MD_Last(long companyId, 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, Date modifiedDate, OrderByComparator<User> orderByComparator) Returns the users before and after the current user in the ordered set where companyId = ? and modifiedDate = ?.Returns the user where companyId = ? and openId = ? or throws aNoSuchUserExceptionif it could not be found.findByC_S(long companyId, int status) Returns all the users where companyId = ? and status = ?.findByC_S(long companyId, int status, int start, int end) Returns a range of all the users where companyId = ? and status = ?.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 = ?.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 = ?.findByC_S_First(long companyId, int status, OrderByComparator<User> orderByComparator) Returns the first user in the ordered set where companyId = ? and status = ?.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 = ?.findByC_SN(long companyId, String screenName) Returns the user where companyId = ? and screenName = ? or throws aNoSuchUserExceptionif it could not be found.findByC_T(long companyId, int type) Returns all the users where companyId = ? and type = ?.findByC_T(long companyId, int type, int start, int end) Returns a range of all the users where companyId = ? and type = ?.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 = ?.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 = ?.findByC_T_First(long companyId, int type, OrderByComparator<User> orderByComparator) Returns the first user in the ordered set where companyId = ? and type = ?.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 = ?.findByC_T_S(long companyId, int type, int status) Returns all the users where companyId = ? and type = ? and status = ?.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 = ?.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 = ?.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 = ?.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 = ?.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 = ?.findByC_U(long companyId, long userId) Returns the user where companyId = ? and userId = ? or throws aNoSuchUserExceptionif it could not be found.findByCompanyId(long companyId) Returns all the users where companyId = ?.findByCompanyId(long companyId, int start, int end) Returns a range of all the users where companyId = ?.findByCompanyId(long companyId, int start, int end, OrderByComparator<User> orderByComparator) Returns an ordered range of all the users where companyId = ?.findByCompanyId(long companyId, int start, int end, OrderByComparator<User> orderByComparator, boolean useFinderCache) Returns an ordered range of all the users where companyId = ?.findByCompanyId_First(long companyId, OrderByComparator<User> orderByComparator) Returns the first user in the ordered set where companyId = ?.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 = ?.findByContactId(long contactId) Returns the user where contactId = ? or throws aNoSuchUserExceptionif it could not be found.findByEmailAddress(String emailAddress) Returns all the users where emailAddress = ?.findByEmailAddress(String emailAddress, int start, int end) Returns a range of all the users where emailAddress = ?.findByEmailAddress(String emailAddress, int start, int end, OrderByComparator<User> orderByComparator) Returns an ordered range of all the users where emailAddress = ?.findByEmailAddress(String emailAddress, int start, int end, OrderByComparator<User> orderByComparator, boolean useFinderCache) Returns an ordered range of all the users where emailAddress = ?.findByEmailAddress_First(String emailAddress, OrderByComparator<User> orderByComparator) Returns the first user in the ordered set where emailAddress = ?.findByEmailAddress_Last(String emailAddress, OrderByComparator<User> orderByComparator) Returns the last user in the ordered set where emailAddress = ?.User[]findByEmailAddress_PrevAndNext(long userId, String emailAddress, OrderByComparator<User> orderByComparator) Returns the users before and after the current user in the ordered set where emailAddress = ?.findByERC_C(String externalReferenceCode, long companyId) Returns the user where externalReferenceCode = ? and companyId = ? or throws aNoSuchUserExceptionif it could not be found.findByGtU_C(long userId, long companyId) Returns all the users where userId > ? and companyId = ?.findByGtU_C(long userId, long companyId, int start, int end) Returns a range of all the users where userId > ? and companyId = ?.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 = ?.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 = ?.findByGtU_C_First(long userId, long companyId, OrderByComparator<User> orderByComparator) Returns the first user in the ordered set where userId > ? and companyId = ?.findByGtU_C_Last(long userId, long companyId, OrderByComparator<User> orderByComparator) Returns the last user in the ordered set where userId > ? and companyId = ?.findByPortraitId(long portraitId) Returns the user where portraitId = ? or throws aNoSuchUserExceptionif it could not be found.findByPrimaryKey(long userId) Returns the user with the primary key or throws aNoSuchUserExceptionif it could not be found.findByUuid(String uuid) Returns all the users where uuid = ?.findByUuid(String uuid, int start, int end) Returns a range of all the users where uuid = ?.findByUuid(String uuid, int start, int end, OrderByComparator<User> orderByComparator) Returns an ordered range of all the users where uuid = ?.findByUuid(String uuid, int start, int end, OrderByComparator<User> orderByComparator, boolean useFinderCache) Returns an ordered range of all the users where uuid = ?.findByUuid_C(String uuid, long companyId) Returns all the users where uuid = ? and companyId = ?.findByUuid_C(String uuid, long companyId, int start, int end) Returns a range of all the users where uuid = ? and companyId = ?.findByUuid_C(String uuid, long companyId, int start, int end, OrderByComparator<User> orderByComparator) Returns an ordered range of all the users where uuid = ? and companyId = ?.findByUuid_C(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 = ?.findByUuid_C_First(String uuid, long companyId, OrderByComparator<User> orderByComparator) Returns the first user in the ordered set where uuid = ? and companyId = ?.findByUuid_C_Last(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, String uuid, long companyId, OrderByComparator<User> orderByComparator) Returns the users before and after the current user in the ordered set where uuid = ? and companyId = ?.findByUuid_First(String uuid, OrderByComparator<User> orderByComparator) Returns the first user in the ordered set where uuid = ?.findByUuid_Last(String uuid, OrderByComparator<User> orderByComparator) Returns the last user in the ordered set where uuid = ?.User[]findByUuid_PrevAndNext(long userId, String uuid, OrderByComparator<User> orderByComparator) Returns the users before and after the current user in the ordered set where uuid = ?.long[]getGroupPrimaryKeys(long pk) Returns the primaryKeys of groups associated with the user.getGroups(long pk) Returns all the groups associated with the user.getGroups(long pk, int start, int end) Returns a range of all the groups associated with the user.getGroups(long pk, int start, int end, OrderByComparator<Group> orderByComparator) Returns an ordered range of all the groups associated with the user.intgetGroupsSize(long pk) Returns the number of groups associated with the user.long[]getOrganizationPrimaryKeys(long pk) Returns the primaryKeys of organizations associated with the user.getOrganizations(long pk) Returns all the organizations associated with the user.getOrganizations(long pk, int start, int end) Returns a range of all the organizations associated with the user.getOrganizations(long pk, int start, int end, OrderByComparator<Organization> orderByComparator) Returns an ordered range of all the organizations associated with the user.intgetOrganizationsSize(long pk) Returns the number of organizations associated with the user.long[]getRolePrimaryKeys(long pk) Returns the primaryKeys of roles associated with the user.getRoles(long pk) Returns all the roles associated with the user.getRoles(long pk, int start, int end) Returns a range of all the roles associated with the user.getRoles(long pk, int start, int end, OrderByComparator<Role> orderByComparator) Returns an ordered range of all the roles associated with the user.intgetRolesSize(long pk) Returns the number of roles associated with the user.long[]getTeamPrimaryKeys(long pk) Returns the primaryKeys of teams associated with the user.getTeams(long pk) Returns all the teams associated with the user.getTeams(long pk, int start, int end) Returns a range of all the teams associated with the user.getTeams(long pk, int start, int end, OrderByComparator<Team> orderByComparator) Returns an ordered range of all the teams associated with the user.intgetTeamsSize(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.getUserGroups(long pk) Returns all the user groups associated with the user.getUserGroups(long pk, int start, int end) Returns a range of all the user groups associated with the user.getUserGroups(long pk, int start, int end, OrderByComparator<UserGroup> orderByComparator) Returns an ordered range of all the user groups associated with the user.intgetUserGroupsSize(long pk) Returns the number of user groups associated with the user.remove(long userId) Removes the user with the primary key from the database.voidRemoves all the users from the database.voidremoveByC_CD(long companyId, Date createDate) Removes all the users where companyId = ? and createDate = ? from the database.voidremoveByC_CD_MD(long companyId, Date createDate, Date modifiedDate) Removes all the users where companyId = ? and createDate = ? and modifiedDate = ? from the database.removeByC_EA(long companyId, String emailAddress) Removes the user where companyId = ? and emailAddress = ? from the database.removeByC_FID(long companyId, long facebookId) Removes the user where companyId = ? and facebookId = ? from the database.removeByC_GUID(long companyId, String googleUserId) Removes the user where companyId = ? and googleUserId = ? from the database.voidremoveByC_MD(long companyId, Date modifiedDate) Removes all the users where companyId = ? and modifiedDate = ? from the database.removeByC_O(long companyId, String openId) Removes the user where companyId = ? and openId = ? from the database.voidremoveByC_S(long companyId, int status) Removes all the users where companyId = ? and status = ? from the database.removeByC_SN(long companyId, String screenName) Removes the user where companyId = ? and screenName = ? from the database.voidremoveByC_T(long companyId, int type) Removes all the users where companyId = ? and type = ? from the database.voidremoveByC_T_S(long companyId, int type, int status) Removes all the users where companyId = ? and type = ? and status = ? from the database.removeByC_U(long companyId, long userId) Removes the user where companyId = ? and userId = ? from the database.voidremoveByCompanyId(long companyId) Removes all the users where companyId = ? from the database.removeByContactId(long contactId) Removes the user where contactId = ? from the database.voidremoveByEmailAddress(String emailAddress) Removes all the users where emailAddress = ? from the database.removeByERC_C(String externalReferenceCode, long companyId) Removes the user where externalReferenceCode = ? and companyId = ? from the database.voidremoveByGtU_C(long userId, long companyId) Removes all the users where userId > ? and companyId = ? from the database.removeByPortraitId(long portraitId) Removes the user where portraitId = ? from the database.voidremoveByUuid(String uuid) Removes all the users where uuid = ? from the database.voidremoveByUuid_C(String uuid, long companyId) Removes all the users where uuid = ? and companyId = ? from the database.voidremoveGroup(long pk, long groupPK) Removes the association between the user and the group.voidremoveGroup(long pk, Group group) Removes the association between the user and the group.voidremoveGroups(long pk, long[] groupPKs) Removes the association between the user and the groups.voidremoveGroups(long pk, List<Group> groups) Removes the association between the user and the groups.voidremoveOrganization(long pk, long organizationPK) Removes the association between the user and the organization.voidremoveOrganization(long pk, Organization organization) Removes the association between the user and the organization.voidremoveOrganizations(long pk, long[] organizationPKs) Removes the association between the user and the organizations.voidremoveOrganizations(long pk, List<Organization> organizations) Removes the association between the user and the organizations.voidremoveRole(long pk, long rolePK) Removes the association between the user and the role.voidremoveRole(long pk, Role role) Removes the association between the user and the role.voidremoveRoles(long pk, long[] rolePKs) Removes the association between the user and the roles.voidremoveRoles(long pk, List<Role> roles) Removes the association between the user and the roles.voidremoveTeam(long pk, long teamPK) Removes the association between the user and the team.voidremoveTeam(long pk, Team team) Removes the association between the user and the team.voidremoveTeams(long pk, long[] teamPKs) Removes the association between the user and the teams.voidremoveTeams(long pk, List<Team> teams) Removes the association between the user and the teams.voidremoveUserGroup(long pk, long userGroupPK) Removes the association between the user and the user group.voidremoveUserGroup(long pk, UserGroup userGroup) Removes the association between the user and the user group.voidremoveUserGroups(long pk, long[] userGroupPKs) Removes the association between the user and the user groups.voidremoveUserGroups(long pk, List<UserGroup> userGroups) Removes the association between the user and the user groups.voidsetGroups(long pk, long[] groupPKs) Sets the groups associated with the user, removing and adding associations as necessary.voidSets the groups associated with the user, removing and adding associations as necessary.voidsetOrganizations(long pk, long[] organizationPKs) Sets the organizations associated with the user, removing and adding associations as necessary.voidsetOrganizations(long pk, List<Organization> organizations) Sets the organizations associated with the user, removing and adding associations as necessary.voidsetRoles(long pk, long[] rolePKs) Sets the roles associated with the user, removing and adding associations as necessary.voidSets the roles associated with the user, removing and adding associations as necessary.voidsetTeams(long pk, long[] teamPKs) Sets the teams associated with the user, removing and adding associations as necessary.voidSets the teams associated with the user, removing and adding associations as necessary.voidsetUserGroups(long pk, long[] userGroupPKs) Sets the user groups associated with the user, removing and adding associations as necessary.voidsetUserGroups(long pk, List<UserGroup> userGroups) Sets the user groups associated with the user, removing and adding associations as necessary.updateImpl(User user) Methods inherited from interface com.liferay.portal.kernel.service.persistence.BasePersistence
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, removeByFunction, setDataSource, unregisterListener, update, updateMethods inherited from interface com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence
getCTColumnNames, getMappingTableNames, getTableColumnsMap, getTableName, getUniqueIndexColumnNames
-
Method Details
-
findByUuid
Returns all the users where uuid = ?.- Parameters:
uuid- the uuid- Returns:
- the matching users
-
findByUuid
Returns a range of all the users where uuid = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromUserModelImpl.- Parameters:
uuid- the uuidstart- the lower bound of the range of usersend- the upper bound of the range of users (not inclusive)- Returns:
- the range of matching users
-
findByUuid
Returns an ordered range of all the users where uuid = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromUserModelImpl.- Parameters:
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 (optionallynull)- Returns:
- the ordered range of matching users
-
findByUuid
List<User> findByUuid(String uuid, int start, int end, OrderByComparator<User> orderByComparator, boolean useFinderCache) Returns an ordered range of all the users where uuid = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromUserModelImpl.- Parameters:
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 (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching users
-
findByUuid_First
User findByUuid_First(String uuid, OrderByComparator<User> orderByComparator) throws NoSuchUserException Returns the first user in the ordered set where uuid = ?.- Parameters:
uuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching user
- Throws:
NoSuchUserException- if a matching user could not be found
-
fetchByUuid_First
Returns the first user in the ordered set where uuid = ?.- Parameters:
uuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching user, or
nullif a matching user could not be found
-
findByUuid_Last
User findByUuid_Last(String uuid, OrderByComparator<User> orderByComparator) throws NoSuchUserException Returns the last user in the ordered set where uuid = ?.- Parameters:
uuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching user
- Throws:
NoSuchUserException- if a matching user could not be found
-
fetchByUuid_Last
Returns the last user in the ordered set where uuid = ?.- Parameters:
uuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching user, or
nullif a matching user could not be found
-
findByUuid_PrevAndNext
User[] findByUuid_PrevAndNext(long userId, String uuid, OrderByComparator<User> orderByComparator) throws NoSuchUserException Returns the users before and after the current user in the ordered set where uuid = ?.- Parameters:
userId- the primary key of the current useruuid- the uuidorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next user
- Throws:
NoSuchUserException- if a user with the primary key could not be found
-
removeByUuid
Removes all the users where uuid = ? from the database.- Parameters:
uuid- the uuid
-
countByUuid
Returns the number of users where uuid = ?.- Parameters:
uuid- the uuid- Returns:
- the number of matching users
-
findByUuid_C
Returns all the users where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company ID- Returns:
- the matching users
-
findByUuid_C
Returns a range of all the users where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromUserModelImpl.- Parameters:
uuid- the uuidcompanyId- the company IDstart- the lower bound of the range of usersend- the upper bound of the range of users (not inclusive)- Returns:
- the range of matching users
-
findByUuid_C
List<User> findByUuid_C(String uuid, long companyId, int start, int end, OrderByComparator<User> orderByComparator) Returns an ordered range of all the users where uuid = ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromUserModelImpl.- Parameters:
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 (optionallynull)- Returns:
- the ordered range of matching users
-
findByUuid_C
List<User> findByUuid_C(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 = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromUserModelImpl.- Parameters:
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 (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching users
-
findByUuid_C_First
User findByUuid_C_First(String uuid, long companyId, OrderByComparator<User> orderByComparator) throws NoSuchUserException Returns the first user in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching user
- Throws:
NoSuchUserException- if a matching user could not be found
-
fetchByUuid_C_First
Returns the first user in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching user, or
nullif a matching user could not be found
-
findByUuid_C_Last
User findByUuid_C_Last(String uuid, long companyId, OrderByComparator<User> orderByComparator) throws NoSuchUserException Returns the last user in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching user
- Throws:
NoSuchUserException- if a matching user could not be found
-
fetchByUuid_C_Last
Returns the last user in the ordered set where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching user, or
nullif a matching user could not be found
-
findByUuid_C_PrevAndNext
User[] findByUuid_C_PrevAndNext(long userId, String uuid, long companyId, OrderByComparator<User> orderByComparator) throws NoSuchUserException Returns the users before and after the current user in the ordered set where uuid = ? and companyId = ?.- Parameters:
userId- the primary key of the current useruuid- the uuidcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next user
- Throws:
NoSuchUserException- if a user with the primary key could not be found
-
removeByUuid_C
Removes all the users where uuid = ? and companyId = ? from the database.- Parameters:
uuid- the uuidcompanyId- the company ID
-
countByUuid_C
Returns the number of users where uuid = ? and companyId = ?.- Parameters:
uuid- the uuidcompanyId- the company ID- Returns:
- the number of matching users
-
findByCompanyId
Returns all the users where companyId = ?.- Parameters:
companyId- the company ID- Returns:
- the matching users
-
findByCompanyId
Returns a range of all the users where companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromUserModelImpl.- Parameters:
companyId- the company IDstart- the lower bound of the range of usersend- the upper bound of the range of users (not inclusive)- Returns:
- the range of matching users
-
findByCompanyId
List<User> findByCompanyId(long companyId, int start, int end, OrderByComparator<User> orderByComparator) Returns an ordered range of all the users where companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromUserModelImpl.- Parameters:
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 (optionallynull)- Returns:
- the ordered range of matching users
-
findByCompanyId
List<User> findByCompanyId(long companyId, int start, int end, OrderByComparator<User> orderByComparator, boolean useFinderCache) Returns an ordered range of all the users where companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromUserModelImpl.- Parameters:
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 (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching users
-
findByCompanyId_First
User findByCompanyId_First(long companyId, OrderByComparator<User> orderByComparator) throws NoSuchUserException Returns the first user in the ordered set where companyId = ?.- Parameters:
companyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching user
- Throws:
NoSuchUserException- if a matching user could not be found
-
fetchByCompanyId_First
Returns the first user in the ordered set where companyId = ?.- Parameters:
companyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching user, or
nullif a matching user could not be found
-
findByCompanyId_Last
User findByCompanyId_Last(long companyId, OrderByComparator<User> orderByComparator) throws NoSuchUserException Returns the last user in the ordered set where companyId = ?.- Parameters:
companyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching user
- Throws:
NoSuchUserException- if a matching user could not be found
-
fetchByCompanyId_Last
Returns the last user in the ordered set where companyId = ?.- Parameters:
companyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching user, or
nullif a matching user could not be found
-
findByCompanyId_PrevAndNext
User[] findByCompanyId_PrevAndNext(long userId, long companyId, OrderByComparator<User> orderByComparator) throws NoSuchUserException Returns the users before and after the current user in the ordered set where companyId = ?.- Parameters:
userId- the primary key of the current usercompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next user
- Throws:
NoSuchUserException- if a user with the primary key could not be found
-
removeByCompanyId
void removeByCompanyId(long companyId) Removes all the users where companyId = ? from the database.- Parameters:
companyId- the company ID
-
countByCompanyId
int countByCompanyId(long companyId) Returns the number of users where companyId = ?.- Parameters:
companyId- the company ID- Returns:
- the number of matching users
-
findByContactId
Returns the user where contactId = ? or throws aNoSuchUserExceptionif it could not be found.- Parameters:
contactId- the contact ID- Returns:
- the matching user
- Throws:
NoSuchUserException- if a matching user could not be found
-
fetchByContactId
Returns the user where contactId = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
contactId- the contact ID- Returns:
- the matching user, or
nullif a matching user could not be found
-
fetchByContactId
Returns the user where contactId = ? or returnsnullif it could not be found, optionally using the finder cache.- Parameters:
contactId- the contact IDuseFinderCache- whether to use the finder cache- Returns:
- the matching user, or
nullif a matching user could not be found
-
removeByContactId
Removes the user where contactId = ? from the database.- Parameters:
contactId- the contact ID- Returns:
- the user that was removed
- Throws:
NoSuchUserException
-
countByContactId
int countByContactId(long contactId) Returns the number of users where contactId = ?.- Parameters:
contactId- the contact ID- Returns:
- the number of matching users
-
findByEmailAddress
Returns all the users where emailAddress = ?.- Parameters:
emailAddress- the email address- Returns:
- the matching users
-
findByEmailAddress
Returns a range of all the users where emailAddress = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromUserModelImpl.- Parameters:
emailAddress- the email addressstart- the lower bound of the range of usersend- the upper bound of the range of users (not inclusive)- Returns:
- the range of matching users
-
findByEmailAddress
List<User> findByEmailAddress(String emailAddress, int start, int end, OrderByComparator<User> orderByComparator) Returns an ordered range of all the users where emailAddress = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromUserModelImpl.- Parameters:
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 (optionallynull)- Returns:
- the ordered range of matching users
-
findByEmailAddress
List<User> findByEmailAddress(String emailAddress, int start, int end, OrderByComparator<User> orderByComparator, boolean useFinderCache) Returns an ordered range of all the users where emailAddress = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromUserModelImpl.- Parameters:
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 (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching users
-
findByEmailAddress_First
User findByEmailAddress_First(String emailAddress, OrderByComparator<User> orderByComparator) throws NoSuchUserException Returns the first user in the ordered set where emailAddress = ?.- Parameters:
emailAddress- the email addressorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching user
- Throws:
NoSuchUserException- if a matching user could not be found
-
fetchByEmailAddress_First
Returns the first user in the ordered set where emailAddress = ?.- Parameters:
emailAddress- the email addressorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching user, or
nullif a matching user could not be found
-
findByEmailAddress_Last
User findByEmailAddress_Last(String emailAddress, OrderByComparator<User> orderByComparator) throws NoSuchUserException Returns the last user in the ordered set where emailAddress = ?.- Parameters:
emailAddress- the email addressorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching user
- Throws:
NoSuchUserException- if a matching user could not be found
-
fetchByEmailAddress_Last
Returns the last user in the ordered set where emailAddress = ?.- Parameters:
emailAddress- the email addressorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching user, or
nullif a matching user could not be found
-
findByEmailAddress_PrevAndNext
User[] findByEmailAddress_PrevAndNext(long userId, String emailAddress, OrderByComparator<User> orderByComparator) throws NoSuchUserException Returns the users before and after the current user in the ordered set where emailAddress = ?.- Parameters:
userId- the primary key of the current useremailAddress- the email addressorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next user
- Throws:
NoSuchUserException- if a user with the primary key could not be found
-
removeByEmailAddress
Removes all the users where emailAddress = ? from the database.- Parameters:
emailAddress- the email address
-
countByEmailAddress
Returns the number of users where emailAddress = ?.- Parameters:
emailAddress- the email address- Returns:
- the number of matching users
-
findByPortraitId
Returns the user where portraitId = ? or throws aNoSuchUserExceptionif it could not be found.- Parameters:
portraitId- the portrait ID- Returns:
- the matching user
- Throws:
NoSuchUserException- if a matching user could not be found
-
fetchByPortraitId
Returns the user where portraitId = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
portraitId- the portrait ID- Returns:
- the matching user, or
nullif a matching user could not be found
-
fetchByPortraitId
Returns the user where portraitId = ? or returnsnullif it could not be found, optionally using the finder cache.- Parameters:
portraitId- the portrait IDuseFinderCache- whether to use the finder cache- Returns:
- the matching user, or
nullif a matching user could not be found
-
removeByPortraitId
Removes the user where portraitId = ? from the database.- Parameters:
portraitId- the portrait ID- Returns:
- the user that was removed
- Throws:
NoSuchUserException
-
countByPortraitId
int countByPortraitId(long portraitId) Returns the number of users where portraitId = ?.- Parameters:
portraitId- the portrait ID- Returns:
- the number of matching users
-
findByGtU_C
Returns all the users where userId > ? and companyId = ?.- Parameters:
userId- the user IDcompanyId- the company ID- Returns:
- the matching users
-
findByGtU_C
Returns a range of all the users where userId > ? and companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromUserModelImpl.- Parameters:
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)- Returns:
- the range of matching users
-
findByGtU_C
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 = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromUserModelImpl.- Parameters:
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 (optionallynull)- Returns:
- the ordered range of matching users
-
findByGtU_C
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 = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromUserModelImpl.- Parameters:
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 (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching users
-
findByGtU_C_First
User findByGtU_C_First(long userId, long companyId, OrderByComparator<User> orderByComparator) throws NoSuchUserException Returns the first user in the ordered set where userId > ? and companyId = ?.- Parameters:
userId- the user IDcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching user
- Throws:
NoSuchUserException- if a matching user could not be found
-
fetchByGtU_C_First
Returns the first user in the ordered set where userId > ? and companyId = ?.- Parameters:
userId- the user IDcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching user, or
nullif a matching user could not be found
-
findByGtU_C_Last
User findByGtU_C_Last(long userId, long companyId, OrderByComparator<User> orderByComparator) throws NoSuchUserException Returns the last user in the ordered set where userId > ? and companyId = ?.- Parameters:
userId- the user IDcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching user
- Throws:
NoSuchUserException- if a matching user could not be found
-
fetchByGtU_C_Last
Returns the last user in the ordered set where userId > ? and companyId = ?.- Parameters:
userId- the user IDcompanyId- the company IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching user, or
nullif a matching user could not be found
-
removeByGtU_C
void removeByGtU_C(long userId, long companyId) Removes all the users where userId > ? and companyId = ? from the database.- Parameters:
userId- the user IDcompanyId- the company ID
-
countByGtU_C
int countByGtU_C(long userId, long companyId) Returns the number of users where userId > ? and companyId = ?.- Parameters:
userId- the user IDcompanyId- the company ID- Returns:
- the number of matching users
-
findByC_U
Returns the user where companyId = ? and userId = ? or throws aNoSuchUserExceptionif it could not be found.- Parameters:
companyId- the company IDuserId- the user ID- Returns:
- the matching user
- Throws:
NoSuchUserException- if a matching user could not be found
-
fetchByC_U
Returns the user where companyId = ? and userId = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
companyId- the company IDuserId- the user ID- Returns:
- the matching user, or
nullif a matching user could not be found
-
fetchByC_U
Returns the user where companyId = ? and userId = ? or returnsnullif it could not be found, optionally using the finder cache.- Parameters:
companyId- the company IDuserId- the user IDuseFinderCache- whether to use the finder cache- Returns:
- the matching user, or
nullif a matching user could not be found
-
removeByC_U
Removes the user where companyId = ? and userId = ? from the database.- Parameters:
companyId- the company IDuserId- the user ID- Returns:
- the user that was removed
- Throws:
NoSuchUserException
-
countByC_U
int countByC_U(long companyId, long userId) Returns the number of users where companyId = ? and userId = ?.- Parameters:
companyId- the company IDuserId- the user ID- Returns:
- the number of matching users
-
findByC_CD
Returns all the users where companyId = ? and createDate = ?.- Parameters:
companyId- the company IDcreateDate- the create date- Returns:
- the matching users
-
findByC_CD
Returns a range of all the users where companyId = ? and createDate = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromUserModelImpl.- Parameters:
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)- Returns:
- the range of matching users
-
findByC_CD
List<User> findByC_CD(long companyId, Date createDate, int start, int end, OrderByComparator<User> orderByComparator) Returns an ordered range of all the users where companyId = ? and createDate = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromUserModelImpl.- Parameters:
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 (optionallynull)- Returns:
- the ordered range of matching users
-
findByC_CD
List<User> findByC_CD(long companyId, Date createDate, int start, int end, OrderByComparator<User> orderByComparator, boolean useFinderCache) Returns an ordered range of all the users where companyId = ? and createDate = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromUserModelImpl.- Parameters:
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 (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching users
-
findByC_CD_First
User findByC_CD_First(long companyId, Date createDate, OrderByComparator<User> orderByComparator) throws NoSuchUserException Returns the first user in the ordered set where companyId = ? and createDate = ?.- Parameters:
companyId- the company IDcreateDate- the create dateorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching user
- Throws:
NoSuchUserException- if a matching user could not be found
-
fetchByC_CD_First
Returns the first user in the ordered set where companyId = ? and createDate = ?.- Parameters:
companyId- the company IDcreateDate- the create dateorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching user, or
nullif a matching user could not be found
-
findByC_CD_Last
User findByC_CD_Last(long companyId, Date createDate, OrderByComparator<User> orderByComparator) throws NoSuchUserException Returns the last user in the ordered set where companyId = ? and createDate = ?.- Parameters:
companyId- the company IDcreateDate- the create dateorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching user
- Throws:
NoSuchUserException- if a matching user could not be found
-
fetchByC_CD_Last
Returns the last user in the ordered set where companyId = ? and createDate = ?.- Parameters:
companyId- the company IDcreateDate- the create dateorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching user, or
nullif a matching user could not be found
-
findByC_CD_PrevAndNext
User[] findByC_CD_PrevAndNext(long userId, long companyId, Date createDate, OrderByComparator<User> orderByComparator) throws NoSuchUserException Returns the users before and after the current user in the ordered set where companyId = ? and createDate = ?.- Parameters:
userId- the primary key of the current usercompanyId- the company IDcreateDate- the create dateorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next user
- Throws:
NoSuchUserException- if a user with the primary key could not be found
-
removeByC_CD
Removes all the users where companyId = ? and createDate = ? from the database.- Parameters:
companyId- the company IDcreateDate- the create date
-
countByC_CD
Returns the number of users where companyId = ? and createDate = ?.- Parameters:
companyId- the company IDcreateDate- the create date- Returns:
- the number of matching users
-
findByC_MD
Returns all the users where companyId = ? and modifiedDate = ?.- Parameters:
companyId- the company IDmodifiedDate- the modified date- Returns:
- the matching users
-
findByC_MD
Returns a range of all the users where companyId = ? and modifiedDate = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromUserModelImpl.- Parameters:
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)- Returns:
- the range of matching users
-
findByC_MD
List<User> findByC_MD(long companyId, Date modifiedDate, int start, int end, OrderByComparator<User> orderByComparator) Returns an ordered range of all the users where companyId = ? and modifiedDate = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromUserModelImpl.- Parameters:
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 (optionallynull)- Returns:
- the ordered range of matching users
-
findByC_MD
List<User> findByC_MD(long companyId, Date modifiedDate, int start, int end, OrderByComparator<User> orderByComparator, boolean useFinderCache) Returns an ordered range of all the users where companyId = ? and modifiedDate = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromUserModelImpl.- Parameters:
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 (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching users
-
findByC_MD_First
User findByC_MD_First(long companyId, Date modifiedDate, OrderByComparator<User> orderByComparator) throws NoSuchUserException Returns the first user in the ordered set where companyId = ? and modifiedDate = ?.- Parameters:
companyId- the company IDmodifiedDate- the modified dateorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching user
- Throws:
NoSuchUserException- if a matching user could not be found
-
fetchByC_MD_First
User fetchByC_MD_First(long companyId, Date modifiedDate, OrderByComparator<User> orderByComparator) Returns the first user in the ordered set where companyId = ? and modifiedDate = ?.- Parameters:
companyId- the company IDmodifiedDate- the modified dateorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching user, or
nullif a matching user could not be found
-
findByC_MD_Last
User findByC_MD_Last(long companyId, Date modifiedDate, OrderByComparator<User> orderByComparator) throws NoSuchUserException Returns the last user in the ordered set where companyId = ? and modifiedDate = ?.- Parameters:
companyId- the company IDmodifiedDate- the modified dateorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching user
- Throws:
NoSuchUserException- if a matching user could not be found
-
fetchByC_MD_Last
Returns the last user in the ordered set where companyId = ? and modifiedDate = ?.- Parameters:
companyId- the company IDmodifiedDate- the modified dateorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching user, or
nullif a matching user could not be found
-
findByC_MD_PrevAndNext
User[] findByC_MD_PrevAndNext(long userId, long companyId, Date modifiedDate, OrderByComparator<User> orderByComparator) throws NoSuchUserException Returns the users before and after the current user in the ordered set where companyId = ? and modifiedDate = ?.- Parameters:
userId- the primary key of the current usercompanyId- the company IDmodifiedDate- the modified dateorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next user
- Throws:
NoSuchUserException- if a user with the primary key could not be found
-
removeByC_MD
Removes all the users where companyId = ? and modifiedDate = ? from the database.- Parameters:
companyId- the company IDmodifiedDate- the modified date
-
countByC_MD
Returns the number of users where companyId = ? and modifiedDate = ?.- Parameters:
companyId- the company IDmodifiedDate- the modified date- Returns:
- the number of matching users
-
findByC_SN
Returns the user where companyId = ? and screenName = ? or throws aNoSuchUserExceptionif it could not be found.- Parameters:
companyId- the company IDscreenName- the screen name- Returns:
- the matching user
- Throws:
NoSuchUserException- if a matching user could not be found
-
fetchByC_SN
Returns the user where companyId = ? and screenName = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
companyId- the company IDscreenName- the screen name- Returns:
- the matching user, or
nullif a matching user could not be found
-
fetchByC_SN
Returns the user where companyId = ? and screenName = ? or returnsnullif it could not be found, optionally using the finder cache.- Parameters:
companyId- the company IDscreenName- the screen nameuseFinderCache- whether to use the finder cache- Returns:
- the matching user, or
nullif a matching user could not be found
-
removeByC_SN
Removes the user where companyId = ? and screenName = ? from the database.- Parameters:
companyId- the company IDscreenName- the screen name- Returns:
- the user that was removed
- Throws:
NoSuchUserException
-
countByC_SN
Returns the number of users where companyId = ? and screenName = ?.- Parameters:
companyId- the company IDscreenName- the screen name- Returns:
- the number of matching users
-
findByC_EA
Returns the user where companyId = ? and emailAddress = ? or throws aNoSuchUserExceptionif it could not be found.- Parameters:
companyId- the company IDemailAddress- the email address- Returns:
- the matching user
- Throws:
NoSuchUserException- if a matching user could not be found
-
fetchByC_EA
Returns the user where companyId = ? and emailAddress = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
companyId- the company IDemailAddress- the email address- Returns:
- the matching user, or
nullif a matching user could not be found
-
fetchByC_EA
Returns the user where companyId = ? and emailAddress = ? or returnsnullif it could not be found, optionally using the finder cache.- Parameters:
companyId- the company IDemailAddress- the email addressuseFinderCache- whether to use the finder cache- Returns:
- the matching user, or
nullif a matching user could not be found
-
removeByC_EA
Removes the user where companyId = ? and emailAddress = ? from the database.- Parameters:
companyId- the company IDemailAddress- the email address- Returns:
- the user that was removed
- Throws:
NoSuchUserException
-
countByC_EA
Returns the number of users where companyId = ? and emailAddress = ?.- Parameters:
companyId- the company IDemailAddress- the email address- Returns:
- the number of matching users
-
findByC_FID
Returns the user where companyId = ? and facebookId = ? or throws aNoSuchUserExceptionif it could not be found.- Parameters:
companyId- the company IDfacebookId- the facebook ID- Returns:
- the matching user
- Throws:
NoSuchUserException- if a matching user could not be found
-
fetchByC_FID
Returns the user where companyId = ? and facebookId = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
companyId- the company IDfacebookId- the facebook ID- Returns:
- the matching user, or
nullif a matching user could not be found
-
fetchByC_FID
Returns the user where companyId = ? and facebookId = ? or returnsnullif it could not be found, optionally using the finder cache.- Parameters:
companyId- the company IDfacebookId- the facebook IDuseFinderCache- whether to use the finder cache- Returns:
- the matching user, or
nullif a matching user could not be found
-
removeByC_FID
Removes the user where companyId = ? and facebookId = ? from the database.- Parameters:
companyId- the company IDfacebookId- the facebook ID- Returns:
- the user that was removed
- Throws:
NoSuchUserException
-
countByC_FID
int countByC_FID(long companyId, long facebookId) Returns the number of users where companyId = ? and facebookId = ?.- Parameters:
companyId- the company IDfacebookId- the facebook ID- Returns:
- the number of matching users
-
findByC_GUID
Returns the user where companyId = ? and googleUserId = ? or throws aNoSuchUserExceptionif it could not be found.- Parameters:
companyId- the company IDgoogleUserId- the google user ID- Returns:
- the matching user
- Throws:
NoSuchUserException- if a matching user could not be found
-
fetchByC_GUID
Returns the user where companyId = ? and googleUserId = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
companyId- the company IDgoogleUserId- the google user ID- Returns:
- the matching user, or
nullif a matching user could not be found
-
fetchByC_GUID
Returns the user where companyId = ? and googleUserId = ? or returnsnullif it could not be found, optionally using the finder cache.- Parameters:
companyId- the company IDgoogleUserId- the google user IDuseFinderCache- whether to use the finder cache- Returns:
- the matching user, or
nullif a matching user could not be found
-
removeByC_GUID
Removes the user where companyId = ? and googleUserId = ? from the database.- Parameters:
companyId- the company IDgoogleUserId- the google user ID- Returns:
- the user that was removed
- Throws:
NoSuchUserException
-
countByC_GUID
Returns the number of users where companyId = ? and googleUserId = ?.- Parameters:
companyId- the company IDgoogleUserId- the google user ID- Returns:
- the number of matching users
-
findByC_O
Returns the user where companyId = ? and openId = ? or throws aNoSuchUserExceptionif it could not be found.- Parameters:
companyId- the company IDopenId- the open ID- Returns:
- the matching user
- Throws:
NoSuchUserException- if a matching user could not be found
-
fetchByC_O
Returns the user where companyId = ? and openId = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
companyId- the company IDopenId- the open ID- Returns:
- the matching user, or
nullif a matching user could not be found
-
fetchByC_O
Returns the user where companyId = ? and openId = ? or returnsnullif it could not be found, optionally using the finder cache.- Parameters:
companyId- the company IDopenId- the open IDuseFinderCache- whether to use the finder cache- Returns:
- the matching user, or
nullif a matching user could not be found
-
removeByC_O
Removes the user where companyId = ? and openId = ? from the database.- Parameters:
companyId- the company IDopenId- the open ID- Returns:
- the user that was removed
- Throws:
NoSuchUserException
-
countByC_O
Returns the number of users where companyId = ? and openId = ?.- Parameters:
companyId- the company IDopenId- the open ID- Returns:
- the number of matching users
-
findByC_T
Returns all the users where companyId = ? and type = ?.- Parameters:
companyId- the company IDtype- the type- Returns:
- the matching users
-
findByC_T
Returns a range of all the users where companyId = ? and type = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromUserModelImpl.- Parameters:
companyId- the company IDtype- the typestart- the lower bound of the range of usersend- the upper bound of the range of users (not inclusive)- Returns:
- the range of matching users
-
findByC_T
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 = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromUserModelImpl.- Parameters:
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 (optionallynull)- Returns:
- the ordered range of matching users
-
findByC_T
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 = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromUserModelImpl.- Parameters:
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 (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching users
-
findByC_T_First
User findByC_T_First(long companyId, int type, OrderByComparator<User> orderByComparator) throws NoSuchUserException Returns the first user in the ordered set where companyId = ? and type = ?.- Parameters:
companyId- the company IDtype- the typeorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching user
- Throws:
NoSuchUserException- if a matching user could not be found
-
fetchByC_T_First
Returns the first user in the ordered set where companyId = ? and type = ?.- Parameters:
companyId- the company IDtype- the typeorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching user, or
nullif a matching user could not be found
-
findByC_T_Last
User findByC_T_Last(long companyId, int type, OrderByComparator<User> orderByComparator) throws NoSuchUserException Returns the last user in the ordered set where companyId = ? and type = ?.- Parameters:
companyId- the company IDtype- the typeorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching user
- Throws:
NoSuchUserException- if a matching user could not be found
-
fetchByC_T_Last
Returns the last user in the ordered set where companyId = ? and type = ?.- Parameters:
companyId- the company IDtype- the typeorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching user, or
nullif a matching user could not be found
-
findByC_T_PrevAndNext
User[] findByC_T_PrevAndNext(long userId, long companyId, int type, OrderByComparator<User> orderByComparator) throws NoSuchUserException Returns the users before and after the current user in the ordered set where companyId = ? and type = ?.- Parameters:
userId- the primary key of the current usercompanyId- the company IDtype- the typeorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next user
- Throws:
NoSuchUserException- if a user with the primary key could not be found
-
removeByC_T
void removeByC_T(long companyId, int type) Removes all the users where companyId = ? and type = ? from the database.- Parameters:
companyId- the company IDtype- the type
-
countByC_T
int countByC_T(long companyId, int type) Returns the number of users where companyId = ? and type = ?.- Parameters:
companyId- the company IDtype- the type- Returns:
- the number of matching users
-
findByC_S
Returns all the users where companyId = ? and status = ?.- Parameters:
companyId- the company IDstatus- the status- Returns:
- the matching users
-
findByC_S
Returns a range of all the users where companyId = ? and status = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromUserModelImpl.- Parameters:
companyId- the company IDstatus- the statusstart- the lower bound of the range of usersend- the upper bound of the range of users (not inclusive)- Returns:
- the range of matching users
-
findByC_S
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 = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromUserModelImpl.- Parameters:
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 (optionallynull)- Returns:
- the ordered range of matching users
-
findByC_S
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 = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromUserModelImpl.- Parameters:
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 (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching users
-
findByC_S_First
User findByC_S_First(long companyId, int status, OrderByComparator<User> orderByComparator) throws NoSuchUserException Returns the first user in the ordered set where companyId = ? and status = ?.- Parameters:
companyId- the company IDstatus- the statusorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching user
- Throws:
NoSuchUserException- if a matching user could not be found
-
fetchByC_S_First
Returns the first user in the ordered set where companyId = ? and status = ?.- Parameters:
companyId- the company IDstatus- the statusorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching user, or
nullif a matching user could not be found
-
findByC_S_Last
User findByC_S_Last(long companyId, int status, OrderByComparator<User> orderByComparator) throws NoSuchUserException Returns the last user in the ordered set where companyId = ? and status = ?.- Parameters:
companyId- the company IDstatus- the statusorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching user
- Throws:
NoSuchUserException- if a matching user could not be found
-
fetchByC_S_Last
Returns the last user in the ordered set where companyId = ? and status = ?.- Parameters:
companyId- the company IDstatus- the statusorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching user, or
nullif a matching user could not be found
-
findByC_S_PrevAndNext
User[] findByC_S_PrevAndNext(long userId, long companyId, int status, OrderByComparator<User> orderByComparator) throws NoSuchUserException Returns the users before and after the current user in the ordered set where companyId = ? and status = ?.- Parameters:
userId- the primary key of the current usercompanyId- the company IDstatus- the statusorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next user
- Throws:
NoSuchUserException- if a user with the primary key could not be found
-
removeByC_S
void removeByC_S(long companyId, int status) Removes all the users where companyId = ? and status = ? from the database.- Parameters:
companyId- the company IDstatus- the status
-
countByC_S
int countByC_S(long companyId, int status) Returns the number of users where companyId = ? and status = ?.- Parameters:
companyId- the company IDstatus- the status- Returns:
- the number of matching users
-
findByC_CD_MD
Returns all the users where companyId = ? and createDate = ? and modifiedDate = ?.- Parameters:
companyId- the company IDcreateDate- the create datemodifiedDate- the modified date- Returns:
- the matching users
-
findByC_CD_MD
Returns a range of all the users where companyId = ? and createDate = ? and modifiedDate = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromUserModelImpl.- Parameters:
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)- Returns:
- the range of matching users
-
findByC_CD_MD
List<User> findByC_CD_MD(long companyId, Date createDate, Date modifiedDate, int start, int end, OrderByComparator<User> orderByComparator) Returns an ordered range of all the users where companyId = ? and createDate = ? and modifiedDate = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromUserModelImpl.- Parameters:
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 (optionallynull)- Returns:
- the ordered range of matching users
-
findByC_CD_MD
List<User> findByC_CD_MD(long companyId, Date createDate, 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 = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromUserModelImpl.- Parameters:
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 (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching users
-
findByC_CD_MD_First
User findByC_CD_MD_First(long companyId, Date createDate, Date modifiedDate, OrderByComparator<User> orderByComparator) throws NoSuchUserException Returns the first user in the ordered set where companyId = ? and createDate = ? and modifiedDate = ?.- Parameters:
companyId- the company IDcreateDate- the create datemodifiedDate- the modified dateorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching user
- Throws:
NoSuchUserException- if a matching user could not be found
-
fetchByC_CD_MD_First
User fetchByC_CD_MD_First(long companyId, Date createDate, Date modifiedDate, OrderByComparator<User> orderByComparator) Returns the first user in the ordered set where companyId = ? and createDate = ? and modifiedDate = ?.- Parameters:
companyId- the company IDcreateDate- the create datemodifiedDate- the modified dateorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching user, or
nullif a matching user could not be found
-
findByC_CD_MD_Last
User findByC_CD_MD_Last(long companyId, Date createDate, Date modifiedDate, OrderByComparator<User> orderByComparator) throws NoSuchUserException Returns the last user in the ordered set where companyId = ? and createDate = ? and modifiedDate = ?.- Parameters:
companyId- the company IDcreateDate- the create datemodifiedDate- the modified dateorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching user
- Throws:
NoSuchUserException- if a matching user could not be found
-
fetchByC_CD_MD_Last
User fetchByC_CD_MD_Last(long companyId, Date createDate, Date modifiedDate, OrderByComparator<User> orderByComparator) Returns the last user in the ordered set where companyId = ? and createDate = ? and modifiedDate = ?.- Parameters:
companyId- the company IDcreateDate- the create datemodifiedDate- the modified dateorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching user, or
nullif a matching user could not be found
-
findByC_CD_MD_PrevAndNext
User[] findByC_CD_MD_PrevAndNext(long userId, long companyId, Date createDate, Date modifiedDate, OrderByComparator<User> orderByComparator) throws NoSuchUserException Returns the users before and after the current user in the ordered set where companyId = ? and createDate = ? and modifiedDate = ?.- Parameters:
userId- the primary key of the current usercompanyId- the company IDcreateDate- the create datemodifiedDate- the modified dateorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next user
- Throws:
NoSuchUserException- if a user with the primary key could not be found
-
removeByC_CD_MD
Removes all the users where companyId = ? and createDate = ? and modifiedDate = ? from the database.- Parameters:
companyId- the company IDcreateDate- the create datemodifiedDate- the modified date
-
countByC_CD_MD
Returns the number of users where companyId = ? and createDate = ? and modifiedDate = ?.- Parameters:
companyId- the company IDcreateDate- the create datemodifiedDate- the modified date- Returns:
- the number of matching users
-
findByC_T_S
Returns all the users where companyId = ? and type = ? and status = ?.- Parameters:
companyId- the company IDtype- the typestatus- the status- Returns:
- the matching users
-
findByC_T_S
Returns a range of all the users where companyId = ? and type = ? and status = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromUserModelImpl.- Parameters:
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)- Returns:
- the range of matching users
-
findByC_T_S
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 = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromUserModelImpl.- Parameters:
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 (optionallynull)- Returns:
- the ordered range of matching users
-
findByC_T_S
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 = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromUserModelImpl.- Parameters:
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 (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching users
-
findByC_T_S_First
User findByC_T_S_First(long companyId, int type, int status, OrderByComparator<User> orderByComparator) throws NoSuchUserException Returns the first user in the ordered set where companyId = ? and type = ? and status = ?.- Parameters:
companyId- the company IDtype- the typestatus- the statusorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching user
- Throws:
NoSuchUserException- if a matching user could not be found
-
fetchByC_T_S_First
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 = ?.- Parameters:
companyId- the company IDtype- the typestatus- the statusorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching user, or
nullif a matching user could not be found
-
findByC_T_S_Last
User findByC_T_S_Last(long companyId, int type, int status, OrderByComparator<User> orderByComparator) throws NoSuchUserException Returns the last user in the ordered set where companyId = ? and type = ? and status = ?.- Parameters:
companyId- the company IDtype- the typestatus- the statusorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching user
- Throws:
NoSuchUserException- if a matching user could not be found
-
fetchByC_T_S_Last
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 = ?.- Parameters:
companyId- the company IDtype- the typestatus- the statusorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching user, or
nullif a matching user could not be found
-
findByC_T_S_PrevAndNext
User[] findByC_T_S_PrevAndNext(long userId, long companyId, int type, int status, OrderByComparator<User> orderByComparator) throws NoSuchUserException Returns the users before and after the current user in the ordered set where companyId = ? and type = ? and status = ?.- Parameters:
userId- the primary key of the current usercompanyId- the company IDtype- the typestatus- the statusorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next user
- Throws:
NoSuchUserException- if a user with the primary key could not be found
-
removeByC_T_S
void removeByC_T_S(long companyId, int type, int status) Removes all the users where companyId = ? and type = ? and status = ? from the database.- Parameters:
companyId- the company IDtype- the typestatus- the status
-
countByC_T_S
int countByC_T_S(long companyId, int type, int status) Returns the number of users where companyId = ? and type = ? and status = ?.- Parameters:
companyId- the company IDtype- the typestatus- the status- Returns:
- the number of matching users
-
findByERC_C
Returns the user where externalReferenceCode = ? and companyId = ? or throws aNoSuchUserExceptionif it could not be found.- Parameters:
externalReferenceCode- the external reference codecompanyId- the company ID- Returns:
- the matching user
- Throws:
NoSuchUserException- if a matching user could not be found
-
fetchByERC_C
Returns the user where externalReferenceCode = ? and companyId = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
externalReferenceCode- the external reference codecompanyId- the company ID- Returns:
- the matching user, or
nullif a matching user could not be found
-
fetchByERC_C
Returns the user where externalReferenceCode = ? and companyId = ? or returnsnullif it could not be found, optionally using the finder cache.- Parameters:
externalReferenceCode- the external reference codecompanyId- the company IDuseFinderCache- whether to use the finder cache- Returns:
- the matching user, or
nullif a matching user could not be found
-
removeByERC_C
Removes the user where externalReferenceCode = ? and companyId = ? from the database.- Parameters:
externalReferenceCode- the external reference codecompanyId- the company ID- Returns:
- the user that was removed
- Throws:
NoSuchUserException
-
countByERC_C
Returns the number of users where externalReferenceCode = ? and companyId = ?.- Parameters:
externalReferenceCode- the external reference codecompanyId- the company ID- Returns:
- the number of matching users
-
cacheResult
Caches the user in the entity cache if it is enabled.- Parameters:
user- the user
-
cacheResult
Caches the users in the entity cache if it is enabled.- Parameters:
users- the users
-
create
Creates a new user with the primary key. Does not add the user to the database.- Parameters:
userId- the primary key for the new user- Returns:
- the new user
-
remove
Removes the user with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
userId- the primary key of the user- Returns:
- the user that was removed
- Throws:
NoSuchUserException- if a user with the primary key could not be found
-
updateImpl
-
findByPrimaryKey
Returns the user with the primary key or throws aNoSuchUserExceptionif it could not be found.- Parameters:
userId- the primary key of the user- Returns:
- the user
- Throws:
NoSuchUserException- if a user with the primary key could not be found
-
fetchByPrimaryKey
Returns the user with the primary key or returnsnullif it could not be found.- Parameters:
userId- the primary key of the user- Returns:
- the user, or
nullif a user with the primary key could not be found
-
findAll
Returns all the users.- Returns:
- the users
-
findAll
Returns a range of all the users.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromUserModelImpl.- Parameters:
start- the lower bound of the range of usersend- the upper bound of the range of users (not inclusive)- Returns:
- the range of users
-
findAll
Returns an ordered range of all the users.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromUserModelImpl.- Parameters:
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 (optionallynull)- Returns:
- the ordered range of users
-
findAll
List<User> findAll(int start, int end, OrderByComparator<User> orderByComparator, boolean useFinderCache) Returns an ordered range of all the users.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromUserModelImpl.- Parameters:
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 (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of users
-
removeAll
void removeAll()Removes all the users from the database. -
countAll
int countAll()Returns the number of users.- Returns:
- the number of users
-
getGroupPrimaryKeys
long[] getGroupPrimaryKeys(long pk) Returns the primaryKeys of groups associated with the user.- Parameters:
pk- the primary key of the user- Returns:
- long[] of the primaryKeys of groups associated with the user
-
getGroups
Returns all the groups associated with the user.- Parameters:
pk- the primary key of the user- Returns:
- the groups associated with the user
-
getGroups
Returns a range of all the groups associated with the user.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromUserModelImpl.- Parameters:
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)- Returns:
- the range of groups associated with the user
-
getGroups
Returns an ordered range of all the groups associated with the user.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromUserModelImpl.- Parameters:
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 (optionallynull)- Returns:
- the ordered range of groups associated with the user
-
getGroupsSize
int getGroupsSize(long pk) Returns the number of groups associated with the user.- Parameters:
pk- the primary key of the user- Returns:
- the number of groups associated with the user
-
containsGroup
boolean containsGroup(long pk, long groupPK) Returnstrueif the group is associated with the user.- Parameters:
pk- the primary key of the usergroupPK- the primary key of the group- Returns:
trueif the group is associated with the user;falseotherwise
-
containsGroups
boolean containsGroups(long pk) Returnstrueif the user has any groups associated with it.- Parameters:
pk- the primary key of the user to check for associations with groups- Returns:
trueif the user has any groups associated with it;falseotherwise
-
addGroup
boolean addGroup(long pk, long groupPK) Adds an association between the user and the group. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk- the primary key of the usergroupPK- the primary key of the group- Returns:
trueif an association between the user and the group was added;falseif they were already associated
-
addGroup
Adds an association between the user and the group. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk- the primary key of the usergroup- the group- Returns:
trueif an association between the user and the group was added;falseif they were already associated
-
addGroups
boolean addGroups(long pk, long[] groupPKs) Adds an association between the user and the groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk- the primary key of the usergroupPKs- the primary keys of the groups- Returns:
trueif at least one association between the user and the groups was added;falseif they were all already associated
-
addGroups
Adds an association between the user and the groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk- the primary key of the usergroups- the groups- Returns:
trueif at least one association between the user and the groups was added;falseif they were all already associated
-
clearGroups
void clearGroups(long pk) Clears all associations between the user and its groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk- the primary key of the user to clear the associated groups from
-
removeGroup
void removeGroup(long pk, long groupPK) Removes the association between the user and the group. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk- the primary key of the usergroupPK- the primary key of the group
-
removeGroup
Removes the association between the user and the group. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk- the primary key of the usergroup- the group
-
removeGroups
void removeGroups(long pk, long[] groupPKs) Removes the association between the user and the groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk- the primary key of the usergroupPKs- the primary keys of the groups
-
removeGroups
Removes the association between the user and the groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk- the primary key of the usergroups- the groups
-
setGroups
void setGroups(long pk, long[] groupPKs) Sets the groups associated with the user, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk- the primary key of the usergroupPKs- the primary keys of the groups to be associated with the user
-
setGroups
Sets the groups associated with the user, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk- the primary key of the usergroups- the groups to be associated with the user
-
getOrganizationPrimaryKeys
long[] getOrganizationPrimaryKeys(long pk) Returns the primaryKeys of organizations associated with the user.- Parameters:
pk- the primary key of the user- Returns:
- long[] of the primaryKeys of organizations associated with the user
-
getOrganizations
Returns all the organizations associated with the user.- Parameters:
pk- the primary key of the user- Returns:
- the organizations associated with the user
-
getOrganizations
Returns a range of all the organizations associated with the user.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromUserModelImpl.- Parameters:
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)- Returns:
- the range of organizations associated with the user
-
getOrganizations
List<Organization> getOrganizations(long pk, int start, int end, OrderByComparator<Organization> orderByComparator) Returns an ordered range of all the organizations associated with the user.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromUserModelImpl.- Parameters:
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 (optionallynull)- Returns:
- the ordered range of organizations associated with the user
-
getOrganizationsSize
int getOrganizationsSize(long pk) Returns the number of organizations associated with the user.- Parameters:
pk- the primary key of the user- Returns:
- the number of organizations associated with the user
-
containsOrganization
boolean containsOrganization(long pk, long organizationPK) Returnstrueif the organization is associated with the user.- Parameters:
pk- the primary key of the userorganizationPK- the primary key of the organization- Returns:
trueif the organization is associated with the user;falseotherwise
-
containsOrganizations
boolean containsOrganizations(long pk) Returnstrueif the user has any organizations associated with it.- Parameters:
pk- the primary key of the user to check for associations with organizations- Returns:
trueif the user has any organizations associated with it;falseotherwise
-
addOrganization
boolean addOrganization(long pk, long organizationPK) Adds an association between the user and the organization. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk- the primary key of the userorganizationPK- the primary key of the organization- Returns:
trueif an association between the user and the organization was added;falseif they were already associated
-
addOrganization
Adds an association between the user and the organization. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk- the primary key of the userorganization- the organization- Returns:
trueif an association between the user and the organization was added;falseif they were already associated
-
addOrganizations
boolean addOrganizations(long pk, long[] organizationPKs) Adds an association between the user and the organizations. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk- the primary key of the userorganizationPKs- the primary keys of the organizations- Returns:
trueif at least one association between the user and the organizations was added;falseif they were all already associated
-
addOrganizations
Adds an association between the user and the organizations. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk- the primary key of the userorganizations- the organizations- Returns:
trueif at least one association between the user and the organizations was added;falseif they were all already associated
-
clearOrganizations
void clearOrganizations(long pk) Clears all associations between the user and its organizations. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk- the primary key of the user to clear the associated organizations from
-
removeOrganization
void removeOrganization(long pk, long organizationPK) Removes the association between the user and the organization. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk- the primary key of the userorganizationPK- the primary key of the organization
-
removeOrganization
Removes the association between the user and the organization. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk- the primary key of the userorganization- the organization
-
removeOrganizations
void removeOrganizations(long pk, long[] organizationPKs) Removes the association between the user and the organizations. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk- the primary key of the userorganizationPKs- the primary keys of the organizations
-
removeOrganizations
Removes the association between the user and the organizations. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk- the primary key of the userorganizations- the organizations
-
setOrganizations
void setOrganizations(long pk, long[] organizationPKs) Sets the organizations associated with the user, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk- the primary key of the userorganizationPKs- the primary keys of the organizations to be associated with the user
-
setOrganizations
Sets the organizations associated with the user, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk- the primary key of the userorganizations- the organizations to be associated with the user
-
getRolePrimaryKeys
long[] getRolePrimaryKeys(long pk) Returns the primaryKeys of roles associated with the user.- Parameters:
pk- the primary key of the user- Returns:
- long[] of the primaryKeys of roles associated with the user
-
getRoles
Returns all the roles associated with the user.- Parameters:
pk- the primary key of the user- Returns:
- the roles associated with the user
-
getRoles
Returns a range of all the roles associated with the user.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromUserModelImpl.- Parameters:
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)- Returns:
- the range of roles associated with the user
-
getRoles
Returns an ordered range of all the roles associated with the user.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromUserModelImpl.- Parameters:
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 (optionallynull)- Returns:
- the ordered range of roles associated with the user
-
getRolesSize
int getRolesSize(long pk) Returns the number of roles associated with the user.- Parameters:
pk- the primary key of the user- Returns:
- the number of roles associated with the user
-
containsRole
boolean containsRole(long pk, long rolePK) Returnstrueif the role is associated with the user.- Parameters:
pk- the primary key of the userrolePK- the primary key of the role- Returns:
trueif the role is associated with the user;falseotherwise
-
containsRoles
boolean containsRoles(long pk) Returnstrueif the user has any roles associated with it.- Parameters:
pk- the primary key of the user to check for associations with roles- Returns:
trueif the user has any roles associated with it;falseotherwise
-
addRole
boolean addRole(long pk, long rolePK) Adds an association between the user and the role. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk- the primary key of the userrolePK- the primary key of the role- Returns:
trueif an association between the user and the role was added;falseif they were already associated
-
addRole
Adds an association between the user and the role. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk- the primary key of the userrole- the role- Returns:
trueif an association between the user and the role was added;falseif they were already associated
-
addRoles
boolean addRoles(long pk, long[] rolePKs) Adds an association between the user and the roles. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk- the primary key of the userrolePKs- the primary keys of the roles- Returns:
trueif at least one association between the user and the roles was added;falseif they were all already associated
-
addRoles
Adds an association between the user and the roles. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk- the primary key of the userroles- the roles- Returns:
trueif at least one association between the user and the roles was added;falseif they were all already associated
-
clearRoles
void clearRoles(long pk) Clears all associations between the user and its roles. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk- the primary key of the user to clear the associated roles from
-
removeRole
void removeRole(long pk, long rolePK) Removes the association between the user and the role. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk- the primary key of the userrolePK- the primary key of the role
-
removeRole
Removes the association between the user and the role. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk- the primary key of the userrole- the role
-
removeRoles
void removeRoles(long pk, long[] rolePKs) Removes the association between the user and the roles. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk- the primary key of the userrolePKs- the primary keys of the roles
-
removeRoles
Removes the association between the user and the roles. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk- the primary key of the userroles- the roles
-
setRoles
void setRoles(long pk, long[] rolePKs) Sets the roles associated with the user, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk- the primary key of the userrolePKs- the primary keys of the roles to be associated with the user
-
setRoles
Sets the roles associated with the user, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk- the primary key of the userroles- the roles to be associated with the user
-
getTeamPrimaryKeys
long[] getTeamPrimaryKeys(long pk) Returns the primaryKeys of teams associated with the user.- Parameters:
pk- the primary key of the user- Returns:
- long[] of the primaryKeys of teams associated with the user
-
getTeams
Returns all the teams associated with the user.- Parameters:
pk- the primary key of the user- Returns:
- the teams associated with the user
-
getTeams
Returns a range of all the teams associated with the user.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromUserModelImpl.- Parameters:
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)- Returns:
- the range of teams associated with the user
-
getTeams
Returns an ordered range of all the teams associated with the user.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromUserModelImpl.- Parameters:
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 (optionallynull)- Returns:
- the ordered range of teams associated with the user
-
getTeamsSize
int getTeamsSize(long pk) Returns the number of teams associated with the user.- Parameters:
pk- the primary key of the user- Returns:
- the number of teams associated with the user
-
containsTeam
boolean containsTeam(long pk, long teamPK) Returnstrueif the team is associated with the user.- Parameters:
pk- the primary key of the userteamPK- the primary key of the team- Returns:
trueif the team is associated with the user;falseotherwise
-
containsTeams
boolean containsTeams(long pk) Returnstrueif the user has any teams associated with it.- Parameters:
pk- the primary key of the user to check for associations with teams- Returns:
trueif the user has any teams associated with it;falseotherwise
-
addTeam
boolean addTeam(long pk, long teamPK) Adds an association between the user and the team. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk- the primary key of the userteamPK- the primary key of the team- Returns:
trueif an association between the user and the team was added;falseif they were already associated
-
addTeam
Adds an association between the user and the team. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk- the primary key of the userteam- the team- Returns:
trueif an association between the user and the team was added;falseif they were already associated
-
addTeams
boolean addTeams(long pk, long[] teamPKs) Adds an association between the user and the teams. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk- the primary key of the userteamPKs- the primary keys of the teams- Returns:
trueif at least one association between the user and the teams was added;falseif they were all already associated
-
addTeams
Adds an association between the user and the teams. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk- the primary key of the userteams- the teams- Returns:
trueif at least one association between the user and the teams was added;falseif they were all already associated
-
clearTeams
void clearTeams(long pk) Clears all associations between the user and its teams. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk- the primary key of the user to clear the associated teams from
-
removeTeam
void removeTeam(long pk, long teamPK) Removes the association between the user and the team. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk- the primary key of the userteamPK- the primary key of the team
-
removeTeam
Removes the association between the user and the team. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk- the primary key of the userteam- the team
-
removeTeams
void removeTeams(long pk, long[] teamPKs) Removes the association between the user and the teams. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk- the primary key of the userteamPKs- the primary keys of the teams
-
removeTeams
Removes the association between the user and the teams. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk- the primary key of the userteams- the teams
-
setTeams
void setTeams(long pk, long[] teamPKs) Sets the teams associated with the user, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk- the primary key of the userteamPKs- the primary keys of the teams to be associated with the user
-
setTeams
Sets the teams associated with the user, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk- the primary key of the userteams- the teams to be associated with the user
-
getUserGroupPrimaryKeys
long[] getUserGroupPrimaryKeys(long pk) Returns the primaryKeys of user groups associated with the user.- Parameters:
pk- the primary key of the user- Returns:
- long[] of the primaryKeys of user groups associated with the user
-
getUserGroups
Returns all the user groups associated with the user.- Parameters:
pk- the primary key of the user- Returns:
- the user groups associated with the user
-
getUserGroups
Returns a range of all the user groups associated with the user.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromUserModelImpl.- Parameters:
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)- Returns:
- the range of user groups associated with the user
-
getUserGroups
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.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromUserModelImpl.- Parameters:
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 (optionallynull)- Returns:
- the ordered range of user groups associated with the user
-
getUserGroupsSize
int getUserGroupsSize(long pk) Returns the number of user groups associated with the user.- Parameters:
pk- the primary key of the user- Returns:
- the number of user groups associated with the user
-
containsUserGroup
boolean containsUserGroup(long pk, long userGroupPK) Returnstrueif the user group is associated with the user.- Parameters:
pk- the primary key of the useruserGroupPK- the primary key of the user group- Returns:
trueif the user group is associated with the user;falseotherwise
-
containsUserGroups
boolean containsUserGroups(long pk) Returnstrueif the user has any user groups associated with it.- Parameters:
pk- the primary key of the user to check for associations with user groups- Returns:
trueif the user has any user groups associated with it;falseotherwise
-
addUserGroup
boolean addUserGroup(long pk, long userGroupPK) Adds an association between the user and the user group. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk- the primary key of the useruserGroupPK- the primary key of the user group- Returns:
trueif an association between the user and the user group was added;falseif they were already associated
-
addUserGroup
Adds an association between the user and the user group. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk- the primary key of the useruserGroup- the user group- Returns:
trueif an association between the user and the user group was added;falseif they were already associated
-
addUserGroups
boolean addUserGroups(long pk, long[] userGroupPKs) Adds an association between the user and the user groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk- the primary key of the useruserGroupPKs- the primary keys of the user groups- Returns:
trueif at least one association between the user and the user groups was added;falseif they were all already associated
-
addUserGroups
Adds an association between the user and the user groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk- the primary key of the useruserGroups- the user groups- Returns:
trueif at least one association between the user and the user groups was added;falseif they were all already associated
-
clearUserGroups
void clearUserGroups(long pk) Clears all associations between the user and its user groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk- the primary key of the user to clear the associated user groups from
-
removeUserGroup
void removeUserGroup(long pk, long userGroupPK) Removes the association between the user and the user group. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk- the primary key of the useruserGroupPK- the primary key of the user group
-
removeUserGroup
Removes the association between the user and the user group. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk- the primary key of the useruserGroup- the user group
-
removeUserGroups
void removeUserGroups(long pk, long[] userGroupPKs) Removes the association between the user and the user groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk- the primary key of the useruserGroupPKs- the primary keys of the user groups
-
removeUserGroups
Removes the association between the user and the user groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk- the primary key of the useruserGroups- the user groups
-
setUserGroups
void setUserGroups(long pk, long[] userGroupPKs) Sets the user groups associated with the user, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk- the primary key of the useruserGroupPKs- the primary keys of the user groups to be associated with the user
-
setUserGroups
Sets the user groups associated with the user, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.- Parameters:
pk- the primary key of the useruserGroups- the user groups to be associated with the user
-