Liferay 6.0.5

com.liferay.portal.service.persistence
Class UserPersistenceImpl

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

public class UserPersistenceImpl
extends BasePersistenceImpl<User>
implements UserPersistence

The persistence implementation for the user service.

Never modify or reference this class directly. Always use UserUtil to access the user persistence. Modify service.xml and rerun ServiceBuilder to regenerate this class.

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 is generated.

Nested Class Summary
protected  class UserPersistenceImpl.AddGroup
           
protected  class UserPersistenceImpl.AddOrganization
           
protected  class UserPersistenceImpl.AddPermission
           
protected  class UserPersistenceImpl.AddRole
           
protected  class UserPersistenceImpl.AddTeam
           
protected  class UserPersistenceImpl.AddUserGroup
           
protected  class UserPersistenceImpl.ClearGroups
           
protected  class UserPersistenceImpl.ClearOrganizations
           
protected  class UserPersistenceImpl.ClearPermissions
           
protected  class UserPersistenceImpl.ClearRoles
           
protected  class UserPersistenceImpl.ClearTeams
           
protected  class UserPersistenceImpl.ClearUserGroups
           
protected  class UserPersistenceImpl.ContainsGroup
           
protected  class UserPersistenceImpl.ContainsOrganization
           
protected  class UserPersistenceImpl.ContainsPermission
           
protected  class UserPersistenceImpl.ContainsRole
           
protected  class UserPersistenceImpl.ContainsTeam
           
protected  class UserPersistenceImpl.ContainsUserGroup
           
protected  class UserPersistenceImpl.RemoveGroup
           
protected  class UserPersistenceImpl.RemoveOrganization
           
protected  class UserPersistenceImpl.RemovePermission
           
protected  class UserPersistenceImpl.RemoveRole
           
protected  class UserPersistenceImpl.RemoveTeam
           
protected  class UserPersistenceImpl.RemoveUserGroup
           
 
Field Summary
protected  AccountPersistence accountPersistence
           
protected  UserPersistenceImpl.AddGroup addGroup
           
protected  UserPersistenceImpl.AddOrganization addOrganization
           
protected  UserPersistenceImpl.AddPermission addPermission
           
protected  AddressPersistence addressPersistence
           
protected  UserPersistenceImpl.AddRole addRole
           
protected  UserPersistenceImpl.AddTeam addTeam
           
protected  UserPersistenceImpl.AddUserGroup addUserGroup
           
protected  AnnouncementsDeliveryPersistence announcementsDeliveryPersistence
           
protected  AssetEntryPersistence assetEntryPersistence
           
protected  BlogsStatsUserPersistence blogsStatsUserPersistence
           
protected  BrowserTrackerPersistence browserTrackerPersistence
           
protected  ClassNamePersistence classNamePersistence
           
protected  UserPersistenceImpl.ClearGroups clearGroups
           
protected  UserPersistenceImpl.ClearOrganizations clearOrganizations
           
protected  UserPersistenceImpl.ClearPermissions clearPermissions
           
protected  UserPersistenceImpl.ClearRoles clearRoles
           
protected  UserPersistenceImpl.ClearTeams clearTeams
           
protected  UserPersistenceImpl.ClearUserGroups clearUserGroups
           
protected  ClusterGroupPersistence clusterGroupPersistence
           
protected  CompanyPersistence companyPersistence
           
protected  ContactPersistence contactPersistence
           
protected  UserPersistenceImpl.ContainsGroup containsGroup
           
protected  UserPersistenceImpl.ContainsOrganization containsOrganization
           
protected  UserPersistenceImpl.ContainsPermission containsPermission
           
protected  UserPersistenceImpl.ContainsRole containsRole
           
protected  UserPersistenceImpl.ContainsTeam containsTeam
           
protected  UserPersistenceImpl.ContainsUserGroup containsUserGroup
           
protected  CountryPersistence countryPersistence
           
protected  DLFileRankPersistence dlFileRankPersistence
           
protected  EmailAddressPersistence emailAddressPersistence
           
protected  ExpandoValuePersistence expandoValuePersistence
           
static String FINDER_CLASS_NAME_ENTITY
           
static String FINDER_CLASS_NAME_LIST
           
static FinderPath FINDER_PATH_CONTAINS_GROUP
           
static FinderPath FINDER_PATH_CONTAINS_ORGANIZATION
           
static FinderPath FINDER_PATH_CONTAINS_PERMISSION
           
static FinderPath FINDER_PATH_CONTAINS_ROLE
           
static FinderPath FINDER_PATH_CONTAINS_TEAM
           
static FinderPath FINDER_PATH_CONTAINS_USERGROUP
           
static FinderPath FINDER_PATH_COUNT_ALL
           
static FinderPath FINDER_PATH_COUNT_BY_C_A
           
static FinderPath FINDER_PATH_COUNT_BY_C_DU
           
static FinderPath FINDER_PATH_COUNT_BY_C_EA
           
static FinderPath FINDER_PATH_COUNT_BY_C_FID
           
static FinderPath FINDER_PATH_COUNT_BY_C_O
           
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_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_FIND_ALL
           
static FinderPath FINDER_PATH_FIND_BY_C_A
           
static FinderPath FINDER_PATH_FIND_BY_COMPANYID
           
static FinderPath FINDER_PATH_FIND_BY_EMAILADDRESS
           
static FinderPath FINDER_PATH_FIND_BY_UUID
           
static FinderPath FINDER_PATH_GET_GROUPS
           
static FinderPath FINDER_PATH_GET_GROUPS_SIZE
           
static FinderPath FINDER_PATH_GET_ORGANIZATIONS
           
static FinderPath FINDER_PATH_GET_ORGANIZATIONS_SIZE
           
static FinderPath FINDER_PATH_GET_PERMISSIONS
           
static FinderPath FINDER_PATH_GET_PERMISSIONS_SIZE
           
static FinderPath FINDER_PATH_GET_ROLES
           
static FinderPath FINDER_PATH_GET_ROLES_SIZE
           
static FinderPath FINDER_PATH_GET_TEAMS
           
static FinderPath FINDER_PATH_GET_TEAMS_SIZE
           
static FinderPath FINDER_PATH_GET_USERGROUPS
           
static FinderPath FINDER_PATH_GET_USERGROUPS_SIZE
           
protected  GroupPersistence groupPersistence
           
protected  ImagePersistence imagePersistence
           
protected  LayoutPersistence layoutPersistence
           
protected  LayoutPrototypePersistence layoutPrototypePersistence
           
protected  LayoutSetPersistence layoutSetPersistence
           
protected  LayoutSetPrototypePersistence layoutSetPrototypePersistence
           
protected  ListTypePersistence listTypePersistence
           
protected  LockPersistence lockPersistence
           
protected  MBBanPersistence mbBanPersistence
           
protected  MBMessageFlagPersistence mbMessageFlagPersistence
           
protected  MBMessagePersistence mbMessagePersistence
           
protected  MBStatsUserPersistence mbStatsUserPersistence
           
protected  MembershipRequestPersistence membershipRequestPersistence
           
protected  OrganizationPersistence organizationPersistence
           
protected  OrgGroupPermissionPersistence orgGroupPermissionPersistence
           
protected  OrgGroupRolePersistence orgGroupRolePersistence
           
protected  OrgLaborPersistence orgLaborPersistence
           
protected  PasswordPolicyPersistence passwordPolicyPersistence
           
protected  PasswordPolicyRelPersistence passwordPolicyRelPersistence
           
protected  PasswordTrackerPersistence passwordTrackerPersistence
           
protected  PermissionPersistence permissionPersistence
           
protected  PhonePersistence phonePersistence
           
protected  PluginSettingPersistence pluginSettingPersistence
           
protected  PortletItemPersistence portletItemPersistence
           
protected  PortletPersistence portletPersistence
           
protected  PortletPreferencesPersistence portletPreferencesPersistence
           
protected  RegionPersistence regionPersistence
           
protected  ReleasePersistence releasePersistence
           
protected  UserPersistenceImpl.RemoveGroup removeGroup
           
protected  UserPersistenceImpl.RemoveOrganization removeOrganization
           
protected  UserPersistenceImpl.RemovePermission removePermission
           
protected  UserPersistenceImpl.RemoveRole removeRole
           
protected  UserPersistenceImpl.RemoveTeam removeTeam
           
protected  UserPersistenceImpl.RemoveUserGroup removeUserGroup
           
protected  ResourceActionPersistence resourceActionPersistence
           
protected  ResourceCodePersistence resourceCodePersistence
           
protected  ResourcePermissionPersistence resourcePermissionPersistence
           
protected  ResourcePersistence resourcePersistence
           
protected  RolePersistence rolePersistence
           
protected  ServiceComponentPersistence serviceComponentPersistence
           
protected  ShardPersistence shardPersistence
           
protected  ShoppingCartPersistence shoppingCartPersistence
           
protected  SocialActivityPersistence socialActivityPersistence
           
protected  SocialRequestPersistence socialRequestPersistence
           
protected  SubscriptionPersistence subscriptionPersistence
           
protected  TeamPersistence teamPersistence
           
protected  TicketPersistence ticketPersistence
           
protected  UserGroupGroupRolePersistence userGroupGroupRolePersistence
           
protected  UserGroupPersistence userGroupPersistence
           
protected  UserGroupRolePersistence userGroupRolePersistence
           
protected  UserIdMapperPersistence userIdMapperPersistence
           
protected  UserPersistence userPersistence
           
protected  UserTrackerPathPersistence userTrackerPathPersistence
           
protected  UserTrackerPersistence userTrackerPersistence
           
protected  WebDAVPropsPersistence webDAVPropsPersistence
           
protected  WebsitePersistence websitePersistence
           
protected  WorkflowDefinitionLinkPersistence workflowDefinitionLinkPersistence
           
protected  WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence
           
 
Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
COUNT_COLUMN_NAME, listeners, 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 addPermission(long pk, long permissionPK)
          Adds an association between the user and the permission.
 void addPermission(long pk, Permission permission)
          Adds an association between the user and the permission.
 void addPermissions(long pk, List<Permission> permissions)
          Adds an association between the user and the permissions.
 void addPermissions(long pk, long[] permissionPKs)
          Adds an association between the user and the permissions.
 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.
 void clearCache()
          Clears the cache for all users.
 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 clearPermissions(long pk)
          Clears all associations between the user and its permissions.
 void clearRoles(long pk)
          Clears all associations between the user and its roles.
 void clearTeams(long pk)
          Clears all associations between the user and its teams.
 void clearUserGroups(long pk)
          Clears all associations between the user and its user groups.
 boolean containsGroup(long pk, long groupPK)
          Determines whether the group is associated with the user.
 boolean containsGroups(long pk)
          Determines whether the user has any groups associated with it.
 boolean containsOrganization(long pk, long organizationPK)
          Determines whether the organization is associated with the user.
 boolean containsOrganizations(long pk)
          Determines whether the user has any organizations associated with it.
 boolean containsPermission(long pk, long permissionPK)
          Determines whether the permission is associated with the user.
 boolean containsPermissions(long pk)
          Determines whether the user has any permissions associated with it.
 boolean containsRole(long pk, long rolePK)
          Determines whether the role is associated with the user.
 boolean containsRoles(long pk)
          Determines whether the user has any roles associated with it.
 boolean containsTeam(long pk, long teamPK)
          Determines whether the team is associated with the user.
 boolean containsTeams(long pk)
          Determines whether the user has any teams associated with it.
 boolean containsUserGroup(long pk, long userGroupPK)
          Determines whether the user group is associated with the user.
 boolean containsUserGroups(long pk)
          Determines whether the user has any user groups associated with it.
 int countAll()
          Counts all the users.
 int countByC_A(long companyId, boolean active)
          Counts all the users where companyId = ? and active = ?.
 int countByC_DU(long companyId, boolean defaultUser)
          Counts all the users where companyId = ? and defaultUser = ?.
 int countByC_EA(long companyId, String emailAddress)
          Counts all the users where companyId = ? and emailAddress = ?.
 int countByC_FID(long companyId, long facebookId)
          Counts all the users where companyId = ? and facebookId = ?.
 int countByC_O(long companyId, String openId)
          Counts all the users where companyId = ? and openId = ?.
 int countByC_SN(long companyId, String screenName)
          Counts all the users where companyId = ? and screenName = ?.
 int countByC_U(long companyId, long userId)
          Counts all the users where companyId = ? and userId = ?.
 int countByCompanyId(long companyId)
          Counts all the users where companyId = ?.
 int countByContactId(long contactId)
          Counts all the users where contactId = ?.
 int countByEmailAddress(String emailAddress)
          Counts all the users where emailAddress = ?.
 int countByPortraitId(long portraitId)
          Counts all the users where portraitId = ?.
 int countByUuid(String uuid)
          Counts all the users where uuid = ?.
 User create(long userId)
          Creates a new user with the primary key.
 User fetchByC_DU(long companyId, boolean defaultUser)
          Finds the user where companyId = ? and defaultUser = ? or returns null if it could not be found.
 User fetchByC_DU(long companyId, boolean defaultUser, boolean retrieveFromCache)
          Finds 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)
          Finds the user where companyId = ? and emailAddress = ? or returns null if it could not be found.
 User fetchByC_EA(long companyId, String emailAddress, boolean retrieveFromCache)
          Finds 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)
          Finds the user where companyId = ? and facebookId = ? or returns null if it could not be found.
 User fetchByC_FID(long companyId, long facebookId, boolean retrieveFromCache)
          Finds the user where companyId = ? and facebookId = ? or returns null if it could not be found, optionally using the finder cache.
 User fetchByC_O(long companyId, String openId)
          Finds the user where companyId = ? and openId = ? or returns null if it could not be found.
 User fetchByC_O(long companyId, String openId, boolean retrieveFromCache)
          Finds the user where companyId = ? and openId = ? or returns null if it could not be found, optionally using the finder cache.
 User fetchByC_SN(long companyId, String screenName)
          Finds the user where companyId = ? and screenName = ? or returns null if it could not be found.
 User fetchByC_SN(long companyId, String screenName, boolean retrieveFromCache)
          Finds 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)
          Finds the user where companyId = ? and userId = ? or returns null if it could not be found.
 User fetchByC_U(long companyId, long userId, boolean retrieveFromCache)
          Finds the user where companyId = ? and userId = ? or returns null if it could not be found, optionally using the finder cache.
 User fetchByContactId(long contactId)
          Finds the user where contactId = ? or returns null if it could not be found.
 User fetchByContactId(long contactId, boolean retrieveFromCache)
          Finds the user where contactId = ? or returns null if it could not be found, optionally using the finder cache.
 User fetchByPortraitId(long portraitId)
          Finds the user where portraitId = ? or returns null if it could not be found.
 User fetchByPortraitId(long portraitId, boolean retrieveFromCache)
          Finds the user where portraitId = ? or returns null if it could not be found, optionally using the finder cache.
 User fetchByPrimaryKey(long userId)
          Finds the user with the primary key or returns null if it could not be found.
 User fetchByPrimaryKey(Serializable primaryKey)
          Finds the user with the primary key or returns null if it could not be found.
 List<User> findAll()
          Finds all the users.
 List<User> findAll(int start, int end)
          Finds a range of all the users.
 List<User> findAll(int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the users.
 User findByC_A_First(long companyId, boolean active, OrderByComparator orderByComparator)
          Finds the first user in the ordered set where companyId = ? and active = ?.
 User findByC_A_Last(long companyId, boolean active, OrderByComparator orderByComparator)
          Finds the last user in the ordered set where companyId = ? and active = ?.
 User[] findByC_A_PrevAndNext(long userId, long companyId, boolean active, OrderByComparator orderByComparator)
          Finds the users before and after the current user in the ordered set where companyId = ? and active = ?.
 List<User> findByC_A(long companyId, boolean active)
          Finds all the users where companyId = ? and active = ?.
 List<User> findByC_A(long companyId, boolean active, int start, int end)
          Finds a range of all the users where companyId = ? and active = ?.
 List<User> findByC_A(long companyId, boolean active, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the users where companyId = ? and active = ?.
 User findByC_DU(long companyId, boolean defaultUser)
          Finds the user where companyId = ? and defaultUser = ? or throws a NoSuchUserException if it could not be found.
 User findByC_EA(long companyId, String emailAddress)
          Finds the user where companyId = ? and emailAddress = ? or throws a NoSuchUserException if it could not be found.
 User findByC_FID(long companyId, long facebookId)
          Finds the user where companyId = ? and facebookId = ? or throws a NoSuchUserException if it could not be found.
 User findByC_O(long companyId, String openId)
          Finds the user where companyId = ? and openId = ? or throws a NoSuchUserException if it could not be found.
 User findByC_SN(long companyId, String screenName)
          Finds the user where companyId = ? and screenName = ? or throws a NoSuchUserException if it could not be found.
 User findByC_U(long companyId, long userId)
          Finds the user where companyId = ? and userId = ? or throws a NoSuchUserException if it could not be found.
 User findByCompanyId_First(long companyId, OrderByComparator orderByComparator)
          Finds the first user in the ordered set where companyId = ?.
 User findByCompanyId_Last(long companyId, OrderByComparator orderByComparator)
          Finds the last user in the ordered set where companyId = ?.
 User[] findByCompanyId_PrevAndNext(long userId, long companyId, OrderByComparator orderByComparator)
          Finds the users before and after the current user in the ordered set where companyId = ?.
 List<User> findByCompanyId(long companyId)
          Finds all the users where companyId = ?.
 List<User> findByCompanyId(long companyId, int start, int end)
          Finds a range of all the users where companyId = ?.
 List<User> findByCompanyId(long companyId, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the users where companyId = ?.
 User findByContactId(long contactId)
          Finds the user where contactId = ? or throws a NoSuchUserException if it could not be found.
 User findByEmailAddress_First(String emailAddress, OrderByComparator orderByComparator)
          Finds the first user in the ordered set where emailAddress = ?.
 User findByEmailAddress_Last(String emailAddress, OrderByComparator orderByComparator)
          Finds the last user in the ordered set where emailAddress = ?.
 User[] findByEmailAddress_PrevAndNext(long userId, String emailAddress, OrderByComparator orderByComparator)
          Finds the users before and after the current user in the ordered set where emailAddress = ?.
 List<User> findByEmailAddress(String emailAddress)
          Finds all the users where emailAddress = ?.
 List<User> findByEmailAddress(String emailAddress, int start, int end)
          Finds a range of all the users where emailAddress = ?.
 List<User> findByEmailAddress(String emailAddress, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the users where emailAddress = ?.
 User findByPortraitId(long portraitId)
          Finds the user where portraitId = ? or throws a NoSuchUserException if it could not be found.
 User findByPrimaryKey(long userId)
          Finds the user with the primary key or throws a NoSuchUserException if it could not be found.
 User findByPrimaryKey(Serializable primaryKey)
          Finds the user with the primary key or throws a NoSuchModelException if it could not be found.
 User findByUuid_First(String uuid, OrderByComparator orderByComparator)
          Finds the first user in the ordered set where uuid = ?.
 User findByUuid_Last(String uuid, OrderByComparator orderByComparator)
          Finds the last user in the ordered set where uuid = ?.
 User[] findByUuid_PrevAndNext(long userId, String uuid, OrderByComparator orderByComparator)
          Finds the users before and after the current user in the ordered set where uuid = ?.
 List<User> findByUuid(String uuid)
          Finds all the users where uuid = ?.
 List<User> findByUuid(String uuid, int start, int end)
          Finds a range of all the users where uuid = ?.
 List<User> findByUuid(String uuid, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the users where uuid = ?.
protected  User getByC_A_PrevAndNext(Session session, User user, long companyId, boolean active, OrderByComparator orderByComparator, boolean previous)
           
protected  User getByCompanyId_PrevAndNext(Session session, User user, long companyId, OrderByComparator orderByComparator, boolean previous)
           
protected  User getByEmailAddress_PrevAndNext(Session session, User user, String emailAddress, OrderByComparator orderByComparator, boolean previous)
           
protected  User getByUuid_PrevAndNext(Session session, User user, String uuid, OrderByComparator orderByComparator, boolean previous)
           
 List<Group> getGroups(long pk)
          Gets all the groups associated with the user.
 List<Group> getGroups(long pk, int start, int end)
          Gets a range of all the groups associated with the user.
 List<Group> getGroups(long pk, int start, int end, OrderByComparator orderByComparator)
          Gets an ordered range of all the groups associated with the user.
 int getGroupsSize(long pk)
          Gets the number of groups associated with the user.
 List<Organization> getOrganizations(long pk)
          Gets all the organizations associated with the user.
 List<Organization> getOrganizations(long pk, int start, int end)
          Gets a range of all the organizations associated with the user.
 List<Organization> getOrganizations(long pk, int start, int end, OrderByComparator orderByComparator)
          Gets an ordered range of all the organizations associated with the user.
 int getOrganizationsSize(long pk)
          Gets the number of organizations associated with the user.
 List<Permission> getPermissions(long pk)
          Gets all the permissions associated with the user.
 List<Permission> getPermissions(long pk, int start, int end)
          Gets a range of all the permissions associated with the user.
 List<Permission> getPermissions(long pk, int start, int end, OrderByComparator orderByComparator)
          Gets an ordered range of all the permissions associated with the user.
 int getPermissionsSize(long pk)
          Gets the number of permissions associated with the user.
 List<Role> getRoles(long pk)
          Gets all the roles associated with the user.
 List<Role> getRoles(long pk, int start, int end)
          Gets a range of all the roles associated with the user.
 List<Role> getRoles(long pk, int start, int end, OrderByComparator orderByComparator)
          Gets an ordered range of all the roles associated with the user.
 int getRolesSize(long pk)
          Gets the number of roles associated with the user.
 List<Team> getTeams(long pk)
          Gets all the teams associated with the user.
 List<Team> getTeams(long pk, int start, int end)
          Gets a range of all the teams associated with the user.
 List<Team> getTeams(long pk, int start, int end, OrderByComparator orderByComparator)
          Gets an ordered range of all the teams associated with the user.
 int getTeamsSize(long pk)
          Gets the number of teams associated with the user.
 List<UserGroup> getUserGroups(long pk)
          Gets all the user groups associated with the user.
 List<UserGroup> getUserGroups(long pk, int start, int end)
          Gets a range of all the user groups associated with the user.
 List<UserGroup> getUserGroups(long pk, int start, int end, OrderByComparator orderByComparator)
          Gets an ordered range of all the user groups associated with the user.
 int getUserGroupsSize(long pk)
          Gets 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_A(long companyId, boolean active)
          Removes all the users where companyId = ? and active = ? from the database.
 void removeByC_DU(long companyId, boolean defaultUser)
          Removes the user where companyId = ? and defaultUser = ? from the database.
 void removeByC_EA(long companyId, String emailAddress)
          Removes the user where companyId = ? and emailAddress = ? from the database.
 void removeByC_FID(long companyId, long facebookId)
          Removes the user where companyId = ? and facebookId = ? from the database.
 void removeByC_O(long companyId, String openId)
          Removes the user where companyId = ? and openId = ? from the database.
 void removeByC_SN(long companyId, String screenName)
          Removes the user where companyId = ? and screenName = ? from the database.
 void 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.
 void removeByContactId(long contactId)
          Removes the user where contactId = ? from the database.
 void removeByEmailAddress(String emailAddress)
          Removes all the users where emailAddress = ? from the database.
 void removeByPortraitId(long portraitId)
          Removes the user where portraitId = ? 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 removePermission(long pk, long permissionPK)
          Removes the association between the user and the permission.
 void removePermission(long pk, Permission permission)
          Removes the association between the user and the permission.
 void removePermissions(long pk, List<Permission> permissions)
          Removes the association between the user and the permissions.
 void removePermissions(long pk, long[] permissionPKs)
          Removes the association between the user and the permissions.
 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 setPermissions(long pk, List<Permission> permissions)
          Sets the permissions associated with the user, removing and adding associations as necessary.
 void setPermissions(long pk, long[] permissionPKs)
          Sets the permissions 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, boolean merge)
          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, closeSession, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getDialect, getListeners, openNewSession, openSession, processException, registerListener, remove, setDataSource, setSessionFactory, unregisterListener, update, update
 
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
countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, registerListener, remove, setDataSource, unregisterListener, update, update
 

Field Detail

FINDER_CLASS_NAME_ENTITY

public static final String FINDER_CLASS_NAME_ENTITY

FINDER_CLASS_NAME_LIST

public static final String FINDER_CLASS_NAME_LIST

FINDER_PATH_FIND_BY_UUID

public static final FinderPath FINDER_PATH_FIND_BY_UUID

FINDER_PATH_COUNT_BY_UUID

public static final FinderPath FINDER_PATH_COUNT_BY_UUID

FINDER_PATH_FIND_BY_COMPANYID

public static final FinderPath FINDER_PATH_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_FIND_BY_EMAILADDRESS

public static final FinderPath FINDER_PATH_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_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_FIND_BY_C_A

public static final FinderPath FINDER_PATH_FIND_BY_C_A

FINDER_PATH_COUNT_BY_C_A

public static final FinderPath FINDER_PATH_COUNT_BY_C_A

FINDER_PATH_FIND_ALL

public static final FinderPath FINDER_PATH_FIND_ALL

FINDER_PATH_COUNT_ALL

public static final FinderPath FINDER_PATH_COUNT_ALL

FINDER_PATH_GET_GROUPS

public static final FinderPath FINDER_PATH_GET_GROUPS

FINDER_PATH_GET_GROUPS_SIZE

public static final FinderPath FINDER_PATH_GET_GROUPS_SIZE

FINDER_PATH_CONTAINS_GROUP

public static final FinderPath FINDER_PATH_CONTAINS_GROUP

FINDER_PATH_GET_ORGANIZATIONS

public static final FinderPath FINDER_PATH_GET_ORGANIZATIONS

FINDER_PATH_GET_ORGANIZATIONS_SIZE

public static final FinderPath FINDER_PATH_GET_ORGANIZATIONS_SIZE

FINDER_PATH_CONTAINS_ORGANIZATION

public static final FinderPath FINDER_PATH_CONTAINS_ORGANIZATION

FINDER_PATH_GET_PERMISSIONS

public static final FinderPath FINDER_PATH_GET_PERMISSIONS

FINDER_PATH_GET_PERMISSIONS_SIZE

public static final FinderPath FINDER_PATH_GET_PERMISSIONS_SIZE

FINDER_PATH_CONTAINS_PERMISSION

public static final FinderPath FINDER_PATH_CONTAINS_PERMISSION

FINDER_PATH_GET_ROLES

public static final FinderPath FINDER_PATH_GET_ROLES

FINDER_PATH_GET_ROLES_SIZE

public static final FinderPath FINDER_PATH_GET_ROLES_SIZE

FINDER_PATH_CONTAINS_ROLE

public static final FinderPath FINDER_PATH_CONTAINS_ROLE

FINDER_PATH_GET_TEAMS

public static final FinderPath FINDER_PATH_GET_TEAMS

FINDER_PATH_GET_TEAMS_SIZE

public static final FinderPath FINDER_PATH_GET_TEAMS_SIZE

FINDER_PATH_CONTAINS_TEAM

public static final FinderPath FINDER_PATH_CONTAINS_TEAM

FINDER_PATH_GET_USERGROUPS

public static final FinderPath FINDER_PATH_GET_USERGROUPS

FINDER_PATH_GET_USERGROUPS_SIZE

public static final FinderPath FINDER_PATH_GET_USERGROUPS_SIZE

FINDER_PATH_CONTAINS_USERGROUP

public static final FinderPath FINDER_PATH_CONTAINS_USERGROUP

accountPersistence

@BeanReference(type=AccountPersistence.class)
protected AccountPersistence accountPersistence

addressPersistence

@BeanReference(type=AddressPersistence.class)
protected AddressPersistence addressPersistence

browserTrackerPersistence

@BeanReference(type=BrowserTrackerPersistence.class)
protected BrowserTrackerPersistence browserTrackerPersistence

classNamePersistence

@BeanReference(type=ClassNamePersistence.class)
protected ClassNamePersistence classNamePersistence

clusterGroupPersistence

@BeanReference(type=ClusterGroupPersistence.class)
protected ClusterGroupPersistence clusterGroupPersistence

companyPersistence

@BeanReference(type=CompanyPersistence.class)
protected CompanyPersistence companyPersistence

contactPersistence

@BeanReference(type=ContactPersistence.class)
protected ContactPersistence contactPersistence

countryPersistence

@BeanReference(type=CountryPersistence.class)
protected CountryPersistence countryPersistence

emailAddressPersistence

@BeanReference(type=EmailAddressPersistence.class)
protected EmailAddressPersistence emailAddressPersistence

groupPersistence

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

imagePersistence

@BeanReference(type=ImagePersistence.class)
protected ImagePersistence imagePersistence

layoutPersistence

@BeanReference(type=LayoutPersistence.class)
protected LayoutPersistence layoutPersistence

layoutPrototypePersistence

@BeanReference(type=LayoutPrototypePersistence.class)
protected LayoutPrototypePersistence layoutPrototypePersistence

layoutSetPersistence

@BeanReference(type=LayoutSetPersistence.class)
protected LayoutSetPersistence layoutSetPersistence

layoutSetPrototypePersistence

@BeanReference(type=LayoutSetPrototypePersistence.class)
protected LayoutSetPrototypePersistence layoutSetPrototypePersistence

listTypePersistence

@BeanReference(type=ListTypePersistence.class)
protected ListTypePersistence listTypePersistence

lockPersistence

@BeanReference(type=LockPersistence.class)
protected LockPersistence lockPersistence

membershipRequestPersistence

@BeanReference(type=MembershipRequestPersistence.class)
protected MembershipRequestPersistence membershipRequestPersistence

organizationPersistence

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

orgGroupPermissionPersistence

@BeanReference(type=OrgGroupPermissionPersistence.class)
protected OrgGroupPermissionPersistence orgGroupPermissionPersistence

orgGroupRolePersistence

@BeanReference(type=OrgGroupRolePersistence.class)
protected OrgGroupRolePersistence orgGroupRolePersistence

orgLaborPersistence

@BeanReference(type=OrgLaborPersistence.class)
protected OrgLaborPersistence orgLaborPersistence

passwordPolicyPersistence

@BeanReference(type=PasswordPolicyPersistence.class)
protected PasswordPolicyPersistence passwordPolicyPersistence

passwordPolicyRelPersistence

@BeanReference(type=PasswordPolicyRelPersistence.class)
protected PasswordPolicyRelPersistence passwordPolicyRelPersistence

passwordTrackerPersistence

@BeanReference(type=PasswordTrackerPersistence.class)
protected PasswordTrackerPersistence passwordTrackerPersistence

permissionPersistence

@BeanReference(type=PermissionPersistence.class)
protected PermissionPersistence permissionPersistence

phonePersistence

@BeanReference(type=PhonePersistence.class)
protected PhonePersistence phonePersistence

pluginSettingPersistence

@BeanReference(type=PluginSettingPersistence.class)
protected PluginSettingPersistence pluginSettingPersistence

portletPersistence

@BeanReference(type=PortletPersistence.class)
protected PortletPersistence portletPersistence

portletItemPersistence

@BeanReference(type=PortletItemPersistence.class)
protected PortletItemPersistence portletItemPersistence

portletPreferencesPersistence

@BeanReference(type=PortletPreferencesPersistence.class)
protected PortletPreferencesPersistence portletPreferencesPersistence

regionPersistence

@BeanReference(type=RegionPersistence.class)
protected RegionPersistence regionPersistence

releasePersistence

@BeanReference(type=ReleasePersistence.class)
protected ReleasePersistence releasePersistence

resourcePersistence

@BeanReference(type=ResourcePersistence.class)
protected ResourcePersistence resourcePersistence

resourceActionPersistence

@BeanReference(type=ResourceActionPersistence.class)
protected ResourceActionPersistence resourceActionPersistence

resourceCodePersistence

@BeanReference(type=ResourceCodePersistence.class)
protected ResourceCodePersistence resourceCodePersistence

resourcePermissionPersistence

@BeanReference(type=ResourcePermissionPersistence.class)
protected ResourcePermissionPersistence resourcePermissionPersistence

rolePersistence

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

serviceComponentPersistence

@BeanReference(type=ServiceComponentPersistence.class)
protected ServiceComponentPersistence serviceComponentPersistence

shardPersistence

@BeanReference(type=ShardPersistence.class)
protected ShardPersistence shardPersistence

subscriptionPersistence

@BeanReference(type=SubscriptionPersistence.class)
protected SubscriptionPersistence subscriptionPersistence

ticketPersistence

@BeanReference(type=TicketPersistence.class)
protected TicketPersistence ticketPersistence

teamPersistence

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

userPersistence

@BeanReference(type=UserPersistence.class)
protected UserPersistence userPersistence

userGroupPersistence

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

userGroupGroupRolePersistence

@BeanReference(type=UserGroupGroupRolePersistence.class)
protected UserGroupGroupRolePersistence userGroupGroupRolePersistence

userGroupRolePersistence

@BeanReference(type=UserGroupRolePersistence.class)
protected UserGroupRolePersistence userGroupRolePersistence

userIdMapperPersistence

@BeanReference(type=UserIdMapperPersistence.class)
protected UserIdMapperPersistence userIdMapperPersistence

userTrackerPersistence

@BeanReference(type=UserTrackerPersistence.class)
protected UserTrackerPersistence userTrackerPersistence

userTrackerPathPersistence

@BeanReference(type=UserTrackerPathPersistence.class)
protected UserTrackerPathPersistence userTrackerPathPersistence

webDAVPropsPersistence

@BeanReference(type=WebDAVPropsPersistence.class)
protected WebDAVPropsPersistence webDAVPropsPersistence

websitePersistence

@BeanReference(type=WebsitePersistence.class)
protected WebsitePersistence websitePersistence

workflowDefinitionLinkPersistence

@BeanReference(type=WorkflowDefinitionLinkPersistence.class)
protected WorkflowDefinitionLinkPersistence workflowDefinitionLinkPersistence

workflowInstanceLinkPersistence

@BeanReference(type=WorkflowInstanceLinkPersistence.class)
protected WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence

announcementsDeliveryPersistence

@BeanReference(type=AnnouncementsDeliveryPersistence.class)
protected AnnouncementsDeliveryPersistence announcementsDeliveryPersistence

assetEntryPersistence

@BeanReference(type=AssetEntryPersistence.class)
protected AssetEntryPersistence assetEntryPersistence

blogsStatsUserPersistence

@BeanReference(type=BlogsStatsUserPersistence.class)
protected BlogsStatsUserPersistence blogsStatsUserPersistence

dlFileRankPersistence

@BeanReference(type=DLFileRankPersistence.class)
protected DLFileRankPersistence dlFileRankPersistence

expandoValuePersistence

@BeanReference(type=ExpandoValuePersistence.class)
protected ExpandoValuePersistence expandoValuePersistence

mbBanPersistence

@BeanReference(type=MBBanPersistence.class)
protected MBBanPersistence mbBanPersistence

mbMessagePersistence

@BeanReference(type=MBMessagePersistence.class)
protected MBMessagePersistence mbMessagePersistence

mbMessageFlagPersistence

@BeanReference(type=MBMessageFlagPersistence.class)
protected MBMessageFlagPersistence mbMessageFlagPersistence

mbStatsUserPersistence

@BeanReference(type=MBStatsUserPersistence.class)
protected MBStatsUserPersistence mbStatsUserPersistence

shoppingCartPersistence

@BeanReference(type=ShoppingCartPersistence.class)
protected ShoppingCartPersistence shoppingCartPersistence

socialActivityPersistence

@BeanReference(type=SocialActivityPersistence.class)
protected SocialActivityPersistence socialActivityPersistence

socialRequestPersistence

@BeanReference(type=SocialRequestPersistence.class)
protected SocialRequestPersistence socialRequestPersistence

containsGroup

protected UserPersistenceImpl.ContainsGroup containsGroup

addGroup

protected UserPersistenceImpl.AddGroup addGroup

clearGroups

protected UserPersistenceImpl.ClearGroups clearGroups

removeGroup

protected UserPersistenceImpl.RemoveGroup removeGroup

containsOrganization

protected UserPersistenceImpl.ContainsOrganization containsOrganization

addOrganization

protected UserPersistenceImpl.AddOrganization addOrganization

clearOrganizations

protected UserPersistenceImpl.ClearOrganizations clearOrganizations

removeOrganization

protected UserPersistenceImpl.RemoveOrganization removeOrganization

containsPermission

protected UserPersistenceImpl.ContainsPermission containsPermission

addPermission

protected UserPersistenceImpl.AddPermission addPermission

clearPermissions

protected UserPersistenceImpl.ClearPermissions clearPermissions

removePermission

protected UserPersistenceImpl.RemovePermission removePermission

containsRole

protected UserPersistenceImpl.ContainsRole containsRole

addRole

protected UserPersistenceImpl.AddRole addRole

clearRoles

protected UserPersistenceImpl.ClearRoles clearRoles

removeRole

protected UserPersistenceImpl.RemoveRole removeRole

containsTeam

protected UserPersistenceImpl.ContainsTeam containsTeam

addTeam

protected UserPersistenceImpl.AddTeam addTeam

clearTeams

protected UserPersistenceImpl.ClearTeams clearTeams

removeTeam

protected UserPersistenceImpl.RemoveTeam removeTeam

containsUserGroup

protected UserPersistenceImpl.ContainsUserGroup containsUserGroup

addUserGroup

protected UserPersistenceImpl.AddUserGroup addUserGroup

clearUserGroups

protected UserPersistenceImpl.ClearUserGroups clearUserGroups

removeUserGroup

protected UserPersistenceImpl.RemoveUserGroup removeUserGroup
Constructor Detail

UserPersistenceImpl

public UserPersistenceImpl()
Method Detail

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 to cache

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 to cache

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

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(Serializable primaryKey)
            throws NoSuchModelException,
                   SystemException
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 to remove
Returns:
the user that was removed
Throws:
NoSuchModelException - if a user with the primary key could not be found
SystemException - if a system exception occurred

remove

public User remove(long userId)
            throws NoSuchUserException,
                   SystemException
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 to remove
Returns:
the user that was removed
Throws:
NoSuchUserException - if a user with the primary key could not be found
SystemException - if a system exception occurred

removeImpl

protected User removeImpl(User user)
                   throws SystemException
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
Throws:
SystemException - if a system exception occurred

updateImpl

public User updateImpl(User user,
                       boolean merge)
                throws SystemException
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
merge - whether to merge the model instance with the current session. See BatchSession.update( com.liferay.portal.kernel.dao.orm.Session, BaseModel, boolean) for an explanation.
Returns:
the model instance that was updated
Throws:
SystemException - if a system exception occurred

toUnwrappedModel

protected User toUnwrappedModel(User user)

findByPrimaryKey

public User findByPrimaryKey(Serializable primaryKey)
                      throws NoSuchModelException,
                             SystemException
Finds 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 to find
Returns:
the user
Throws:
NoSuchModelException - if a user with the primary key could not be found
SystemException - if a system exception occurred

findByPrimaryKey

public User findByPrimaryKey(long userId)
                      throws NoSuchUserException,
                             SystemException
Finds 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 to find
Returns:
the user
Throws:
NoSuchUserException - if a user with the primary key could not be found
SystemException - if a system exception occurred

fetchByPrimaryKey

public User fetchByPrimaryKey(Serializable primaryKey)
                       throws SystemException
Finds 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 to find
Returns:
the user, or null if a user with the primary key could not be found
Throws:
SystemException - if a system exception occurred

fetchByPrimaryKey

public User fetchByPrimaryKey(long userId)
                       throws SystemException
Finds 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 to find
Returns:
the user, or null if a user with the primary key could not be found
Throws:
SystemException - if a system exception occurred

findByUuid

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

Specified by:
findByUuid in interface UserPersistence
Parameters:
uuid - the uuid to search with
Returns:
the matching users
Throws:
SystemException - if a system exception occurred

findByUuid

public List<User> findByUuid(String uuid,
                             int start,
                             int end)
                      throws SystemException
Finds 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.

Specified by:
findByUuid in interface UserPersistence
Parameters:
uuid - the uuid to search with
start - the lower bound of the range of users to return
end - the upper bound of the range of users to return (not inclusive)
Returns:
the range of matching users
Throws:
SystemException - if a system exception occurred

findByUuid

public List<User> findByUuid(String uuid,
                             int start,
                             int end,
                             OrderByComparator orderByComparator)
                      throws SystemException
Finds 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.

Specified by:
findByUuid in interface UserPersistence
Parameters:
uuid - the uuid to search with
start - the lower bound of the range of users to return
end - the upper bound of the range of users to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching users
Throws:
SystemException - if a system exception occurred

findByUuid_First

public User findByUuid_First(String uuid,
                             OrderByComparator orderByComparator)
                      throws NoSuchUserException,
                             SystemException
Finds the first user in the ordered set 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.

Specified by:
findByUuid_First in interface UserPersistence
Parameters:
uuid - the uuid to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching user
Throws:
NoSuchUserException - if a matching user could not be found
SystemException - if a system exception occurred

findByUuid_Last

public User findByUuid_Last(String uuid,
                            OrderByComparator orderByComparator)
                     throws NoSuchUserException,
                            SystemException
Finds the last user in the ordered set 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.

Specified by:
findByUuid_Last in interface UserPersistence
Parameters:
uuid - the uuid to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching user
Throws:
NoSuchUserException - if a matching user could not be found
SystemException - if a system exception occurred

findByUuid_PrevAndNext

public User[] findByUuid_PrevAndNext(long userId,
                                     String uuid,
                                     OrderByComparator orderByComparator)
                              throws NoSuchUserException,
                                     SystemException
Finds the users before and after the current user in the ordered set 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.

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

getByUuid_PrevAndNext

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

findByCompanyId

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

Specified by:
findByCompanyId in interface UserPersistence
Parameters:
companyId - the company id to search with
Returns:
the matching users
Throws:
SystemException - if a system exception occurred

findByCompanyId

public List<User> findByCompanyId(long companyId,
                                  int start,
                                  int end)
                           throws SystemException
Finds 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.

Specified by:
findByCompanyId in interface UserPersistence
Parameters:
companyId - the company id to search with
start - the lower bound of the range of users to return
end - the upper bound of the range of users to return (not inclusive)
Returns:
the range of matching users
Throws:
SystemException - if a system exception occurred

findByCompanyId

public List<User> findByCompanyId(long companyId,
                                  int start,
                                  int end,
                                  OrderByComparator orderByComparator)
                           throws SystemException
Finds 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.

Specified by:
findByCompanyId in interface UserPersistence
Parameters:
companyId - the company id to search with
start - the lower bound of the range of users to return
end - the upper bound of the range of users to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching users
Throws:
SystemException - if a system exception occurred

findByCompanyId_First

public User findByCompanyId_First(long companyId,
                                  OrderByComparator orderByComparator)
                           throws NoSuchUserException,
                                  SystemException
Finds the first user in the ordered set 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.

Specified by:
findByCompanyId_First in interface UserPersistence
Parameters:
companyId - the company id to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching user
Throws:
NoSuchUserException - if a matching user could not be found
SystemException - if a system exception occurred

findByCompanyId_Last

public User findByCompanyId_Last(long companyId,
                                 OrderByComparator orderByComparator)
                          throws NoSuchUserException,
                                 SystemException
Finds the last user in the ordered set 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.

Specified by:
findByCompanyId_Last in interface UserPersistence
Parameters:
companyId - the company id to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching user
Throws:
NoSuchUserException - if a matching user could not be found
SystemException - if a system exception occurred

findByCompanyId_PrevAndNext

public User[] findByCompanyId_PrevAndNext(long userId,
                                          long companyId,
                                          OrderByComparator orderByComparator)
                                   throws NoSuchUserException,
                                          SystemException
Finds the users before and after the current user in the ordered set 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.

Specified by:
findByCompanyId_PrevAndNext in interface UserPersistence
Parameters:
userId - the primary key of the current user
companyId - the company id to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next user
Throws:
NoSuchUserException - if a user with the primary key could not be found
SystemException - if a system exception occurred

getByCompanyId_PrevAndNext

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

findByContactId

public User findByContactId(long contactId)
                     throws NoSuchUserException,
                            SystemException
Finds 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 to search with
Returns:
the matching user
Throws:
NoSuchUserException - if a matching user could not be found
SystemException - if a system exception occurred

fetchByContactId

public User fetchByContactId(long contactId)
                      throws SystemException
Finds 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 to search with
Returns:
the matching user, or null if a matching user could not be found
Throws:
SystemException - if a system exception occurred

fetchByContactId

public User fetchByContactId(long contactId,
                             boolean retrieveFromCache)
                      throws SystemException
Finds 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 to search with
Returns:
the matching user, or null if a matching user could not be found
Throws:
SystemException - if a system exception occurred

findByEmailAddress

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

Specified by:
findByEmailAddress in interface UserPersistence
Parameters:
emailAddress - the email address to search with
Returns:
the matching users
Throws:
SystemException - if a system exception occurred

findByEmailAddress

public List<User> findByEmailAddress(String emailAddress,
                                     int start,
                                     int end)
                              throws SystemException
Finds 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.

Specified by:
findByEmailAddress in interface UserPersistence
Parameters:
emailAddress - the email address to search with
start - the lower bound of the range of users to return
end - the upper bound of the range of users to return (not inclusive)
Returns:
the range of matching users
Throws:
SystemException - if a system exception occurred

findByEmailAddress

public List<User> findByEmailAddress(String emailAddress,
                                     int start,
                                     int end,
                                     OrderByComparator orderByComparator)
                              throws SystemException
Finds 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.

Specified by:
findByEmailAddress in interface UserPersistence
Parameters:
emailAddress - the email address to search with
start - the lower bound of the range of users to return
end - the upper bound of the range of users to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching users
Throws:
SystemException - if a system exception occurred

findByEmailAddress_First

public User findByEmailAddress_First(String emailAddress,
                                     OrderByComparator orderByComparator)
                              throws NoSuchUserException,
                                     SystemException
Finds the first user in the ordered set 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.

Specified by:
findByEmailAddress_First in interface UserPersistence
Parameters:
emailAddress - the email address to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching user
Throws:
NoSuchUserException - if a matching user could not be found
SystemException - if a system exception occurred

findByEmailAddress_Last

public User findByEmailAddress_Last(String emailAddress,
                                    OrderByComparator orderByComparator)
                             throws NoSuchUserException,
                                    SystemException
Finds the last user in the ordered set 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.

Specified by:
findByEmailAddress_Last in interface UserPersistence
Parameters:
emailAddress - the email address to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching user
Throws:
NoSuchUserException - if a matching user could not be found
SystemException - if a system exception occurred

findByEmailAddress_PrevAndNext

public User[] findByEmailAddress_PrevAndNext(long userId,
                                             String emailAddress,
                                             OrderByComparator orderByComparator)
                                      throws NoSuchUserException,
                                             SystemException
Finds the users before and after the current user in the ordered set 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.

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

getByEmailAddress_PrevAndNext

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

findByPortraitId

public User findByPortraitId(long portraitId)
                      throws NoSuchUserException,
                             SystemException
Finds 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 to search with
Returns:
the matching user
Throws:
NoSuchUserException - if a matching user could not be found
SystemException - if a system exception occurred

fetchByPortraitId

public User fetchByPortraitId(long portraitId)
                       throws SystemException
Finds 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 to search with
Returns:
the matching user, or null if a matching user could not be found
Throws:
SystemException - if a system exception occurred

fetchByPortraitId

public User fetchByPortraitId(long portraitId,
                              boolean retrieveFromCache)
                       throws SystemException
Finds 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 to search with
Returns:
the matching user, or null if a matching user could not be found
Throws:
SystemException - if a system exception occurred

findByC_U

public User findByC_U(long companyId,
                      long userId)
               throws NoSuchUserException,
                      SystemException
Finds 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 to search with
userId - the user id to search with
Returns:
the matching user
Throws:
NoSuchUserException - if a matching user could not be found
SystemException - if a system exception occurred

fetchByC_U

public User fetchByC_U(long companyId,
                       long userId)
                throws SystemException
Finds 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 to search with
userId - the user id to search with
Returns:
the matching user, or null if a matching user could not be found
Throws:
SystemException - if a system exception occurred

fetchByC_U

public User fetchByC_U(long companyId,
                       long userId,
                       boolean retrieveFromCache)
                throws SystemException
Finds 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 to search with
userId - the user id to search with
Returns:
the matching user, or null if a matching user could not be found
Throws:
SystemException - if a system exception occurred

findByC_DU

public User findByC_DU(long companyId,
                       boolean defaultUser)
                throws NoSuchUserException,
                       SystemException
Finds 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 to search with
defaultUser - the default user to search with
Returns:
the matching user
Throws:
NoSuchUserException - if a matching user could not be found
SystemException - if a system exception occurred

fetchByC_DU

public User fetchByC_DU(long companyId,
                        boolean defaultUser)
                 throws SystemException
Finds 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 to search with
defaultUser - the default user to search with
Returns:
the matching user, or null if a matching user could not be found
Throws:
SystemException - if a system exception occurred

fetchByC_DU

public User fetchByC_DU(long companyId,
                        boolean defaultUser,
                        boolean retrieveFromCache)
                 throws SystemException
Finds 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 to search with
defaultUser - the default user to search with
Returns:
the matching user, or null if a matching user could not be found
Throws:
SystemException - if a system exception occurred

findByC_SN

public User findByC_SN(long companyId,
                       String screenName)
                throws NoSuchUserException,
                       SystemException
Finds 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 to search with
screenName - the screen name to search with
Returns:
the matching user
Throws:
NoSuchUserException - if a matching user could not be found
SystemException - if a system exception occurred

fetchByC_SN

public User fetchByC_SN(long companyId,
                        String screenName)
                 throws SystemException
Finds 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 to search with
screenName - the screen name to search with
Returns:
the matching user, or null if a matching user could not be found
Throws:
SystemException - if a system exception occurred

fetchByC_SN

public User fetchByC_SN(long companyId,
                        String screenName,
                        boolean retrieveFromCache)
                 throws SystemException
Finds 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 to search with
screenName - the screen name to search with
Returns:
the matching user, or null if a matching user could not be found
Throws:
SystemException - if a system exception occurred

findByC_EA

public User findByC_EA(long companyId,
                       String emailAddress)
                throws NoSuchUserException,
                       SystemException
Finds 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 to search with
emailAddress - the email address to search with
Returns:
the matching user
Throws:
NoSuchUserException - if a matching user could not be found
SystemException - if a system exception occurred

fetchByC_EA

public User fetchByC_EA(long companyId,
                        String emailAddress)
                 throws SystemException
Finds 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 to search with
emailAddress - the email address to search with
Returns:
the matching user, or null if a matching user could not be found
Throws:
SystemException - if a system exception occurred

fetchByC_EA

public User fetchByC_EA(long companyId,
                        String emailAddress,
                        boolean retrieveFromCache)
                 throws SystemException
Finds 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 to search with
emailAddress - the email address to search with
Returns:
the matching user, or null if a matching user could not be found
Throws:
SystemException - if a system exception occurred

findByC_FID

public User findByC_FID(long companyId,
                        long facebookId)
                 throws NoSuchUserException,
                        SystemException
Finds 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 to search with
facebookId - the facebook id to search with
Returns:
the matching user
Throws:
NoSuchUserException - if a matching user could not be found
SystemException - if a system exception occurred

fetchByC_FID

public User fetchByC_FID(long companyId,
                         long facebookId)
                  throws SystemException
Finds 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 to search with
facebookId - the facebook id to search with
Returns:
the matching user, or null if a matching user could not be found
Throws:
SystemException - if a system exception occurred

fetchByC_FID

public User fetchByC_FID(long companyId,
                         long facebookId,
                         boolean retrieveFromCache)
                  throws SystemException
Finds 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 to search with
facebookId - the facebook id to search with
Returns:
the matching user, or null if a matching user could not be found
Throws:
SystemException - if a system exception occurred

findByC_O

public User findByC_O(long companyId,
                      String openId)
               throws NoSuchUserException,
                      SystemException
Finds 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 to search with
openId - the open id to search with
Returns:
the matching user
Throws:
NoSuchUserException - if a matching user could not be found
SystemException - if a system exception occurred

fetchByC_O

public User fetchByC_O(long companyId,
                       String openId)
                throws SystemException
Finds 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 to search with
openId - the open id to search with
Returns:
the matching user, or null if a matching user could not be found
Throws:
SystemException - if a system exception occurred

fetchByC_O

public User fetchByC_O(long companyId,
                       String openId,
                       boolean retrieveFromCache)
                throws SystemException
Finds 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 to search with
openId - the open id to search with
Returns:
the matching user, or null if a matching user could not be found
Throws:
SystemException - if a system exception occurred

findByC_A

public List<User> findByC_A(long companyId,
                            boolean active)
                     throws SystemException
Finds all the users where companyId = ? and active = ?.

Specified by:
findByC_A in interface UserPersistence
Parameters:
companyId - the company id to search with
active - the active to search with
Returns:
the matching users
Throws:
SystemException - if a system exception occurred

findByC_A

public List<User> findByC_A(long companyId,
                            boolean active,
                            int start,
                            int end)
                     throws SystemException
Finds a range of all the users where companyId = ? and active = ?.

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.

Specified by:
findByC_A in interface UserPersistence
Parameters:
companyId - the company id to search with
active - the active to search with
start - the lower bound of the range of users to return
end - the upper bound of the range of users to return (not inclusive)
Returns:
the range of matching users
Throws:
SystemException - if a system exception occurred

findByC_A

public List<User> findByC_A(long companyId,
                            boolean active,
                            int start,
                            int end,
                            OrderByComparator orderByComparator)
                     throws SystemException
Finds an ordered range of all the users where companyId = ? and active = ?.

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.

Specified by:
findByC_A in interface UserPersistence
Parameters:
companyId - the company id to search with
active - the active to search with
start - the lower bound of the range of users to return
end - the upper bound of the range of users to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching users
Throws:
SystemException - if a system exception occurred

findByC_A_First

public User findByC_A_First(long companyId,
                            boolean active,
                            OrderByComparator orderByComparator)
                     throws NoSuchUserException,
                            SystemException
Finds the first user in the ordered set where companyId = ? and active = ?.

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.

Specified by:
findByC_A_First in interface UserPersistence
Parameters:
companyId - the company id to search with
active - the active to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching user
Throws:
NoSuchUserException - if a matching user could not be found
SystemException - if a system exception occurred

findByC_A_Last

public User findByC_A_Last(long companyId,
                           boolean active,
                           OrderByComparator orderByComparator)
                    throws NoSuchUserException,
                           SystemException
Finds the last user in the ordered set where companyId = ? and active = ?.

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.

Specified by:
findByC_A_Last in interface UserPersistence
Parameters:
companyId - the company id to search with
active - the active to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching user
Throws:
NoSuchUserException - if a matching user could not be found
SystemException - if a system exception occurred

findByC_A_PrevAndNext

public User[] findByC_A_PrevAndNext(long userId,
                                    long companyId,
                                    boolean active,
                                    OrderByComparator orderByComparator)
                             throws NoSuchUserException,
                                    SystemException
Finds the users before and after the current user in the ordered set where companyId = ? and active = ?.

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.

Specified by:
findByC_A_PrevAndNext in interface UserPersistence
Parameters:
userId - the primary key of the current user
companyId - the company id to search with
active - the active to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next user
Throws:
NoSuchUserException - if a user with the primary key could not be found
SystemException - if a system exception occurred

getByC_A_PrevAndNext

protected User getByC_A_PrevAndNext(Session session,
                                    User user,
                                    long companyId,
                                    boolean active,
                                    OrderByComparator orderByComparator,
                                    boolean previous)

findAll

public List<User> findAll()
                   throws SystemException
Finds all the users.

Specified by:
findAll in interface UserPersistence
Returns:
the users
Throws:
SystemException - if a system exception occurred

findAll

public List<User> findAll(int start,
                          int end)
                   throws SystemException
Finds 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.

Specified by:
findAll in interface UserPersistence
Parameters:
start - the lower bound of the range of users to return
end - the upper bound of the range of users to return (not inclusive)
Returns:
the range of users
Throws:
SystemException - if a system exception occurred

findAll

public List<User> findAll(int start,
                          int end,
                          OrderByComparator orderByComparator)
                   throws SystemException
Finds 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.

Specified by:
findAll in interface UserPersistence
Parameters:
start - the lower bound of the range of users to return
end - the upper bound of the range of users to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of users
Throws:
SystemException - if a system exception occurred

removeByUuid

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

Specified by:
removeByUuid in interface UserPersistence
Parameters:
uuid - the uuid to search with
Throws:
SystemException - if a system exception occurred

removeByCompanyId

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

Specified by:
removeByCompanyId in interface UserPersistence
Parameters:
companyId - the company id to search with
Throws:
SystemException - if a system exception occurred

removeByContactId

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

Specified by:
removeByContactId in interface UserPersistence
Parameters:
contactId - the contact id to search with
Throws:
SystemException - if a system exception occurred
NoSuchUserException

removeByEmailAddress

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

Specified by:
removeByEmailAddress in interface UserPersistence
Parameters:
emailAddress - the email address to search with
Throws:
SystemException - if a system exception occurred

removeByPortraitId

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

Specified by:
removeByPortraitId in interface UserPersistence
Parameters:
portraitId - the portrait id to search with
Throws:
SystemException - if a system exception occurred
NoSuchUserException

removeByC_U

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

Specified by:
removeByC_U in interface UserPersistence
Parameters:
companyId - the company id to search with
userId - the user id to search with
Throws:
SystemException - if a system exception occurred
NoSuchUserException

removeByC_DU

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

Specified by:
removeByC_DU in interface UserPersistence
Parameters:
companyId - the company id to search with
defaultUser - the default user to search with
Throws:
SystemException - if a system exception occurred
NoSuchUserException

removeByC_SN

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

Specified by:
removeByC_SN in interface UserPersistence
Parameters:
companyId - the company id to search with
screenName - the screen name to search with
Throws:
SystemException - if a system exception occurred
NoSuchUserException

removeByC_EA

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

Specified by:
removeByC_EA in interface UserPersistence
Parameters:
companyId - the company id to search with
emailAddress - the email address to search with
Throws:
SystemException - if a system exception occurred
NoSuchUserException

removeByC_FID

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

Specified by:
removeByC_FID in interface UserPersistence
Parameters:
companyId - the company id to search with
facebookId - the facebook id to search with
Throws:
SystemException - if a system exception occurred
NoSuchUserException

removeByC_O

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

Specified by:
removeByC_O in interface UserPersistence
Parameters:
companyId - the company id to search with
openId - the open id to search with
Throws:
SystemException - if a system exception occurred
NoSuchUserException

removeByC_A

public void removeByC_A(long companyId,
                        boolean active)
                 throws SystemException
Removes all the users where companyId = ? and active = ? from the database.

Specified by:
removeByC_A in interface UserPersistence
Parameters:
companyId - the company id to search with
active - the active to search with
Throws:
SystemException - if a system exception occurred

removeAll

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

Specified by:
removeAll in interface UserPersistence
Throws:
SystemException - if a system exception occurred

countByUuid

public int countByUuid(String uuid)
                throws SystemException
Counts all the users where uuid = ?.

Specified by:
countByUuid in interface UserPersistence
Parameters:
uuid - the uuid to search with
Returns:
the number of matching users
Throws:
SystemException - if a system exception occurred

countByCompanyId

public int countByCompanyId(long companyId)
                     throws SystemException
Counts all the users where companyId = ?.

Specified by:
countByCompanyId in interface UserPersistence
Parameters:
companyId - the company id to search with
Returns:
the number of matching users
Throws:
SystemException - if a system exception occurred

countByContactId

public int countByContactId(long contactId)
                     throws SystemException
Counts all the users where contactId = ?.

Specified by:
countByContactId in interface UserPersistence
Parameters:
contactId - the contact id to search with
Returns:
the number of matching users
Throws:
SystemException - if a system exception occurred

countByEmailAddress

public int countByEmailAddress(String emailAddress)
                        throws SystemException
Counts all the users where emailAddress = ?.

Specified by:
countByEmailAddress in interface UserPersistence
Parameters:
emailAddress - the email address to search with
Returns:
the number of matching users
Throws:
SystemException - if a system exception occurred

countByPortraitId

public int countByPortraitId(long portraitId)
                      throws SystemException
Counts all the users where portraitId = ?.

Specified by:
countByPortraitId in interface UserPersistence
Parameters:
portraitId - the portrait id to search with
Returns:
the number of matching users
Throws:
SystemException - if a system exception occurred

countByC_U

public int countByC_U(long companyId,
                      long userId)
               throws SystemException
Counts all the users where companyId = ? and userId = ?.

Specified by:
countByC_U in interface UserPersistence
Parameters:
companyId - the company id to search with
userId - the user id to search with
Returns:
the number of matching users
Throws:
SystemException - if a system exception occurred

countByC_DU

public int countByC_DU(long companyId,
                       boolean defaultUser)
                throws SystemException
Counts all the users where companyId = ? and defaultUser = ?.

Specified by:
countByC_DU in interface UserPersistence
Parameters:
companyId - the company id to search with
defaultUser - the default user to search with
Returns:
the number of matching users
Throws:
SystemException - if a system exception occurred

countByC_SN

public int countByC_SN(long companyId,
                       String screenName)
                throws SystemException
Counts all the users where companyId = ? and screenName = ?.

Specified by:
countByC_SN in interface UserPersistence
Parameters:
companyId - the company id to search with
screenName - the screen name to search with
Returns:
the number of matching users
Throws:
SystemException - if a system exception occurred

countByC_EA

public int countByC_EA(long companyId,
                       String emailAddress)
                throws SystemException
Counts all the users where companyId = ? and emailAddress = ?.

Specified by:
countByC_EA in interface UserPersistence
Parameters:
companyId - the company id to search with
emailAddress - the email address to search with
Returns:
the number of matching users
Throws:
SystemException - if a system exception occurred

countByC_FID

public int countByC_FID(long companyId,
                        long facebookId)
                 throws SystemException
Counts all the users where companyId = ? and facebookId = ?.

Specified by:
countByC_FID in interface UserPersistence
Parameters:
companyId - the company id to search with
facebookId - the facebook id to search with
Returns:
the number of matching users
Throws:
SystemException - if a system exception occurred

countByC_O

public int countByC_O(long companyId,
                      String openId)
               throws SystemException
Counts all the users where companyId = ? and openId = ?.

Specified by:
countByC_O in interface UserPersistence
Parameters:
companyId - the company id to search with
openId - the open id to search with
Returns:
the number of matching users
Throws:
SystemException - if a system exception occurred

countByC_A

public int countByC_A(long companyId,
                      boolean active)
               throws SystemException
Counts all the users where companyId = ? and active = ?.

Specified by:
countByC_A in interface UserPersistence
Parameters:
companyId - the company id to search with
active - the active to search with
Returns:
the number of matching users
Throws:
SystemException - if a system exception occurred

countAll

public int countAll()
             throws SystemException
Counts all the users.

Specified by:
countAll in interface UserPersistence
Returns:
the number of users
Throws:
SystemException - if a system exception occurred

getGroups

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

Specified by:
getGroups in interface UserPersistence
Parameters:
pk - the primary key of the user to get the associated groups for
Returns:
the groups associated with the user
Throws:
SystemException - if a system exception occurred

getGroups

public List<Group> getGroups(long pk,
                             int start,
                             int end)
                      throws SystemException
Gets 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.

Specified by:
getGroups in interface UserPersistence
Parameters:
pk - the primary key of the user to get the associated groups for
start - the lower bound of the range of users to return
end - the upper bound of the range of users to return (not inclusive)
Returns:
the range of groups associated with the user
Throws:
SystemException - if a system exception occurred

getGroups

public List<Group> getGroups(long pk,
                             int start,
                             int end,
                             OrderByComparator orderByComparator)
                      throws SystemException
Gets 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.

Specified by:
getGroups in interface UserPersistence
Parameters:
pk - the primary key of the user to get the associated groups for
start - the lower bound of the range of users to return
end - the upper bound of the range of users to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of groups associated with the user
Throws:
SystemException - if a system exception occurred

getGroupsSize

public int getGroupsSize(long pk)
                  throws SystemException
Gets the number of groups associated with the user.

Specified by:
getGroupsSize in interface UserPersistence
Parameters:
pk - the primary key of the user to get the number of associated groups for
Returns:
the number of groups associated with the user
Throws:
SystemException - if a system exception occurred

containsGroup

public boolean containsGroup(long pk,
                             long groupPK)
                      throws SystemException
Determines whether 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:
whether the group is associated with the user
Throws:
SystemException - if a system exception occurred

containsGroups

public boolean containsGroups(long pk)
                       throws SystemException
Determines whether 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:
whether the user has any groups associated with it
Throws:
SystemException - if a system exception occurred

addGroup

public void addGroup(long pk,
                     long groupPK)
              throws SystemException
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
Throws:
SystemException - if a system exception occurred

addGroup

public void addGroup(long pk,
                     Group group)
              throws SystemException
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
Throws:
SystemException - if a system exception occurred

addGroups

public void addGroups(long pk,
                      long[] groupPKs)
               throws SystemException
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
Throws:
SystemException - if a system exception occurred

addGroups

public void addGroups(long pk,
                      List<Group> groups)
               throws SystemException
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
Throws:
SystemException - if a system exception occurred

clearGroups

public void clearGroups(long pk)
                 throws SystemException
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
Throws:
SystemException - if a system exception occurred

removeGroup

public void removeGroup(long pk,
                        long groupPK)
                 throws SystemException
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
Throws:
SystemException - if a system exception occurred

removeGroup

public void removeGroup(long pk,
                        Group group)
                 throws SystemException
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
Throws:
SystemException - if a system exception occurred

removeGroups

public void removeGroups(long pk,
                         long[] groupPKs)
                  throws SystemException
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
Throws:
SystemException - if a system exception occurred

removeGroups

public void removeGroups(long pk,
                         List<Group> groups)
                  throws SystemException
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
Throws:
SystemException - if a system exception occurred

setGroups

public void setGroups(long pk,
                      long[] groupPKs)
               throws SystemException
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 to set the associations for
groupPKs - the primary keys of the groups to be associated with the user
Throws:
SystemException - if a system exception occurred

setGroups

public void setGroups(long pk,
                      List<Group> groups)
               throws SystemException
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 to set the associations for
groups - the groups to be associated with the user
Throws:
SystemException - if a system exception occurred

getOrganizations

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

Specified by:
getOrganizations in interface UserPersistence
Parameters:
pk - the primary key of the user to get the associated organizations for
Returns:
the organizations associated with the user
Throws:
SystemException - if a system exception occurred

getOrganizations

public List<Organization> getOrganizations(long pk,
                                           int start,
                                           int end)
                                    throws SystemException
Gets 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.

Specified by:
getOrganizations in interface UserPersistence
Parameters:
pk - the primary key of the user to get the associated organizations for
start - the lower bound of the range of users to return
end - the upper bound of the range of users to return (not inclusive)
Returns:
the range of organizations associated with the user
Throws:
SystemException - if a system exception occurred

getOrganizations

public List<Organization> getOrganizations(long pk,
                                           int start,
                                           int end,
                                           OrderByComparator orderByComparator)
                                    throws SystemException
Gets 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.

Specified by:
getOrganizations in interface UserPersistence
Parameters:
pk - the primary key of the user to get the associated organizations for
start - the lower bound of the range of users to return
end - the upper bound of the range of users to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of organizations associated with the user
Throws:
SystemException - if a system exception occurred

getOrganizationsSize

public int getOrganizationsSize(long pk)
                         throws SystemException
Gets the number of organizations associated with the user.

Specified by:
getOrganizationsSize in interface UserPersistence
Parameters:
pk - the primary key of the user to get the number of associated organizations for
Returns:
the number of organizations associated with the user
Throws:
SystemException - if a system exception occurred

containsOrganization

public boolean containsOrganization(long pk,
                                    long organizationPK)
                             throws SystemException
Determines whether 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:
whether the organization is associated with the user
Throws:
SystemException - if a system exception occurred

containsOrganizations

public boolean containsOrganizations(long pk)
                              throws SystemException
Determines whether 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:
whether the user has any organizations associated with it
Throws:
SystemException - if a system exception occurred

addOrganization

public void addOrganization(long pk,
                            long organizationPK)
                     throws SystemException
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
Throws:
SystemException - if a system exception occurred

addOrganization

public void addOrganization(long pk,
                            Organization organization)
                     throws SystemException
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
Throws:
SystemException - if a system exception occurred

addOrganizations

public void addOrganizations(long pk,
                             long[] organizationPKs)
                      throws SystemException
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
Throws:
SystemException - if a system exception occurred

addOrganizations

public void addOrganizations(long pk,
                             List<Organization> organizations)
                      throws SystemException
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
Throws:
SystemException - if a system exception occurred

clearOrganizations

public void clearOrganizations(long pk)
                        throws SystemException
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
Throws:
SystemException - if a system exception occurred

removeOrganization

public void removeOrganization(long pk,
                               long organizationPK)
                        throws SystemException
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
Throws:
SystemException - if a system exception occurred

removeOrganization

public void removeOrganization(long pk,
                               Organization organization)
                        throws SystemException
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
Throws:
SystemException - if a system exception occurred

removeOrganizations

public void removeOrganizations(long pk,
                                long[] organizationPKs)
                         throws SystemException
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
Throws:
SystemException - if a system exception occurred

removeOrganizations

public void removeOrganizations(long pk,
                                List<Organization> organizations)
                         throws SystemException
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
Throws:
SystemException - if a system exception occurred

setOrganizations

public void setOrganizations(long pk,
                             long[] organizationPKs)
                      throws SystemException
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 to set the associations for
organizationPKs - the primary keys of the organizations to be associated with the user
Throws:
SystemException - if a system exception occurred

setOrganizations

public void setOrganizations(long pk,
                             List<Organization> organizations)
                      throws SystemException
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 to set the associations for
organizations - the organizations to be associated with the user
Throws:
SystemException - if a system exception occurred

getPermissions

public List<Permission> getPermissions(long pk)
                                throws SystemException
Gets all the permissions associated with the user.

Specified by:
getPermissions in interface UserPersistence
Parameters:
pk - the primary key of the user to get the associated permissions for
Returns:
the permissions associated with the user
Throws:
SystemException - if a system exception occurred

getPermissions

public List<Permission> getPermissions(long pk,
                                       int start,
                                       int end)
                                throws SystemException
Gets a range of all the permissions 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.

Specified by:
getPermissions in interface UserPersistence
Parameters:
pk - the primary key of the user to get the associated permissions for
start - the lower bound of the range of users to return
end - the upper bound of the range of users to return (not inclusive)
Returns:
the range of permissions associated with the user
Throws:
SystemException - if a system exception occurred

getPermissions

public List<Permission> getPermissions(long pk,
                                       int start,
                                       int end,
                                       OrderByComparator orderByComparator)
                                throws SystemException
Gets an ordered range of all the permissions 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.

Specified by:
getPermissions in interface UserPersistence
Parameters:
pk - the primary key of the user to get the associated permissions for
start - the lower bound of the range of users to return
end - the upper bound of the range of users to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of permissions associated with the user
Throws:
SystemException - if a system exception occurred

getPermissionsSize

public int getPermissionsSize(long pk)
                       throws SystemException
Gets the number of permissions associated with the user.

Specified by:
getPermissionsSize in interface UserPersistence
Parameters:
pk - the primary key of the user to get the number of associated permissions for
Returns:
the number of permissions associated with the user
Throws:
SystemException - if a system exception occurred

containsPermission

public boolean containsPermission(long pk,
                                  long permissionPK)
                           throws SystemException
Determines whether the permission is associated with the user.

Specified by:
containsPermission in interface UserPersistence
Parameters:
pk - the primary key of the user
permissionPK - the primary key of the permission
Returns:
whether the permission is associated with the user
Throws:
SystemException - if a system exception occurred

containsPermissions

public boolean containsPermissions(long pk)
                            throws SystemException
Determines whether the user has any permissions associated with it.

Specified by:
containsPermissions in interface UserPersistence
Parameters:
pk - the primary key of the user to check for associations with permissions
Returns:
whether the user has any permissions associated with it
Throws:
SystemException - if a system exception occurred

addPermission

public void addPermission(long pk,
                          long permissionPK)
                   throws SystemException
Adds an association between the user and the permission. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
addPermission in interface UserPersistence
Parameters:
pk - the primary key of the user
permissionPK - the primary key of the permission
Throws:
SystemException - if a system exception occurred

addPermission

public void addPermission(long pk,
                          Permission permission)
                   throws SystemException
Adds an association between the user and the permission. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
addPermission in interface UserPersistence
Parameters:
pk - the primary key of the user
permission - the permission
Throws:
SystemException - if a system exception occurred

addPermissions

public void addPermissions(long pk,
                           long[] permissionPKs)
                    throws SystemException
Adds an association between the user and the permissions. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
addPermissions in interface UserPersistence
Parameters:
pk - the primary key of the user
permissionPKs - the primary keys of the permissions
Throws:
SystemException - if a system exception occurred

addPermissions

public void addPermissions(long pk,
                           List<Permission> permissions)
                    throws SystemException
Adds an association between the user and the permissions. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
addPermissions in interface UserPersistence
Parameters:
pk - the primary key of the user
permissions - the permissions
Throws:
SystemException - if a system exception occurred

clearPermissions

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

Specified by:
clearPermissions in interface UserPersistence
Parameters:
pk - the primary key of the user to clear the associated permissions from
Throws:
SystemException - if a system exception occurred

removePermission

public void removePermission(long pk,
                             long permissionPK)
                      throws SystemException
Removes the association between the user and the permission. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
removePermission in interface UserPersistence
Parameters:
pk - the primary key of the user
permissionPK - the primary key of the permission
Throws:
SystemException - if a system exception occurred

removePermission

public void removePermission(long pk,
                             Permission permission)
                      throws SystemException
Removes the association between the user and the permission. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
removePermission in interface UserPersistence
Parameters:
pk - the primary key of the user
permission - the permission
Throws:
SystemException - if a system exception occurred

removePermissions

public void removePermissions(long pk,
                              long[] permissionPKs)
                       throws SystemException
Removes the association between the user and the permissions. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
removePermissions in interface UserPersistence
Parameters:
pk - the primary key of the user
permissionPKs - the primary keys of the permissions
Throws:
SystemException - if a system exception occurred

removePermissions

public void removePermissions(long pk,
                              List<Permission> permissions)
                       throws SystemException
Removes the association between the user and the permissions. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
removePermissions in interface UserPersistence
Parameters:
pk - the primary key of the user
permissions - the permissions
Throws:
SystemException - if a system exception occurred

setPermissions

public void setPermissions(long pk,
                           long[] permissionPKs)
                    throws SystemException
Sets the permissions 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:
setPermissions in interface UserPersistence
Parameters:
pk - the primary key of the user to set the associations for
permissionPKs - the primary keys of the permissions to be associated with the user
Throws:
SystemException - if a system exception occurred

setPermissions

public void setPermissions(long pk,
                           List<Permission> permissions)
                    throws SystemException
Sets the permissions 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:
setPermissions in interface UserPersistence
Parameters:
pk - the primary key of the user to set the associations for
permissions - the permissions to be associated with the user
Throws:
SystemException - if a system exception occurred

getRoles

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

Specified by:
getRoles in interface UserPersistence
Parameters:
pk - the primary key of the user to get the associated roles for
Returns:
the roles associated with the user
Throws:
SystemException - if a system exception occurred

getRoles

public List<Role> getRoles(long pk,
                           int start,
                           int end)
                    throws SystemException
Gets 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.

Specified by:
getRoles in interface UserPersistence
Parameters:
pk - the primary key of the user to get the associated roles for
start - the lower bound of the range of users to return
end - the upper bound of the range of users to return (not inclusive)
Returns:
the range of roles associated with the user
Throws:
SystemException - if a system exception occurred

getRoles

public List<Role> getRoles(long pk,
                           int start,
                           int end,
                           OrderByComparator orderByComparator)
                    throws SystemException
Gets 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.

Specified by:
getRoles in interface UserPersistence
Parameters:
pk - the primary key of the user to get the associated roles for
start - the lower bound of the range of users to return
end - the upper bound of the range of users to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of roles associated with the user
Throws:
SystemException - if a system exception occurred

getRolesSize

public int getRolesSize(long pk)
                 throws SystemException
Gets the number of roles associated with the user.

Specified by:
getRolesSize in interface UserPersistence
Parameters:
pk - the primary key of the user to get the number of associated roles for
Returns:
the number of roles associated with the user
Throws:
SystemException - if a system exception occurred

containsRole

public boolean containsRole(long pk,
                            long rolePK)
                     throws SystemException
Determines whether 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:
whether the role is associated with the user
Throws:
SystemException - if a system exception occurred

containsRoles

public boolean containsRoles(long pk)
                      throws SystemException
Determines whether 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:
whether the user has any roles associated with it
Throws:
SystemException - if a system exception occurred

addRole

public void addRole(long pk,
                    long rolePK)
             throws SystemException
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
Throws:
SystemException - if a system exception occurred

addRole

public void addRole(long pk,
                    Role role)
             throws SystemException
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
Throws:
SystemException - if a system exception occurred

addRoles

public void addRoles(long pk,
                     long[] rolePKs)
              throws SystemException
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
Throws:
SystemException - if a system exception occurred

addRoles

public void addRoles(long pk,
                     List<Role> roles)
              throws SystemException
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
Throws:
SystemException - if a system exception occurred

clearRoles

public void clearRoles(long pk)
                throws SystemException
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
Throws:
SystemException - if a system exception occurred

removeRole

public void removeRole(long pk,
                       long rolePK)
                throws SystemException
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
Throws:
SystemException - if a system exception occurred

removeRole

public void removeRole(long pk,
                       Role role)
                throws SystemException
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
Throws:
SystemException - if a system exception occurred

removeRoles

public void removeRoles(long pk,
                        long[] rolePKs)
                 throws SystemException
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
Throws:
SystemException - if a system exception occurred

removeRoles

public void removeRoles(long pk,
                        List<Role> roles)
                 throws SystemException
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
Throws:
SystemException - if a system exception occurred

setRoles

public void setRoles(long pk,
                     long[] rolePKs)
              throws SystemException
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 to set the associations for
rolePKs - the primary keys of the roles to be associated with the user
Throws:
SystemException - if a system exception occurred

setRoles

public void setRoles(long pk,
                     List<Role> roles)
              throws SystemException
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 to set the associations for
roles - the roles to be associated with the user
Throws:
SystemException - if a system exception occurred

getTeams

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

Specified by:
getTeams in interface UserPersistence
Parameters:
pk - the primary key of the user to get the associated teams for
Returns:
the teams associated with the user
Throws:
SystemException - if a system exception occurred

getTeams

public List<Team> getTeams(long pk,
                           int start,
                           int end)
                    throws SystemException
Gets 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.

Specified by:
getTeams in interface UserPersistence
Parameters:
pk - the primary key of the user to get the associated teams for
start - the lower bound of the range of users to return
end - the upper bound of the range of users to return (not inclusive)
Returns:
the range of teams associated with the user
Throws:
SystemException - if a system exception occurred

getTeams

public List<Team> getTeams(long pk,
                           int start,
                           int end,
                           OrderByComparator orderByComparator)
                    throws SystemException
Gets 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.

Specified by:
getTeams in interface UserPersistence
Parameters:
pk - the primary key of the user to get the associated teams for
start - the lower bound of the range of users to return
end - the upper bound of the range of users to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of teams associated with the user
Throws:
SystemException - if a system exception occurred

getTeamsSize

public int getTeamsSize(long pk)
                 throws SystemException
Gets the number of teams associated with the user.

Specified by:
getTeamsSize in interface UserPersistence
Parameters:
pk - the primary key of the user to get the number of associated teams for
Returns:
the number of teams associated with the user
Throws:
SystemException - if a system exception occurred

containsTeam

public boolean containsTeam(long pk,
                            long teamPK)
                     throws SystemException
Determines whether 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:
whether the team is associated with the user
Throws:
SystemException - if a system exception occurred

containsTeams

public boolean containsTeams(long pk)
                      throws SystemException
Determines whether 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:
whether the user has any teams associated with it
Throws:
SystemException - if a system exception occurred

addTeam

public void addTeam(long pk,
                    long teamPK)
             throws SystemException
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
Throws:
SystemException - if a system exception occurred

addTeam

public void addTeam(long pk,
                    Team team)
             throws SystemException
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
Throws:
SystemException - if a system exception occurred

addTeams

public void addTeams(long pk,
                     long[] teamPKs)
              throws SystemException
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
Throws:
SystemException - if a system exception occurred

addTeams

public void addTeams(long pk,
                     List<Team> teams)
              throws SystemException
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
Throws:
SystemException - if a system exception occurred

clearTeams

public void clearTeams(long pk)
                throws SystemException
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
Throws:
SystemException - if a system exception occurred

removeTeam

public void removeTeam(long pk,
                       long teamPK)
                throws SystemException
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
Throws:
SystemException - if a system exception occurred

removeTeam

public void removeTeam(long pk,
                       Team team)
                throws SystemException
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
Throws:
SystemException - if a system exception occurred

removeTeams

public void removeTeams(long pk,
                        long[] teamPKs)
                 throws SystemException
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
Throws:
SystemException - if a system exception occurred

removeTeams

public void removeTeams(long pk,
                        List<Team> teams)
                 throws SystemException
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
Throws:
SystemException - if a system exception occurred

setTeams

public void setTeams(long pk,
                     long[] teamPKs)
              throws SystemException
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 to set the associations for
teamPKs - the primary keys of the teams to be associated with the user
Throws:
SystemException - if a system exception occurred

setTeams

public void setTeams(long pk,
                     List<Team> teams)
              throws SystemException
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 to set the associations for
teams - the teams to be associated with the user
Throws:
SystemException - if a system exception occurred

getUserGroups

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

Specified by:
getUserGroups in interface UserPersistence
Parameters:
pk - the primary key of the user to get the associated user groups for
Returns:
the user groups associated with the user
Throws:
SystemException - if a system exception occurred

getUserGroups

public List<UserGroup> getUserGroups(long pk,
                                     int start,
                                     int end)
                              throws SystemException
Gets 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.

Specified by:
getUserGroups in interface UserPersistence
Parameters:
pk - the primary key of the user to get the associated user groups for
start - the lower bound of the range of users to return
end - the upper bound of the range of users to return (not inclusive)
Returns:
the range of user groups associated with the user
Throws:
SystemException - if a system exception occurred

getUserGroups

public List<UserGroup> getUserGroups(long pk,
                                     int start,
                                     int end,
                                     OrderByComparator orderByComparator)
                              throws SystemException
Gets 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.

Specified by:
getUserGroups in interface UserPersistence
Parameters:
pk - the primary key of the user to get the associated user groups for
start - the lower bound of the range of users to return
end - the upper bound of the range of users to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of user groups associated with the user
Throws:
SystemException - if a system exception occurred

getUserGroupsSize

public int getUserGroupsSize(long pk)
                      throws SystemException
Gets the number of user groups associated with the user.

Specified by:
getUserGroupsSize in interface UserPersistence
Parameters:
pk - the primary key of the user to get the number of associated user groups for
Returns:
the number of user groups associated with the user
Throws:
SystemException - if a system exception occurred

containsUserGroup

public boolean containsUserGroup(long pk,
                                 long userGroupPK)
                          throws SystemException
Determines whether 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:
whether the user group is associated with the user
Throws:
SystemException - if a system exception occurred

containsUserGroups

public boolean containsUserGroups(long pk)
                           throws SystemException
Determines whether 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:
whether the user has any user groups associated with it
Throws:
SystemException - if a system exception occurred

addUserGroup

public void addUserGroup(long pk,
                         long userGroupPK)
                  throws SystemException
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
Throws:
SystemException - if a system exception occurred

addUserGroup

public void addUserGroup(long pk,
                         UserGroup userGroup)
                  throws SystemException
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
Throws:
SystemException - if a system exception occurred

addUserGroups

public void addUserGroups(long pk,
                          long[] userGroupPKs)
                   throws SystemException
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
Throws:
SystemException - if a system exception occurred

addUserGroups

public void addUserGroups(long pk,
                          List<UserGroup> userGroups)
                   throws SystemException
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
Throws:
SystemException - if a system exception occurred

clearUserGroups

public void clearUserGroups(long pk)
                     throws SystemException
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
Throws:
SystemException - if a system exception occurred

removeUserGroup

public void removeUserGroup(long pk,
                            long userGroupPK)
                     throws SystemException
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
Throws:
SystemException - if a system exception occurred

removeUserGroup

public void removeUserGroup(long pk,
                            UserGroup userGroup)
                     throws SystemException
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
Throws:
SystemException - if a system exception occurred

removeUserGroups

public void removeUserGroups(long pk,
                             long[] userGroupPKs)
                      throws SystemException
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
Throws:
SystemException - if a system exception occurred

removeUserGroups

public void removeUserGroups(long pk,
                             List<UserGroup> userGroups)
                      throws SystemException
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
Throws:
SystemException - if a system exception occurred

setUserGroups

public void setUserGroups(long pk,
                          long[] userGroupPKs)
                   throws SystemException
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 to set the associations for
userGroupPKs - the primary keys of the user groups to be associated with the user
Throws:
SystemException - if a system exception occurred

setUserGroups

public void setUserGroups(long pk,
                          List<UserGroup> userGroups)
                   throws SystemException
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 to set the associations for
userGroups - the user groups to be associated with the user
Throws:
SystemException - if a system exception occurred

afterPropertiesSet

public void afterPropertiesSet()
Initializes the user persistence.


Liferay 6.0.5