Liferay 7.0-ce-b4

com.liferay.portal.service.persistence.impl
Class UserPersistenceImpl

java.lang.Object
  extended by com.liferay.portal.service.persistence.impl.BasePersistenceImpl<User>
      extended by com.liferay.portal.service.persistence.impl.UserPersistenceImpl
All Implemented Interfaces:
SessionFactory, BasePersistence<User>, UserPersistence

@ProviderType
public class UserPersistenceImpl
extends BasePersistenceImpl<User>
implements UserPersistence

The persistence implementation for the user service.

Caching information and settings can be found in portal.properties

See Also:
UserPersistence, UserUtil
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Field Summary
protected  CompanyProvider companyProvider
           
protected  EntityCache entityCache
           
static String FINDER_CLASS_NAME_ENTITY
           
static String FINDER_CLASS_NAME_LIST_WITH_PAGINATION
           
static String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
           
static FinderPath FINDER_PATH_COUNT_ALL
           
static FinderPath FINDER_PATH_COUNT_BY_C_CD
           
static FinderPath FINDER_PATH_COUNT_BY_C_CD_MD
           
static FinderPath FINDER_PATH_COUNT_BY_C_DU
           
static FinderPath FINDER_PATH_COUNT_BY_C_DU_S
           
static FinderPath FINDER_PATH_COUNT_BY_C_EA
           
static FinderPath FINDER_PATH_COUNT_BY_C_FID
           
static FinderPath FINDER_PATH_COUNT_BY_C_MD
           
static FinderPath FINDER_PATH_COUNT_BY_C_O
           
static FinderPath FINDER_PATH_COUNT_BY_C_S
           
static FinderPath FINDER_PATH_COUNT_BY_C_SN
           
static FinderPath FINDER_PATH_COUNT_BY_C_U
           
static FinderPath FINDER_PATH_COUNT_BY_COMPANYID
           
static FinderPath FINDER_PATH_COUNT_BY_CONTACTID
           
static FinderPath FINDER_PATH_COUNT_BY_EMAILADDRESS
           
static FinderPath FINDER_PATH_COUNT_BY_PORTRAITID
           
static FinderPath FINDER_PATH_COUNT_BY_UUID
           
static FinderPath FINDER_PATH_COUNT_BY_UUID_C
           
static FinderPath FINDER_PATH_FETCH_BY_C_DU
           
static FinderPath FINDER_PATH_FETCH_BY_C_EA
           
static FinderPath FINDER_PATH_FETCH_BY_C_FID
           
static FinderPath FINDER_PATH_FETCH_BY_C_O
           
static FinderPath FINDER_PATH_FETCH_BY_C_SN
           
static FinderPath FINDER_PATH_FETCH_BY_C_U
           
static FinderPath FINDER_PATH_FETCH_BY_CONTACTID
           
static FinderPath FINDER_PATH_FETCH_BY_PORTRAITID
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_C_CD
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_C_CD_MD
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_C_DU_S
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_C_MD
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_C_S
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_COMPANYID
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_EMAILADDRESS
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID_C
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_CD
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_CD_MD
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_DU_S
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_MD
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_S
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_COMPANYID
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_EMAILADDRESS
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID_C
           
protected  FinderCache finderCache
           
protected  GroupPersistence groupPersistence
           
protected  OrganizationPersistence organizationPersistence
           
protected  RolePersistence rolePersistence
           
protected  TeamPersistence teamPersistence
           
protected  UserGroupPersistence userGroupPersistence
           
protected  TableMapper<User,Group> userToGroupTableMapper
           
protected  TableMapper<User,Organization> userToOrganizationTableMapper
           
protected  TableMapper<User,Role> userToRoleTableMapper
           
protected  TableMapper<User,Team> userToTeamTableMapper
           
protected  TableMapper<User,UserGroup> userToUserGroupTableMapper
           
 
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

FINDER_CLASS_NAME_ENTITY

public static final String FINDER_CLASS_NAME_ENTITY

FINDER_CLASS_NAME_LIST_WITH_PAGINATION

public static final String FINDER_CLASS_NAME_LIST_WITH_PAGINATION

FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION

public static final String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION

FINDER_PATH_WITH_PAGINATION_FIND_ALL

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL

FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL

FINDER_PATH_COUNT_ALL

public static final FinderPath FINDER_PATH_COUNT_ALL

FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID

FINDER_PATH_COUNT_BY_UUID

public static final FinderPath FINDER_PATH_COUNT_BY_UUID

FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID_C

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_UUID_C

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID_C

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_UUID_C

FINDER_PATH_COUNT_BY_UUID_C

public static final FinderPath FINDER_PATH_COUNT_BY_UUID_C

FINDER_PATH_WITH_PAGINATION_FIND_BY_COMPANYID

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_COMPANYID

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_COMPANYID

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_COMPANYID

FINDER_PATH_COUNT_BY_COMPANYID

public static final FinderPath FINDER_PATH_COUNT_BY_COMPANYID

FINDER_PATH_FETCH_BY_CONTACTID

public static final FinderPath FINDER_PATH_FETCH_BY_CONTACTID

FINDER_PATH_COUNT_BY_CONTACTID

public static final FinderPath FINDER_PATH_COUNT_BY_CONTACTID

FINDER_PATH_WITH_PAGINATION_FIND_BY_EMAILADDRESS

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_EMAILADDRESS

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_EMAILADDRESS

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_EMAILADDRESS

FINDER_PATH_COUNT_BY_EMAILADDRESS

public static final FinderPath FINDER_PATH_COUNT_BY_EMAILADDRESS

FINDER_PATH_FETCH_BY_PORTRAITID

public static final FinderPath FINDER_PATH_FETCH_BY_PORTRAITID

FINDER_PATH_COUNT_BY_PORTRAITID

public static final FinderPath FINDER_PATH_COUNT_BY_PORTRAITID

FINDER_PATH_FETCH_BY_C_U

public static final FinderPath FINDER_PATH_FETCH_BY_C_U

FINDER_PATH_COUNT_BY_C_U

public static final FinderPath FINDER_PATH_COUNT_BY_C_U

FINDER_PATH_WITH_PAGINATION_FIND_BY_C_CD

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_C_CD

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_CD

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_CD

FINDER_PATH_COUNT_BY_C_CD

public static final FinderPath FINDER_PATH_COUNT_BY_C_CD

FINDER_PATH_WITH_PAGINATION_FIND_BY_C_MD

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_C_MD

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_MD

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_MD

FINDER_PATH_COUNT_BY_C_MD

public static final FinderPath FINDER_PATH_COUNT_BY_C_MD

FINDER_PATH_FETCH_BY_C_DU

public static final FinderPath FINDER_PATH_FETCH_BY_C_DU

FINDER_PATH_COUNT_BY_C_DU

public static final FinderPath FINDER_PATH_COUNT_BY_C_DU

FINDER_PATH_FETCH_BY_C_SN

public static final FinderPath FINDER_PATH_FETCH_BY_C_SN

FINDER_PATH_COUNT_BY_C_SN

public static final FinderPath FINDER_PATH_COUNT_BY_C_SN

FINDER_PATH_FETCH_BY_C_EA

public static final FinderPath FINDER_PATH_FETCH_BY_C_EA

FINDER_PATH_COUNT_BY_C_EA

public static final FinderPath FINDER_PATH_COUNT_BY_C_EA

FINDER_PATH_FETCH_BY_C_FID

public static final FinderPath FINDER_PATH_FETCH_BY_C_FID

FINDER_PATH_COUNT_BY_C_FID

public static final FinderPath FINDER_PATH_COUNT_BY_C_FID

FINDER_PATH_FETCH_BY_C_O

public static final FinderPath FINDER_PATH_FETCH_BY_C_O

FINDER_PATH_COUNT_BY_C_O

public static final FinderPath FINDER_PATH_COUNT_BY_C_O

FINDER_PATH_WITH_PAGINATION_FIND_BY_C_S

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_C_S

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_S

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_S

FINDER_PATH_COUNT_BY_C_S

public static final FinderPath FINDER_PATH_COUNT_BY_C_S

FINDER_PATH_WITH_PAGINATION_FIND_BY_C_CD_MD

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_C_CD_MD

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_CD_MD

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_CD_MD

FINDER_PATH_COUNT_BY_C_CD_MD

public static final FinderPath FINDER_PATH_COUNT_BY_C_CD_MD

FINDER_PATH_WITH_PAGINATION_FIND_BY_C_DU_S

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_C_DU_S

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_DU_S

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_DU_S

FINDER_PATH_COUNT_BY_C_DU_S

public static final FinderPath FINDER_PATH_COUNT_BY_C_DU_S

companyProvider

@BeanReference(type=CompanyProviderWrapper.class)
protected CompanyProvider companyProvider

entityCache

protected EntityCache entityCache

finderCache

protected FinderCache finderCache

groupPersistence

@BeanReference(type=GroupPersistence.class)
protected GroupPersistence groupPersistence

userToGroupTableMapper

protected TableMapper<User,Group> userToGroupTableMapper

organizationPersistence

@BeanReference(type=OrganizationPersistence.class)
protected OrganizationPersistence organizationPersistence

userToOrganizationTableMapper

protected TableMapper<User,Organization> userToOrganizationTableMapper

rolePersistence

@BeanReference(type=RolePersistence.class)
protected RolePersistence rolePersistence

userToRoleTableMapper

protected TableMapper<User,Role> userToRoleTableMapper

teamPersistence

@BeanReference(type=TeamPersistence.class)
protected TeamPersistence teamPersistence

userToTeamTableMapper

protected TableMapper<User,Team> userToTeamTableMapper

userGroupPersistence

@BeanReference(type=UserGroupPersistence.class)
protected UserGroupPersistence userGroupPersistence

userToUserGroupTableMapper

protected TableMapper<User,UserGroup> userToUserGroupTableMapper
Constructor Detail

UserPersistenceImpl

public UserPersistenceImpl()
Method Detail

findByUuid

public List<User> findByUuid(String uuid)
Returns all the users where uuid = ?.

Specified by:
findByUuid in interface UserPersistence
Parameters:
uuid - the uuid
Returns:
the matching users

findByUuid

public List<User> findByUuid(String uuid,
                             int start,
                             int end)
Returns a range of all the users where uuid = ?.

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.

Specified by:
findByUuid in interface UserPersistence
Parameters:
uuid - the uuid
start - the lower bound of the range of users
end - the upper bound of the range of users (not inclusive)
Returns:
the range of matching users

findByUuid

public List<User> findByUuid(String uuid,
                             int start,
                             int end,
                             OrderByComparator<User> orderByComparator)
Returns an ordered range of all the users where uuid = ?.

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.

Specified by:
findByUuid in interface UserPersistence
Parameters:
uuid - the uuid
start - the lower bound of the range of users
end - the upper bound of the range of users (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching users

findByUuid

public List<User> findByUuid(String uuid,
                             int start,
                             int end,
                             OrderByComparator<User> orderByComparator,
                             boolean retrieveFromCache)
Returns an ordered range of all the users where uuid = ?.

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.

Specified by:
findByUuid in interface UserPersistence
Parameters:
uuid - the uuid
start - the lower bound of the range of users
end - 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
Returns:
the ordered range of matching users

findByUuid_First

public User findByUuid_First(String uuid,
                             OrderByComparator<User> orderByComparator)
                      throws NoSuchUserException
Returns the first user in the ordered set where uuid = ?.

Specified by:
findByUuid_First in interface UserPersistence
Parameters:
uuid - the uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching user
Throws:
NoSuchUserException - if a matching user could not be found

fetchByUuid_First

public User fetchByUuid_First(String uuid,
                              OrderByComparator<User> orderByComparator)
Returns the first user in the ordered set where uuid = ?.

Specified by:
fetchByUuid_First in interface UserPersistence
Parameters:
uuid - the uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching user, or null if a matching user could not be found

findByUuid_Last

public User findByUuid_Last(String uuid,
                            OrderByComparator<User> orderByComparator)
                     throws NoSuchUserException
Returns the last user in the ordered set where uuid = ?.

Specified by:
findByUuid_Last in interface UserPersistence
Parameters:
uuid - the uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching user
Throws:
NoSuchUserException - if a matching user could not be found

fetchByUuid_Last

public User fetchByUuid_Last(String uuid,
                             OrderByComparator<User> orderByComparator)
Returns the last user in the ordered set where uuid = ?.

Specified by:
fetchByUuid_Last in interface UserPersistence
Parameters:
uuid - the uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching user, or null if a matching user could not be found

findByUuid_PrevAndNext

public User[] findByUuid_PrevAndNext(long userId,
                                     String uuid,
                                     OrderByComparator<User> orderByComparator)
                              throws NoSuchUserException
Returns the users before and after the current user in the ordered set where uuid = ?.

Specified by:
findByUuid_PrevAndNext in interface UserPersistence
Parameters:
userId - the primary key of the current user
uuid - the uuid
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next user
Throws:
NoSuchUserException - if a user with the primary key could not be found

getByUuid_PrevAndNext

protected User getByUuid_PrevAndNext(Session session,
                                     User user,
                                     String uuid,
                                     OrderByComparator<User> orderByComparator,
                                     boolean previous)

removeByUuid

public void removeByUuid(String uuid)
Removes all the users where uuid = ? from the database.

Specified by:
removeByUuid in interface UserPersistence
Parameters:
uuid - the uuid

countByUuid

public int countByUuid(String uuid)
Returns the number of users where uuid = ?.

Specified by:
countByUuid in interface UserPersistence
Parameters:
uuid - the uuid
Returns:
the number of matching users

findByUuid_C

public List<User> findByUuid_C(String uuid,
                               long companyId)
Returns all the users where uuid = ? and companyId = ?.

Specified by:
findByUuid_C in interface UserPersistence
Parameters:
uuid - the uuid
companyId - the company ID
Returns:
the matching users

findByUuid_C

public List<User> findByUuid_C(String uuid,
                               long companyId,
                               int start,
                               int end)
Returns a range of all the users where uuid = ? and companyId = ?.

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.

Specified by:
findByUuid_C in interface UserPersistence
Parameters:
uuid - the uuid
companyId - the company ID
start - the lower bound of the range of users
end - the upper bound of the range of users (not inclusive)
Returns:
the range of matching users

findByUuid_C

public List<User> findByUuid_C(String uuid,
                               long companyId,
                               int start,
                               int end,
                               OrderByComparator<User> orderByComparator)
Returns an ordered range of all the users where uuid = ? and companyId = ?.

Useful when paginating results. Returns a maximum of end - 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.

Specified by:
findByUuid_C in interface UserPersistence
Parameters:
uuid - the uuid
companyId - the company ID
start - the lower bound of the range of users
end - the upper bound of the range of users (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching users

findByUuid_C

public 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 = ?.

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.

Specified by:
findByUuid_C in interface UserPersistence
Parameters:
uuid - the uuid
companyId - the company ID
start - the lower bound of the range of users
end - 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
Returns:
the ordered range of matching users

findByUuid_C_First

public User findByUuid_C_First(String uuid,
                               long companyId,
                               OrderByComparator<User> orderByComparator)
                        throws NoSuchUserException
Returns the first user in the ordered set where uuid = ? and companyId = ?.

Specified by:
findByUuid_C_First in interface UserPersistence
Parameters:
uuid - the uuid
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching user
Throws:
NoSuchUserException - if a matching user could not be found

fetchByUuid_C_First

public User fetchByUuid_C_First(String uuid,
                                long companyId,
                                OrderByComparator<User> orderByComparator)
Returns the first user in the ordered set where uuid = ? and companyId = ?.

Specified by:
fetchByUuid_C_First in interface UserPersistence
Parameters:
uuid - the uuid
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching user, or null if a matching user could not be found

findByUuid_C_Last

public User findByUuid_C_Last(String uuid,
                              long companyId,
                              OrderByComparator<User> orderByComparator)
                       throws NoSuchUserException
Returns the last user in the ordered set where uuid = ? and companyId = ?.

Specified by:
findByUuid_C_Last in interface UserPersistence
Parameters:
uuid - the uuid
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching user
Throws:
NoSuchUserException - if a matching user could not be found

fetchByUuid_C_Last

public User fetchByUuid_C_Last(String uuid,
                               long companyId,
                               OrderByComparator<User> orderByComparator)
Returns the last user in the ordered set where uuid = ? and companyId = ?.

Specified by:
fetchByUuid_C_Last in interface UserPersistence
Parameters:
uuid - the uuid
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching user, or null if a matching user could not be found

findByUuid_C_PrevAndNext

public User[] findByUuid_C_PrevAndNext(long userId,
                                       String uuid,
                                       long companyId,
                                       OrderByComparator<User> orderByComparator)
                                throws NoSuchUserException
Returns the users before and after the current user in the ordered set where uuid = ? and companyId = ?.

Specified by:
findByUuid_C_PrevAndNext in interface UserPersistence
Parameters:
userId - the primary key of the current user
uuid - the uuid
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next user
Throws:
NoSuchUserException - if a user with the primary key could not be found

getByUuid_C_PrevAndNext

protected User getByUuid_C_PrevAndNext(Session session,
                                       User user,
                                       String uuid,
                                       long companyId,
                                       OrderByComparator<User> orderByComparator,
                                       boolean previous)

removeByUuid_C

public void removeByUuid_C(String uuid,
                           long companyId)
Removes all the users where uuid = ? and companyId = ? from the database.

Specified by:
removeByUuid_C in interface UserPersistence
Parameters:
uuid - the uuid
companyId - the company ID

countByUuid_C

public int countByUuid_C(String uuid,
                         long companyId)
Returns the number of users where uuid = ? and companyId = ?.

Specified by:
countByUuid_C in interface UserPersistence
Parameters:
uuid - the uuid
companyId - the company ID
Returns:
the number of matching users

findByCompanyId

public List<User> findByCompanyId(long companyId)
Returns all the users where companyId = ?.

Specified by:
findByCompanyId in interface UserPersistence
Parameters:
companyId - the company ID
Returns:
the matching users

findByCompanyId

public List<User> findByCompanyId(long companyId,
                                  int start,
                                  int end)
Returns a range of all the users where companyId = ?.

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.

Specified by:
findByCompanyId in interface UserPersistence
Parameters:
companyId - the company ID
start - the lower bound of the range of users
end - the upper bound of the range of users (not inclusive)
Returns:
the range of matching users

findByCompanyId

public List<User> findByCompanyId(long companyId,
                                  int start,
                                  int end,
                                  OrderByComparator<User> orderByComparator)
Returns an ordered range of all the users where companyId = ?.

Useful when paginating results. Returns a maximum of end - 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.

Specified by:
findByCompanyId in interface UserPersistence
Parameters:
companyId - the company ID
start - the lower bound of the range of users
end - the upper bound of the range of users (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching users

findByCompanyId

public List<User> findByCompanyId(long companyId,
                                  int start,
                                  int end,
                                  OrderByComparator<User> orderByComparator,
                                  boolean retrieveFromCache)
Returns an ordered range of all the users where companyId = ?.

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.

Specified by:
findByCompanyId in interface UserPersistence
Parameters:
companyId - the company ID
start - the lower bound of the range of users
end - 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
Returns:
the ordered range of matching users

findByCompanyId_First

public User findByCompanyId_First(long companyId,
                                  OrderByComparator<User> orderByComparator)
                           throws NoSuchUserException
Returns the first user in the ordered set where companyId = ?.

Specified by:
findByCompanyId_First in interface UserPersistence
Parameters:
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching user
Throws:
NoSuchUserException - if a matching user could not be found

fetchByCompanyId_First

public User fetchByCompanyId_First(long companyId,
                                   OrderByComparator<User> orderByComparator)
Returns the first user in the ordered set where companyId = ?.

Specified by:
fetchByCompanyId_First in interface UserPersistence
Parameters:
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching user, or null if a matching user could not be found

findByCompanyId_Last

public User findByCompanyId_Last(long companyId,
                                 OrderByComparator<User> orderByComparator)
                          throws NoSuchUserException
Returns the last user in the ordered set where companyId = ?.

Specified by:
findByCompanyId_Last in interface UserPersistence
Parameters:
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching user
Throws:
NoSuchUserException - if a matching user could not be found

fetchByCompanyId_Last

public User fetchByCompanyId_Last(long companyId,
                                  OrderByComparator<User> orderByComparator)
Returns the last user in the ordered set where companyId = ?.

Specified by:
fetchByCompanyId_Last in interface UserPersistence
Parameters:
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching user, or null if a matching user could not be found

findByCompanyId_PrevAndNext

public User[] findByCompanyId_PrevAndNext(long userId,
                                          long companyId,
                                          OrderByComparator<User> orderByComparator)
                                   throws NoSuchUserException
Returns the users before and after the current user in the ordered set where companyId = ?.

Specified by:
findByCompanyId_PrevAndNext in interface UserPersistence
Parameters:
userId - the primary key of the current user
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next user
Throws:
NoSuchUserException - if a user with the primary key could not be found

getByCompanyId_PrevAndNext

protected User getByCompanyId_PrevAndNext(Session session,
                                          User user,
                                          long companyId,
                                          OrderByComparator<User> orderByComparator,
                                          boolean previous)

removeByCompanyId

public void removeByCompanyId(long companyId)
Removes all the users where companyId = ? from the database.

Specified by:
removeByCompanyId in interface UserPersistence
Parameters:
companyId - the company ID

countByCompanyId

public int countByCompanyId(long companyId)
Returns the number of users where companyId = ?.

Specified by:
countByCompanyId in interface UserPersistence
Parameters:
companyId - the company ID
Returns:
the number of matching users

findByContactId

public User findByContactId(long contactId)
                     throws NoSuchUserException
Returns the user where contactId = ? or throws a NoSuchUserException if it could not be found.

Specified by:
findByContactId in interface UserPersistence
Parameters:
contactId - the contact ID
Returns:
the matching user
Throws:
NoSuchUserException - if a matching user could not be found

fetchByContactId

public User fetchByContactId(long contactId)
Returns the user where contactId = ? or returns null if it could not be found. Uses the finder cache.

Specified by:
fetchByContactId in interface UserPersistence
Parameters:
contactId - the contact ID
Returns:
the matching user, or null if a matching user could not be found

fetchByContactId

public 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.

Specified by:
fetchByContactId in interface UserPersistence
Parameters:
contactId - the contact ID
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the matching user, or null if a matching user could not be found

removeByContactId

public User removeByContactId(long contactId)
                       throws NoSuchUserException
Removes the user where contactId = ? from the database.

Specified by:
removeByContactId in interface UserPersistence
Parameters:
contactId - the contact ID
Returns:
the user that was removed
Throws:
NoSuchUserException

countByContactId

public int countByContactId(long contactId)
Returns the number of users where contactId = ?.

Specified by:
countByContactId in interface UserPersistence
Parameters:
contactId - the contact ID
Returns:
the number of matching users

findByEmailAddress

public List<User> findByEmailAddress(String emailAddress)
Returns all the users where emailAddress = ?.

Specified by:
findByEmailAddress in interface UserPersistence
Parameters:
emailAddress - the email address
Returns:
the matching users

findByEmailAddress

public List<User> findByEmailAddress(String emailAddress,
                                     int start,
                                     int end)
Returns a range of all the users where emailAddress = ?.

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.

Specified by:
findByEmailAddress in interface UserPersistence
Parameters:
emailAddress - the email address
start - the lower bound of the range of users
end - the upper bound of the range of users (not inclusive)
Returns:
the range of matching users

findByEmailAddress

public List<User> findByEmailAddress(String emailAddress,
                                     int start,
                                     int end,
                                     OrderByComparator<User> orderByComparator)
Returns an ordered range of all the users where emailAddress = ?.

Useful when paginating results. Returns a maximum of end - 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.

Specified by:
findByEmailAddress in interface UserPersistence
Parameters:
emailAddress - the email address
start - the lower bound of the range of users
end - the upper bound of the range of users (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching users

findByEmailAddress

public List<User> findByEmailAddress(String emailAddress,
                                     int start,
                                     int end,
                                     OrderByComparator<User> orderByComparator,
                                     boolean retrieveFromCache)
Returns an ordered range of all the users where emailAddress = ?.

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.

Specified by:
findByEmailAddress in interface UserPersistence
Parameters:
emailAddress - the email address
start - the lower bound of the range of users
end - 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
Returns:
the ordered range of matching users

findByEmailAddress_First

public User findByEmailAddress_First(String emailAddress,
                                     OrderByComparator<User> orderByComparator)
                              throws NoSuchUserException
Returns the first user in the ordered set where emailAddress = ?.

Specified by:
findByEmailAddress_First in interface UserPersistence
Parameters:
emailAddress - the email address
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching user
Throws:
NoSuchUserException - if a matching user could not be found

fetchByEmailAddress_First

public User fetchByEmailAddress_First(String emailAddress,
                                      OrderByComparator<User> orderByComparator)
Returns the first user in the ordered set where emailAddress = ?.

Specified by:
fetchByEmailAddress_First in interface UserPersistence
Parameters:
emailAddress - the email address
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching user, or null if a matching user could not be found

findByEmailAddress_Last

public User findByEmailAddress_Last(String emailAddress,
                                    OrderByComparator<User> orderByComparator)
                             throws NoSuchUserException
Returns the last user in the ordered set where emailAddress = ?.

Specified by:
findByEmailAddress_Last in interface UserPersistence
Parameters:
emailAddress - the email address
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching user
Throws:
NoSuchUserException - if a matching user could not be found

fetchByEmailAddress_Last

public User fetchByEmailAddress_Last(String emailAddress,
                                     OrderByComparator<User> orderByComparator)
Returns the last user in the ordered set where emailAddress = ?.

Specified by:
fetchByEmailAddress_Last in interface UserPersistence
Parameters:
emailAddress - the email address
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching user, or null if a matching user could not be found

findByEmailAddress_PrevAndNext

public User[] findByEmailAddress_PrevAndNext(long userId,
                                             String emailAddress,
                                             OrderByComparator<User> orderByComparator)
                                      throws NoSuchUserException
Returns the users before and after the current user in the ordered set where emailAddress = ?.

Specified by:
findByEmailAddress_PrevAndNext in interface UserPersistence
Parameters:
userId - the primary key of the current user
emailAddress - the email address
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next user
Throws:
NoSuchUserException - if a user with the primary key could not be found

getByEmailAddress_PrevAndNext

protected User getByEmailAddress_PrevAndNext(Session session,
                                             User user,
                                             String emailAddress,
                                             OrderByComparator<User> orderByComparator,
                                             boolean previous)

removeByEmailAddress

public void removeByEmailAddress(String emailAddress)
Removes all the users where emailAddress = ? from the database.

Specified by:
removeByEmailAddress in interface UserPersistence
Parameters:
emailAddress - the email address

countByEmailAddress

public int countByEmailAddress(String emailAddress)
Returns the number of users where emailAddress = ?.

Specified by:
countByEmailAddress in interface UserPersistence
Parameters:
emailAddress - the email address
Returns:
the number of matching users

findByPortraitId

public User findByPortraitId(long portraitId)
                      throws NoSuchUserException
Returns the user where portraitId = ? or throws a NoSuchUserException if it could not be found.

Specified by:
findByPortraitId in interface UserPersistence
Parameters:
portraitId - the portrait ID
Returns:
the matching user
Throws:
NoSuchUserException - if a matching user could not be found

fetchByPortraitId

public User fetchByPortraitId(long portraitId)
Returns the user where portraitId = ? or returns null if it could not be found. Uses the finder cache.

Specified by:
fetchByPortraitId in interface UserPersistence
Parameters:
portraitId - the portrait ID
Returns:
the matching user, or null if a matching user could not be found

fetchByPortraitId

public 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.

Specified by:
fetchByPortraitId in interface UserPersistence
Parameters:
portraitId - the portrait ID
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the matching user, or null if a matching user could not be found

removeByPortraitId

public User removeByPortraitId(long portraitId)
                        throws NoSuchUserException
Removes the user where portraitId = ? from the database.

Specified by:
removeByPortraitId in interface UserPersistence
Parameters:
portraitId - the portrait ID
Returns:
the user that was removed
Throws:
NoSuchUserException

countByPortraitId

public int countByPortraitId(long portraitId)
Returns the number of users where portraitId = ?.

Specified by:
countByPortraitId in interface UserPersistence
Parameters:
portraitId - the portrait ID
Returns:
the number of matching users

findByC_U

public User findByC_U(long companyId,
                      long userId)
               throws NoSuchUserException
Returns the user where companyId = ? and userId = ? or throws a NoSuchUserException if it could not be found.

Specified by:
findByC_U in interface UserPersistence
Parameters:
companyId - the company ID
userId - the user ID
Returns:
the matching user
Throws:
NoSuchUserException - if a matching user could not be found

fetchByC_U

public User fetchByC_U(long companyId,
                       long userId)
Returns the user where companyId = ? and userId = ? or returns null if it could not be found. Uses the finder cache.

Specified by:
fetchByC_U in interface UserPersistence
Parameters:
companyId - the company ID
userId - the user ID
Returns:
the matching user, or null if a matching user could not be found

fetchByC_U

public 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.

Specified by:
fetchByC_U in interface UserPersistence
Parameters:
companyId - the company ID
userId - the user ID
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the matching user, or null if a matching user could not be found

removeByC_U

public User removeByC_U(long companyId,
                        long userId)
                 throws NoSuchUserException
Removes the user where companyId = ? and userId = ? from the database.

Specified by:
removeByC_U in interface UserPersistence
Parameters:
companyId - the company ID
userId - the user ID
Returns:
the user that was removed
Throws:
NoSuchUserException

countByC_U

public int countByC_U(long companyId,
                      long userId)
Returns the number of users where companyId = ? and userId = ?.

Specified by:
countByC_U in interface UserPersistence
Parameters:
companyId - the company ID
userId - the user ID
Returns:
the number of matching users

findByC_CD

public List<User> findByC_CD(long companyId,
                             Date createDate)
Returns all the users where companyId = ? and createDate = ?.

Specified by:
findByC_CD in interface UserPersistence
Parameters:
companyId - the company ID
createDate - the create date
Returns:
the matching users

findByC_CD

public List<User> findByC_CD(long companyId,
                             Date createDate,
                             int start,
                             int end)
Returns a range of all the users where companyId = ? and createDate = ?.

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.

Specified by:
findByC_CD in interface UserPersistence
Parameters:
companyId - the company ID
createDate - the create date
start - the lower bound of the range of users
end - the upper bound of the range of users (not inclusive)
Returns:
the range of matching users

findByC_CD

public List<User> findByC_CD(long companyId,
                             Date createDate,
                             int start,
                             int end,
                             OrderByComparator<User> orderByComparator)
Returns an ordered range of all the users where companyId = ? and createDate = ?.

Useful when paginating results. Returns a maximum of end - 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.

Specified by:
findByC_CD in interface UserPersistence
Parameters:
companyId - the company ID
createDate - the create date
start - the lower bound of the range of users
end - the upper bound of the range of users (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching users

findByC_CD

public 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 = ?.

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.

Specified by:
findByC_CD in interface UserPersistence
Parameters:
companyId - the company ID
createDate - the create date
start - the lower bound of the range of users
end - 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
Returns:
the ordered range of matching users

findByC_CD_First

public User findByC_CD_First(long companyId,
                             Date createDate,
                             OrderByComparator<User> orderByComparator)
                      throws NoSuchUserException
Returns the first user in the ordered set where companyId = ? and createDate = ?.

Specified by:
findByC_CD_First in interface UserPersistence
Parameters:
companyId - the company ID
createDate - the create date
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching user
Throws:
NoSuchUserException - if a matching user could not be found

fetchByC_CD_First

public User fetchByC_CD_First(long companyId,
                              Date createDate,
                              OrderByComparator<User> orderByComparator)
Returns the first user in the ordered set where companyId = ? and createDate = ?.

Specified by:
fetchByC_CD_First in interface UserPersistence
Parameters:
companyId - the company ID
createDate - the create date
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching user, or null if a matching user could not be found

findByC_CD_Last

public User findByC_CD_Last(long companyId,
                            Date createDate,
                            OrderByComparator<User> orderByComparator)
                     throws NoSuchUserException
Returns the last user in the ordered set where companyId = ? and createDate = ?.

Specified by:
findByC_CD_Last in interface UserPersistence
Parameters:
companyId - the company ID
createDate - the create date
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching user
Throws:
NoSuchUserException - if a matching user could not be found

fetchByC_CD_Last

public User fetchByC_CD_Last(long companyId,
                             Date createDate,
                             OrderByComparator<User> orderByComparator)
Returns the last user in the ordered set where companyId = ? and createDate = ?.

Specified by:
fetchByC_CD_Last in interface UserPersistence
Parameters:
companyId - the company ID
createDate - the create date
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching user, or null if a matching user could not be found

findByC_CD_PrevAndNext

public User[] findByC_CD_PrevAndNext(long userId,
                                     long companyId,
                                     Date createDate,
                                     OrderByComparator<User> orderByComparator)
                              throws NoSuchUserException
Returns the users before and after the current user in the ordered set where companyId = ? and createDate = ?.

Specified by:
findByC_CD_PrevAndNext in interface UserPersistence
Parameters:
userId - the primary key of the current user
companyId - the company ID
createDate - the create date
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next user
Throws:
NoSuchUserException - if a user with the primary key could not be found

getByC_CD_PrevAndNext

protected User getByC_CD_PrevAndNext(Session session,
                                     User user,
                                     long companyId,
                                     Date createDate,
                                     OrderByComparator<User> orderByComparator,
                                     boolean previous)

removeByC_CD

public void removeByC_CD(long companyId,
                         Date createDate)
Removes all the users where companyId = ? and createDate = ? from the database.

Specified by:
removeByC_CD in interface UserPersistence
Parameters:
companyId - the company ID
createDate - the create date

countByC_CD

public int countByC_CD(long companyId,
                       Date createDate)
Returns the number of users where companyId = ? and createDate = ?.

Specified by:
countByC_CD in interface UserPersistence
Parameters:
companyId - the company ID
createDate - the create date
Returns:
the number of matching users

findByC_MD

public List<User> findByC_MD(long companyId,
                             Date modifiedDate)
Returns all the users where companyId = ? and modifiedDate = ?.

Specified by:
findByC_MD in interface UserPersistence
Parameters:
companyId - the company ID
modifiedDate - the modified date
Returns:
the matching users

findByC_MD

public List<User> findByC_MD(long companyId,
                             Date modifiedDate,
                             int start,
                             int end)
Returns a range of all the users where companyId = ? and modifiedDate = ?.

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.

Specified by:
findByC_MD in interface UserPersistence
Parameters:
companyId - the company ID
modifiedDate - the modified date
start - the lower bound of the range of users
end - the upper bound of the range of users (not inclusive)
Returns:
the range of matching users

findByC_MD

public List<User> findByC_MD(long companyId,
                             Date modifiedDate,
                             int start,
                             int end,
                             OrderByComparator<User> orderByComparator)
Returns an ordered range of all the users where companyId = ? and modifiedDate = ?.

Useful when paginating results. Returns a maximum of end - 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.

Specified by:
findByC_MD in interface UserPersistence
Parameters:
companyId - the company ID
modifiedDate - the modified date
start - the lower bound of the range of users
end - the upper bound of the range of users (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching users

findByC_MD

public 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 = ?.

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.

Specified by:
findByC_MD in interface UserPersistence
Parameters:
companyId - the company ID
modifiedDate - the modified date
start - the lower bound of the range of users
end - 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
Returns:
the ordered range of matching users

findByC_MD_First

public User findByC_MD_First(long companyId,
                             Date modifiedDate,
                             OrderByComparator<User> orderByComparator)
                      throws NoSuchUserException
Returns the first user in the ordered set where companyId = ? and modifiedDate = ?.

Specified by:
findByC_MD_First in interface UserPersistence
Parameters:
companyId - the company ID
modifiedDate - the modified date
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching user
Throws:
NoSuchUserException - if a matching user could not be found

fetchByC_MD_First

public User fetchByC_MD_First(long companyId,
                              Date modifiedDate,
                              OrderByComparator<User> orderByComparator)
Returns the first user in the ordered set where companyId = ? and modifiedDate = ?.

Specified by:
fetchByC_MD_First in interface UserPersistence
Parameters:
companyId - the company ID
modifiedDate - the modified date
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching user, or null if a matching user could not be found

findByC_MD_Last

public User findByC_MD_Last(long companyId,
                            Date modifiedDate,
                            OrderByComparator<User> orderByComparator)
                     throws NoSuchUserException
Returns the last user in the ordered set where companyId = ? and modifiedDate = ?.

Specified by:
findByC_MD_Last in interface UserPersistence
Parameters:
companyId - the company ID
modifiedDate - the modified date
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching user
Throws:
NoSuchUserException - if a matching user could not be found

fetchByC_MD_Last

public User fetchByC_MD_Last(long companyId,
                             Date modifiedDate,
                             OrderByComparator<User> orderByComparator)
Returns the last user in the ordered set where companyId = ? and modifiedDate = ?.

Specified by:
fetchByC_MD_Last in interface UserPersistence
Parameters:
companyId - the company ID
modifiedDate - the modified date
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching user, or null if a matching user could not be found

findByC_MD_PrevAndNext

public User[] findByC_MD_PrevAndNext(long userId,
                                     long companyId,
                                     Date modifiedDate,
                                     OrderByComparator<User> orderByComparator)
                              throws NoSuchUserException
Returns the users before and after the current user in the ordered set where companyId = ? and modifiedDate = ?.

Specified by:
findByC_MD_PrevAndNext in interface UserPersistence
Parameters:
userId - the primary key of the current user
companyId - the company ID
modifiedDate - the modified date
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next user
Throws:
NoSuchUserException - if a user with the primary key could not be found

getByC_MD_PrevAndNext

protected User getByC_MD_PrevAndNext(Session session,
                                     User user,
                                     long companyId,
                                     Date modifiedDate,
                                     OrderByComparator<User> orderByComparator,
                                     boolean previous)

removeByC_MD

public void removeByC_MD(long companyId,
                         Date modifiedDate)
Removes all the users where companyId = ? and modifiedDate = ? from the database.

Specified by:
removeByC_MD in interface UserPersistence
Parameters:
companyId - the company ID
modifiedDate - the modified date

countByC_MD

public int countByC_MD(long companyId,
                       Date modifiedDate)
Returns the number of users where companyId = ? and modifiedDate = ?.

Specified by:
countByC_MD in interface UserPersistence
Parameters:
companyId - the company ID
modifiedDate - the modified date
Returns:
the number of matching users

findByC_DU

public User findByC_DU(long companyId,
                       boolean defaultUser)
                throws NoSuchUserException
Returns the user where companyId = ? and defaultUser = ? or throws a NoSuchUserException if it could not be found.

Specified by:
findByC_DU in interface UserPersistence
Parameters:
companyId - the company ID
defaultUser - the default user
Returns:
the matching user
Throws:
NoSuchUserException - if a matching user could not be found

fetchByC_DU

public User fetchByC_DU(long companyId,
                        boolean defaultUser)
Returns the user where companyId = ? and defaultUser = ? or returns null if it could not be found. Uses the finder cache.

Specified by:
fetchByC_DU in interface UserPersistence
Parameters:
companyId - the company ID
defaultUser - the default user
Returns:
the matching user, or null if a matching user could not be found

fetchByC_DU

public 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.

Specified by:
fetchByC_DU in interface UserPersistence
Parameters:
companyId - the company ID
defaultUser - the default user
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the matching user, or null if a matching user could not be found

removeByC_DU

public User removeByC_DU(long companyId,
                         boolean defaultUser)
                  throws NoSuchUserException
Removes the user where companyId = ? and defaultUser = ? from the database.

Specified by:
removeByC_DU in interface UserPersistence
Parameters:
companyId - the company ID
defaultUser - the default user
Returns:
the user that was removed
Throws:
NoSuchUserException

countByC_DU

public int countByC_DU(long companyId,
                       boolean defaultUser)
Returns the number of users where companyId = ? and defaultUser = ?.

Specified by:
countByC_DU in interface UserPersistence
Parameters:
companyId - the company ID
defaultUser - the default user
Returns:
the number of matching users

findByC_SN

public User findByC_SN(long companyId,
                       String screenName)
                throws NoSuchUserException
Returns the user where companyId = ? and screenName = ? or throws a NoSuchUserException if it could not be found.

Specified by:
findByC_SN in interface UserPersistence
Parameters:
companyId - the company ID
screenName - the screen name
Returns:
the matching user
Throws:
NoSuchUserException - if a matching user could not be found

fetchByC_SN

public User fetchByC_SN(long companyId,
                        String screenName)
Returns the user where companyId = ? and screenName = ? or returns null if it could not be found. Uses the finder cache.

Specified by:
fetchByC_SN in interface UserPersistence
Parameters:
companyId - the company ID
screenName - the screen name
Returns:
the matching user, or null if a matching user could not be found

fetchByC_SN

public 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.

Specified by:
fetchByC_SN in interface UserPersistence
Parameters:
companyId - the company ID
screenName - the screen name
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the matching user, or null if a matching user could not be found

removeByC_SN

public User removeByC_SN(long companyId,
                         String screenName)
                  throws NoSuchUserException
Removes the user where companyId = ? and screenName = ? from the database.

Specified by:
removeByC_SN in interface UserPersistence
Parameters:
companyId - the company ID
screenName - the screen name
Returns:
the user that was removed
Throws:
NoSuchUserException

countByC_SN

public int countByC_SN(long companyId,
                       String screenName)
Returns the number of users where companyId = ? and screenName = ?.

Specified by:
countByC_SN in interface UserPersistence
Parameters:
companyId - the company ID
screenName - the screen name
Returns:
the number of matching users

findByC_EA

public User findByC_EA(long companyId,
                       String emailAddress)
                throws NoSuchUserException
Returns the user where companyId = ? and emailAddress = ? or throws a NoSuchUserException if it could not be found.

Specified by:
findByC_EA in interface UserPersistence
Parameters:
companyId - the company ID
emailAddress - the email address
Returns:
the matching user
Throws:
NoSuchUserException - if a matching user could not be found

fetchByC_EA

public User fetchByC_EA(long companyId,
                        String emailAddress)
Returns the user where companyId = ? and emailAddress = ? or returns null if it could not be found. Uses the finder cache.

Specified by:
fetchByC_EA in interface UserPersistence
Parameters:
companyId - the company ID
emailAddress - the email address
Returns:
the matching user, or null if a matching user could not be found

fetchByC_EA

public 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.

Specified by:
fetchByC_EA in interface UserPersistence
Parameters:
companyId - the company ID
emailAddress - the email address
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the matching user, or null if a matching user could not be found

removeByC_EA

public User removeByC_EA(long companyId,
                         String emailAddress)
                  throws NoSuchUserException
Removes the user where companyId = ? and emailAddress = ? from the database.

Specified by:
removeByC_EA in interface UserPersistence
Parameters:
companyId - the company ID
emailAddress - the email address
Returns:
the user that was removed
Throws:
NoSuchUserException

countByC_EA

public int countByC_EA(long companyId,
                       String emailAddress)
Returns the number of users where companyId = ? and emailAddress = ?.

Specified by:
countByC_EA in interface UserPersistence
Parameters:
companyId - the company ID
emailAddress - the email address
Returns:
the number of matching users

findByC_FID

public User findByC_FID(long companyId,
                        long facebookId)
                 throws NoSuchUserException
Returns the user where companyId = ? and facebookId = ? or throws a NoSuchUserException if it could not be found.

Specified by:
findByC_FID in interface UserPersistence
Parameters:
companyId - the company ID
facebookId - the facebook ID
Returns:
the matching user
Throws:
NoSuchUserException - if a matching user could not be found

fetchByC_FID

public User fetchByC_FID(long companyId,
                         long facebookId)
Returns the user where companyId = ? and facebookId = ? or returns null if it could not be found. Uses the finder cache.

Specified by:
fetchByC_FID in interface UserPersistence
Parameters:
companyId - the company ID
facebookId - the facebook ID
Returns:
the matching user, or null if a matching user could not be found

fetchByC_FID

public 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.

Specified by:
fetchByC_FID in interface UserPersistence
Parameters:
companyId - the company ID
facebookId - the facebook ID
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the matching user, or null if a matching user could not be found

removeByC_FID

public User removeByC_FID(long companyId,
                          long facebookId)
                   throws NoSuchUserException
Removes the user where companyId = ? and facebookId = ? from the database.

Specified by:
removeByC_FID in interface UserPersistence
Parameters:
companyId - the company ID
facebookId - the facebook ID
Returns:
the user that was removed
Throws:
NoSuchUserException

countByC_FID

public int countByC_FID(long companyId,
                        long facebookId)
Returns the number of users where companyId = ? and facebookId = ?.

Specified by:
countByC_FID in interface UserPersistence
Parameters:
companyId - the company ID
facebookId - the facebook ID
Returns:
the number of matching users

findByC_O

public User findByC_O(long companyId,
                      String openId)
               throws NoSuchUserException
Returns the user where companyId = ? and openId = ? or throws a NoSuchUserException if it could not be found.

Specified by:
findByC_O in interface UserPersistence
Parameters:
companyId - the company ID
openId - the open ID
Returns:
the matching user
Throws:
NoSuchUserException - if a matching user could not be found

fetchByC_O

public User fetchByC_O(long companyId,
                       String openId)
Returns the user where companyId = ? and openId = ? or returns null if it could not be found. Uses the finder cache.

Specified by:
fetchByC_O in interface UserPersistence
Parameters:
companyId - the company ID
openId - the open ID
Returns:
the matching user, or null if a matching user could not be found

fetchByC_O

public 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.

Specified by:
fetchByC_O in interface UserPersistence
Parameters:
companyId - the company ID
openId - the open ID
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the matching user, or null if a matching user could not be found

removeByC_O

public User removeByC_O(long companyId,
                        String openId)
                 throws NoSuchUserException
Removes the user where companyId = ? and openId = ? from the database.

Specified by:
removeByC_O in interface UserPersistence
Parameters:
companyId - the company ID
openId - the open ID
Returns:
the user that was removed
Throws:
NoSuchUserException

countByC_O

public int countByC_O(long companyId,
                      String openId)
Returns the number of users where companyId = ? and openId = ?.

Specified by:
countByC_O in interface UserPersistence
Parameters:
companyId - the company ID
openId - the open ID
Returns:
the number of matching users

findByC_S

public List<User> findByC_S(long companyId,
                            int status)
Returns all the users where companyId = ? and status = ?.

Specified by:
findByC_S in interface UserPersistence
Parameters:
companyId - the company ID
status - the status
Returns:
the matching users

findByC_S

public List<User> findByC_S(long companyId,
                            int status,
                            int start,
                            int end)
Returns a range of all the users where companyId = ? and status = ?.

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.

Specified by:
findByC_S in interface UserPersistence
Parameters:
companyId - the company ID
status - the status
start - the lower bound of the range of users
end - the upper bound of the range of users (not inclusive)
Returns:
the range of matching users

findByC_S

public List<User> findByC_S(long companyId,
                            int status,
                            int start,
                            int end,
                            OrderByComparator<User> orderByComparator)
Returns an ordered range of all the users where companyId = ? and status = ?.

Useful when paginating results. Returns a maximum of end - 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.

Specified by:
findByC_S in interface UserPersistence
Parameters:
companyId - the company ID
status - the status
start - the lower bound of the range of users
end - the upper bound of the range of users (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching users

findByC_S

public 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 = ?.

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.

Specified by:
findByC_S in interface UserPersistence
Parameters:
companyId - the company ID
status - the status
start - the lower bound of the range of users
end - 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
Returns:
the ordered range of matching users

findByC_S_First

public User findByC_S_First(long companyId,
                            int status,
                            OrderByComparator<User> orderByComparator)
                     throws NoSuchUserException
Returns the first user in the ordered set where companyId = ? and status = ?.

Specified by:
findByC_S_First in interface UserPersistence
Parameters:
companyId - the company ID
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching user
Throws:
NoSuchUserException - if a matching user could not be found

fetchByC_S_First

public User fetchByC_S_First(long companyId,
                             int status,
                             OrderByComparator<User> orderByComparator)
Returns the first user in the ordered set where companyId = ? and status = ?.

Specified by:
fetchByC_S_First in interface UserPersistence
Parameters:
companyId - the company ID
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching user, or null if a matching user could not be found

findByC_S_Last

public User findByC_S_Last(long companyId,
                           int status,
                           OrderByComparator<User> orderByComparator)
                    throws NoSuchUserException
Returns the last user in the ordered set where companyId = ? and status = ?.

Specified by:
findByC_S_Last in interface UserPersistence
Parameters:
companyId - the company ID
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching user
Throws:
NoSuchUserException - if a matching user could not be found

fetchByC_S_Last

public User fetchByC_S_Last(long companyId,
                            int status,
                            OrderByComparator<User> orderByComparator)
Returns the last user in the ordered set where companyId = ? and status = ?.

Specified by:
fetchByC_S_Last in interface UserPersistence
Parameters:
companyId - the company ID
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching user, or null if a matching user could not be found

findByC_S_PrevAndNext

public User[] findByC_S_PrevAndNext(long userId,
                                    long companyId,
                                    int status,
                                    OrderByComparator<User> orderByComparator)
                             throws NoSuchUserException
Returns the users before and after the current user in the ordered set where companyId = ? and status = ?.

Specified by:
findByC_S_PrevAndNext in interface UserPersistence
Parameters:
userId - the primary key of the current user
companyId - the company ID
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next user
Throws:
NoSuchUserException - if a user with the primary key could not be found

getByC_S_PrevAndNext

protected User getByC_S_PrevAndNext(Session session,
                                    User user,
                                    long companyId,
                                    int status,
                                    OrderByComparator<User> orderByComparator,
                                    boolean previous)

removeByC_S

public void removeByC_S(long companyId,
                        int status)
Removes all the users where companyId = ? and status = ? from the database.

Specified by:
removeByC_S in interface UserPersistence
Parameters:
companyId - the company ID
status - the status

countByC_S

public int countByC_S(long companyId,
                      int status)
Returns the number of users where companyId = ? and status = ?.

Specified by:
countByC_S in interface UserPersistence
Parameters:
companyId - the company ID
status - the status
Returns:
the number of matching users

findByC_CD_MD

public List<User> findByC_CD_MD(long companyId,
                                Date createDate,
                                Date modifiedDate)
Returns all the users where companyId = ? and createDate = ? and modifiedDate = ?.

Specified by:
findByC_CD_MD in interface UserPersistence
Parameters:
companyId - the company ID
createDate - the create date
modifiedDate - the modified date
Returns:
the matching users

findByC_CD_MD

public 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 = ?.

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.

Specified by:
findByC_CD_MD in interface UserPersistence
Parameters:
companyId - the company ID
createDate - the create date
modifiedDate - the modified date
start - the lower bound of the range of users
end - the upper bound of the range of users (not inclusive)
Returns:
the range of matching users

findByC_CD_MD

public List<User> findByC_CD_MD(long companyId,
                                Date createDate,
                                Date modifiedDate,
                                int start,
                                int end,
                                OrderByComparator<User> orderByComparator)
Returns an ordered range of all the users where companyId = ? and createDate = ? and modifiedDate = ?.

Useful when paginating results. Returns a maximum of end - 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.

Specified by:
findByC_CD_MD in interface UserPersistence
Parameters:
companyId - the company ID
createDate - the create date
modifiedDate - the modified date
start - the lower bound of the range of users
end - the upper bound of the range of users (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching users

findByC_CD_MD

public 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 = ?.

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.

Specified by:
findByC_CD_MD in interface UserPersistence
Parameters:
companyId - the company ID
createDate - the create date
modifiedDate - the modified date
start - the lower bound of the range of users
end - 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
Returns:
the ordered range of matching users

findByC_CD_MD_First

public User findByC_CD_MD_First(long companyId,
                                Date createDate,
                                Date modifiedDate,
                                OrderByComparator<User> orderByComparator)
                         throws NoSuchUserException
Returns the first user in the ordered set where companyId = ? and createDate = ? and modifiedDate = ?.

Specified by:
findByC_CD_MD_First in interface UserPersistence
Parameters:
companyId - the company ID
createDate - the create date
modifiedDate - the modified date
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching user
Throws:
NoSuchUserException - if a matching user could not be found

fetchByC_CD_MD_First

public 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 = ?.

Specified by:
fetchByC_CD_MD_First in interface UserPersistence
Parameters:
companyId - the company ID
createDate - the create date
modifiedDate - the modified date
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching user, or null if a matching user could not be found

findByC_CD_MD_Last

public User findByC_CD_MD_Last(long companyId,
                               Date createDate,
                               Date modifiedDate,
                               OrderByComparator<User> orderByComparator)
                        throws NoSuchUserException
Returns the last user in the ordered set where companyId = ? and createDate = ? and modifiedDate = ?.

Specified by:
findByC_CD_MD_Last in interface UserPersistence
Parameters:
companyId - the company ID
createDate - the create date
modifiedDate - the modified date
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching user
Throws:
NoSuchUserException - if a matching user could not be found

fetchByC_CD_MD_Last

public 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 = ?.

Specified by:
fetchByC_CD_MD_Last in interface UserPersistence
Parameters:
companyId - the company ID
createDate - the create date
modifiedDate - the modified date
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching user, or null if a matching user could not be found

findByC_CD_MD_PrevAndNext

public User[] findByC_CD_MD_PrevAndNext(long userId,
                                        long companyId,
                                        Date createDate,
                                        Date modifiedDate,
                                        OrderByComparator<User> orderByComparator)
                                 throws NoSuchUserException
Returns the users before and after the current user in the ordered set where companyId = ? and createDate = ? and modifiedDate = ?.

Specified by:
findByC_CD_MD_PrevAndNext in interface UserPersistence
Parameters:
userId - the primary key of the current user
companyId - the company ID
createDate - the create date
modifiedDate - the modified date
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next user
Throws:
NoSuchUserException - if a user with the primary key could not be found

getByC_CD_MD_PrevAndNext

protected User getByC_CD_MD_PrevAndNext(Session session,
                                        User user,
                                        long companyId,
                                        Date createDate,
                                        Date modifiedDate,
                                        OrderByComparator<User> orderByComparator,
                                        boolean previous)

removeByC_CD_MD

public void removeByC_CD_MD(long companyId,
                            Date createDate,
                            Date modifiedDate)
Removes all the users where companyId = ? and createDate = ? and modifiedDate = ? from the database.

Specified by:
removeByC_CD_MD in interface UserPersistence
Parameters:
companyId - the company ID
createDate - the create date
modifiedDate - the modified date

countByC_CD_MD

public int countByC_CD_MD(long companyId,
                          Date createDate,
                          Date modifiedDate)
Returns the number of users where companyId = ? and createDate = ? and modifiedDate = ?.

Specified by:
countByC_CD_MD in interface UserPersistence
Parameters:
companyId - the company ID
createDate - the create date
modifiedDate - the modified date
Returns:
the number of matching users

findByC_DU_S

public List<User> findByC_DU_S(long companyId,
                               boolean defaultUser,
                               int status)
Returns all the users where companyId = ? and defaultUser = ? and status = ?.

Specified by:
findByC_DU_S in interface UserPersistence
Parameters:
companyId - the company ID
defaultUser - the default user
status - the status
Returns:
the matching users

findByC_DU_S

public 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 = ?.

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.

Specified by:
findByC_DU_S in interface UserPersistence
Parameters:
companyId - the company ID
defaultUser - the default user
status - the status
start - the lower bound of the range of users
end - the upper bound of the range of users (not inclusive)
Returns:
the range of matching users

findByC_DU_S

public 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 = ?.

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.

Specified by:
findByC_DU_S in interface UserPersistence
Parameters:
companyId - the company ID
defaultUser - the default user
status - the status
start - the lower bound of the range of users
end - the upper bound of the range of users (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching users

findByC_DU_S

public 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 = ?.

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.

Specified by:
findByC_DU_S in interface UserPersistence
Parameters:
companyId - the company ID
defaultUser - the default user
status - the status
start - the lower bound of the range of users
end - 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
Returns:
the ordered range of matching users

findByC_DU_S_First

public User findByC_DU_S_First(long companyId,
                               boolean defaultUser,
                               int status,
                               OrderByComparator<User> orderByComparator)
                        throws NoSuchUserException
Returns the first user in the ordered set where companyId = ? and defaultUser = ? and status = ?.

Specified by:
findByC_DU_S_First in interface UserPersistence
Parameters:
companyId - the company ID
defaultUser - the default user
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching user
Throws:
NoSuchUserException - if a matching user could not be found

fetchByC_DU_S_First

public 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 = ?.

Specified by:
fetchByC_DU_S_First in interface UserPersistence
Parameters:
companyId - the company ID
defaultUser - the default user
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching user, or null if a matching user could not be found

findByC_DU_S_Last

public User findByC_DU_S_Last(long companyId,
                              boolean defaultUser,
                              int status,
                              OrderByComparator<User> orderByComparator)
                       throws NoSuchUserException
Returns the last user in the ordered set where companyId = ? and defaultUser = ? and status = ?.

Specified by:
findByC_DU_S_Last in interface UserPersistence
Parameters:
companyId - the company ID
defaultUser - the default user
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching user
Throws:
NoSuchUserException - if a matching user could not be found

fetchByC_DU_S_Last

public 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 = ?.

Specified by:
fetchByC_DU_S_Last in interface UserPersistence
Parameters:
companyId - the company ID
defaultUser - the default user
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching user, or null if a matching user could not be found

findByC_DU_S_PrevAndNext

public User[] findByC_DU_S_PrevAndNext(long userId,
                                       long companyId,
                                       boolean defaultUser,
                                       int status,
                                       OrderByComparator<User> orderByComparator)
                                throws NoSuchUserException
Returns the users before and after the current user in the ordered set where companyId = ? and defaultUser = ? and status = ?.

Specified by:
findByC_DU_S_PrevAndNext in interface UserPersistence
Parameters:
userId - the primary key of the current user
companyId - the company ID
defaultUser - the default user
status - the status
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next user
Throws:
NoSuchUserException - if a user with the primary key could not be found

getByC_DU_S_PrevAndNext

protected User getByC_DU_S_PrevAndNext(Session session,
                                       User user,
                                       long companyId,
                                       boolean defaultUser,
                                       int status,
                                       OrderByComparator<User> orderByComparator,
                                       boolean previous)

removeByC_DU_S

public void removeByC_DU_S(long companyId,
                           boolean defaultUser,
                           int status)
Removes all the users where companyId = ? and defaultUser = ? and status = ? from the database.

Specified by:
removeByC_DU_S in interface UserPersistence
Parameters:
companyId - the company ID
defaultUser - the default user
status - the status

countByC_DU_S

public int countByC_DU_S(long companyId,
                         boolean defaultUser,
                         int status)
Returns the number of users where companyId = ? and defaultUser = ? and status = ?.

Specified by:
countByC_DU_S in interface UserPersistence
Parameters:
companyId - the company ID
defaultUser - the default user
status - the status
Returns:
the number of matching users

cacheResult

public void cacheResult(User user)
Caches the user in the entity cache if it is enabled.

Specified by:
cacheResult in interface UserPersistence
Parameters:
user - the user

cacheResult

public void cacheResult(List<User> users)
Caches the users in the entity cache if it is enabled.

Specified by:
cacheResult in interface UserPersistence
Parameters:
users - the users

clearCache

public void clearCache()
Clears the cache for all users.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface BasePersistence<User>
Overrides:
clearCache in class BasePersistenceImpl<User>

clearCache

public void clearCache(User user)
Clears the cache for the user.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface BasePersistence<User>
Overrides:
clearCache in class BasePersistenceImpl<User>
Parameters:
user - the instance of this model to clear the cache for

clearCache

public void clearCache(List<User> users)
Description copied from interface: BasePersistence
Clears the cache for a List instances of this model.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface BasePersistence<User>
Overrides:
clearCache in class BasePersistenceImpl<User>
Parameters:
users - the List instances of this model to clear the cache for

cacheUniqueFindersCache

protected void cacheUniqueFindersCache(UserModelImpl userModelImpl,
                                       boolean isNew)

clearUniqueFindersCache

protected void clearUniqueFindersCache(UserModelImpl userModelImpl)

create

public User create(long userId)
Creates a new user with the primary key. Does not add the user to the database.

Specified by:
create in interface UserPersistence
Parameters:
userId - the primary key for the new user
Returns:
the new user

remove

public User remove(long userId)
            throws NoSuchUserException
Removes the user with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
remove in interface UserPersistence
Parameters:
userId - the primary key of the user
Returns:
the user that was removed
Throws:
NoSuchUserException - if a user with the primary key could not be found

remove

public User remove(Serializable primaryKey)
            throws NoSuchUserException
Removes the user with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
remove in interface BasePersistence<User>
Overrides:
remove in class BasePersistenceImpl<User>
Parameters:
primaryKey - the primary key of the user
Returns:
the user that was removed
Throws:
NoSuchUserException - if a user with the primary key could not be found

removeImpl

protected User removeImpl(User user)
Description copied from class: BasePersistenceImpl
Removes the model instance from the database. BasePersistenceImpl.update(BaseModel, boolean) depends on this method to implement the remove operation; it only notifies the model listeners.

Overrides:
removeImpl in class BasePersistenceImpl<User>
Parameters:
user - the model instance to remove
Returns:
the model instance that was removed

updateImpl

public User updateImpl(User user)
Description copied from class: BasePersistenceImpl
Updates the model instance in the database or adds it if it does not yet exist. BasePersistenceImpl.remove(BaseModel) depends on this method to implement the update operation; it only notifies the model listeners.

Specified by:
updateImpl in interface UserPersistence
Overrides:
updateImpl in class BasePersistenceImpl<User>
Parameters:
user - the model instance to update
Returns:
the model instance that was updated

toUnwrappedModel

protected User toUnwrappedModel(User user)

findByPrimaryKey

public User findByPrimaryKey(Serializable primaryKey)
                      throws NoSuchUserException
Returns the user with the primary key or throws a NoSuchModelException if it could not be found.

Specified by:
findByPrimaryKey in interface BasePersistence<User>
Overrides:
findByPrimaryKey in class BasePersistenceImpl<User>
Parameters:
primaryKey - the primary key of the user
Returns:
the user
Throws:
NoSuchUserException - if a user with the primary key could not be found

findByPrimaryKey

public User findByPrimaryKey(long userId)
                      throws NoSuchUserException
Returns the user with the primary key or throws a NoSuchUserException if it could not be found.

Specified by:
findByPrimaryKey in interface UserPersistence
Parameters:
userId - the primary key of the user
Returns:
the user
Throws:
NoSuchUserException - if a user with the primary key could not be found

fetchByPrimaryKey

public User fetchByPrimaryKey(Serializable primaryKey)
Returns the user with the primary key or returns null if it could not be found.

Specified by:
fetchByPrimaryKey in interface BasePersistence<User>
Overrides:
fetchByPrimaryKey in class BasePersistenceImpl<User>
Parameters:
primaryKey - the primary key of the user
Returns:
the user, or null if a user with the primary key could not be found

fetchByPrimaryKey

public User fetchByPrimaryKey(long userId)
Returns the user with the primary key or returns null if it could not be found.

Specified by:
fetchByPrimaryKey in interface UserPersistence
Parameters:
userId - the primary key of the user
Returns:
the user, or null if a user with the primary key could not be found

fetchByPrimaryKeys

public Map<Serializable,User> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
Specified by:
fetchByPrimaryKeys in interface BasePersistence<User>
Specified by:
fetchByPrimaryKeys in interface UserPersistence
Overrides:
fetchByPrimaryKeys in class BasePersistenceImpl<User>

findAll

public List<User> findAll()
Returns all the users.

Specified by:
findAll in interface UserPersistence
Returns:
the users

findAll

public List<User> findAll(int start,
                          int end)
Returns a range of all the users.

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.

Specified by:
findAll in interface UserPersistence
Parameters:
start - the lower bound of the range of users
end - the upper bound of the range of users (not inclusive)
Returns:
the range of users

findAll

public List<User> findAll(int start,
                          int end,
                          OrderByComparator<User> orderByComparator)
Returns an ordered range of all the users.

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.

Specified by:
findAll in interface UserPersistence
Parameters:
start - the lower bound of the range of users
end - the upper bound of the range of users (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of users

findAll

public List<User> findAll(int start,
                          int end,
                          OrderByComparator<User> orderByComparator,
                          boolean retrieveFromCache)
Returns an ordered range of all the users.

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.

Specified by:
findAll in interface UserPersistence
Parameters:
start - the lower bound of the range of users
end - 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
Returns:
the ordered range of users

removeAll

public void removeAll()
Removes all the users from the database.

Specified by:
removeAll in interface UserPersistence

countAll

public int countAll()
Returns the number of users.

Specified by:
countAll in interface UserPersistence
Returns:
the number of users

getGroupPrimaryKeys

public long[] getGroupPrimaryKeys(long pk)
Returns the primaryKeys of groups associated with the user.

Specified by:
getGroupPrimaryKeys in interface UserPersistence
Parameters:
pk - the primary key of the user
Returns:
long[] of the primaryKeys of groups associated with the user

getGroups

public List<Group> getGroups(long pk)
Returns all the groups associated with the user.

Specified by:
getGroups in interface UserPersistence
Parameters:
pk - the primary key of the user
Returns:
the groups associated with the user

getGroups

public List<Group> getGroups(long pk,
                             int start,
                             int end)
Returns a range of all the groups associated with the user.

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.

Specified by:
getGroups in interface UserPersistence
Parameters:
pk - the primary key of the user
start - the lower bound of the range of users
end - the upper bound of the range of users (not inclusive)
Returns:
the range of groups associated with the user

getGroups

public List<Group> getGroups(long pk,
                             int start,
                             int end,
                             OrderByComparator<Group> orderByComparator)
Returns an ordered range of all the groups associated with the user.

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.

Specified by:
getGroups in interface UserPersistence
Parameters:
pk - the primary key of the user
start - the lower bound of the range of users
end - the upper bound of the range of users (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of groups associated with the user

getGroupsSize

public int getGroupsSize(long pk)
Returns the number of groups associated with the user.

Specified by:
getGroupsSize in interface UserPersistence
Parameters:
pk - the primary key of the user
Returns:
the number of groups associated with the user

containsGroup

public boolean containsGroup(long pk,
                             long groupPK)
Returns true if the group is associated with the user.

Specified by:
containsGroup in interface UserPersistence
Parameters:
pk - the primary key of the user
groupPK - the primary key of the group
Returns:
true if the group is associated with the user; false otherwise

containsGroups

public boolean containsGroups(long pk)
Returns true if the user has any groups associated with it.

Specified by:
containsGroups in interface UserPersistence
Parameters:
pk - the primary key of the user to check for associations with groups
Returns:
true if the user has any groups associated with it; false otherwise

addGroup

public void addGroup(long pk,
                     long groupPK)
Adds an association between the user and the group. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
addGroup in interface UserPersistence
Parameters:
pk - the primary key of the user
groupPK - the primary key of the group

addGroup

public void addGroup(long pk,
                     Group group)
Adds an association between the user and the group. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
addGroup in interface UserPersistence
Parameters:
pk - the primary key of the user
group - the group

addGroups

public void addGroups(long pk,
                      long[] groupPKs)
Adds an association between the user and the groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
addGroups in interface UserPersistence
Parameters:
pk - the primary key of the user
groupPKs - the primary keys of the groups

addGroups

public void addGroups(long pk,
                      List<Group> groups)
Adds an association between the user and the groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
addGroups in interface UserPersistence
Parameters:
pk - the primary key of the user
groups - the groups

clearGroups

public void clearGroups(long pk)
Clears all associations between the user and its groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
clearGroups in interface UserPersistence
Parameters:
pk - the primary key of the user to clear the associated groups from

removeGroup

public void removeGroup(long pk,
                        long groupPK)
Removes the association between the user and the group. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
removeGroup in interface UserPersistence
Parameters:
pk - the primary key of the user
groupPK - the primary key of the group

removeGroup

public void removeGroup(long pk,
                        Group group)
Removes the association between the user and the group. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
removeGroup in interface UserPersistence
Parameters:
pk - the primary key of the user
group - the group

removeGroups

public void removeGroups(long pk,
                         long[] groupPKs)
Removes the association between the user and the groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
removeGroups in interface UserPersistence
Parameters:
pk - the primary key of the user
groupPKs - the primary keys of the groups

removeGroups

public void removeGroups(long pk,
                         List<Group> groups)
Removes the association between the user and the groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
removeGroups in interface UserPersistence
Parameters:
pk - the primary key of the user
groups - the groups

setGroups

public void setGroups(long pk,
                      long[] groupPKs)
Sets the groups associated with the user, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
setGroups in interface UserPersistence
Parameters:
pk - the primary key of the user
groupPKs - the primary keys of the groups to be associated with the user

setGroups

public void setGroups(long pk,
                      List<Group> groups)
Sets the groups associated with the user, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
setGroups in interface UserPersistence
Parameters:
pk - the primary key of the user
groups - the groups to be associated with the user

getOrganizationPrimaryKeys

public long[] getOrganizationPrimaryKeys(long pk)
Returns the primaryKeys of organizations associated with the user.

Specified by:
getOrganizationPrimaryKeys in interface UserPersistence
Parameters:
pk - the primary key of the user
Returns:
long[] of the primaryKeys of organizations associated with the user

getOrganizations

public List<Organization> getOrganizations(long pk)
Returns all the organizations associated with the user.

Specified by:
getOrganizations in interface UserPersistence
Parameters:
pk - the primary key of the user
Returns:
the organizations associated with the user

getOrganizations

public List<Organization> getOrganizations(long pk,
                                           int start,
                                           int end)
Returns a range of all the organizations associated with the user.

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.

Specified by:
getOrganizations in interface UserPersistence
Parameters:
pk - the primary key of the user
start - the lower bound of the range of users
end - the upper bound of the range of users (not inclusive)
Returns:
the range of organizations associated with the user

getOrganizations

public List<Organization> getOrganizations(long pk,
                                           int start,
                                           int end,
                                           OrderByComparator<Organization> orderByComparator)
Returns an ordered range of all the organizations associated with the user.

Useful when paginating results. Returns a maximum of end - 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.

Specified by:
getOrganizations in interface UserPersistence
Parameters:
pk - the primary key of the user
start - the lower bound of the range of users
end - the upper bound of the range of users (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of organizations associated with the user

getOrganizationsSize

public int getOrganizationsSize(long pk)
Returns the number of organizations associated with the user.

Specified by:
getOrganizationsSize in interface UserPersistence
Parameters:
pk - the primary key of the user
Returns:
the number of organizations associated with the user

containsOrganization

public boolean containsOrganization(long pk,
                                    long organizationPK)
Returns true if the organization is associated with the user.

Specified by:
containsOrganization in interface UserPersistence
Parameters:
pk - the primary key of the user
organizationPK - the primary key of the organization
Returns:
true if the organization is associated with the user; false otherwise

containsOrganizations

public boolean containsOrganizations(long pk)
Returns true if the user has any organizations associated with it.

Specified by:
containsOrganizations in interface UserPersistence
Parameters:
pk - the primary key of the user to check for associations with organizations
Returns:
true if the user has any organizations associated with it; false otherwise

addOrganization

public void addOrganization(long pk,
                            long organizationPK)
Adds an association between the user and the organization. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
addOrganization in interface UserPersistence
Parameters:
pk - the primary key of the user
organizationPK - the primary key of the organization

addOrganization

public void addOrganization(long pk,
                            Organization organization)
Adds an association between the user and the organization. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
addOrganization in interface UserPersistence
Parameters:
pk - the primary key of the user
organization - the organization

addOrganizations

public void addOrganizations(long pk,
                             long[] organizationPKs)
Adds an association between the user and the organizations. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
addOrganizations in interface UserPersistence
Parameters:
pk - the primary key of the user
organizationPKs - the primary keys of the organizations

addOrganizations

public void addOrganizations(long pk,
                             List<Organization> organizations)
Adds an association between the user and the organizations. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
addOrganizations in interface UserPersistence
Parameters:
pk - the primary key of the user
organizations - the organizations

clearOrganizations

public void clearOrganizations(long pk)
Clears all associations between the user and its organizations. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
clearOrganizations in interface UserPersistence
Parameters:
pk - the primary key of the user to clear the associated organizations from

removeOrganization

public void removeOrganization(long pk,
                               long organizationPK)
Removes the association between the user and the organization. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
removeOrganization in interface UserPersistence
Parameters:
pk - the primary key of the user
organizationPK - the primary key of the organization

removeOrganization

public void removeOrganization(long pk,
                               Organization organization)
Removes the association between the user and the organization. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
removeOrganization in interface UserPersistence
Parameters:
pk - the primary key of the user
organization - the organization

removeOrganizations

public void removeOrganizations(long pk,
                                long[] organizationPKs)
Removes the association between the user and the organizations. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
removeOrganizations in interface UserPersistence
Parameters:
pk - the primary key of the user
organizationPKs - the primary keys of the organizations

removeOrganizations

public void removeOrganizations(long pk,
                                List<Organization> organizations)
Removes the association between the user and the organizations. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
removeOrganizations in interface UserPersistence
Parameters:
pk - the primary key of the user
organizations - the organizations

setOrganizations

public void setOrganizations(long pk,
                             long[] organizationPKs)
Sets the organizations associated with the user, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
setOrganizations in interface UserPersistence
Parameters:
pk - the primary key of the user
organizationPKs - the primary keys of the organizations to be associated with the user

setOrganizations

public void setOrganizations(long pk,
                             List<Organization> organizations)
Sets the organizations associated with the user, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
setOrganizations in interface UserPersistence
Parameters:
pk - the primary key of the user
organizations - the organizations to be associated with the user

getRolePrimaryKeys

public long[] getRolePrimaryKeys(long pk)
Returns the primaryKeys of roles associated with the user.

Specified by:
getRolePrimaryKeys in interface UserPersistence
Parameters:
pk - the primary key of the user
Returns:
long[] of the primaryKeys of roles associated with the user

getRoles

public List<Role> getRoles(long pk)
Returns all the roles associated with the user.

Specified by:
getRoles in interface UserPersistence
Parameters:
pk - the primary key of the user
Returns:
the roles associated with the user

getRoles

public List<Role> getRoles(long pk,
                           int start,
                           int end)
Returns a range of all the roles associated with the user.

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.

Specified by:
getRoles in interface UserPersistence
Parameters:
pk - the primary key of the user
start - the lower bound of the range of users
end - the upper bound of the range of users (not inclusive)
Returns:
the range of roles associated with the user

getRoles

public List<Role> getRoles(long pk,
                           int start,
                           int end,
                           OrderByComparator<Role> orderByComparator)
Returns an ordered range of all the roles associated with the user.

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.

Specified by:
getRoles in interface UserPersistence
Parameters:
pk - the primary key of the user
start - the lower bound of the range of users
end - the upper bound of the range of users (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of roles associated with the user

getRolesSize

public int getRolesSize(long pk)
Returns the number of roles associated with the user.

Specified by:
getRolesSize in interface UserPersistence
Parameters:
pk - the primary key of the user
Returns:
the number of roles associated with the user

containsRole

public boolean containsRole(long pk,
                            long rolePK)
Returns true if the role is associated with the user.

Specified by:
containsRole in interface UserPersistence
Parameters:
pk - the primary key of the user
rolePK - the primary key of the role
Returns:
true if the role is associated with the user; false otherwise

containsRoles

public boolean containsRoles(long pk)
Returns true if the user has any roles associated with it.

Specified by:
containsRoles in interface UserPersistence
Parameters:
pk - the primary key of the user to check for associations with roles
Returns:
true if the user has any roles associated with it; false otherwise

addRole

public void addRole(long pk,
                    long rolePK)
Adds an association between the user and the role. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
addRole in interface UserPersistence
Parameters:
pk - the primary key of the user
rolePK - the primary key of the role

addRole

public void addRole(long pk,
                    Role role)
Adds an association between the user and the role. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
addRole in interface UserPersistence
Parameters:
pk - the primary key of the user
role - the role

addRoles

public void addRoles(long pk,
                     long[] rolePKs)
Adds an association between the user and the roles. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
addRoles in interface UserPersistence
Parameters:
pk - the primary key of the user
rolePKs - the primary keys of the roles

addRoles

public void addRoles(long pk,
                     List<Role> roles)
Adds an association between the user and the roles. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
addRoles in interface UserPersistence
Parameters:
pk - the primary key of the user
roles - the roles

clearRoles

public void clearRoles(long pk)
Clears all associations between the user and its roles. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
clearRoles in interface UserPersistence
Parameters:
pk - the primary key of the user to clear the associated roles from

removeRole

public void removeRole(long pk,
                       long rolePK)
Removes the association between the user and the role. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
removeRole in interface UserPersistence
Parameters:
pk - the primary key of the user
rolePK - the primary key of the role

removeRole

public void removeRole(long pk,
                       Role role)
Removes the association between the user and the role. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
removeRole in interface UserPersistence
Parameters:
pk - the primary key of the user
role - the role

removeRoles

public void removeRoles(long pk,
                        long[] rolePKs)
Removes the association between the user and the roles. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
removeRoles in interface UserPersistence
Parameters:
pk - the primary key of the user
rolePKs - the primary keys of the roles

removeRoles

public void removeRoles(long pk,
                        List<Role> roles)
Removes the association between the user and the roles. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
removeRoles in interface UserPersistence
Parameters:
pk - the primary key of the user
roles - the roles

setRoles

public void setRoles(long pk,
                     long[] rolePKs)
Sets the roles associated with the user, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
setRoles in interface UserPersistence
Parameters:
pk - the primary key of the user
rolePKs - the primary keys of the roles to be associated with the user

setRoles

public void setRoles(long pk,
                     List<Role> roles)
Sets the roles associated with the user, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
setRoles in interface UserPersistence
Parameters:
pk - the primary key of the user
roles - the roles to be associated with the user

getTeamPrimaryKeys

public long[] getTeamPrimaryKeys(long pk)
Returns the primaryKeys of teams associated with the user.

Specified by:
getTeamPrimaryKeys in interface UserPersistence
Parameters:
pk - the primary key of the user
Returns:
long[] of the primaryKeys of teams associated with the user

getTeams

public List<Team> getTeams(long pk)
Returns all the teams associated with the user.

Specified by:
getTeams in interface UserPersistence
Parameters:
pk - the primary key of the user
Returns:
the teams associated with the user

getTeams

public List<Team> getTeams(long pk,
                           int start,
                           int end)
Returns a range of all the teams associated with the user.

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.

Specified by:
getTeams in interface UserPersistence
Parameters:
pk - the primary key of the user
start - the lower bound of the range of users
end - the upper bound of the range of users (not inclusive)
Returns:
the range of teams associated with the user

getTeams

public List<Team> getTeams(long pk,
                           int start,
                           int end,
                           OrderByComparator<Team> orderByComparator)
Returns an ordered range of all the teams associated with the user.

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.

Specified by:
getTeams in interface UserPersistence
Parameters:
pk - the primary key of the user
start - the lower bound of the range of users
end - the upper bound of the range of users (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of teams associated with the user

getTeamsSize

public int getTeamsSize(long pk)
Returns the number of teams associated with the user.

Specified by:
getTeamsSize in interface UserPersistence
Parameters:
pk - the primary key of the user
Returns:
the number of teams associated with the user

containsTeam

public boolean containsTeam(long pk,
                            long teamPK)
Returns true if the team is associated with the user.

Specified by:
containsTeam in interface UserPersistence
Parameters:
pk - the primary key of the user
teamPK - the primary key of the team
Returns:
true if the team is associated with the user; false otherwise

containsTeams

public boolean containsTeams(long pk)
Returns true if the user has any teams associated with it.

Specified by:
containsTeams in interface UserPersistence
Parameters:
pk - the primary key of the user to check for associations with teams
Returns:
true if the user has any teams associated with it; false otherwise

addTeam

public void addTeam(long pk,
                    long teamPK)
Adds an association between the user and the team. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
addTeam in interface UserPersistence
Parameters:
pk - the primary key of the user
teamPK - the primary key of the team

addTeam

public void addTeam(long pk,
                    Team team)
Adds an association between the user and the team. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
addTeam in interface UserPersistence
Parameters:
pk - the primary key of the user
team - the team

addTeams

public void addTeams(long pk,
                     long[] teamPKs)
Adds an association between the user and the teams. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
addTeams in interface UserPersistence
Parameters:
pk - the primary key of the user
teamPKs - the primary keys of the teams

addTeams

public void addTeams(long pk,
                     List<Team> teams)
Adds an association between the user and the teams. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
addTeams in interface UserPersistence
Parameters:
pk - the primary key of the user
teams - the teams

clearTeams

public void clearTeams(long pk)
Clears all associations between the user and its teams. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
clearTeams in interface UserPersistence
Parameters:
pk - the primary key of the user to clear the associated teams from

removeTeam

public void removeTeam(long pk,
                       long teamPK)
Removes the association between the user and the team. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
removeTeam in interface UserPersistence
Parameters:
pk - the primary key of the user
teamPK - the primary key of the team

removeTeam

public void removeTeam(long pk,
                       Team team)
Removes the association between the user and the team. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
removeTeam in interface UserPersistence
Parameters:
pk - the primary key of the user
team - the team

removeTeams

public void removeTeams(long pk,
                        long[] teamPKs)
Removes the association between the user and the teams. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
removeTeams in interface UserPersistence
Parameters:
pk - the primary key of the user
teamPKs - the primary keys of the teams

removeTeams

public void removeTeams(long pk,
                        List<Team> teams)
Removes the association between the user and the teams. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
removeTeams in interface UserPersistence
Parameters:
pk - the primary key of the user
teams - the teams

setTeams

public void setTeams(long pk,
                     long[] teamPKs)
Sets the teams associated with the user, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
setTeams in interface UserPersistence
Parameters:
pk - the primary key of the user
teamPKs - the primary keys of the teams to be associated with the user

setTeams

public void setTeams(long pk,
                     List<Team> teams)
Sets the teams associated with the user, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
setTeams in interface UserPersistence
Parameters:
pk - the primary key of the user
teams - the teams to be associated with the user

getUserGroupPrimaryKeys

public long[] getUserGroupPrimaryKeys(long pk)
Returns the primaryKeys of user groups associated with the user.

Specified by:
getUserGroupPrimaryKeys in interface UserPersistence
Parameters:
pk - the primary key of the user
Returns:
long[] of the primaryKeys of user groups associated with the user

getUserGroups

public List<UserGroup> getUserGroups(long pk)
Returns all the user groups associated with the user.

Specified by:
getUserGroups in interface UserPersistence
Parameters:
pk - the primary key of the user
Returns:
the user groups associated with the user

getUserGroups

public List<UserGroup> getUserGroups(long pk,
                                     int start,
                                     int end)
Returns a range of all the user groups associated with the user.

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.

Specified by:
getUserGroups in interface UserPersistence
Parameters:
pk - the primary key of the user
start - the lower bound of the range of users
end - the upper bound of the range of users (not inclusive)
Returns:
the range of user groups associated with the user

getUserGroups

public List<UserGroup> getUserGroups(long pk,
                                     int start,
                                     int end,
                                     OrderByComparator<UserGroup> orderByComparator)
Returns an ordered range of all the user groups associated with the user.

Useful when paginating results. Returns a maximum of end - 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.

Specified by:
getUserGroups in interface UserPersistence
Parameters:
pk - the primary key of the user
start - the lower bound of the range of users
end - the upper bound of the range of users (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of user groups associated with the user

getUserGroupsSize

public int getUserGroupsSize(long pk)
Returns the number of user groups associated with the user.

Specified by:
getUserGroupsSize in interface UserPersistence
Parameters:
pk - the primary key of the user
Returns:
the number of user groups associated with the user

containsUserGroup

public boolean containsUserGroup(long pk,
                                 long userGroupPK)
Returns true if the user group is associated with the user.

Specified by:
containsUserGroup in interface UserPersistence
Parameters:
pk - the primary key of the user
userGroupPK - the primary key of the user group
Returns:
true if the user group is associated with the user; false otherwise

containsUserGroups

public boolean containsUserGroups(long pk)
Returns true if the user has any user groups associated with it.

Specified by:
containsUserGroups in interface UserPersistence
Parameters:
pk - the primary key of the user to check for associations with user groups
Returns:
true if the user has any user groups associated with it; false otherwise

addUserGroup

public void addUserGroup(long pk,
                         long userGroupPK)
Adds an association between the user and the user group. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
addUserGroup in interface UserPersistence
Parameters:
pk - the primary key of the user
userGroupPK - the primary key of the user group

addUserGroup

public void addUserGroup(long pk,
                         UserGroup userGroup)
Adds an association between the user and the user group. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
addUserGroup in interface UserPersistence
Parameters:
pk - the primary key of the user
userGroup - the user group

addUserGroups

public void addUserGroups(long pk,
                          long[] userGroupPKs)
Adds an association between the user and the user groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
addUserGroups in interface UserPersistence
Parameters:
pk - the primary key of the user
userGroupPKs - the primary keys of the user groups

addUserGroups

public void addUserGroups(long pk,
                          List<UserGroup> userGroups)
Adds an association between the user and the user groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
addUserGroups in interface UserPersistence
Parameters:
pk - the primary key of the user
userGroups - the user groups

clearUserGroups

public void clearUserGroups(long pk)
Clears all associations between the user and its user groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
clearUserGroups in interface UserPersistence
Parameters:
pk - the primary key of the user to clear the associated user groups from

removeUserGroup

public void removeUserGroup(long pk,
                            long userGroupPK)
Removes the association between the user and the user group. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
removeUserGroup in interface UserPersistence
Parameters:
pk - the primary key of the user
userGroupPK - the primary key of the user group

removeUserGroup

public void removeUserGroup(long pk,
                            UserGroup userGroup)
Removes the association between the user and the user group. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
removeUserGroup in interface UserPersistence
Parameters:
pk - the primary key of the user
userGroup - the user group

removeUserGroups

public void removeUserGroups(long pk,
                             long[] userGroupPKs)
Removes the association between the user and the user groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
removeUserGroups in interface UserPersistence
Parameters:
pk - the primary key of the user
userGroupPKs - the primary keys of the user groups

removeUserGroups

public void removeUserGroups(long pk,
                             List<UserGroup> userGroups)
Removes the association between the user and the user groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
removeUserGroups in interface UserPersistence
Parameters:
pk - the primary key of the user
userGroups - the user groups

setUserGroups

public void setUserGroups(long pk,
                          long[] userGroupPKs)
Sets the user groups associated with the user, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
setUserGroups in interface UserPersistence
Parameters:
pk - the primary key of the user
userGroupPKs - the primary keys of the user groups to be associated with the user

setUserGroups

public void setUserGroups(long pk,
                          List<UserGroup> userGroups)
Sets the user groups associated with the user, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
setUserGroups in interface UserPersistence
Parameters:
pk - the primary key of the user
userGroups - the user groups to be associated with the user

getBadColumnNames

public Set<String> getBadColumnNames()
Specified by:
getBadColumnNames in interface BasePersistence<User>
Specified by:
getBadColumnNames in interface UserPersistence
Overrides:
getBadColumnNames in class BasePersistenceImpl<User>

getTableColumnsMap

protected Map<String,Integer> getTableColumnsMap()
Overrides:
getTableColumnsMap in class BasePersistenceImpl<User>

afterPropertiesSet

public void afterPropertiesSet()
Initializes the user persistence.


destroy

public void destroy()

Liferay 7.0-ce-b4