|
Liferay 7.0-ce-b4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portal.service.persistence.impl.BasePersistenceImpl<User>
com.liferay.portal.service.persistence.impl.UserPersistenceImpl
@ProviderType public class UserPersistenceImpl
The persistence implementation for the user service.
Caching information and settings can be found in portal.properties
UserPersistence,
UserUtil| Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl |
|---|
CAST_CLOB_TEXT_OPEN, COUNT_COLUMN_NAME, FINDER_ARGS_EMPTY, listeners, NULL_SAFE_STRING_COMPARATOR, ORDER_BY_ASC, ORDER_BY_ASC_HAS_NEXT, ORDER_BY_CLAUSE, ORDER_BY_DESC, ORDER_BY_DESC_HAS_NEXT, WHERE_AND, WHERE_GREATER_THAN, WHERE_GREATER_THAN_HAS_NEXT, WHERE_LESSER_THAN, WHERE_LESSER_THAN_HAS_NEXT, WHERE_OR |
| Constructor Summary | |
|---|---|
UserPersistenceImpl()
|
|
| Method Summary | |
|---|---|
void |
addGroup(long pk,
Group group)
Adds an association between the user and the group. |
void |
addGroup(long pk,
long groupPK)
Adds an association between the user and the group. |
void |
addGroups(long pk,
List<Group> groups)
Adds an association between the user and the groups. |
void |
addGroups(long pk,
long[] groupPKs)
Adds an association between the user and the groups. |
void |
addOrganization(long pk,
long organizationPK)
Adds an association between the user and the organization. |
void |
addOrganization(long pk,
Organization organization)
Adds an association between the user and the organization. |
void |
addOrganizations(long pk,
List<Organization> organizations)
Adds an association between the user and the organizations. |
void |
addOrganizations(long pk,
long[] organizationPKs)
Adds an association between the user and the organizations. |
void |
addRole(long pk,
long rolePK)
Adds an association between the user and the role. |
void |
addRole(long pk,
Role role)
Adds an association between the user and the role. |
void |
addRoles(long pk,
List<Role> roles)
Adds an association between the user and the roles. |
void |
addRoles(long pk,
long[] rolePKs)
Adds an association between the user and the roles. |
void |
addTeam(long pk,
long teamPK)
Adds an association between the user and the team. |
void |
addTeam(long pk,
Team team)
Adds an association between the user and the team. |
void |
addTeams(long pk,
List<Team> teams)
Adds an association between the user and the teams. |
void |
addTeams(long pk,
long[] teamPKs)
Adds an association between the user and the teams. |
void |
addUserGroup(long pk,
long userGroupPK)
Adds an association between the user and the user group. |
void |
addUserGroup(long pk,
UserGroup userGroup)
Adds an association between the user and the user group. |
void |
addUserGroups(long pk,
List<UserGroup> userGroups)
Adds an association between the user and the user groups. |
void |
addUserGroups(long pk,
long[] userGroupPKs)
Adds an association between the user and the user groups. |
void |
afterPropertiesSet()
Initializes the user persistence. |
void |
cacheResult(List<User> users)
Caches the users in the entity cache if it is enabled. |
void |
cacheResult(User user)
Caches the user in the entity cache if it is enabled. |
protected void |
cacheUniqueFindersCache(UserModelImpl userModelImpl,
boolean isNew)
|
void |
clearCache()
Clears the cache for all users. |
void |
clearCache(List<User> users)
Clears the cache for a List instances of this model. |
void |
clearCache(User user)
Clears the cache for the user. |
void |
clearGroups(long pk)
Clears all associations between the user and its groups. |
void |
clearOrganizations(long pk)
Clears all associations between the user and its organizations. |
void |
clearRoles(long pk)
Clears all associations between the user and its roles. |
void |
clearTeams(long pk)
Clears all associations between the user and its teams. |
protected void |
clearUniqueFindersCache(UserModelImpl userModelImpl)
|
void |
clearUserGroups(long pk)
Clears all associations between the user and its user groups. |
boolean |
containsGroup(long pk,
long groupPK)
Returns true if the group is associated with the user. |
boolean |
containsGroups(long pk)
Returns true if the user has any groups associated with it. |
boolean |
containsOrganization(long pk,
long organizationPK)
Returns true if the organization is associated with the user. |
boolean |
containsOrganizations(long pk)
Returns true if the user has any organizations associated with it. |
boolean |
containsRole(long pk,
long rolePK)
Returns true if the role is associated with the user. |
boolean |
containsRoles(long pk)
Returns true if the user has any roles associated with it. |
boolean |
containsTeam(long pk,
long teamPK)
Returns true if the team is associated with the user. |
boolean |
containsTeams(long pk)
Returns true if the user has any teams associated with it. |
boolean |
containsUserGroup(long pk,
long userGroupPK)
Returns true if the user group is associated with the user. |
boolean |
containsUserGroups(long pk)
Returns true if the user has any user groups associated with it. |
int |
countAll()
Returns the number of users. |
int |
countByC_CD_MD(long companyId,
Date createDate,
Date modifiedDate)
Returns the number of users where companyId = ? and createDate = ? and modifiedDate = ?. |
int |
countByC_CD(long companyId,
Date createDate)
Returns the number of users where companyId = ? and createDate = ?. |
int |
countByC_DU_S(long companyId,
boolean defaultUser,
int status)
Returns the number of users where companyId = ? and defaultUser = ? and status = ?. |
int |
countByC_DU(long companyId,
boolean defaultUser)
Returns the number of users where companyId = ? and defaultUser = ?. |
int |
countByC_EA(long companyId,
String emailAddress)
Returns the number of users where companyId = ? and emailAddress = ?. |
int |
countByC_FID(long companyId,
long facebookId)
Returns the number of users where companyId = ? and facebookId = ?. |
int |
countByC_MD(long companyId,
Date modifiedDate)
Returns the number of users where companyId = ? and modifiedDate = ?. |
int |
countByC_O(long companyId,
String openId)
Returns the number of users where companyId = ? and openId = ?. |
int |
countByC_S(long companyId,
int status)
Returns the number of users where companyId = ? and status = ?. |
int |
countByC_SN(long companyId,
String screenName)
Returns the number of users where companyId = ? and screenName = ?. |
int |
countByC_U(long companyId,
long userId)
Returns the number of users where companyId = ? and userId = ?. |
int |
countByCompanyId(long companyId)
Returns the number of users where companyId = ?. |
int |
countByContactId(long contactId)
Returns the number of users where contactId = ?. |
int |
countByEmailAddress(String emailAddress)
Returns the number of users where emailAddress = ?. |
int |
countByPortraitId(long portraitId)
Returns the number of users where portraitId = ?. |
int |
countByUuid_C(String uuid,
long companyId)
Returns the number of users where uuid = ? and companyId = ?. |
int |
countByUuid(String uuid)
Returns the number of users where uuid = ?. |
User |
create(long userId)
Creates a new user with the primary key. |
void |
destroy()
|
User |
fetchByC_CD_First(long companyId,
Date createDate,
OrderByComparator<User> orderByComparator)
Returns the first user in the ordered set where companyId = ? and createDate = ?. |
User |
fetchByC_CD_Last(long companyId,
Date createDate,
OrderByComparator<User> orderByComparator)
Returns the last user in the ordered set where companyId = ? and createDate = ?. |
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 = ?. |
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 = ?. |
User |
fetchByC_DU_S_First(long companyId,
boolean defaultUser,
int status,
OrderByComparator<User> orderByComparator)
Returns the first user in the ordered set where companyId = ? and defaultUser = ? and status = ?. |
User |
fetchByC_DU_S_Last(long companyId,
boolean defaultUser,
int status,
OrderByComparator<User> orderByComparator)
Returns the last user in the ordered set where companyId = ? and defaultUser = ? and status = ?. |
User |
fetchByC_DU(long companyId,
boolean defaultUser)
Returns the user where companyId = ? and defaultUser = ? or returns null if it could not be found. |
User |
fetchByC_DU(long companyId,
boolean defaultUser,
boolean retrieveFromCache)
Returns the user where companyId = ? and defaultUser = ? or returns null if it could not be found, optionally using the finder cache. |
User |
fetchByC_EA(long companyId,
String emailAddress)
Returns the user where companyId = ? and emailAddress = ? or returns null if it could not be found. |
User |
fetchByC_EA(long companyId,
String emailAddress,
boolean retrieveFromCache)
Returns the user where companyId = ? and emailAddress = ? or returns null if it could not be found, optionally using the finder cache. |
User |
fetchByC_FID(long companyId,
long facebookId)
Returns the user where companyId = ? and facebookId = ? or returns null if it could not be found. |
User |
fetchByC_FID(long companyId,
long facebookId,
boolean retrieveFromCache)
Returns the user where companyId = ? and facebookId = ? or returns null if it could not be found, optionally using the finder cache. |
User |
fetchByC_MD_First(long companyId,
Date modifiedDate,
OrderByComparator<User> orderByComparator)
Returns the first user in the ordered set where companyId = ? and modifiedDate = ?. |
User |
fetchByC_MD_Last(long companyId,
Date modifiedDate,
OrderByComparator<User> orderByComparator)
Returns the last user in the ordered set where companyId = ? and modifiedDate = ?. |
User |
fetchByC_O(long companyId,
String openId)
Returns the user where companyId = ? and openId = ? or returns null if it could not be found. |
User |
fetchByC_O(long companyId,
String openId,
boolean retrieveFromCache)
Returns the user where companyId = ? and openId = ? or returns null if it could not be found, optionally using the finder cache. |
User |
fetchByC_S_First(long companyId,
int status,
OrderByComparator<User> orderByComparator)
Returns the first user in the ordered set where companyId = ? and status = ?. |
User |
fetchByC_S_Last(long companyId,
int status,
OrderByComparator<User> orderByComparator)
Returns the last user in the ordered set where companyId = ? and status = ?. |
User |
fetchByC_SN(long companyId,
String screenName)
Returns the user where companyId = ? and screenName = ? or returns null if it could not be found. |
User |
fetchByC_SN(long companyId,
String screenName,
boolean retrieveFromCache)
Returns the user where companyId = ? and screenName = ? or returns null if it could not be found, optionally using the finder cache. |
User |
fetchByC_U(long companyId,
long userId)
Returns the user where companyId = ? and userId = ? or returns null if it could not be found. |
User |
fetchByC_U(long companyId,
long userId,
boolean retrieveFromCache)
Returns the user where companyId = ? and userId = ? or returns null if it could not be found, optionally using the finder cache. |
User |
fetchByCompanyId_First(long companyId,
OrderByComparator<User> orderByComparator)
Returns the first user in the ordered set where companyId = ?. |
User |
fetchByCompanyId_Last(long companyId,
OrderByComparator<User> orderByComparator)
Returns the last user in the ordered set where companyId = ?. |
User |
fetchByContactId(long contactId)
Returns the user where contactId = ? or returns null if it could not be found. |
User |
fetchByContactId(long contactId,
boolean retrieveFromCache)
Returns the user where contactId = ? or returns null if it could not be found, optionally using the finder cache. |
User |
fetchByEmailAddress_First(String emailAddress,
OrderByComparator<User> orderByComparator)
Returns the first user in the ordered set where emailAddress = ?. |
User |
fetchByEmailAddress_Last(String emailAddress,
OrderByComparator<User> orderByComparator)
Returns the last user in the ordered set where emailAddress = ?. |
User |
fetchByPortraitId(long portraitId)
Returns the user where portraitId = ? or returns null if it could not be found. |
User |
fetchByPortraitId(long portraitId,
boolean retrieveFromCache)
Returns the user where portraitId = ? or returns null if it could not be found, optionally using the finder cache. |
User |
fetchByPrimaryKey(long userId)
Returns the user with the primary key or returns null if it could not be found. |
User |
fetchByPrimaryKey(Serializable primaryKey)
Returns the user with the primary key or returns null if it could not be found. |
Map<Serializable,User> |
fetchByPrimaryKeys(Set<Serializable> primaryKeys)
|
User |
fetchByUuid_C_First(String uuid,
long companyId,
OrderByComparator<User> orderByComparator)
Returns the first user in the ordered set where uuid = ? and companyId = ?. |
User |
fetchByUuid_C_Last(String uuid,
long companyId,
OrderByComparator<User> orderByComparator)
Returns the last user in the ordered set where uuid = ? and companyId = ?. |
User |
fetchByUuid_First(String uuid,
OrderByComparator<User> orderByComparator)
Returns the first user in the ordered set where uuid = ?. |
User |
fetchByUuid_Last(String uuid,
OrderByComparator<User> orderByComparator)
Returns the last user in the ordered set where uuid = ?. |
List<User> |
findAll()
Returns all the users. |
List<User> |
findAll(int start,
int end)
Returns a range of all the users. |
List<User> |
findAll(int start,
int end,
OrderByComparator<User> orderByComparator)
Returns an ordered range of all the users. |
List<User> |
findAll(int start,
int end,
OrderByComparator<User> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the users. |
User |
findByC_CD_First(long companyId,
Date createDate,
OrderByComparator<User> orderByComparator)
Returns the first user in the ordered set where companyId = ? and createDate = ?. |
User |
findByC_CD_Last(long companyId,
Date createDate,
OrderByComparator<User> orderByComparator)
Returns the last user in the ordered set where companyId = ? and createDate = ?. |
User |
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 = ?. |
User |
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 = ?. |
List<User> |
findByC_CD_MD(long companyId,
Date createDate,
Date modifiedDate)
Returns all the users where companyId = ? and createDate = ? and modifiedDate = ?. |
List<User> |
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 = ?. |
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 = ?. |
List<User> |
findByC_CD_MD(long companyId,
Date createDate,
Date modifiedDate,
int start,
int end,
OrderByComparator<User> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the users 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 = ?. |
List<User> |
findByC_CD(long companyId,
Date createDate)
Returns all the users where companyId = ? and createDate = ?. |
List<User> |
findByC_CD(long companyId,
Date createDate,
int start,
int end)
Returns a range of all the users where companyId = ? and createDate = ?. |
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 = ?. |
List<User> |
findByC_CD(long companyId,
Date createDate,
int start,
int end,
OrderByComparator<User> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the users where companyId = ? and createDate = ?. |
User |
findByC_DU_S_First(long companyId,
boolean defaultUser,
int status,
OrderByComparator<User> orderByComparator)
Returns the first user in the ordered set where companyId = ? and defaultUser = ? and status = ?. |
User |
findByC_DU_S_Last(long companyId,
boolean defaultUser,
int status,
OrderByComparator<User> orderByComparator)
Returns the last user in the ordered set where companyId = ? and defaultUser = ? and status = ?. |
User[] |
findByC_DU_S_PrevAndNext(long userId,
long companyId,
boolean defaultUser,
int status,
OrderByComparator<User> orderByComparator)
Returns the users before and after the current user in the ordered set where companyId = ? and defaultUser = ? and status = ?. |
List<User> |
findByC_DU_S(long companyId,
boolean defaultUser,
int status)
Returns all the users where companyId = ? and defaultUser = ? and status = ?. |
List<User> |
findByC_DU_S(long companyId,
boolean defaultUser,
int status,
int start,
int end)
Returns a range of all the users where companyId = ? and defaultUser = ? and status = ?. |
List<User> |
findByC_DU_S(long companyId,
boolean defaultUser,
int status,
int start,
int end,
OrderByComparator<User> orderByComparator)
Returns an ordered range of all the users where companyId = ? and defaultUser = ? and status = ?. |
List<User> |
findByC_DU_S(long companyId,
boolean defaultUser,
int status,
int start,
int end,
OrderByComparator<User> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the users where companyId = ? and defaultUser = ? and status = ?. |
User |
findByC_DU(long companyId,
boolean defaultUser)
Returns the user where companyId = ? and defaultUser = ? or throws a NoSuchUserException if it could not be found. |
User |
findByC_EA(long companyId,
String emailAddress)
Returns the user where companyId = ? and emailAddress = ? or throws a NoSuchUserException if it could not be found. |
User |
findByC_FID(long companyId,
long facebookId)
Returns the user where companyId = ? and facebookId = ? or throws a NoSuchUserException if it could not be found. |
User |
findByC_MD_First(long companyId,
Date modifiedDate,
OrderByComparator<User> orderByComparator)
Returns the first user in the ordered set where companyId = ? and modifiedDate = ?. |
User |
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 = ?. |
List<User> |
findByC_MD(long companyId,
Date modifiedDate)
Returns all the users where companyId = ? and modifiedDate = ?. |
List<User> |
findByC_MD(long companyId,
Date modifiedDate,
int start,
int end)
Returns a range of all the users where companyId = ? and modifiedDate = ?. |
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 = ?. |
List<User> |
findByC_MD(long companyId,
Date modifiedDate,
int start,
int end,
OrderByComparator<User> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the users where companyId = ? and modifiedDate = ?. |
User |
findByC_O(long companyId,
String openId)
Returns the user where companyId = ? and openId = ? or throws a NoSuchUserException if it could not be found. |
User |
findByC_S_First(long companyId,
int status,
OrderByComparator<User> orderByComparator)
Returns the first user in the ordered set where companyId = ? and status = ?. |
User |
findByC_S_Last(long companyId,
int status,
OrderByComparator<User> orderByComparator)
Returns the last user in the ordered set where companyId = ? and status = ?. |
User[] |
findByC_S_PrevAndNext(long userId,
long companyId,
int status,
OrderByComparator<User> orderByComparator)
Returns the users before and after the current user in the ordered set where companyId = ? and status = ?. |
List<User> |
findByC_S(long companyId,
int status)
Returns all the users where companyId = ? and status = ?. |
List<User> |
findByC_S(long companyId,
int status,
int start,
int end)
Returns a range of all the users where companyId = ? and status = ?. |
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 = ?. |
List<User> |
findByC_S(long companyId,
int status,
int start,
int end,
OrderByComparator<User> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the users where companyId = ? and status = ?. |
User |
findByC_SN(long companyId,
String screenName)
Returns the user where companyId = ? and screenName = ? or throws a NoSuchUserException if it could not be found. |
User |
findByC_U(long companyId,
long userId)
Returns the user where companyId = ? and userId = ? or throws a NoSuchUserException if it could not be found. |
User |
findByCompanyId_First(long companyId,
OrderByComparator<User> orderByComparator)
Returns the first user in the ordered set where companyId = ?. |
User |
findByCompanyId_Last(long companyId,
OrderByComparator<User> orderByComparator)
Returns the last user in the ordered set where companyId = ?. |
User[] |
findByCompanyId_PrevAndNext(long userId,
long companyId,
OrderByComparator<User> orderByComparator)
Returns the users before and after the current user in the ordered set where companyId = ?. |
List<User> |
findByCompanyId(long companyId)
Returns all the users where companyId = ?. |
List<User> |
findByCompanyId(long companyId,
int start,
int end)
Returns a range of all the users where companyId = ?. |
List<User> |
findByCompanyId(long companyId,
int start,
int end,
OrderByComparator<User> orderByComparator)
Returns an ordered range of all the users where companyId = ?. |
List<User> |
findByCompanyId(long companyId,
int start,
int end,
OrderByComparator<User> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the users where companyId = ?. |
User |
findByContactId(long contactId)
Returns the user where contactId = ? or throws a NoSuchUserException if it could not be found. |
User |
findByEmailAddress_First(String emailAddress,
OrderByComparator<User> orderByComparator)
Returns the first user in the ordered set where emailAddress = ?. |
User |
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 = ?. |
List<User> |
findByEmailAddress(String emailAddress)
Returns all the users where emailAddress = ?. |
List<User> |
findByEmailAddress(String emailAddress,
int start,
int end)
Returns a range of all the users where emailAddress = ?. |
List<User> |
findByEmailAddress(String emailAddress,
int start,
int end,
OrderByComparator<User> orderByComparator)
Returns an ordered range of all the users where emailAddress = ?. |
List<User> |
findByEmailAddress(String emailAddress,
int start,
int end,
OrderByComparator<User> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the users where emailAddress = ?. |
User |
findByPortraitId(long portraitId)
Returns the user where portraitId = ? or throws a NoSuchUserException if it could not be found. |
User |
findByPrimaryKey(long userId)
Returns the user with the primary key or throws a NoSuchUserException if it could not be found. |
User |
findByPrimaryKey(Serializable primaryKey)
Returns the user with the primary key or throws a NoSuchModelException if it could not be found. |
User |
findByUuid_C_First(String uuid,
long companyId,
OrderByComparator<User> orderByComparator)
Returns the first user in the ordered set where uuid = ? and companyId = ?. |
User |
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 = ?. |
List<User> |
findByUuid_C(String uuid,
long companyId)
Returns all the users where uuid = ? and companyId = ?. |
List<User> |
findByUuid_C(String uuid,
long companyId,
int start,
int end)
Returns a range of all the users where uuid = ? and companyId = ?. |
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 = ?. |
List<User> |
findByUuid_C(String uuid,
long companyId,
int start,
int end,
OrderByComparator<User> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the users where uuid = ? and companyId = ?. |
User |
findByUuid_First(String uuid,
OrderByComparator<User> orderByComparator)
Returns the first user in the ordered set where uuid = ?. |
User |
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 = ?. |
List<User> |
findByUuid(String uuid)
Returns all the users where uuid = ?. |
List<User> |
findByUuid(String uuid,
int start,
int end)
Returns a range of all the users where uuid = ?. |
List<User> |
findByUuid(String uuid,
int start,
int end,
OrderByComparator<User> orderByComparator)
Returns an ordered range of all the users where uuid = ?. |
List<User> |
findByUuid(String uuid,
int start,
int end,
OrderByComparator<User> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the users where uuid = ?. |
Set<String> |
getBadColumnNames()
|
protected User |
getByC_CD_MD_PrevAndNext(Session session,
User user,
long companyId,
Date createDate,
Date modifiedDate,
OrderByComparator<User> orderByComparator,
boolean previous)
|
protected User |
getByC_CD_PrevAndNext(Session session,
User user,
long companyId,
Date createDate,
OrderByComparator<User> orderByComparator,
boolean previous)
|
protected User |
getByC_DU_S_PrevAndNext(Session session,
User user,
long companyId,
boolean defaultUser,
int status,
OrderByComparator<User> orderByComparator,
boolean previous)
|
protected User |
getByC_MD_PrevAndNext(Session session,
User user,
long companyId,
Date modifiedDate,
OrderByComparator<User> orderByComparator,
boolean previous)
|
protected User |
getByC_S_PrevAndNext(Session session,
User user,
long companyId,
int status,
OrderByComparator<User> orderByComparator,
boolean previous)
|
protected User |
getByCompanyId_PrevAndNext(Session session,
User user,
long companyId,
OrderByComparator<User> orderByComparator,
boolean previous)
|
protected User |
getByEmailAddress_PrevAndNext(Session session,
User user,
String emailAddress,
OrderByComparator<User> orderByComparator,
boolean previous)
|
protected User |
getByUuid_C_PrevAndNext(Session session,
User user,
String uuid,
long companyId,
OrderByComparator<User> orderByComparator,
boolean previous)
|
protected User |
getByUuid_PrevAndNext(Session session,
User user,
String uuid,
OrderByComparator<User> orderByComparator,
boolean previous)
|
long[] |
getGroupPrimaryKeys(long pk)
Returns the primaryKeys of groups associated with the user. |
List<Group> |
getGroups(long pk)
Returns all the groups associated with the user. |
List<Group> |
getGroups(long pk,
int start,
int end)
Returns a range of all the groups associated with the user. |
List<Group> |
getGroups(long pk,
int start,
int end,
OrderByComparator<Group> orderByComparator)
Returns an ordered range of all the groups associated with the user. |
int |
getGroupsSize(long pk)
Returns the number of groups associated with the user. |
long[] |
getOrganizationPrimaryKeys(long pk)
Returns the primaryKeys of organizations associated with the user. |
List<Organization> |
getOrganizations(long pk)
Returns all the organizations associated with the user. |
List<Organization> |
getOrganizations(long pk,
int start,
int end)
Returns a range of all the organizations associated with the user. |
List<Organization> |
getOrganizations(long pk,
int start,
int end,
OrderByComparator<Organization> orderByComparator)
Returns an ordered range of all the organizations associated with the user. |
int |
getOrganizationsSize(long pk)
Returns the number of organizations associated with the user. |
long[] |
getRolePrimaryKeys(long pk)
Returns the primaryKeys of roles associated with the user. |
List<Role> |
getRoles(long pk)
Returns all the roles associated with the user. |
List<Role> |
getRoles(long pk,
int start,
int end)
Returns a range of all the roles associated with the user. |
List<Role> |
getRoles(long pk,
int start,
int end,
OrderByComparator<Role> orderByComparator)
Returns an ordered range of all the roles associated with the user. |
int |
getRolesSize(long pk)
Returns the number of roles associated with the user. |
protected Map<String,Integer> |
getTableColumnsMap()
|
long[] |
getTeamPrimaryKeys(long pk)
Returns the primaryKeys of teams associated with the user. |
List<Team> |
getTeams(long pk)
Returns all the teams associated with the user. |
List<Team> |
getTeams(long pk,
int start,
int end)
Returns a range of all the teams associated with the user. |
List<Team> |
getTeams(long pk,
int start,
int end,
OrderByComparator<Team> orderByComparator)
Returns an ordered range of all the teams associated with the user. |
int |
getTeamsSize(long pk)
Returns the number of teams associated with the user. |
long[] |
getUserGroupPrimaryKeys(long pk)
Returns the primaryKeys of user groups associated with the user. |
List<UserGroup> |
getUserGroups(long pk)
Returns all the user groups associated with the user. |
List<UserGroup> |
getUserGroups(long pk,
int start,
int end)
Returns a range of all the user groups associated with the user. |
List<UserGroup> |
getUserGroups(long pk,
int start,
int end,
OrderByComparator<UserGroup> orderByComparator)
Returns an ordered range of all the user groups associated with the user. |
int |
getUserGroupsSize(long pk)
Returns the number of user groups associated with the user. |
User |
remove(long userId)
Removes the user with the primary key from the database. |
User |
remove(Serializable primaryKey)
Removes the user with the primary key from the database. |
void |
removeAll()
Removes all the users from the database. |
void |
removeByC_CD_MD(long companyId,
Date createDate,
Date modifiedDate)
Removes all the users where companyId = ? and createDate = ? and modifiedDate = ? from the database. |
void |
removeByC_CD(long companyId,
Date createDate)
Removes all the users where companyId = ? and createDate = ? from the database. |
void |
removeByC_DU_S(long companyId,
boolean defaultUser,
int status)
Removes all the users where companyId = ? and defaultUser = ? and status = ? from the database. |
User |
removeByC_DU(long companyId,
boolean defaultUser)
Removes the user where companyId = ? and defaultUser = ? from the database. |
User |
removeByC_EA(long companyId,
String emailAddress)
Removes the user where companyId = ? and emailAddress = ? from the database. |
User |
removeByC_FID(long companyId,
long facebookId)
Removes the user where companyId = ? and facebookId = ? from the database. |
void |
removeByC_MD(long companyId,
Date modifiedDate)
Removes all the users where companyId = ? and modifiedDate = ? from the database. |
User |
removeByC_O(long companyId,
String openId)
Removes the user where companyId = ? and openId = ? from the database. |
void |
removeByC_S(long companyId,
int status)
Removes all the users where companyId = ? and status = ? from the database. |
User |
removeByC_SN(long companyId,
String screenName)
Removes the user where companyId = ? and screenName = ? from the database. |
User |
removeByC_U(long companyId,
long userId)
Removes the user where companyId = ? and userId = ? from the database. |
void |
removeByCompanyId(long companyId)
Removes all the users where companyId = ? from the database. |
User |
removeByContactId(long contactId)
Removes the user where contactId = ? from the database. |
void |
removeByEmailAddress(String emailAddress)
Removes all the users where emailAddress = ? from the database. |
User |
removeByPortraitId(long portraitId)
Removes the user where portraitId = ? from the database. |
void |
removeByUuid_C(String uuid,
long companyId)
Removes all the users where uuid = ? and companyId = ? from the database. |
void |
removeByUuid(String uuid)
Removes all the users where uuid = ? from the database. |
void |
removeGroup(long pk,
Group group)
Removes the association between the user and the group. |
void |
removeGroup(long pk,
long groupPK)
Removes the association between the user and the group. |
void |
removeGroups(long pk,
List<Group> groups)
Removes the association between the user and the groups. |
void |
removeGroups(long pk,
long[] groupPKs)
Removes the association between the user and the groups. |
protected User |
removeImpl(User user)
Removes the model instance from the database. |
void |
removeOrganization(long pk,
long organizationPK)
Removes the association between the user and the organization. |
void |
removeOrganization(long pk,
Organization organization)
Removes the association between the user and the organization. |
void |
removeOrganizations(long pk,
List<Organization> organizations)
Removes the association between the user and the organizations. |
void |
removeOrganizations(long pk,
long[] organizationPKs)
Removes the association between the user and the organizations. |
void |
removeRole(long pk,
long rolePK)
Removes the association between the user and the role. |
void |
removeRole(long pk,
Role role)
Removes the association between the user and the role. |
void |
removeRoles(long pk,
List<Role> roles)
Removes the association between the user and the roles. |
void |
removeRoles(long pk,
long[] rolePKs)
Removes the association between the user and the roles. |
void |
removeTeam(long pk,
long teamPK)
Removes the association between the user and the team. |
void |
removeTeam(long pk,
Team team)
Removes the association between the user and the team. |
void |
removeTeams(long pk,
List<Team> teams)
Removes the association between the user and the teams. |
void |
removeTeams(long pk,
long[] teamPKs)
Removes the association between the user and the teams. |
void |
removeUserGroup(long pk,
long userGroupPK)
Removes the association between the user and the user group. |
void |
removeUserGroup(long pk,
UserGroup userGroup)
Removes the association between the user and the user group. |
void |
removeUserGroups(long pk,
List<UserGroup> userGroups)
Removes the association between the user and the user groups. |
void |
removeUserGroups(long pk,
long[] userGroupPKs)
Removes the association between the user and the user groups. |
void |
setGroups(long pk,
List<Group> groups)
Sets the groups associated with the user, removing and adding associations as necessary. |
void |
setGroups(long pk,
long[] groupPKs)
Sets the groups associated with the user, removing and adding associations as necessary. |
void |
setOrganizations(long pk,
List<Organization> organizations)
Sets the organizations associated with the user, removing and adding associations as necessary. |
void |
setOrganizations(long pk,
long[] organizationPKs)
Sets the organizations associated with the user, removing and adding associations as necessary. |
void |
setRoles(long pk,
List<Role> roles)
Sets the roles associated with the user, removing and adding associations as necessary. |
void |
setRoles(long pk,
long[] rolePKs)
Sets the roles associated with the user, removing and adding associations as necessary. |
void |
setTeams(long pk,
List<Team> teams)
Sets the teams associated with the user, removing and adding associations as necessary. |
void |
setTeams(long pk,
long[] teamPKs)
Sets the teams associated with the user, removing and adding associations as necessary. |
void |
setUserGroups(long pk,
List<UserGroup> userGroups)
Sets the user groups associated with the user, removing and adding associations as necessary. |
void |
setUserGroups(long pk,
long[] userGroupPKs)
Sets the user groups associated with the user, removing and adding associations as necessary. |
protected User |
toUnwrappedModel(User user)
|
User |
updateImpl(User user)
Updates the model instance in the database or adds it if it does not yet exist. |
| Methods inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl |
|---|
appendOrderByComparator, appendOrderByComparator, closeSession, countWithDynamicQuery, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getClassLoader, getColumnName, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openNewSession, openSession, processException, registerListener, remove, removeConjunction, setDataSource, setModelClass, setSessionFactory, unregisterListener, update, update, update, update, updateImpl |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence |
|---|
closeSession, countWithDynamicQuery, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, setDataSource, unregisterListener, update, update, update, update |
| Field Detail |
|---|
public static final String FINDER_CLASS_NAME_ENTITY
public static final String FINDER_CLASS_NAME_LIST_WITH_PAGINATION
public static final String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL
public static final FinderPath FINDER_PATH_COUNT_ALL
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID
public static final FinderPath FINDER_PATH_COUNT_BY_UUID
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID_C
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID_C
public static final FinderPath FINDER_PATH_COUNT_BY_UUID_C
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_COMPANYID
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_COMPANYID
public static final FinderPath FINDER_PATH_COUNT_BY_COMPANYID
public static final FinderPath FINDER_PATH_FETCH_BY_CONTACTID
public static final FinderPath FINDER_PATH_COUNT_BY_CONTACTID
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_EMAILADDRESS
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_EMAILADDRESS
public static final FinderPath FINDER_PATH_COUNT_BY_EMAILADDRESS
public static final FinderPath FINDER_PATH_FETCH_BY_PORTRAITID
public static final FinderPath FINDER_PATH_COUNT_BY_PORTRAITID
public static final FinderPath FINDER_PATH_FETCH_BY_C_U
public static final FinderPath FINDER_PATH_COUNT_BY_C_U
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_C_CD
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_CD
public static final FinderPath FINDER_PATH_COUNT_BY_C_CD
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_C_MD
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_MD
public static final FinderPath FINDER_PATH_COUNT_BY_C_MD
public static final FinderPath FINDER_PATH_FETCH_BY_C_DU
public static final FinderPath FINDER_PATH_COUNT_BY_C_DU
public static final FinderPath FINDER_PATH_FETCH_BY_C_SN
public static final FinderPath FINDER_PATH_COUNT_BY_C_SN
public static final FinderPath FINDER_PATH_FETCH_BY_C_EA
public static final FinderPath FINDER_PATH_COUNT_BY_C_EA
public static final FinderPath FINDER_PATH_FETCH_BY_C_FID
public static final FinderPath FINDER_PATH_COUNT_BY_C_FID
public static final FinderPath FINDER_PATH_FETCH_BY_C_O
public static final FinderPath FINDER_PATH_COUNT_BY_C_O
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_C_S
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_S
public static final FinderPath FINDER_PATH_COUNT_BY_C_S
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_C_CD_MD
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_CD_MD
public static final FinderPath FINDER_PATH_COUNT_BY_C_CD_MD
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_C_DU_S
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_DU_S
public static final FinderPath FINDER_PATH_COUNT_BY_C_DU_S
@BeanReference(type=CompanyProviderWrapper.class) protected CompanyProvider companyProvider
protected EntityCache entityCache
protected FinderCache finderCache
@BeanReference(type=GroupPersistence.class) protected GroupPersistence groupPersistence
protected TableMapper<User,Group> userToGroupTableMapper
@BeanReference(type=OrganizationPersistence.class) protected OrganizationPersistence organizationPersistence
protected TableMapper<User,Organization> userToOrganizationTableMapper
@BeanReference(type=RolePersistence.class) protected RolePersistence rolePersistence
protected TableMapper<User,Role> userToRoleTableMapper
@BeanReference(type=TeamPersistence.class) protected TeamPersistence teamPersistence
protected TableMapper<User,Team> userToTeamTableMapper
@BeanReference(type=UserGroupPersistence.class) protected UserGroupPersistence userGroupPersistence
protected TableMapper<User,UserGroup> userToUserGroupTableMapper
| Constructor Detail |
|---|
public UserPersistenceImpl()
| Method Detail |
|---|
public List<User> findByUuid(String uuid)
findByUuid in interface UserPersistenceuuid - the uuid
public List<User> findByUuid(String uuid,
int start,
int end)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from UserModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findByUuid in interface UserPersistenceuuid - the uuidstart - the lower bound of the range of usersend - the upper bound of the range of users (not inclusive)
public List<User> findByUuid(String uuid,
int start,
int end,
OrderByComparator<User> orderByComparator)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from UserModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findByUuid in interface UserPersistenceuuid - the uuidstart - the lower bound of the range of usersend - the upper bound of the range of users (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
public List<User> findByUuid(String uuid,
int start,
int end,
OrderByComparator<User> orderByComparator,
boolean retrieveFromCache)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from UserModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findByUuid in interface UserPersistenceuuid - the uuidstart - the lower bound of the range of usersend - the upper bound of the range of users (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cache
public User findByUuid_First(String uuid,
OrderByComparator<User> orderByComparator)
throws NoSuchUserException
findByUuid_First in interface UserPersistenceuuid - the uuidorderByComparator - the comparator to order the set by (optionally null)
NoSuchUserException - if a matching user could not be found
public User fetchByUuid_First(String uuid,
OrderByComparator<User> orderByComparator)
fetchByUuid_First in interface UserPersistenceuuid - the uuidorderByComparator - the comparator to order the set by (optionally null)
null if a matching user could not be found
public User findByUuid_Last(String uuid,
OrderByComparator<User> orderByComparator)
throws NoSuchUserException
findByUuid_Last in interface UserPersistenceuuid - the uuidorderByComparator - the comparator to order the set by (optionally null)
NoSuchUserException - if a matching user could not be found
public User fetchByUuid_Last(String uuid,
OrderByComparator<User> orderByComparator)
fetchByUuid_Last in interface UserPersistenceuuid - the uuidorderByComparator - the comparator to order the set by (optionally null)
null if a matching user could not be found
public User[] findByUuid_PrevAndNext(long userId,
String uuid,
OrderByComparator<User> orderByComparator)
throws NoSuchUserException
findByUuid_PrevAndNext in interface UserPersistenceuserId - the primary key of the current useruuid - the uuidorderByComparator - the comparator to order the set by (optionally null)
NoSuchUserException - if a user with the primary key could not be found
protected User getByUuid_PrevAndNext(Session session,
User user,
String uuid,
OrderByComparator<User> orderByComparator,
boolean previous)
public void removeByUuid(String uuid)
removeByUuid in interface UserPersistenceuuid - the uuidpublic int countByUuid(String uuid)
countByUuid in interface UserPersistenceuuid - the uuid
public List<User> findByUuid_C(String uuid,
long companyId)
findByUuid_C in interface UserPersistenceuuid - the uuidcompanyId - the company ID
public List<User> findByUuid_C(String uuid,
long companyId,
int start,
int end)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from UserModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findByUuid_C in interface UserPersistenceuuid - the uuidcompanyId - the company IDstart - the lower bound of the range of usersend - the upper bound of the range of users (not inclusive)
public List<User> findByUuid_C(String uuid,
long companyId,
int start,
int end,
OrderByComparator<User> orderByComparator)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from UserModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findByUuid_C in interface UserPersistenceuuid - the uuidcompanyId - the company IDstart - the lower bound of the range of usersend - the upper bound of the range of users (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
public List<User> findByUuid_C(String uuid,
long companyId,
int start,
int end,
OrderByComparator<User> orderByComparator,
boolean retrieveFromCache)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from UserModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findByUuid_C in interface UserPersistenceuuid - the uuidcompanyId - the company IDstart - the lower bound of the range of usersend - the upper bound of the range of users (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cache
public User findByUuid_C_First(String uuid,
long companyId,
OrderByComparator<User> orderByComparator)
throws NoSuchUserException
findByUuid_C_First in interface UserPersistenceuuid - the uuidcompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchUserException - if a matching user could not be found
public User fetchByUuid_C_First(String uuid,
long companyId,
OrderByComparator<User> orderByComparator)
fetchByUuid_C_First in interface UserPersistenceuuid - the uuidcompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching user could not be found
public User findByUuid_C_Last(String uuid,
long companyId,
OrderByComparator<User> orderByComparator)
throws NoSuchUserException
findByUuid_C_Last in interface UserPersistenceuuid - the uuidcompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchUserException - if a matching user could not be found
public User fetchByUuid_C_Last(String uuid,
long companyId,
OrderByComparator<User> orderByComparator)
fetchByUuid_C_Last in interface UserPersistenceuuid - the uuidcompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching user could not be found
public User[] findByUuid_C_PrevAndNext(long userId,
String uuid,
long companyId,
OrderByComparator<User> orderByComparator)
throws NoSuchUserException
findByUuid_C_PrevAndNext in interface UserPersistenceuserId - the primary key of the current useruuid - the uuidcompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchUserException - if a user with the primary key could not be found
protected User getByUuid_C_PrevAndNext(Session session,
User user,
String uuid,
long companyId,
OrderByComparator<User> orderByComparator,
boolean previous)
public void removeByUuid_C(String uuid,
long companyId)
removeByUuid_C in interface UserPersistenceuuid - the uuidcompanyId - the company ID
public int countByUuid_C(String uuid,
long companyId)
countByUuid_C in interface UserPersistenceuuid - the uuidcompanyId - the company ID
public List<User> findByCompanyId(long companyId)
findByCompanyId in interface UserPersistencecompanyId - the company ID
public List<User> findByCompanyId(long companyId,
int start,
int end)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from UserModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findByCompanyId in interface UserPersistencecompanyId - the company IDstart - the lower bound of the range of usersend - the upper bound of the range of users (not inclusive)
public List<User> findByCompanyId(long companyId,
int start,
int end,
OrderByComparator<User> orderByComparator)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from UserModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findByCompanyId in interface UserPersistencecompanyId - the company IDstart - the lower bound of the range of usersend - the upper bound of the range of users (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
public List<User> findByCompanyId(long companyId,
int start,
int end,
OrderByComparator<User> orderByComparator,
boolean retrieveFromCache)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from UserModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findByCompanyId in interface UserPersistencecompanyId - the company IDstart - the lower bound of the range of usersend - the upper bound of the range of users (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cache
public User findByCompanyId_First(long companyId,
OrderByComparator<User> orderByComparator)
throws NoSuchUserException
findByCompanyId_First in interface UserPersistencecompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchUserException - if a matching user could not be found
public User fetchByCompanyId_First(long companyId,
OrderByComparator<User> orderByComparator)
fetchByCompanyId_First in interface UserPersistencecompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching user could not be found
public User findByCompanyId_Last(long companyId,
OrderByComparator<User> orderByComparator)
throws NoSuchUserException
findByCompanyId_Last in interface UserPersistencecompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchUserException - if a matching user could not be found
public User fetchByCompanyId_Last(long companyId,
OrderByComparator<User> orderByComparator)
fetchByCompanyId_Last in interface UserPersistencecompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching user could not be found
public User[] findByCompanyId_PrevAndNext(long userId,
long companyId,
OrderByComparator<User> orderByComparator)
throws NoSuchUserException
findByCompanyId_PrevAndNext in interface UserPersistenceuserId - the primary key of the current usercompanyId - the company IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchUserException - if a user with the primary key could not be found
protected User getByCompanyId_PrevAndNext(Session session,
User user,
long companyId,
OrderByComparator<User> orderByComparator,
boolean previous)
public void removeByCompanyId(long companyId)
removeByCompanyId in interface UserPersistencecompanyId - the company IDpublic int countByCompanyId(long companyId)
countByCompanyId in interface UserPersistencecompanyId - the company ID
public User findByContactId(long contactId)
throws NoSuchUserException
NoSuchUserException if it could not be found.
findByContactId in interface UserPersistencecontactId - the contact ID
NoSuchUserException - if a matching user could not be foundpublic User fetchByContactId(long contactId)
null if it could not be found. Uses the finder cache.
fetchByContactId in interface UserPersistencecontactId - the contact ID
null if a matching user could not be found
public User fetchByContactId(long contactId,
boolean retrieveFromCache)
null if it could not be found, optionally using the finder cache.
fetchByContactId in interface UserPersistencecontactId - the contact IDretrieveFromCache - whether to retrieve from the finder cache
null if a matching user could not be found
public User removeByContactId(long contactId)
throws NoSuchUserException
removeByContactId in interface UserPersistencecontactId - the contact ID
NoSuchUserExceptionpublic int countByContactId(long contactId)
countByContactId in interface UserPersistencecontactId - the contact ID
public List<User> findByEmailAddress(String emailAddress)
findByEmailAddress in interface UserPersistenceemailAddress - the email address
public List<User> findByEmailAddress(String emailAddress,
int start,
int end)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from UserModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findByEmailAddress in interface UserPersistenceemailAddress - the email addressstart - the lower bound of the range of usersend - the upper bound of the range of users (not inclusive)
public List<User> findByEmailAddress(String emailAddress,
int start,
int end,
OrderByComparator<User> orderByComparator)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from UserModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findByEmailAddress in interface UserPersistenceemailAddress - the email addressstart - the lower bound of the range of usersend - the upper bound of the range of users (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
public List<User> findByEmailAddress(String emailAddress,
int start,
int end,
OrderByComparator<User> orderByComparator,
boolean retrieveFromCache)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from UserModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findByEmailAddress in interface UserPersistenceemailAddress - the email addressstart - the lower bound of the range of usersend - the upper bound of the range of users (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cache
public User findByEmailAddress_First(String emailAddress,
OrderByComparator<User> orderByComparator)
throws NoSuchUserException
findByEmailAddress_First in interface UserPersistenceemailAddress - the email addressorderByComparator - the comparator to order the set by (optionally null)
NoSuchUserException - if a matching user could not be found
public User fetchByEmailAddress_First(String emailAddress,
OrderByComparator<User> orderByComparator)
fetchByEmailAddress_First in interface UserPersistenceemailAddress - the email addressorderByComparator - the comparator to order the set by (optionally null)
null if a matching user could not be found
public User findByEmailAddress_Last(String emailAddress,
OrderByComparator<User> orderByComparator)
throws NoSuchUserException
findByEmailAddress_Last in interface UserPersistenceemailAddress - the email addressorderByComparator - the comparator to order the set by (optionally null)
NoSuchUserException - if a matching user could not be found
public User fetchByEmailAddress_Last(String emailAddress,
OrderByComparator<User> orderByComparator)
fetchByEmailAddress_Last in interface UserPersistenceemailAddress - the email addressorderByComparator - the comparator to order the set by (optionally null)
null if a matching user could not be found
public User[] findByEmailAddress_PrevAndNext(long userId,
String emailAddress,
OrderByComparator<User> orderByComparator)
throws NoSuchUserException
findByEmailAddress_PrevAndNext in interface UserPersistenceuserId - the primary key of the current useremailAddress - the email addressorderByComparator - the comparator to order the set by (optionally null)
NoSuchUserException - if a user with the primary key could not be found
protected User getByEmailAddress_PrevAndNext(Session session,
User user,
String emailAddress,
OrderByComparator<User> orderByComparator,
boolean previous)
public void removeByEmailAddress(String emailAddress)
removeByEmailAddress in interface UserPersistenceemailAddress - the email addresspublic int countByEmailAddress(String emailAddress)
countByEmailAddress in interface UserPersistenceemailAddress - the email address
public User findByPortraitId(long portraitId)
throws NoSuchUserException
NoSuchUserException if it could not be found.
findByPortraitId in interface UserPersistenceportraitId - the portrait ID
NoSuchUserException - if a matching user could not be foundpublic User fetchByPortraitId(long portraitId)
null if it could not be found. Uses the finder cache.
fetchByPortraitId in interface UserPersistenceportraitId - the portrait ID
null if a matching user could not be found
public User fetchByPortraitId(long portraitId,
boolean retrieveFromCache)
null if it could not be found, optionally using the finder cache.
fetchByPortraitId in interface UserPersistenceportraitId - the portrait IDretrieveFromCache - whether to retrieve from the finder cache
null if a matching user could not be found
public User removeByPortraitId(long portraitId)
throws NoSuchUserException
removeByPortraitId in interface UserPersistenceportraitId - the portrait ID
NoSuchUserExceptionpublic int countByPortraitId(long portraitId)
countByPortraitId in interface UserPersistenceportraitId - the portrait ID
public User findByC_U(long companyId,
long userId)
throws NoSuchUserException
NoSuchUserException if it could not be found.
findByC_U in interface UserPersistencecompanyId - the company IDuserId - the user ID
NoSuchUserException - if a matching user could not be found
public User fetchByC_U(long companyId,
long userId)
null if it could not be found. Uses the finder cache.
fetchByC_U in interface UserPersistencecompanyId - the company IDuserId - the user ID
null if a matching user could not be found
public User fetchByC_U(long companyId,
long userId,
boolean retrieveFromCache)
null if it could not be found, optionally using the finder cache.
fetchByC_U in interface UserPersistencecompanyId - the company IDuserId - the user IDretrieveFromCache - whether to retrieve from the finder cache
null if a matching user could not be found
public User removeByC_U(long companyId,
long userId)
throws NoSuchUserException
removeByC_U in interface UserPersistencecompanyId - the company IDuserId - the user ID
NoSuchUserException
public int countByC_U(long companyId,
long userId)
countByC_U in interface UserPersistencecompanyId - the company IDuserId - the user ID
public List<User> findByC_CD(long companyId,
Date createDate)
findByC_CD in interface UserPersistencecompanyId - the company IDcreateDate - the create date
public List<User> findByC_CD(long companyId,
Date createDate,
int start,
int end)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from UserModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findByC_CD in interface UserPersistencecompanyId - the company IDcreateDate - the create datestart - the lower bound of the range of usersend - the upper bound of the range of users (not inclusive)
public List<User> findByC_CD(long companyId,
Date createDate,
int start,
int end,
OrderByComparator<User> orderByComparator)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from UserModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findByC_CD in interface UserPersistencecompanyId - the company IDcreateDate - the create datestart - the lower bound of the range of usersend - the upper bound of the range of users (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
public List<User> findByC_CD(long companyId,
Date createDate,
int start,
int end,
OrderByComparator<User> orderByComparator,
boolean retrieveFromCache)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from UserModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findByC_CD in interface UserPersistencecompanyId - the company IDcreateDate - the create datestart - the lower bound of the range of usersend - the upper bound of the range of users (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cache
public User findByC_CD_First(long companyId,
Date createDate,
OrderByComparator<User> orderByComparator)
throws NoSuchUserException
findByC_CD_First in interface UserPersistencecompanyId - the company IDcreateDate - the create dateorderByComparator - the comparator to order the set by (optionally null)
NoSuchUserException - if a matching user could not be found
public User fetchByC_CD_First(long companyId,
Date createDate,
OrderByComparator<User> orderByComparator)
fetchByC_CD_First in interface UserPersistencecompanyId - the company IDcreateDate - the create dateorderByComparator - the comparator to order the set by (optionally null)
null if a matching user could not be found
public User findByC_CD_Last(long companyId,
Date createDate,
OrderByComparator<User> orderByComparator)
throws NoSuchUserException
findByC_CD_Last in interface UserPersistencecompanyId - the company IDcreateDate - the create dateorderByComparator - the comparator to order the set by (optionally null)
NoSuchUserException - if a matching user could not be found
public User fetchByC_CD_Last(long companyId,
Date createDate,
OrderByComparator<User> orderByComparator)
fetchByC_CD_Last in interface UserPersistencecompanyId - the company IDcreateDate - the create dateorderByComparator - the comparator to order the set by (optionally null)
null if a matching user could not be found
public User[] findByC_CD_PrevAndNext(long userId,
long companyId,
Date createDate,
OrderByComparator<User> orderByComparator)
throws NoSuchUserException
findByC_CD_PrevAndNext in interface UserPersistenceuserId - the primary key of the current usercompanyId - the company IDcreateDate - the create dateorderByComparator - the comparator to order the set by (optionally null)
NoSuchUserException - if a user with the primary key could not be found
protected User getByC_CD_PrevAndNext(Session session,
User user,
long companyId,
Date createDate,
OrderByComparator<User> orderByComparator,
boolean previous)
public void removeByC_CD(long companyId,
Date createDate)
removeByC_CD in interface UserPersistencecompanyId - the company IDcreateDate - the create date
public int countByC_CD(long companyId,
Date createDate)
countByC_CD in interface UserPersistencecompanyId - the company IDcreateDate - the create date
public List<User> findByC_MD(long companyId,
Date modifiedDate)
findByC_MD in interface UserPersistencecompanyId - the company IDmodifiedDate - the modified date
public List<User> findByC_MD(long companyId,
Date modifiedDate,
int start,
int end)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from UserModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findByC_MD in interface UserPersistencecompanyId - the company IDmodifiedDate - the modified datestart - the lower bound of the range of usersend - the upper bound of the range of users (not inclusive)
public List<User> findByC_MD(long companyId,
Date modifiedDate,
int start,
int end,
OrderByComparator<User> orderByComparator)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from UserModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findByC_MD in interface UserPersistencecompanyId - the company IDmodifiedDate - the modified datestart - the lower bound of the range of usersend - the upper bound of the range of users (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
public List<User> findByC_MD(long companyId,
Date modifiedDate,
int start,
int end,
OrderByComparator<User> orderByComparator,
boolean retrieveFromCache)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from UserModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findByC_MD in interface UserPersistencecompanyId - the company IDmodifiedDate - the modified datestart - the lower bound of the range of usersend - the upper bound of the range of users (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cache
public User findByC_MD_First(long companyId,
Date modifiedDate,
OrderByComparator<User> orderByComparator)
throws NoSuchUserException
findByC_MD_First in interface UserPersistencecompanyId - the company IDmodifiedDate - the modified dateorderByComparator - the comparator to order the set by (optionally null)
NoSuchUserException - if a matching user could not be found
public User fetchByC_MD_First(long companyId,
Date modifiedDate,
OrderByComparator<User> orderByComparator)
fetchByC_MD_First in interface UserPersistencecompanyId - the company IDmodifiedDate - the modified dateorderByComparator - the comparator to order the set by (optionally null)
null if a matching user could not be found
public User findByC_MD_Last(long companyId,
Date modifiedDate,
OrderByComparator<User> orderByComparator)
throws NoSuchUserException
findByC_MD_Last in interface UserPersistencecompanyId - the company IDmodifiedDate - the modified dateorderByComparator - the comparator to order the set by (optionally null)
NoSuchUserException - if a matching user could not be found
public User fetchByC_MD_Last(long companyId,
Date modifiedDate,
OrderByComparator<User> orderByComparator)
fetchByC_MD_Last in interface UserPersistencecompanyId - the company IDmodifiedDate - the modified dateorderByComparator - the comparator to order the set by (optionally null)
null if a matching user could not be found
public User[] findByC_MD_PrevAndNext(long userId,
long companyId,
Date modifiedDate,
OrderByComparator<User> orderByComparator)
throws NoSuchUserException
findByC_MD_PrevAndNext in interface UserPersistenceuserId - the primary key of the current usercompanyId - the company IDmodifiedDate - the modified dateorderByComparator - the comparator to order the set by (optionally null)
NoSuchUserException - if a user with the primary key could not be found
protected User getByC_MD_PrevAndNext(Session session,
User user,
long companyId,
Date modifiedDate,
OrderByComparator<User> orderByComparator,
boolean previous)
public void removeByC_MD(long companyId,
Date modifiedDate)
removeByC_MD in interface UserPersistencecompanyId - the company IDmodifiedDate - the modified date
public int countByC_MD(long companyId,
Date modifiedDate)
countByC_MD in interface UserPersistencecompanyId - the company IDmodifiedDate - the modified date
public User findByC_DU(long companyId,
boolean defaultUser)
throws NoSuchUserException
NoSuchUserException if it could not be found.
findByC_DU in interface UserPersistencecompanyId - the company IDdefaultUser - the default user
NoSuchUserException - if a matching user could not be found
public User fetchByC_DU(long companyId,
boolean defaultUser)
null if it could not be found. Uses the finder cache.
fetchByC_DU in interface UserPersistencecompanyId - the company IDdefaultUser - the default user
null if a matching user could not be found
public User fetchByC_DU(long companyId,
boolean defaultUser,
boolean retrieveFromCache)
null if it could not be found, optionally using the finder cache.
fetchByC_DU in interface UserPersistencecompanyId - the company IDdefaultUser - the default userretrieveFromCache - whether to retrieve from the finder cache
null if a matching user could not be found
public User removeByC_DU(long companyId,
boolean defaultUser)
throws NoSuchUserException
removeByC_DU in interface UserPersistencecompanyId - the company IDdefaultUser - the default user
NoSuchUserException
public int countByC_DU(long companyId,
boolean defaultUser)
countByC_DU in interface UserPersistencecompanyId - the company IDdefaultUser - the default user
public User findByC_SN(long companyId,
String screenName)
throws NoSuchUserException
NoSuchUserException if it could not be found.
findByC_SN in interface UserPersistencecompanyId - the company IDscreenName - the screen name
NoSuchUserException - if a matching user could not be found
public User fetchByC_SN(long companyId,
String screenName)
null if it could not be found. Uses the finder cache.
fetchByC_SN in interface UserPersistencecompanyId - the company IDscreenName - the screen name
null if a matching user could not be found
public User fetchByC_SN(long companyId,
String screenName,
boolean retrieveFromCache)
null if it could not be found, optionally using the finder cache.
fetchByC_SN in interface UserPersistencecompanyId - the company IDscreenName - the screen nameretrieveFromCache - whether to retrieve from the finder cache
null if a matching user could not be found
public User removeByC_SN(long companyId,
String screenName)
throws NoSuchUserException
removeByC_SN in interface UserPersistencecompanyId - the company IDscreenName - the screen name
NoSuchUserException
public int countByC_SN(long companyId,
String screenName)
countByC_SN in interface UserPersistencecompanyId - the company IDscreenName - the screen name
public User findByC_EA(long companyId,
String emailAddress)
throws NoSuchUserException
NoSuchUserException if it could not be found.
findByC_EA in interface UserPersistencecompanyId - the company IDemailAddress - the email address
NoSuchUserException - if a matching user could not be found
public User fetchByC_EA(long companyId,
String emailAddress)
null if it could not be found. Uses the finder cache.
fetchByC_EA in interface UserPersistencecompanyId - the company IDemailAddress - the email address
null if a matching user could not be found
public User fetchByC_EA(long companyId,
String emailAddress,
boolean retrieveFromCache)
null if it could not be found, optionally using the finder cache.
fetchByC_EA in interface UserPersistencecompanyId - the company IDemailAddress - the email addressretrieveFromCache - whether to retrieve from the finder cache
null if a matching user could not be found
public User removeByC_EA(long companyId,
String emailAddress)
throws NoSuchUserException
removeByC_EA in interface UserPersistencecompanyId - the company IDemailAddress - the email address
NoSuchUserException
public int countByC_EA(long companyId,
String emailAddress)
countByC_EA in interface UserPersistencecompanyId - the company IDemailAddress - the email address
public User findByC_FID(long companyId,
long facebookId)
throws NoSuchUserException
NoSuchUserException if it could not be found.
findByC_FID in interface UserPersistencecompanyId - the company IDfacebookId - the facebook ID
NoSuchUserException - if a matching user could not be found
public User fetchByC_FID(long companyId,
long facebookId)
null if it could not be found. Uses the finder cache.
fetchByC_FID in interface UserPersistencecompanyId - the company IDfacebookId - the facebook ID
null if a matching user could not be found
public User fetchByC_FID(long companyId,
long facebookId,
boolean retrieveFromCache)
null if it could not be found, optionally using the finder cache.
fetchByC_FID in interface UserPersistencecompanyId - the company IDfacebookId - the facebook IDretrieveFromCache - whether to retrieve from the finder cache
null if a matching user could not be found
public User removeByC_FID(long companyId,
long facebookId)
throws NoSuchUserException
removeByC_FID in interface UserPersistencecompanyId - the company IDfacebookId - the facebook ID
NoSuchUserException
public int countByC_FID(long companyId,
long facebookId)
countByC_FID in interface UserPersistencecompanyId - the company IDfacebookId - the facebook ID
public User findByC_O(long companyId,
String openId)
throws NoSuchUserException
NoSuchUserException if it could not be found.
findByC_O in interface UserPersistencecompanyId - the company IDopenId - the open ID
NoSuchUserException - if a matching user could not be found
public User fetchByC_O(long companyId,
String openId)
null if it could not be found. Uses the finder cache.
fetchByC_O in interface UserPersistencecompanyId - the company IDopenId - the open ID
null if a matching user could not be found
public User fetchByC_O(long companyId,
String openId,
boolean retrieveFromCache)
null if it could not be found, optionally using the finder cache.
fetchByC_O in interface UserPersistencecompanyId - the company IDopenId - the open IDretrieveFromCache - whether to retrieve from the finder cache
null if a matching user could not be found
public User removeByC_O(long companyId,
String openId)
throws NoSuchUserException
removeByC_O in interface UserPersistencecompanyId - the company IDopenId - the open ID
NoSuchUserException
public int countByC_O(long companyId,
String openId)
countByC_O in interface UserPersistencecompanyId - the company IDopenId - the open ID
public List<User> findByC_S(long companyId,
int status)
findByC_S in interface UserPersistencecompanyId - the company IDstatus - the status
public List<User> findByC_S(long companyId,
int status,
int start,
int end)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from UserModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findByC_S in interface UserPersistencecompanyId - the company IDstatus - the statusstart - the lower bound of the range of usersend - the upper bound of the range of users (not inclusive)
public List<User> findByC_S(long companyId,
int status,
int start,
int end,
OrderByComparator<User> orderByComparator)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from UserModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findByC_S in interface UserPersistencecompanyId - the company IDstatus - the statusstart - the lower bound of the range of usersend - the upper bound of the range of users (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
public List<User> findByC_S(long companyId,
int status,
int start,
int end,
OrderByComparator<User> orderByComparator,
boolean retrieveFromCache)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from UserModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findByC_S in interface UserPersistencecompanyId - the company IDstatus - the statusstart - the lower bound of the range of usersend - the upper bound of the range of users (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cache
public User findByC_S_First(long companyId,
int status,
OrderByComparator<User> orderByComparator)
throws NoSuchUserException
findByC_S_First in interface UserPersistencecompanyId - the company IDstatus - the statusorderByComparator - the comparator to order the set by (optionally null)
NoSuchUserException - if a matching user could not be found
public User fetchByC_S_First(long companyId,
int status,
OrderByComparator<User> orderByComparator)
fetchByC_S_First in interface UserPersistencecompanyId - the company IDstatus - the statusorderByComparator - the comparator to order the set by (optionally null)
null if a matching user could not be found
public User findByC_S_Last(long companyId,
int status,
OrderByComparator<User> orderByComparator)
throws NoSuchUserException
findByC_S_Last in interface UserPersistencecompanyId - the company IDstatus - the statusorderByComparator - the comparator to order the set by (optionally null)
NoSuchUserException - if a matching user could not be found
public User fetchByC_S_Last(long companyId,
int status,
OrderByComparator<User> orderByComparator)
fetchByC_S_Last in interface UserPersistencecompanyId - the company IDstatus - the statusorderByComparator - the comparator to order the set by (optionally null)
null if a matching user could not be found
public User[] findByC_S_PrevAndNext(long userId,
long companyId,
int status,
OrderByComparator<User> orderByComparator)
throws NoSuchUserException
findByC_S_PrevAndNext in interface UserPersistenceuserId - the primary key of the current usercompanyId - the company IDstatus - the statusorderByComparator - the comparator to order the set by (optionally null)
NoSuchUserException - if a user with the primary key could not be found
protected User getByC_S_PrevAndNext(Session session,
User user,
long companyId,
int status,
OrderByComparator<User> orderByComparator,
boolean previous)
public void removeByC_S(long companyId,
int status)
removeByC_S in interface UserPersistencecompanyId - the company IDstatus - the status
public int countByC_S(long companyId,
int status)
countByC_S in interface UserPersistencecompanyId - the company IDstatus - the status
public List<User> findByC_CD_MD(long companyId,
Date createDate,
Date modifiedDate)
findByC_CD_MD in interface UserPersistencecompanyId - the company IDcreateDate - the create datemodifiedDate - the modified date
public List<User> findByC_CD_MD(long companyId,
Date createDate,
Date modifiedDate,
int start,
int end)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from UserModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findByC_CD_MD in interface UserPersistencecompanyId - 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)
public List<User> findByC_CD_MD(long companyId,
Date createDate,
Date modifiedDate,
int start,
int end,
OrderByComparator<User> orderByComparator)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from UserModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findByC_CD_MD in interface UserPersistencecompanyId - the company IDcreateDate - the create datemodifiedDate - the modified datestart - the lower bound of the range of usersend - the upper bound of the range of users (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
public List<User> findByC_CD_MD(long companyId,
Date createDate,
Date modifiedDate,
int start,
int end,
OrderByComparator<User> orderByComparator,
boolean retrieveFromCache)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from UserModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findByC_CD_MD in interface UserPersistencecompanyId - the company IDcreateDate - the create datemodifiedDate - the modified datestart - the lower bound of the range of usersend - the upper bound of the range of users (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cache
public User findByC_CD_MD_First(long companyId,
Date createDate,
Date modifiedDate,
OrderByComparator<User> orderByComparator)
throws NoSuchUserException
findByC_CD_MD_First in interface UserPersistencecompanyId - the company IDcreateDate - the create datemodifiedDate - the modified dateorderByComparator - the comparator to order the set by (optionally null)
NoSuchUserException - if a matching user could not be found
public User fetchByC_CD_MD_First(long companyId,
Date createDate,
Date modifiedDate,
OrderByComparator<User> orderByComparator)
fetchByC_CD_MD_First in interface UserPersistencecompanyId - the company IDcreateDate - the create datemodifiedDate - the modified dateorderByComparator - the comparator to order the set by (optionally null)
null if a matching user could not be found
public User findByC_CD_MD_Last(long companyId,
Date createDate,
Date modifiedDate,
OrderByComparator<User> orderByComparator)
throws NoSuchUserException
findByC_CD_MD_Last in interface UserPersistencecompanyId - the company IDcreateDate - the create datemodifiedDate - the modified dateorderByComparator - the comparator to order the set by (optionally null)
NoSuchUserException - if a matching user could not be found
public User fetchByC_CD_MD_Last(long companyId,
Date createDate,
Date modifiedDate,
OrderByComparator<User> orderByComparator)
fetchByC_CD_MD_Last in interface UserPersistencecompanyId - the company IDcreateDate - the create datemodifiedDate - the modified dateorderByComparator - the comparator to order the set by (optionally null)
null if a matching user could not be found
public User[] findByC_CD_MD_PrevAndNext(long userId,
long companyId,
Date createDate,
Date modifiedDate,
OrderByComparator<User> orderByComparator)
throws NoSuchUserException
findByC_CD_MD_PrevAndNext in interface UserPersistenceuserId - the primary key of the current usercompanyId - the company IDcreateDate - the create datemodifiedDate - the modified dateorderByComparator - the comparator to order the set by (optionally null)
NoSuchUserException - if a user with the primary key could not be found
protected User getByC_CD_MD_PrevAndNext(Session session,
User user,
long companyId,
Date createDate,
Date modifiedDate,
OrderByComparator<User> orderByComparator,
boolean previous)
public void removeByC_CD_MD(long companyId,
Date createDate,
Date modifiedDate)
removeByC_CD_MD in interface UserPersistencecompanyId - the company IDcreateDate - the create datemodifiedDate - the modified date
public int countByC_CD_MD(long companyId,
Date createDate,
Date modifiedDate)
countByC_CD_MD in interface UserPersistencecompanyId - the company IDcreateDate - the create datemodifiedDate - the modified date
public List<User> findByC_DU_S(long companyId,
boolean defaultUser,
int status)
findByC_DU_S in interface UserPersistencecompanyId - the company IDdefaultUser - the default userstatus - the status
public List<User> findByC_DU_S(long companyId,
boolean defaultUser,
int status,
int start,
int end)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from UserModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findByC_DU_S in interface UserPersistencecompanyId - the company IDdefaultUser - the default userstatus - the statusstart - the lower bound of the range of usersend - the upper bound of the range of users (not inclusive)
public List<User> findByC_DU_S(long companyId,
boolean defaultUser,
int status,
int start,
int end,
OrderByComparator<User> orderByComparator)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from UserModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findByC_DU_S in interface UserPersistencecompanyId - the company IDdefaultUser - the default userstatus - the statusstart - the lower bound of the range of usersend - the upper bound of the range of users (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
public List<User> findByC_DU_S(long companyId,
boolean defaultUser,
int status,
int start,
int end,
OrderByComparator<User> orderByComparator,
boolean retrieveFromCache)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from UserModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findByC_DU_S in interface UserPersistencecompanyId - the company IDdefaultUser - the default userstatus - the statusstart - the lower bound of the range of usersend - the upper bound of the range of users (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cache
public User findByC_DU_S_First(long companyId,
boolean defaultUser,
int status,
OrderByComparator<User> orderByComparator)
throws NoSuchUserException
findByC_DU_S_First in interface UserPersistencecompanyId - the company IDdefaultUser - the default userstatus - the statusorderByComparator - the comparator to order the set by (optionally null)
NoSuchUserException - if a matching user could not be found
public User fetchByC_DU_S_First(long companyId,
boolean defaultUser,
int status,
OrderByComparator<User> orderByComparator)
fetchByC_DU_S_First in interface UserPersistencecompanyId - the company IDdefaultUser - the default userstatus - the statusorderByComparator - the comparator to order the set by (optionally null)
null if a matching user could not be found
public User findByC_DU_S_Last(long companyId,
boolean defaultUser,
int status,
OrderByComparator<User> orderByComparator)
throws NoSuchUserException
findByC_DU_S_Last in interface UserPersistencecompanyId - the company IDdefaultUser - the default userstatus - the statusorderByComparator - the comparator to order the set by (optionally null)
NoSuchUserException - if a matching user could not be found
public User fetchByC_DU_S_Last(long companyId,
boolean defaultUser,
int status,
OrderByComparator<User> orderByComparator)
fetchByC_DU_S_Last in interface UserPersistencecompanyId - the company IDdefaultUser - the default userstatus - the statusorderByComparator - the comparator to order the set by (optionally null)
null if a matching user could not be found
public User[] findByC_DU_S_PrevAndNext(long userId,
long companyId,
boolean defaultUser,
int status,
OrderByComparator<User> orderByComparator)
throws NoSuchUserException
findByC_DU_S_PrevAndNext in interface UserPersistenceuserId - the primary key of the current usercompanyId - the company IDdefaultUser - the default userstatus - the statusorderByComparator - the comparator to order the set by (optionally null)
NoSuchUserException - if a user with the primary key could not be found
protected User getByC_DU_S_PrevAndNext(Session session,
User user,
long companyId,
boolean defaultUser,
int status,
OrderByComparator<User> orderByComparator,
boolean previous)
public void removeByC_DU_S(long companyId,
boolean defaultUser,
int status)
removeByC_DU_S in interface UserPersistencecompanyId - the company IDdefaultUser - the default userstatus - the status
public int countByC_DU_S(long companyId,
boolean defaultUser,
int status)
countByC_DU_S in interface UserPersistencecompanyId - the company IDdefaultUser - the default userstatus - the status
public void cacheResult(User user)
cacheResult in interface UserPersistenceuser - the userpublic void cacheResult(List<User> users)
cacheResult in interface UserPersistenceusers - the userspublic void clearCache()
The EntityCache and FinderCache are both cleared by this method.
clearCache in interface BasePersistence<User>clearCache in class BasePersistenceImpl<User>public void clearCache(User user)
The EntityCache and FinderCache are both cleared by this method.
clearCache in interface BasePersistence<User>clearCache in class BasePersistenceImpl<User>user - the instance of this model to clear the cache forpublic void clearCache(List<User> users)
BasePersistence
The EntityCache and FinderCache are both cleared by this
method.
clearCache in interface BasePersistence<User>clearCache in class BasePersistenceImpl<User>users - the List instances of this model to clear the cache for
protected void cacheUniqueFindersCache(UserModelImpl userModelImpl,
boolean isNew)
protected void clearUniqueFindersCache(UserModelImpl userModelImpl)
public User create(long userId)
create in interface UserPersistenceuserId - the primary key for the new user
public User remove(long userId)
throws NoSuchUserException
remove in interface UserPersistenceuserId - the primary key of the user
NoSuchUserException - if a user with the primary key could not be found
public User remove(Serializable primaryKey)
throws NoSuchUserException
remove in interface BasePersistence<User>remove in class BasePersistenceImpl<User>primaryKey - the primary key of the user
NoSuchUserException - if a user with the primary key could not be foundprotected User removeImpl(User user)
BasePersistenceImplBasePersistenceImpl.update(BaseModel,
boolean) depends on this method to implement the remove operation; it
only notifies the model listeners.
removeImpl in class BasePersistenceImpl<User>user - the model instance to remove
public User updateImpl(User user)
BasePersistenceImplBasePersistenceImpl.remove(BaseModel) depends on this method to implement the
update operation; it only notifies the model listeners.
updateImpl in interface UserPersistenceupdateImpl in class BasePersistenceImpl<User>user - the model instance to update
protected User toUnwrappedModel(User user)
public User findByPrimaryKey(Serializable primaryKey)
throws NoSuchUserException
NoSuchModelException if it could not be found.
findByPrimaryKey in interface BasePersistence<User>findByPrimaryKey in class BasePersistenceImpl<User>primaryKey - the primary key of the user
NoSuchUserException - if a user with the primary key could not be found
public User findByPrimaryKey(long userId)
throws NoSuchUserException
NoSuchUserException if it could not be found.
findByPrimaryKey in interface UserPersistenceuserId - the primary key of the user
NoSuchUserException - if a user with the primary key could not be foundpublic User fetchByPrimaryKey(Serializable primaryKey)
null if it could not be found.
fetchByPrimaryKey in interface BasePersistence<User>fetchByPrimaryKey in class BasePersistenceImpl<User>primaryKey - the primary key of the user
null if a user with the primary key could not be foundpublic User fetchByPrimaryKey(long userId)
null if it could not be found.
fetchByPrimaryKey in interface UserPersistenceuserId - the primary key of the user
null if a user with the primary key could not be foundpublic Map<Serializable,User> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
fetchByPrimaryKeys in interface BasePersistence<User>fetchByPrimaryKeys in interface UserPersistencefetchByPrimaryKeys in class BasePersistenceImpl<User>public List<User> findAll()
findAll in interface UserPersistence
public List<User> findAll(int start,
int end)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from UserModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findAll in interface UserPersistencestart - the lower bound of the range of usersend - the upper bound of the range of users (not inclusive)
public List<User> findAll(int start,
int end,
OrderByComparator<User> orderByComparator)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from UserModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findAll in interface UserPersistencestart - the lower bound of the range of usersend - the upper bound of the range of users (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
public List<User> findAll(int start,
int end,
OrderByComparator<User> orderByComparator,
boolean retrieveFromCache)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from UserModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findAll in interface UserPersistencestart - the lower bound of the range of usersend - the upper bound of the range of users (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cache
public void removeAll()
removeAll in interface UserPersistencepublic int countAll()
countAll in interface UserPersistencepublic long[] getGroupPrimaryKeys(long pk)
getGroupPrimaryKeys in interface UserPersistencepk - the primary key of the user
public List<Group> getGroups(long pk)
getGroups in interface UserPersistencepk - the primary key of the user
public List<Group> getGroups(long pk,
int start,
int end)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from UserModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
getGroups in interface UserPersistencepk - the primary key of the userstart - the lower bound of the range of usersend - the upper bound of the range of users (not inclusive)
public List<Group> getGroups(long pk,
int start,
int end,
OrderByComparator<Group> orderByComparator)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from UserModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
getGroups in interface UserPersistencepk - the primary key of the userstart - the lower bound of the range of usersend - the upper bound of the range of users (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
public int getGroupsSize(long pk)
getGroupsSize in interface UserPersistencepk - the primary key of the user
public boolean containsGroup(long pk,
long groupPK)
true if the group is associated with the user.
containsGroup in interface UserPersistencepk - the primary key of the usergroupPK - the primary key of the group
true if the group is associated with the user; false otherwisepublic boolean containsGroups(long pk)
true if the user has any groups associated with it.
containsGroups in interface UserPersistencepk - the primary key of the user to check for associations with groups
true if the user has any groups associated with it; false otherwise
public void addGroup(long pk,
long groupPK)
addGroup in interface UserPersistencepk - the primary key of the usergroupPK - the primary key of the group
public void addGroup(long pk,
Group group)
addGroup in interface UserPersistencepk - the primary key of the usergroup - the group
public void addGroups(long pk,
long[] groupPKs)
addGroups in interface UserPersistencepk - the primary key of the usergroupPKs - the primary keys of the groups
public void addGroups(long pk,
List<Group> groups)
addGroups in interface UserPersistencepk - the primary key of the usergroups - the groupspublic void clearGroups(long pk)
clearGroups in interface UserPersistencepk - the primary key of the user to clear the associated groups from
public void removeGroup(long pk,
long groupPK)
removeGroup in interface UserPersistencepk - the primary key of the usergroupPK - the primary key of the group
public void removeGroup(long pk,
Group group)
removeGroup in interface UserPersistencepk - the primary key of the usergroup - the group
public void removeGroups(long pk,
long[] groupPKs)
removeGroups in interface UserPersistencepk - the primary key of the usergroupPKs - the primary keys of the groups
public void removeGroups(long pk,
List<Group> groups)
removeGroups in interface UserPersistencepk - the primary key of the usergroups - the groups
public void setGroups(long pk,
long[] groupPKs)
setGroups in interface UserPersistencepk - the primary key of the usergroupPKs - the primary keys of the groups to be associated with the user
public void setGroups(long pk,
List<Group> groups)
setGroups in interface UserPersistencepk - the primary key of the usergroups - the groups to be associated with the userpublic long[] getOrganizationPrimaryKeys(long pk)
getOrganizationPrimaryKeys in interface UserPersistencepk - the primary key of the user
public List<Organization> getOrganizations(long pk)
getOrganizations in interface UserPersistencepk - the primary key of the user
public List<Organization> getOrganizations(long pk,
int start,
int end)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from UserModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
getOrganizations in interface UserPersistencepk - the primary key of the userstart - the lower bound of the range of usersend - the upper bound of the range of users (not inclusive)
public List<Organization> getOrganizations(long pk,
int start,
int end,
OrderByComparator<Organization> orderByComparator)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from UserModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
getOrganizations in interface UserPersistencepk - the primary key of the userstart - the lower bound of the range of usersend - the upper bound of the range of users (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
public int getOrganizationsSize(long pk)
getOrganizationsSize in interface UserPersistencepk - the primary key of the user
public boolean containsOrganization(long pk,
long organizationPK)
true if the organization is associated with the user.
containsOrganization in interface UserPersistencepk - the primary key of the userorganizationPK - the primary key of the organization
true if the organization is associated with the user; false otherwisepublic boolean containsOrganizations(long pk)
true if the user has any organizations associated with it.
containsOrganizations in interface UserPersistencepk - the primary key of the user to check for associations with organizations
true if the user has any organizations associated with it; false otherwise
public void addOrganization(long pk,
long organizationPK)
addOrganization in interface UserPersistencepk - the primary key of the userorganizationPK - the primary key of the organization
public void addOrganization(long pk,
Organization organization)
addOrganization in interface UserPersistencepk - the primary key of the userorganization - the organization
public void addOrganizations(long pk,
long[] organizationPKs)
addOrganizations in interface UserPersistencepk - the primary key of the userorganizationPKs - the primary keys of the organizations
public void addOrganizations(long pk,
List<Organization> organizations)
addOrganizations in interface UserPersistencepk - the primary key of the userorganizations - the organizationspublic void clearOrganizations(long pk)
clearOrganizations in interface UserPersistencepk - the primary key of the user to clear the associated organizations from
public void removeOrganization(long pk,
long organizationPK)
removeOrganization in interface UserPersistencepk - the primary key of the userorganizationPK - the primary key of the organization
public void removeOrganization(long pk,
Organization organization)
removeOrganization in interface UserPersistencepk - the primary key of the userorganization - the organization
public void removeOrganizations(long pk,
long[] organizationPKs)
removeOrganizations in interface UserPersistencepk - the primary key of the userorganizationPKs - the primary keys of the organizations
public void removeOrganizations(long pk,
List<Organization> organizations)
removeOrganizations in interface UserPersistencepk - the primary key of the userorganizations - the organizations
public void setOrganizations(long pk,
long[] organizationPKs)
setOrganizations in interface UserPersistencepk - the primary key of the userorganizationPKs - the primary keys of the organizations to be associated with the user
public void setOrganizations(long pk,
List<Organization> organizations)
setOrganizations in interface UserPersistencepk - the primary key of the userorganizations - the organizations to be associated with the userpublic long[] getRolePrimaryKeys(long pk)
getRolePrimaryKeys in interface UserPersistencepk - the primary key of the user
public List<Role> getRoles(long pk)
getRoles in interface UserPersistencepk - the primary key of the user
public List<Role> getRoles(long pk,
int start,
int end)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from UserModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
getRoles in interface UserPersistencepk - the primary key of the userstart - the lower bound of the range of usersend - the upper bound of the range of users (not inclusive)
public List<Role> getRoles(long pk,
int start,
int end,
OrderByComparator<Role> orderByComparator)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from UserModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
getRoles in interface UserPersistencepk - the primary key of the userstart - the lower bound of the range of usersend - the upper bound of the range of users (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
public int getRolesSize(long pk)
getRolesSize in interface UserPersistencepk - the primary key of the user
public boolean containsRole(long pk,
long rolePK)
true if the role is associated with the user.
containsRole in interface UserPersistencepk - the primary key of the userrolePK - the primary key of the role
true if the role is associated with the user; false otherwisepublic boolean containsRoles(long pk)
true if the user has any roles associated with it.
containsRoles in interface UserPersistencepk - the primary key of the user to check for associations with roles
true if the user has any roles associated with it; false otherwise
public void addRole(long pk,
long rolePK)
addRole in interface UserPersistencepk - the primary key of the userrolePK - the primary key of the role
public void addRole(long pk,
Role role)
addRole in interface UserPersistencepk - the primary key of the userrole - the role
public void addRoles(long pk,
long[] rolePKs)
addRoles in interface UserPersistencepk - the primary key of the userrolePKs - the primary keys of the roles
public void addRoles(long pk,
List<Role> roles)
addRoles in interface UserPersistencepk - the primary key of the userroles - the rolespublic void clearRoles(long pk)
clearRoles in interface UserPersistencepk - the primary key of the user to clear the associated roles from
public void removeRole(long pk,
long rolePK)
removeRole in interface UserPersistencepk - the primary key of the userrolePK - the primary key of the role
public void removeRole(long pk,
Role role)
removeRole in interface UserPersistencepk - the primary key of the userrole - the role
public void removeRoles(long pk,
long[] rolePKs)
removeRoles in interface UserPersistencepk - the primary key of the userrolePKs - the primary keys of the roles
public void removeRoles(long pk,
List<Role> roles)
removeRoles in interface UserPersistencepk - the primary key of the userroles - the roles
public void setRoles(long pk,
long[] rolePKs)
setRoles in interface UserPersistencepk - the primary key of the userrolePKs - the primary keys of the roles to be associated with the user
public void setRoles(long pk,
List<Role> roles)
setRoles in interface UserPersistencepk - the primary key of the userroles - the roles to be associated with the userpublic long[] getTeamPrimaryKeys(long pk)
getTeamPrimaryKeys in interface UserPersistencepk - the primary key of the user
public List<Team> getTeams(long pk)
getTeams in interface UserPersistencepk - the primary key of the user
public List<Team> getTeams(long pk,
int start,
int end)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from UserModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
getTeams in interface UserPersistencepk - the primary key of the userstart - the lower bound of the range of usersend - the upper bound of the range of users (not inclusive)
public List<Team> getTeams(long pk,
int start,
int end,
OrderByComparator<Team> orderByComparator)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from UserModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
getTeams in interface UserPersistencepk - the primary key of the userstart - the lower bound of the range of usersend - the upper bound of the range of users (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
public int getTeamsSize(long pk)
getTeamsSize in interface UserPersistencepk - the primary key of the user
public boolean containsTeam(long pk,
long teamPK)
true if the team is associated with the user.
containsTeam in interface UserPersistencepk - the primary key of the userteamPK - the primary key of the team
true if the team is associated with the user; false otherwisepublic boolean containsTeams(long pk)
true if the user has any teams associated with it.
containsTeams in interface UserPersistencepk - the primary key of the user to check for associations with teams
true if the user has any teams associated with it; false otherwise
public void addTeam(long pk,
long teamPK)
addTeam in interface UserPersistencepk - the primary key of the userteamPK - the primary key of the team
public void addTeam(long pk,
Team team)
addTeam in interface UserPersistencepk - the primary key of the userteam - the team
public void addTeams(long pk,
long[] teamPKs)
addTeams in interface UserPersistencepk - the primary key of the userteamPKs - the primary keys of the teams
public void addTeams(long pk,
List<Team> teams)
addTeams in interface UserPersistencepk - the primary key of the userteams - the teamspublic void clearTeams(long pk)
clearTeams in interface UserPersistencepk - the primary key of the user to clear the associated teams from
public void removeTeam(long pk,
long teamPK)
removeTeam in interface UserPersistencepk - the primary key of the userteamPK - the primary key of the team
public void removeTeam(long pk,
Team team)
removeTeam in interface UserPersistencepk - the primary key of the userteam - the team
public void removeTeams(long pk,
long[] teamPKs)
removeTeams in interface UserPersistencepk - the primary key of the userteamPKs - the primary keys of the teams
public void removeTeams(long pk,
List<Team> teams)
removeTeams in interface UserPersistencepk - the primary key of the userteams - the teams
public void setTeams(long pk,
long[] teamPKs)
setTeams in interface UserPersistencepk - the primary key of the userteamPKs - the primary keys of the teams to be associated with the user
public void setTeams(long pk,
List<Team> teams)
setTeams in interface UserPersistencepk - the primary key of the userteams - the teams to be associated with the userpublic long[] getUserGroupPrimaryKeys(long pk)
getUserGroupPrimaryKeys in interface UserPersistencepk - the primary key of the user
public List<UserGroup> getUserGroups(long pk)
getUserGroups in interface UserPersistencepk - the primary key of the user
public List<UserGroup> getUserGroups(long pk,
int start,
int end)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from UserModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
getUserGroups in interface UserPersistencepk - the primary key of the userstart - the lower bound of the range of usersend - the upper bound of the range of users (not inclusive)
public List<UserGroup> getUserGroups(long pk,
int start,
int end,
OrderByComparator<UserGroup> orderByComparator)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from UserModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
getUserGroups in interface UserPersistencepk - the primary key of the userstart - the lower bound of the range of usersend - the upper bound of the range of users (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
public int getUserGroupsSize(long pk)
getUserGroupsSize in interface UserPersistencepk - the primary key of the user
public boolean containsUserGroup(long pk,
long userGroupPK)
true if the user group is associated with the user.
containsUserGroup in interface UserPersistencepk - the primary key of the useruserGroupPK - the primary key of the user group
true if the user group is associated with the user; false otherwisepublic boolean containsUserGroups(long pk)
true if the user has any user groups associated with it.
containsUserGroups in interface UserPersistencepk - the primary key of the user to check for associations with user groups
true if the user has any user groups associated with it; false otherwise
public void addUserGroup(long pk,
long userGroupPK)
addUserGroup in interface UserPersistencepk - the primary key of the useruserGroupPK - the primary key of the user group
public void addUserGroup(long pk,
UserGroup userGroup)
addUserGroup in interface UserPersistencepk - the primary key of the useruserGroup - the user group
public void addUserGroups(long pk,
long[] userGroupPKs)
addUserGroups in interface UserPersistencepk - the primary key of the useruserGroupPKs - the primary keys of the user groups
public void addUserGroups(long pk,
List<UserGroup> userGroups)
addUserGroups in interface UserPersistencepk - the primary key of the useruserGroups - the user groupspublic void clearUserGroups(long pk)
clearUserGroups in interface UserPersistencepk - the primary key of the user to clear the associated user groups from
public void removeUserGroup(long pk,
long userGroupPK)
removeUserGroup in interface UserPersistencepk - the primary key of the useruserGroupPK - the primary key of the user group
public void removeUserGroup(long pk,
UserGroup userGroup)
removeUserGroup in interface UserPersistencepk - the primary key of the useruserGroup - the user group
public void removeUserGroups(long pk,
long[] userGroupPKs)
removeUserGroups in interface UserPersistencepk - the primary key of the useruserGroupPKs - the primary keys of the user groups
public void removeUserGroups(long pk,
List<UserGroup> userGroups)
removeUserGroups in interface UserPersistencepk - the primary key of the useruserGroups - the user groups
public void setUserGroups(long pk,
long[] userGroupPKs)
setUserGroups in interface UserPersistencepk - the primary key of the useruserGroupPKs - the primary keys of the user groups to be associated with the user
public void setUserGroups(long pk,
List<UserGroup> userGroups)
setUserGroups in interface UserPersistencepk - the primary key of the useruserGroups - the user groups to be associated with the userpublic Set<String> getBadColumnNames()
getBadColumnNames in interface BasePersistence<User>getBadColumnNames in interface UserPersistencegetBadColumnNames in class BasePersistenceImpl<User>protected Map<String,Integer> getTableColumnsMap()
getTableColumnsMap in class BasePersistenceImpl<User>public void afterPropertiesSet()
public void destroy()
|
Liferay 7.0-ce-b4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||