com.liferay.portal.service.persistence
Class OrganizationPersistenceImpl

java.lang.Object
  extended by com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.model.Organization>
      extended by com.liferay.portal.service.persistence.OrganizationPersistenceImpl
All Implemented Interfaces:
com.liferay.portal.kernel.dao.orm.SessionFactory, com.liferay.portal.service.persistence.BasePersistence<com.liferay.portal.model.Organization>, com.liferay.portal.service.persistence.OrganizationPersistence

public class OrganizationPersistenceImpl
extends com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.model.Organization>
implements com.liferay.portal.service.persistence.OrganizationPersistence

The persistence implementation for the organization service.

Caching information and settings can be found in portal.properties

Author:
Brian Wing Shun Chan
See Also:
OrganizationPersistence, OrganizationUtil
Generated:

Nested Class Summary
protected  class OrganizationPersistenceImpl.AddGroup
           
protected  class OrganizationPersistenceImpl.AddUser
           
protected  class OrganizationPersistenceImpl.ClearGroups
           
protected  class OrganizationPersistenceImpl.ClearUsers
           
protected  class OrganizationPersistenceImpl.ContainsGroup
           
protected  class OrganizationPersistenceImpl.ContainsUser
           
protected  class OrganizationPersistenceImpl.RemoveGroup
           
protected  class OrganizationPersistenceImpl.RemoveUser
           
 
Field Summary
protected  com.liferay.portal.service.persistence.AccountPersistence accountPersistence
           
protected  OrganizationPersistenceImpl.AddGroup addGroup
           
protected  com.liferay.portal.service.persistence.AddressPersistence addressPersistence
           
protected  OrganizationPersistenceImpl.AddUser addUser
           
protected  com.liferay.portlet.asset.service.persistence.AssetEntryPersistence assetEntryPersistence
           
protected  com.liferay.portal.service.persistence.BrowserTrackerPersistence browserTrackerPersistence
           
protected  com.liferay.portal.service.persistence.ClassNamePersistence classNamePersistence
           
protected  OrganizationPersistenceImpl.ClearGroups clearGroups
           
protected  OrganizationPersistenceImpl.ClearUsers clearUsers
           
protected  com.liferay.portal.service.persistence.ClusterGroupPersistence clusterGroupPersistence
           
protected  com.liferay.portal.service.persistence.CompanyPersistence companyPersistence
           
protected  com.liferay.portal.service.persistence.ContactPersistence contactPersistence
           
protected  OrganizationPersistenceImpl.ContainsGroup containsGroup
           
protected  OrganizationPersistenceImpl.ContainsUser containsUser
           
protected  com.liferay.portal.service.persistence.CountryPersistence countryPersistence
           
protected  com.liferay.portal.service.persistence.EmailAddressPersistence emailAddressPersistence
           
protected  com.liferay.portlet.expando.service.persistence.ExpandoValuePersistence expandoValuePersistence
           
static java.lang.String FINDER_CLASS_NAME_ENTITY
           
static java.lang.String FINDER_CLASS_NAME_LIST_WITH_PAGINATION
           
static java.lang.String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_CONTAINS_GROUP
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_CONTAINS_USER
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_ALL
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_C_N
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_C_P
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_COMPANYID
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_LOCATIONS
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_FETCH_BY_C_N
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_GET_GROUPS
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_GET_GROUPS_SIZE
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_GET_USERS
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_GET_USERS_SIZE
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_C_P
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_COMPANYID
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_LOCATIONS
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_P
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_COMPANYID
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_LOCATIONS
           
protected  com.liferay.portal.service.persistence.GroupPersistence groupPersistence
           
protected  com.liferay.portal.service.persistence.ImagePersistence imagePersistence
           
protected  com.liferay.portal.service.persistence.LayoutBranchPersistence layoutBranchPersistence
           
protected  com.liferay.portal.service.persistence.LayoutPersistence layoutPersistence
           
protected  com.liferay.portal.service.persistence.LayoutPrototypePersistence layoutPrototypePersistence
           
protected  com.liferay.portal.service.persistence.LayoutRevisionPersistence layoutRevisionPersistence
           
protected  com.liferay.portal.service.persistence.LayoutSetBranchPersistence layoutSetBranchPersistence
           
protected  com.liferay.portal.service.persistence.LayoutSetPersistence layoutSetPersistence
           
protected  com.liferay.portal.service.persistence.LayoutSetPrototypePersistence layoutSetPrototypePersistence
           
protected  com.liferay.portal.service.persistence.ListTypePersistence listTypePersistence
           
protected  com.liferay.portal.service.persistence.LockPersistence lockPersistence
           
protected  com.liferay.portal.service.persistence.MembershipRequestPersistence membershipRequestPersistence
           
protected  com.liferay.portal.service.persistence.OrganizationPersistence organizationPersistence
           
protected  com.liferay.portal.service.persistence.OrgGroupPermissionPersistence orgGroupPermissionPersistence
           
protected  com.liferay.portal.service.persistence.OrgGroupRolePersistence orgGroupRolePersistence
           
protected  com.liferay.portal.service.persistence.OrgLaborPersistence orgLaborPersistence
           
protected  com.liferay.portal.service.persistence.PasswordPolicyPersistence passwordPolicyPersistence
           
protected  com.liferay.portal.service.persistence.PasswordPolicyRelPersistence passwordPolicyRelPersistence
           
protected  com.liferay.portal.service.persistence.PasswordTrackerPersistence passwordTrackerPersistence
           
protected  com.liferay.portal.service.persistence.PermissionPersistence permissionPersistence
           
protected  com.liferay.portal.service.persistence.PhonePersistence phonePersistence
           
protected  com.liferay.portal.service.persistence.PluginSettingPersistence pluginSettingPersistence
           
protected  com.liferay.portal.service.persistence.PortalPreferencesPersistence portalPreferencesPersistence
           
protected  com.liferay.portal.service.persistence.PortletItemPersistence portletItemPersistence
           
protected  com.liferay.portal.service.persistence.PortletPersistence portletPersistence
           
protected  com.liferay.portal.service.persistence.PortletPreferencesPersistence portletPreferencesPersistence
           
protected  com.liferay.portal.service.persistence.RegionPersistence regionPersistence
           
protected  com.liferay.portal.service.persistence.ReleasePersistence releasePersistence
           
protected  OrganizationPersistenceImpl.RemoveGroup removeGroup
           
protected  OrganizationPersistenceImpl.RemoveUser removeUser
           
protected  com.liferay.portal.service.persistence.RepositoryEntryPersistence repositoryEntryPersistence
           
protected  com.liferay.portal.service.persistence.RepositoryPersistence repositoryPersistence
           
protected  com.liferay.portal.service.persistence.ResourceActionPersistence resourceActionPersistence
           
protected  com.liferay.portal.service.persistence.ResourceBlockPermissionPersistence resourceBlockPermissionPersistence
           
protected  com.liferay.portal.service.persistence.ResourceBlockPersistence resourceBlockPersistence
           
protected  com.liferay.portal.service.persistence.ResourceCodePersistence resourceCodePersistence
           
protected  com.liferay.portal.service.persistence.ResourcePermissionPersistence resourcePermissionPersistence
           
protected  com.liferay.portal.service.persistence.ResourcePersistence resourcePersistence
           
protected  com.liferay.portal.service.persistence.ResourceTypePermissionPersistence resourceTypePermissionPersistence
           
protected  com.liferay.portal.service.persistence.RolePersistence rolePersistence
           
protected  com.liferay.portal.service.persistence.ServiceComponentPersistence serviceComponentPersistence
           
protected  com.liferay.portal.service.persistence.ShardPersistence shardPersistence
           
protected  com.liferay.portal.service.persistence.SubscriptionPersistence subscriptionPersistence
           
protected  com.liferay.portal.service.persistence.TeamPersistence teamPersistence
           
protected  com.liferay.portal.service.persistence.TicketPersistence ticketPersistence
           
protected  com.liferay.portal.service.persistence.UserGroupGroupRolePersistence userGroupGroupRolePersistence
           
protected  com.liferay.portal.service.persistence.UserGroupPersistence userGroupPersistence
           
protected  com.liferay.portal.service.persistence.UserGroupRolePersistence userGroupRolePersistence
           
protected  com.liferay.portal.service.persistence.UserIdMapperPersistence userIdMapperPersistence
           
protected  com.liferay.portal.service.persistence.UserNotificationEventPersistence userNotificationEventPersistence
           
protected  com.liferay.portal.service.persistence.UserPersistence userPersistence
           
protected  com.liferay.portal.service.persistence.UserTrackerPathPersistence userTrackerPathPersistence
           
protected  com.liferay.portal.service.persistence.UserTrackerPersistence userTrackerPersistence
           
protected  com.liferay.portal.service.persistence.VirtualHostPersistence virtualHostPersistence
           
protected  com.liferay.portal.service.persistence.WebDAVPropsPersistence webDAVPropsPersistence
           
protected  com.liferay.portal.service.persistence.WebsitePersistence websitePersistence
           
protected  com.liferay.portal.service.persistence.WorkflowDefinitionLinkPersistence workflowDefinitionLinkPersistence
           
protected  com.liferay.portal.service.persistence.WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence
           
 
Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
COUNT_COLUMN_NAME, FINDER_ARGS_EMPTY, 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
OrganizationPersistenceImpl()
           
 
Method Summary
 void addGroup(long pk, com.liferay.portal.model.Group group)
          Adds an association between the organization and the group.
 void addGroup(long pk, long groupPK)
          Adds an association between the organization and the group.
 void addGroups(long pk, java.util.List<com.liferay.portal.model.Group> groups)
          Adds an association between the organization and the groups.
 void addGroups(long pk, long[] groupPKs)
          Adds an association between the organization and the groups.
 void addUser(long pk, long userPK)
          Adds an association between the organization and the user.
 void addUser(long pk, com.liferay.portal.model.User user)
          Adds an association between the organization and the user.
 void addUsers(long pk, java.util.List<com.liferay.portal.model.User> users)
          Adds an association between the organization and the users.
 void addUsers(long pk, long[] userPKs)
          Adds an association between the organization and the users.
 void afterPropertiesSet()
          Initializes the organization persistence.
 void cacheResult(java.util.List<com.liferay.portal.model.Organization> organizations)
          Caches the organizations in the entity cache if it is enabled.
 void cacheResult(com.liferay.portal.model.Organization organization)
          Caches the organization in the entity cache if it is enabled.
 void clearCache()
          Clears the cache for all organizations.
 void clearCache(java.util.List<com.liferay.portal.model.Organization> organizations)
           
 void clearCache(com.liferay.portal.model.Organization organization)
          Clears the cache for the organization.
 void clearGroups(long pk)
          Clears all associations between the organization and its groups.
protected  void clearUniqueFindersCache(com.liferay.portal.model.Organization organization)
           
 void clearUsers(long pk)
          Clears all associations between the organization and its users.
 boolean containsGroup(long pk, long groupPK)
          Returns true if the group is associated with the organization.
 boolean containsGroups(long pk)
          Returns true if the organization has any groups associated with it.
 boolean containsUser(long pk, long userPK)
          Returns true if the user is associated with the organization.
 boolean containsUsers(long pk)
          Returns true if the organization has any users associated with it.
 int countAll()
          Returns the number of organizations.
 int countByC_N(long companyId, java.lang.String name)
          Returns the number of organizations where companyId = ? and name = ?.
 int countByC_P(long companyId, long parentOrganizationId)
          Returns the number of organizations where companyId = ? and parentOrganizationId = ?.
 int countByCompanyId(long companyId)
          Returns the number of organizations where companyId = ?.
 int countByLocations(long companyId)
          Returns the number of organizations where companyId = ?.
 com.liferay.portal.model.Organization create(long organizationId)
          Creates a new organization with the primary key.
 void destroy()
           
 com.liferay.portal.model.Organization fetchByC_N(long companyId, java.lang.String name)
          Returns the organization where companyId = ? and name = ? or returns null if it could not be found.
 com.liferay.portal.model.Organization fetchByC_N(long companyId, java.lang.String name, boolean retrieveFromCache)
          Returns the organization where companyId = ? and name = ? or returns null if it could not be found, optionally using the finder cache.
 com.liferay.portal.model.Organization fetchByPrimaryKey(long organizationId)
          Returns the organization with the primary key or returns null if it could not be found.
 com.liferay.portal.model.Organization fetchByPrimaryKey(java.io.Serializable primaryKey)
          Returns the organization with the primary key or returns null if it could not be found.
 int filterCountByC_P(long companyId, long parentOrganizationId)
          Returns the number of organizations that the user has permission to view where companyId = ? and parentOrganizationId = ?.
 int filterCountByCompanyId(long companyId)
          Returns the number of organizations that the user has permission to view where companyId = ?.
 int filterCountByLocations(long companyId)
          Returns the number of organizations that the user has permission to view where companyId = ?.
 com.liferay.portal.model.Organization[] filterFindByC_P_PrevAndNext(long organizationId, long companyId, long parentOrganizationId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the organizations before and after the current organization in the ordered set of organizations that the user has permission to view where companyId = ? and parentOrganizationId = ?.
 java.util.List<com.liferay.portal.model.Organization> filterFindByC_P(long companyId, long parentOrganizationId)
          Returns all the organizations that the user has permission to view where companyId = ? and parentOrganizationId = ?.
 java.util.List<com.liferay.portal.model.Organization> filterFindByC_P(long companyId, long parentOrganizationId, int start, int end)
          Returns a range of all the organizations that the user has permission to view where companyId = ? and parentOrganizationId = ?.
 java.util.List<com.liferay.portal.model.Organization> filterFindByC_P(long companyId, long parentOrganizationId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns an ordered range of all the organizations that the user has permissions to view where companyId = ? and parentOrganizationId = ?.
 com.liferay.portal.model.Organization[] filterFindByCompanyId_PrevAndNext(long organizationId, long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the organizations before and after the current organization in the ordered set of organizations that the user has permission to view where companyId = ?.
 java.util.List<com.liferay.portal.model.Organization> filterFindByCompanyId(long companyId)
          Returns all the organizations that the user has permission to view where companyId = ?.
 java.util.List<com.liferay.portal.model.Organization> filterFindByCompanyId(long companyId, int start, int end)
          Returns a range of all the organizations that the user has permission to view where companyId = ?.
 java.util.List<com.liferay.portal.model.Organization> filterFindByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns an ordered range of all the organizations that the user has permissions to view where companyId = ?.
 com.liferay.portal.model.Organization[] filterFindByLocations_PrevAndNext(long organizationId, long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the organizations before and after the current organization in the ordered set of organizations that the user has permission to view where companyId = ?.
 java.util.List<com.liferay.portal.model.Organization> filterFindByLocations(long companyId)
          Returns all the organizations that the user has permission to view where companyId = ?.
 java.util.List<com.liferay.portal.model.Organization> filterFindByLocations(long companyId, int start, int end)
          Returns a range of all the organizations that the user has permission to view where companyId = ?.
 java.util.List<com.liferay.portal.model.Organization> filterFindByLocations(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns an ordered range of all the organizations that the user has permissions to view where companyId = ?.
protected  com.liferay.portal.model.Organization filterGetByC_P_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portal.model.Organization organization, long companyId, long parentOrganizationId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean previous)
           
protected  com.liferay.portal.model.Organization filterGetByCompanyId_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portal.model.Organization organization, long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean previous)
           
protected  com.liferay.portal.model.Organization filterGetByLocations_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portal.model.Organization organization, long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean previous)
           
 java.util.List<com.liferay.portal.model.Organization> findAll()
          Returns all the organizations.
 java.util.List<com.liferay.portal.model.Organization> findAll(int start, int end)
          Returns a range of all the organizations.
 java.util.List<com.liferay.portal.model.Organization> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns an ordered range of all the organizations.
 com.liferay.portal.model.Organization findByC_N(long companyId, java.lang.String name)
          Returns the organization where companyId = ? and name = ? or throws a NoSuchOrganizationException if it could not be found.
 com.liferay.portal.model.Organization findByC_P_First(long companyId, long parentOrganizationId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the first organization in the ordered set where companyId = ? and parentOrganizationId = ?.
 com.liferay.portal.model.Organization findByC_P_Last(long companyId, long parentOrganizationId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the last organization in the ordered set where companyId = ? and parentOrganizationId = ?.
 com.liferay.portal.model.Organization[] findByC_P_PrevAndNext(long organizationId, long companyId, long parentOrganizationId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the organizations before and after the current organization in the ordered set where companyId = ? and parentOrganizationId = ?.
 java.util.List<com.liferay.portal.model.Organization> findByC_P(long companyId, long parentOrganizationId)
          Returns all the organizations where companyId = ? and parentOrganizationId = ?.
 java.util.List<com.liferay.portal.model.Organization> findByC_P(long companyId, long parentOrganizationId, int start, int end)
          Returns a range of all the organizations where companyId = ? and parentOrganizationId = ?.
 java.util.List<com.liferay.portal.model.Organization> findByC_P(long companyId, long parentOrganizationId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns an ordered range of all the organizations where companyId = ? and parentOrganizationId = ?.
 com.liferay.portal.model.Organization findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the first organization in the ordered set where companyId = ?.
 com.liferay.portal.model.Organization findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the last organization in the ordered set where companyId = ?.
 com.liferay.portal.model.Organization[] findByCompanyId_PrevAndNext(long organizationId, long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the organizations before and after the current organization in the ordered set where companyId = ?.
 java.util.List<com.liferay.portal.model.Organization> findByCompanyId(long companyId)
          Returns all the organizations where companyId = ?.
 java.util.List<com.liferay.portal.model.Organization> findByCompanyId(long companyId, int start, int end)
          Returns a range of all the organizations where companyId = ?.
 java.util.List<com.liferay.portal.model.Organization> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns an ordered range of all the organizations where companyId = ?.
 com.liferay.portal.model.Organization findByLocations_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the first organization in the ordered set where companyId = ?.
 com.liferay.portal.model.Organization findByLocations_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the last organization in the ordered set where companyId = ?.
 com.liferay.portal.model.Organization[] findByLocations_PrevAndNext(long organizationId, long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the organizations before and after the current organization in the ordered set where companyId = ?.
 java.util.List<com.liferay.portal.model.Organization> findByLocations(long companyId)
          Returns all the organizations where companyId = ?.
 java.util.List<com.liferay.portal.model.Organization> findByLocations(long companyId, int start, int end)
          Returns a range of all the organizations where companyId = ?.
 java.util.List<com.liferay.portal.model.Organization> findByLocations(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns an ordered range of all the organizations where companyId = ?.
 com.liferay.portal.model.Organization findByPrimaryKey(long organizationId)
          Returns the organization with the primary key or throws a NoSuchOrganizationException if it could not be found.
 com.liferay.portal.model.Organization findByPrimaryKey(java.io.Serializable primaryKey)
          Returns the organization with the primary key or throws a NoSuchModelException if it could not be found.
protected  com.liferay.portal.model.Organization getByC_P_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portal.model.Organization organization, long companyId, long parentOrganizationId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean previous)
           
protected  com.liferay.portal.model.Organization getByCompanyId_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portal.model.Organization organization, long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean previous)
           
protected  com.liferay.portal.model.Organization getByLocations_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portal.model.Organization organization, long companyId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean previous)
           
 java.util.List<com.liferay.portal.model.Group> getGroups(long pk)
          Returns all the groups associated with the organization.
 java.util.List<com.liferay.portal.model.Group> getGroups(long pk, int start, int end)
          Returns a range of all the groups associated with the organization.
 java.util.List<com.liferay.portal.model.Group> getGroups(long pk, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns an ordered range of all the groups associated with the organization.
 int getGroupsSize(long pk)
          Returns the number of groups associated with the organization.
 java.util.List<com.liferay.portal.model.User> getUsers(long pk)
          Returns all the users associated with the organization.
 java.util.List<com.liferay.portal.model.User> getUsers(long pk, int start, int end)
          Returns a range of all the users associated with the organization.
 java.util.List<com.liferay.portal.model.User> getUsers(long pk, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns an ordered range of all the users associated with the organization.
 int getUsersSize(long pk)
          Returns the number of users associated with the organization.
 com.liferay.portal.model.Organization remove(long organizationId)
          Removes the organization with the primary key from the database.
 com.liferay.portal.model.Organization remove(java.io.Serializable primaryKey)
          Removes the organization with the primary key from the database.
 void removeAll()
          Removes all the organizations from the database.
 void removeByC_N(long companyId, java.lang.String name)
          Removes the organization where companyId = ? and name = ? from the database.
 void removeByC_P(long companyId, long parentOrganizationId)
          Removes all the organizations where companyId = ? and parentOrganizationId = ? from the database.
 void removeByCompanyId(long companyId)
          Removes all the organizations where companyId = ? from the database.
 void removeByLocations(long companyId)
          Removes all the organizations where companyId = ? from the database.
 void removeGroup(long pk, com.liferay.portal.model.Group group)
          Removes the association between the organization and the group.
 void removeGroup(long pk, long groupPK)
          Removes the association between the organization and the group.
 void removeGroups(long pk, java.util.List<com.liferay.portal.model.Group> groups)
          Removes the association between the organization and the groups.
 void removeGroups(long pk, long[] groupPKs)
          Removes the association between the organization and the groups.
protected  com.liferay.portal.model.Organization removeImpl(com.liferay.portal.model.Organization organization)
           
 void removeUser(long pk, long userPK)
          Removes the association between the organization and the user.
 void removeUser(long pk, com.liferay.portal.model.User user)
          Removes the association between the organization and the user.
 void removeUsers(long pk, java.util.List<com.liferay.portal.model.User> users)
          Removes the association between the organization and the users.
 void removeUsers(long pk, long[] userPKs)
          Removes the association between the organization and the users.
 void setGroups(long pk, java.util.List<com.liferay.portal.model.Group> groups)
          Sets the groups associated with the organization, removing and adding associations as necessary.
 void setGroups(long pk, long[] groupPKs)
          Sets the groups associated with the organization, removing and adding associations as necessary.
 void setUsers(long pk, java.util.List<com.liferay.portal.model.User> users)
          Sets the users associated with the organization, removing and adding associations as necessary.
 void setUsers(long pk, long[] userPKs)
          Sets the users associated with the organization, removing and adding associations as necessary.
protected  com.liferay.portal.model.Organization toUnwrappedModel(com.liferay.portal.model.Organization organization)
           
 com.liferay.portal.model.Organization updateImpl(com.liferay.portal.model.Organization organization, boolean merge)
           
 
Methods inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
appendOrderByComparator, closeSession, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getDB, 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
closeSession, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, openSession, processException, registerListener, remove, setDataSource, unregisterListener, update, update
 

Field Detail

FINDER_CLASS_NAME_ENTITY

public static final java.lang.String FINDER_CLASS_NAME_ENTITY

FINDER_CLASS_NAME_LIST_WITH_PAGINATION

public static final java.lang.String FINDER_CLASS_NAME_LIST_WITH_PAGINATION

FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION

public static final java.lang.String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION

FINDER_PATH_WITH_PAGINATION_FIND_BY_COMPANYID

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_COMPANYID

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_COMPANYID

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_COMPANYID

FINDER_PATH_COUNT_BY_COMPANYID

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_COMPANYID

FINDER_PATH_WITH_PAGINATION_FIND_BY_LOCATIONS

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_LOCATIONS

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_LOCATIONS

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_LOCATIONS

FINDER_PATH_COUNT_BY_LOCATIONS

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_LOCATIONS

FINDER_PATH_WITH_PAGINATION_FIND_BY_C_P

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_C_P

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_P

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_P

FINDER_PATH_COUNT_BY_C_P

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_C_P

FINDER_PATH_FETCH_BY_C_N

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_FETCH_BY_C_N

FINDER_PATH_COUNT_BY_C_N

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_C_N

FINDER_PATH_WITH_PAGINATION_FIND_ALL

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL

FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL

FINDER_PATH_COUNT_ALL

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_ALL

FINDER_PATH_GET_GROUPS

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_GET_GROUPS

FINDER_PATH_GET_GROUPS_SIZE

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_GET_GROUPS_SIZE

FINDER_PATH_CONTAINS_GROUP

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_CONTAINS_GROUP

FINDER_PATH_GET_USERS

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_GET_USERS

FINDER_PATH_GET_USERS_SIZE

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_GET_USERS_SIZE

FINDER_PATH_CONTAINS_USER

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_CONTAINS_USER

accountPersistence

@BeanReference(type=com.liferay.portal.service.persistence.AccountPersistence.class)
protected com.liferay.portal.service.persistence.AccountPersistence accountPersistence

addressPersistence

@BeanReference(type=com.liferay.portal.service.persistence.AddressPersistence.class)
protected com.liferay.portal.service.persistence.AddressPersistence addressPersistence

browserTrackerPersistence

@BeanReference(type=com.liferay.portal.service.persistence.BrowserTrackerPersistence.class)
protected com.liferay.portal.service.persistence.BrowserTrackerPersistence browserTrackerPersistence

classNamePersistence

@BeanReference(type=com.liferay.portal.service.persistence.ClassNamePersistence.class)
protected com.liferay.portal.service.persistence.ClassNamePersistence classNamePersistence

clusterGroupPersistence

@BeanReference(type=com.liferay.portal.service.persistence.ClusterGroupPersistence.class)
protected com.liferay.portal.service.persistence.ClusterGroupPersistence clusterGroupPersistence

companyPersistence

@BeanReference(type=com.liferay.portal.service.persistence.CompanyPersistence.class)
protected com.liferay.portal.service.persistence.CompanyPersistence companyPersistence

contactPersistence

@BeanReference(type=com.liferay.portal.service.persistence.ContactPersistence.class)
protected com.liferay.portal.service.persistence.ContactPersistence contactPersistence

countryPersistence

@BeanReference(type=com.liferay.portal.service.persistence.CountryPersistence.class)
protected com.liferay.portal.service.persistence.CountryPersistence countryPersistence

emailAddressPersistence

@BeanReference(type=com.liferay.portal.service.persistence.EmailAddressPersistence.class)
protected com.liferay.portal.service.persistence.EmailAddressPersistence emailAddressPersistence

groupPersistence

@BeanReference(type=com.liferay.portal.service.persistence.GroupPersistence.class)
protected com.liferay.portal.service.persistence.GroupPersistence groupPersistence

imagePersistence

@BeanReference(type=com.liferay.portal.service.persistence.ImagePersistence.class)
protected com.liferay.portal.service.persistence.ImagePersistence imagePersistence

layoutPersistence

@BeanReference(type=com.liferay.portal.service.persistence.LayoutPersistence.class)
protected com.liferay.portal.service.persistence.LayoutPersistence layoutPersistence

layoutBranchPersistence

@BeanReference(type=com.liferay.portal.service.persistence.LayoutBranchPersistence.class)
protected com.liferay.portal.service.persistence.LayoutBranchPersistence layoutBranchPersistence

layoutPrototypePersistence

@BeanReference(type=com.liferay.portal.service.persistence.LayoutPrototypePersistence.class)
protected com.liferay.portal.service.persistence.LayoutPrototypePersistence layoutPrototypePersistence

layoutRevisionPersistence

@BeanReference(type=com.liferay.portal.service.persistence.LayoutRevisionPersistence.class)
protected com.liferay.portal.service.persistence.LayoutRevisionPersistence layoutRevisionPersistence

layoutSetPersistence

@BeanReference(type=com.liferay.portal.service.persistence.LayoutSetPersistence.class)
protected com.liferay.portal.service.persistence.LayoutSetPersistence layoutSetPersistence

layoutSetBranchPersistence

@BeanReference(type=com.liferay.portal.service.persistence.LayoutSetBranchPersistence.class)
protected com.liferay.portal.service.persistence.LayoutSetBranchPersistence layoutSetBranchPersistence

layoutSetPrototypePersistence

@BeanReference(type=com.liferay.portal.service.persistence.LayoutSetPrototypePersistence.class)
protected com.liferay.portal.service.persistence.LayoutSetPrototypePersistence layoutSetPrototypePersistence

listTypePersistence

@BeanReference(type=com.liferay.portal.service.persistence.ListTypePersistence.class)
protected com.liferay.portal.service.persistence.ListTypePersistence listTypePersistence

lockPersistence

@BeanReference(type=com.liferay.portal.service.persistence.LockPersistence.class)
protected com.liferay.portal.service.persistence.LockPersistence lockPersistence

membershipRequestPersistence

@BeanReference(type=com.liferay.portal.service.persistence.MembershipRequestPersistence.class)
protected com.liferay.portal.service.persistence.MembershipRequestPersistence membershipRequestPersistence

organizationPersistence

@BeanReference(type=com.liferay.portal.service.persistence.OrganizationPersistence.class)
protected com.liferay.portal.service.persistence.OrganizationPersistence organizationPersistence

orgGroupPermissionPersistence

@BeanReference(type=com.liferay.portal.service.persistence.OrgGroupPermissionPersistence.class)
protected com.liferay.portal.service.persistence.OrgGroupPermissionPersistence orgGroupPermissionPersistence

orgGroupRolePersistence

@BeanReference(type=com.liferay.portal.service.persistence.OrgGroupRolePersistence.class)
protected com.liferay.portal.service.persistence.OrgGroupRolePersistence orgGroupRolePersistence

orgLaborPersistence

@BeanReference(type=com.liferay.portal.service.persistence.OrgLaborPersistence.class)
protected com.liferay.portal.service.persistence.OrgLaborPersistence orgLaborPersistence

passwordPolicyPersistence

@BeanReference(type=com.liferay.portal.service.persistence.PasswordPolicyPersistence.class)
protected com.liferay.portal.service.persistence.PasswordPolicyPersistence passwordPolicyPersistence

passwordPolicyRelPersistence

@BeanReference(type=com.liferay.portal.service.persistence.PasswordPolicyRelPersistence.class)
protected com.liferay.portal.service.persistence.PasswordPolicyRelPersistence passwordPolicyRelPersistence

passwordTrackerPersistence

@BeanReference(type=com.liferay.portal.service.persistence.PasswordTrackerPersistence.class)
protected com.liferay.portal.service.persistence.PasswordTrackerPersistence passwordTrackerPersistence

permissionPersistence

@BeanReference(type=com.liferay.portal.service.persistence.PermissionPersistence.class)
protected com.liferay.portal.service.persistence.PermissionPersistence permissionPersistence

phonePersistence

@BeanReference(type=com.liferay.portal.service.persistence.PhonePersistence.class)
protected com.liferay.portal.service.persistence.PhonePersistence phonePersistence

pluginSettingPersistence

@BeanReference(type=com.liferay.portal.service.persistence.PluginSettingPersistence.class)
protected com.liferay.portal.service.persistence.PluginSettingPersistence pluginSettingPersistence

portalPreferencesPersistence

@BeanReference(type=com.liferay.portal.service.persistence.PortalPreferencesPersistence.class)
protected com.liferay.portal.service.persistence.PortalPreferencesPersistence portalPreferencesPersistence

portletPersistence

@BeanReference(type=com.liferay.portal.service.persistence.PortletPersistence.class)
protected com.liferay.portal.service.persistence.PortletPersistence portletPersistence

portletItemPersistence

@BeanReference(type=com.liferay.portal.service.persistence.PortletItemPersistence.class)
protected com.liferay.portal.service.persistence.PortletItemPersistence portletItemPersistence

portletPreferencesPersistence

@BeanReference(type=com.liferay.portal.service.persistence.PortletPreferencesPersistence.class)
protected com.liferay.portal.service.persistence.PortletPreferencesPersistence portletPreferencesPersistence

regionPersistence

@BeanReference(type=com.liferay.portal.service.persistence.RegionPersistence.class)
protected com.liferay.portal.service.persistence.RegionPersistence regionPersistence

releasePersistence

@BeanReference(type=com.liferay.portal.service.persistence.ReleasePersistence.class)
protected com.liferay.portal.service.persistence.ReleasePersistence releasePersistence

repositoryPersistence

@BeanReference(type=com.liferay.portal.service.persistence.RepositoryPersistence.class)
protected com.liferay.portal.service.persistence.RepositoryPersistence repositoryPersistence

repositoryEntryPersistence

@BeanReference(type=com.liferay.portal.service.persistence.RepositoryEntryPersistence.class)
protected com.liferay.portal.service.persistence.RepositoryEntryPersistence repositoryEntryPersistence

resourcePersistence

@BeanReference(type=com.liferay.portal.service.persistence.ResourcePersistence.class)
protected com.liferay.portal.service.persistence.ResourcePersistence resourcePersistence

resourceActionPersistence

@BeanReference(type=com.liferay.portal.service.persistence.ResourceActionPersistence.class)
protected com.liferay.portal.service.persistence.ResourceActionPersistence resourceActionPersistence

resourceBlockPersistence

@BeanReference(type=com.liferay.portal.service.persistence.ResourceBlockPersistence.class)
protected com.liferay.portal.service.persistence.ResourceBlockPersistence resourceBlockPersistence

resourceBlockPermissionPersistence

@BeanReference(type=com.liferay.portal.service.persistence.ResourceBlockPermissionPersistence.class)
protected com.liferay.portal.service.persistence.ResourceBlockPermissionPersistence resourceBlockPermissionPersistence

resourceCodePersistence

@BeanReference(type=com.liferay.portal.service.persistence.ResourceCodePersistence.class)
protected com.liferay.portal.service.persistence.ResourceCodePersistence resourceCodePersistence

resourcePermissionPersistence

@BeanReference(type=com.liferay.portal.service.persistence.ResourcePermissionPersistence.class)
protected com.liferay.portal.service.persistence.ResourcePermissionPersistence resourcePermissionPersistence

resourceTypePermissionPersistence

@BeanReference(type=com.liferay.portal.service.persistence.ResourceTypePermissionPersistence.class)
protected com.liferay.portal.service.persistence.ResourceTypePermissionPersistence resourceTypePermissionPersistence

rolePersistence

@BeanReference(type=com.liferay.portal.service.persistence.RolePersistence.class)
protected com.liferay.portal.service.persistence.RolePersistence rolePersistence

serviceComponentPersistence

@BeanReference(type=com.liferay.portal.service.persistence.ServiceComponentPersistence.class)
protected com.liferay.portal.service.persistence.ServiceComponentPersistence serviceComponentPersistence

shardPersistence

@BeanReference(type=com.liferay.portal.service.persistence.ShardPersistence.class)
protected com.liferay.portal.service.persistence.ShardPersistence shardPersistence

subscriptionPersistence

@BeanReference(type=com.liferay.portal.service.persistence.SubscriptionPersistence.class)
protected com.liferay.portal.service.persistence.SubscriptionPersistence subscriptionPersistence

teamPersistence

@BeanReference(type=com.liferay.portal.service.persistence.TeamPersistence.class)
protected com.liferay.portal.service.persistence.TeamPersistence teamPersistence

ticketPersistence

@BeanReference(type=com.liferay.portal.service.persistence.TicketPersistence.class)
protected com.liferay.portal.service.persistence.TicketPersistence ticketPersistence

userPersistence

@BeanReference(type=com.liferay.portal.service.persistence.UserPersistence.class)
protected com.liferay.portal.service.persistence.UserPersistence userPersistence

userGroupPersistence

@BeanReference(type=com.liferay.portal.service.persistence.UserGroupPersistence.class)
protected com.liferay.portal.service.persistence.UserGroupPersistence userGroupPersistence

userGroupGroupRolePersistence

@BeanReference(type=com.liferay.portal.service.persistence.UserGroupGroupRolePersistence.class)
protected com.liferay.portal.service.persistence.UserGroupGroupRolePersistence userGroupGroupRolePersistence

userGroupRolePersistence

@BeanReference(type=com.liferay.portal.service.persistence.UserGroupRolePersistence.class)
protected com.liferay.portal.service.persistence.UserGroupRolePersistence userGroupRolePersistence

userIdMapperPersistence

@BeanReference(type=com.liferay.portal.service.persistence.UserIdMapperPersistence.class)
protected com.liferay.portal.service.persistence.UserIdMapperPersistence userIdMapperPersistence

userNotificationEventPersistence

@BeanReference(type=com.liferay.portal.service.persistence.UserNotificationEventPersistence.class)
protected com.liferay.portal.service.persistence.UserNotificationEventPersistence userNotificationEventPersistence

userTrackerPersistence

@BeanReference(type=com.liferay.portal.service.persistence.UserTrackerPersistence.class)
protected com.liferay.portal.service.persistence.UserTrackerPersistence userTrackerPersistence

userTrackerPathPersistence

@BeanReference(type=com.liferay.portal.service.persistence.UserTrackerPathPersistence.class)
protected com.liferay.portal.service.persistence.UserTrackerPathPersistence userTrackerPathPersistence

virtualHostPersistence

@BeanReference(type=com.liferay.portal.service.persistence.VirtualHostPersistence.class)
protected com.liferay.portal.service.persistence.VirtualHostPersistence virtualHostPersistence

webDAVPropsPersistence

@BeanReference(type=com.liferay.portal.service.persistence.WebDAVPropsPersistence.class)
protected com.liferay.portal.service.persistence.WebDAVPropsPersistence webDAVPropsPersistence

websitePersistence

@BeanReference(type=com.liferay.portal.service.persistence.WebsitePersistence.class)
protected com.liferay.portal.service.persistence.WebsitePersistence websitePersistence

workflowDefinitionLinkPersistence

@BeanReference(type=com.liferay.portal.service.persistence.WorkflowDefinitionLinkPersistence.class)
protected com.liferay.portal.service.persistence.WorkflowDefinitionLinkPersistence workflowDefinitionLinkPersistence

workflowInstanceLinkPersistence

@BeanReference(type=com.liferay.portal.service.persistence.WorkflowInstanceLinkPersistence.class)
protected com.liferay.portal.service.persistence.WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence

assetEntryPersistence

@BeanReference(type=com.liferay.portlet.asset.service.persistence.AssetEntryPersistence.class)
protected com.liferay.portlet.asset.service.persistence.AssetEntryPersistence assetEntryPersistence

expandoValuePersistence

@BeanReference(type=com.liferay.portlet.expando.service.persistence.ExpandoValuePersistence.class)
protected com.liferay.portlet.expando.service.persistence.ExpandoValuePersistence expandoValuePersistence

containsGroup

protected OrganizationPersistenceImpl.ContainsGroup containsGroup

addGroup

protected OrganizationPersistenceImpl.AddGroup addGroup

clearGroups

protected OrganizationPersistenceImpl.ClearGroups clearGroups

removeGroup

protected OrganizationPersistenceImpl.RemoveGroup removeGroup

containsUser

protected OrganizationPersistenceImpl.ContainsUser containsUser

addUser

protected OrganizationPersistenceImpl.AddUser addUser

clearUsers

protected OrganizationPersistenceImpl.ClearUsers clearUsers

removeUser

protected OrganizationPersistenceImpl.RemoveUser removeUser
Constructor Detail

OrganizationPersistenceImpl

public OrganizationPersistenceImpl()
Method Detail

cacheResult

public void cacheResult(com.liferay.portal.model.Organization organization)
Caches the organization in the entity cache if it is enabled.

Specified by:
cacheResult in interface com.liferay.portal.service.persistence.OrganizationPersistence
Parameters:
organization - the organization

cacheResult

public void cacheResult(java.util.List<com.liferay.portal.model.Organization> organizations)
Caches the organizations in the entity cache if it is enabled.

Specified by:
cacheResult in interface com.liferay.portal.service.persistence.OrganizationPersistence
Parameters:
organizations - the organizations

clearCache

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

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portal.model.Organization>
Overrides:
clearCache in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.model.Organization>

clearCache

public void clearCache(com.liferay.portal.model.Organization organization)
Clears the cache for the organization.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portal.model.Organization>
Overrides:
clearCache in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.model.Organization>

clearCache

public void clearCache(java.util.List<com.liferay.portal.model.Organization> organizations)
Specified by:
clearCache in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portal.model.Organization>
Overrides:
clearCache in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.model.Organization>

clearUniqueFindersCache

protected void clearUniqueFindersCache(com.liferay.portal.model.Organization organization)

create

public com.liferay.portal.model.Organization create(long organizationId)
Creates a new organization with the primary key. Does not add the organization to the database.

Specified by:
create in interface com.liferay.portal.service.persistence.OrganizationPersistence
Parameters:
organizationId - the primary key for the new organization
Returns:
the new organization

remove

public com.liferay.portal.model.Organization remove(long organizationId)
                                             throws com.liferay.portal.NoSuchOrganizationException,
                                                    com.liferay.portal.kernel.exception.SystemException
Removes the organization with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
remove in interface com.liferay.portal.service.persistence.OrganizationPersistence
Parameters:
organizationId - the primary key of the organization
Returns:
the organization that was removed
Throws:
com.liferay.portal.NoSuchOrganizationException - if a organization with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

remove

public com.liferay.portal.model.Organization remove(java.io.Serializable primaryKey)
                                             throws com.liferay.portal.NoSuchOrganizationException,
                                                    com.liferay.portal.kernel.exception.SystemException
Removes the organization with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
remove in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portal.model.Organization>
Overrides:
remove in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.model.Organization>
Parameters:
primaryKey - the primary key of the organization
Returns:
the organization that was removed
Throws:
com.liferay.portal.NoSuchOrganizationException - if a organization with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeImpl

protected com.liferay.portal.model.Organization removeImpl(com.liferay.portal.model.Organization organization)
                                                    throws com.liferay.portal.kernel.exception.SystemException
Overrides:
removeImpl in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.model.Organization>
Throws:
com.liferay.portal.kernel.exception.SystemException

updateImpl

public com.liferay.portal.model.Organization updateImpl(com.liferay.portal.model.Organization organization,
                                                        boolean merge)
                                                 throws com.liferay.portal.kernel.exception.SystemException
Specified by:
updateImpl in interface com.liferay.portal.service.persistence.OrganizationPersistence
Overrides:
updateImpl in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.model.Organization>
Throws:
com.liferay.portal.kernel.exception.SystemException

toUnwrappedModel

protected com.liferay.portal.model.Organization toUnwrappedModel(com.liferay.portal.model.Organization organization)

findByPrimaryKey

public com.liferay.portal.model.Organization findByPrimaryKey(java.io.Serializable primaryKey)
                                                       throws com.liferay.portal.NoSuchModelException,
                                                              com.liferay.portal.kernel.exception.SystemException
Returns the organization with the primary key or throws a NoSuchModelException if it could not be found.

Specified by:
findByPrimaryKey in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portal.model.Organization>
Overrides:
findByPrimaryKey in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.model.Organization>
Parameters:
primaryKey - the primary key of the organization
Returns:
the organization
Throws:
com.liferay.portal.NoSuchModelException - if a organization with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByPrimaryKey

public com.liferay.portal.model.Organization findByPrimaryKey(long organizationId)
                                                       throws com.liferay.portal.NoSuchOrganizationException,
                                                              com.liferay.portal.kernel.exception.SystemException
Returns the organization with the primary key or throws a NoSuchOrganizationException if it could not be found.

Specified by:
findByPrimaryKey in interface com.liferay.portal.service.persistence.OrganizationPersistence
Parameters:
organizationId - the primary key of the organization
Returns:
the organization
Throws:
com.liferay.portal.NoSuchOrganizationException - if a organization with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

fetchByPrimaryKey

public com.liferay.portal.model.Organization fetchByPrimaryKey(java.io.Serializable primaryKey)
                                                        throws com.liferay.portal.kernel.exception.SystemException
Returns the organization with the primary key or returns null if it could not be found.

Specified by:
fetchByPrimaryKey in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portal.model.Organization>
Overrides:
fetchByPrimaryKey in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.model.Organization>
Parameters:
primaryKey - the primary key of the organization
Returns:
the organization, or null if a organization with the primary key could not be found
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

fetchByPrimaryKey

public com.liferay.portal.model.Organization fetchByPrimaryKey(long organizationId)
                                                        throws com.liferay.portal.kernel.exception.SystemException
Returns the organization with the primary key or returns null if it could not be found.

Specified by:
fetchByPrimaryKey in interface com.liferay.portal.service.persistence.OrganizationPersistence
Parameters:
organizationId - the primary key of the organization
Returns:
the organization, or null if a organization with the primary key could not be found
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByCompanyId

public java.util.List<com.liferay.portal.model.Organization> findByCompanyId(long companyId)
                                                                      throws com.liferay.portal.kernel.exception.SystemException
Returns all the organizations where companyId = ?.

Specified by:
findByCompanyId in interface com.liferay.portal.service.persistence.OrganizationPersistence
Parameters:
companyId - the company ID
Returns:
the matching organizations
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByCompanyId

public java.util.List<com.liferay.portal.model.Organization> findByCompanyId(long companyId,
                                                                             int start,
                                                                             int end)
                                                                      throws com.liferay.portal.kernel.exception.SystemException
Returns a range of all the organizations 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 com.liferay.portal.service.persistence.OrganizationPersistence
Parameters:
companyId - the company ID
start - the lower bound of the range of organizations
end - the upper bound of the range of organizations (not inclusive)
Returns:
the range of matching organizations
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByCompanyId

public java.util.List<com.liferay.portal.model.Organization> findByCompanyId(long companyId,
                                                                             int start,
                                                                             int end,
                                                                             com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                      throws com.liferay.portal.kernel.exception.SystemException
Returns an ordered range of all the organizations 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 com.liferay.portal.service.persistence.OrganizationPersistence
Parameters:
companyId - the company ID
start - the lower bound of the range of organizations
end - the upper bound of the range of organizations (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching organizations
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByCompanyId_First

public com.liferay.portal.model.Organization findByCompanyId_First(long companyId,
                                                                   com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                            throws com.liferay.portal.NoSuchOrganizationException,
                                                                   com.liferay.portal.kernel.exception.SystemException
Returns the first organization 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 com.liferay.portal.service.persistence.OrganizationPersistence
Parameters:
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching organization
Throws:
com.liferay.portal.NoSuchOrganizationException - if a matching organization could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByCompanyId_Last

public com.liferay.portal.model.Organization findByCompanyId_Last(long companyId,
                                                                  com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                           throws com.liferay.portal.NoSuchOrganizationException,
                                                                  com.liferay.portal.kernel.exception.SystemException
Returns the last organization 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 com.liferay.portal.service.persistence.OrganizationPersistence
Parameters:
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching organization
Throws:
com.liferay.portal.NoSuchOrganizationException - if a matching organization could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByCompanyId_PrevAndNext

public com.liferay.portal.model.Organization[] findByCompanyId_PrevAndNext(long organizationId,
                                                                           long companyId,
                                                                           com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                    throws com.liferay.portal.NoSuchOrganizationException,
                                                                           com.liferay.portal.kernel.exception.SystemException
Returns the organizations before and after the current organization 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 com.liferay.portal.service.persistence.OrganizationPersistence
Parameters:
organizationId - the primary key of the current organization
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next organization
Throws:
com.liferay.portal.NoSuchOrganizationException - if a organization with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getByCompanyId_PrevAndNext

protected com.liferay.portal.model.Organization getByCompanyId_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
                                                                           com.liferay.portal.model.Organization organization,
                                                                           long companyId,
                                                                           com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
                                                                           boolean previous)

filterFindByCompanyId

public java.util.List<com.liferay.portal.model.Organization> filterFindByCompanyId(long companyId)
                                                                            throws com.liferay.portal.kernel.exception.SystemException
Returns all the organizations that the user has permission to view where companyId = ?.

Specified by:
filterFindByCompanyId in interface com.liferay.portal.service.persistence.OrganizationPersistence
Parameters:
companyId - the company ID
Returns:
the matching organizations that the user has permission to view
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

filterFindByCompanyId

public java.util.List<com.liferay.portal.model.Organization> filterFindByCompanyId(long companyId,
                                                                                   int start,
                                                                                   int end)
                                                                            throws com.liferay.portal.kernel.exception.SystemException
Returns a range of all the organizations that the user has permission to view 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:
filterFindByCompanyId in interface com.liferay.portal.service.persistence.OrganizationPersistence
Parameters:
companyId - the company ID
start - the lower bound of the range of organizations
end - the upper bound of the range of organizations (not inclusive)
Returns:
the range of matching organizations that the user has permission to view
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

filterFindByCompanyId

public java.util.List<com.liferay.portal.model.Organization> filterFindByCompanyId(long companyId,
                                                                                   int start,
                                                                                   int end,
                                                                                   com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                            throws com.liferay.portal.kernel.exception.SystemException
Returns an ordered range of all the organizations that the user has permissions to view 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:
filterFindByCompanyId in interface com.liferay.portal.service.persistence.OrganizationPersistence
Parameters:
companyId - the company ID
start - the lower bound of the range of organizations
end - the upper bound of the range of organizations (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching organizations that the user has permission to view
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

filterFindByCompanyId_PrevAndNext

public com.liferay.portal.model.Organization[] filterFindByCompanyId_PrevAndNext(long organizationId,
                                                                                 long companyId,
                                                                                 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                          throws com.liferay.portal.NoSuchOrganizationException,
                                                                                 com.liferay.portal.kernel.exception.SystemException
Returns the organizations before and after the current organization in the ordered set of organizations that the user has permission to view where companyId = ?.

Specified by:
filterFindByCompanyId_PrevAndNext in interface com.liferay.portal.service.persistence.OrganizationPersistence
Parameters:
organizationId - the primary key of the current organization
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next organization
Throws:
com.liferay.portal.NoSuchOrganizationException - if a organization with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

filterGetByCompanyId_PrevAndNext

protected com.liferay.portal.model.Organization filterGetByCompanyId_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
                                                                                 com.liferay.portal.model.Organization organization,
                                                                                 long companyId,
                                                                                 com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
                                                                                 boolean previous)

findByLocations

public java.util.List<com.liferay.portal.model.Organization> findByLocations(long companyId)
                                                                      throws com.liferay.portal.kernel.exception.SystemException
Returns all the organizations where companyId = ?.

Specified by:
findByLocations in interface com.liferay.portal.service.persistence.OrganizationPersistence
Parameters:
companyId - the company ID
Returns:
the matching organizations
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByLocations

public java.util.List<com.liferay.portal.model.Organization> findByLocations(long companyId,
                                                                             int start,
                                                                             int end)
                                                                      throws com.liferay.portal.kernel.exception.SystemException
Returns a range of all the organizations 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:
findByLocations in interface com.liferay.portal.service.persistence.OrganizationPersistence
Parameters:
companyId - the company ID
start - the lower bound of the range of organizations
end - the upper bound of the range of organizations (not inclusive)
Returns:
the range of matching organizations
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByLocations

public java.util.List<com.liferay.portal.model.Organization> findByLocations(long companyId,
                                                                             int start,
                                                                             int end,
                                                                             com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                      throws com.liferay.portal.kernel.exception.SystemException
Returns an ordered range of all the organizations 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:
findByLocations in interface com.liferay.portal.service.persistence.OrganizationPersistence
Parameters:
companyId - the company ID
start - the lower bound of the range of organizations
end - the upper bound of the range of organizations (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching organizations
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByLocations_First

public com.liferay.portal.model.Organization findByLocations_First(long companyId,
                                                                   com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                            throws com.liferay.portal.NoSuchOrganizationException,
                                                                   com.liferay.portal.kernel.exception.SystemException
Returns the first organization 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:
findByLocations_First in interface com.liferay.portal.service.persistence.OrganizationPersistence
Parameters:
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching organization
Throws:
com.liferay.portal.NoSuchOrganizationException - if a matching organization could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByLocations_Last

public com.liferay.portal.model.Organization findByLocations_Last(long companyId,
                                                                  com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                           throws com.liferay.portal.NoSuchOrganizationException,
                                                                  com.liferay.portal.kernel.exception.SystemException
Returns the last organization 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:
findByLocations_Last in interface com.liferay.portal.service.persistence.OrganizationPersistence
Parameters:
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching organization
Throws:
com.liferay.portal.NoSuchOrganizationException - if a matching organization could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByLocations_PrevAndNext

public com.liferay.portal.model.Organization[] findByLocations_PrevAndNext(long organizationId,
                                                                           long companyId,
                                                                           com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                    throws com.liferay.portal.NoSuchOrganizationException,
                                                                           com.liferay.portal.kernel.exception.SystemException
Returns the organizations before and after the current organization 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:
findByLocations_PrevAndNext in interface com.liferay.portal.service.persistence.OrganizationPersistence
Parameters:
organizationId - the primary key of the current organization
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next organization
Throws:
com.liferay.portal.NoSuchOrganizationException - if a organization with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getByLocations_PrevAndNext

protected com.liferay.portal.model.Organization getByLocations_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
                                                                           com.liferay.portal.model.Organization organization,
                                                                           long companyId,
                                                                           com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
                                                                           boolean previous)

filterFindByLocations

public java.util.List<com.liferay.portal.model.Organization> filterFindByLocations(long companyId)
                                                                            throws com.liferay.portal.kernel.exception.SystemException
Returns all the organizations that the user has permission to view where companyId = ?.

Specified by:
filterFindByLocations in interface com.liferay.portal.service.persistence.OrganizationPersistence
Parameters:
companyId - the company ID
Returns:
the matching organizations that the user has permission to view
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

filterFindByLocations

public java.util.List<com.liferay.portal.model.Organization> filterFindByLocations(long companyId,
                                                                                   int start,
                                                                                   int end)
                                                                            throws com.liferay.portal.kernel.exception.SystemException
Returns a range of all the organizations that the user has permission to view 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:
filterFindByLocations in interface com.liferay.portal.service.persistence.OrganizationPersistence
Parameters:
companyId - the company ID
start - the lower bound of the range of organizations
end - the upper bound of the range of organizations (not inclusive)
Returns:
the range of matching organizations that the user has permission to view
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

filterFindByLocations

public java.util.List<com.liferay.portal.model.Organization> filterFindByLocations(long companyId,
                                                                                   int start,
                                                                                   int end,
                                                                                   com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                            throws com.liferay.portal.kernel.exception.SystemException
Returns an ordered range of all the organizations that the user has permissions to view 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:
filterFindByLocations in interface com.liferay.portal.service.persistence.OrganizationPersistence
Parameters:
companyId - the company ID
start - the lower bound of the range of organizations
end - the upper bound of the range of organizations (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching organizations that the user has permission to view
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

filterFindByLocations_PrevAndNext

public com.liferay.portal.model.Organization[] filterFindByLocations_PrevAndNext(long organizationId,
                                                                                 long companyId,
                                                                                 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                          throws com.liferay.portal.NoSuchOrganizationException,
                                                                                 com.liferay.portal.kernel.exception.SystemException
Returns the organizations before and after the current organization in the ordered set of organizations that the user has permission to view where companyId = ?.

Specified by:
filterFindByLocations_PrevAndNext in interface com.liferay.portal.service.persistence.OrganizationPersistence
Parameters:
organizationId - the primary key of the current organization
companyId - the company ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next organization
Throws:
com.liferay.portal.NoSuchOrganizationException - if a organization with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

filterGetByLocations_PrevAndNext

protected com.liferay.portal.model.Organization filterGetByLocations_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
                                                                                 com.liferay.portal.model.Organization organization,
                                                                                 long companyId,
                                                                                 com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
                                                                                 boolean previous)

findByC_P

public java.util.List<com.liferay.portal.model.Organization> findByC_P(long companyId,
                                                                       long parentOrganizationId)
                                                                throws com.liferay.portal.kernel.exception.SystemException
Returns all the organizations where companyId = ? and parentOrganizationId = ?.

Specified by:
findByC_P in interface com.liferay.portal.service.persistence.OrganizationPersistence
Parameters:
companyId - the company ID
parentOrganizationId - the parent organization ID
Returns:
the matching organizations
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByC_P

public java.util.List<com.liferay.portal.model.Organization> findByC_P(long companyId,
                                                                       long parentOrganizationId,
                                                                       int start,
                                                                       int end)
                                                                throws com.liferay.portal.kernel.exception.SystemException
Returns a range of all the organizations where companyId = ? and parentOrganizationId = ?.

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_P in interface com.liferay.portal.service.persistence.OrganizationPersistence
Parameters:
companyId - the company ID
parentOrganizationId - the parent organization ID
start - the lower bound of the range of organizations
end - the upper bound of the range of organizations (not inclusive)
Returns:
the range of matching organizations
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByC_P

public java.util.List<com.liferay.portal.model.Organization> findByC_P(long companyId,
                                                                       long parentOrganizationId,
                                                                       int start,
                                                                       int end,
                                                                       com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                throws com.liferay.portal.kernel.exception.SystemException
Returns an ordered range of all the organizations where companyId = ? and parentOrganizationId = ?.

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_P in interface com.liferay.portal.service.persistence.OrganizationPersistence
Parameters:
companyId - the company ID
parentOrganizationId - the parent organization ID
start - the lower bound of the range of organizations
end - the upper bound of the range of organizations (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching organizations
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByC_P_First

public com.liferay.portal.model.Organization findByC_P_First(long companyId,
                                                             long parentOrganizationId,
                                                             com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                      throws com.liferay.portal.NoSuchOrganizationException,
                                                             com.liferay.portal.kernel.exception.SystemException
Returns the first organization in the ordered set where companyId = ? and parentOrganizationId = ?.

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_P_First in interface com.liferay.portal.service.persistence.OrganizationPersistence
Parameters:
companyId - the company ID
parentOrganizationId - the parent organization ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching organization
Throws:
com.liferay.portal.NoSuchOrganizationException - if a matching organization could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByC_P_Last

public com.liferay.portal.model.Organization findByC_P_Last(long companyId,
                                                            long parentOrganizationId,
                                                            com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                     throws com.liferay.portal.NoSuchOrganizationException,
                                                            com.liferay.portal.kernel.exception.SystemException
Returns the last organization in the ordered set where companyId = ? and parentOrganizationId = ?.

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_P_Last in interface com.liferay.portal.service.persistence.OrganizationPersistence
Parameters:
companyId - the company ID
parentOrganizationId - the parent organization ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching organization
Throws:
com.liferay.portal.NoSuchOrganizationException - if a matching organization could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByC_P_PrevAndNext

public com.liferay.portal.model.Organization[] findByC_P_PrevAndNext(long organizationId,
                                                                     long companyId,
                                                                     long parentOrganizationId,
                                                                     com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                              throws com.liferay.portal.NoSuchOrganizationException,
                                                                     com.liferay.portal.kernel.exception.SystemException
Returns the organizations before and after the current organization in the ordered set where companyId = ? and parentOrganizationId = ?.

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_P_PrevAndNext in interface com.liferay.portal.service.persistence.OrganizationPersistence
Parameters:
organizationId - the primary key of the current organization
companyId - the company ID
parentOrganizationId - the parent organization ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next organization
Throws:
com.liferay.portal.NoSuchOrganizationException - if a organization with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getByC_P_PrevAndNext

protected com.liferay.portal.model.Organization getByC_P_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
                                                                     com.liferay.portal.model.Organization organization,
                                                                     long companyId,
                                                                     long parentOrganizationId,
                                                                     com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
                                                                     boolean previous)

filterFindByC_P

public java.util.List<com.liferay.portal.model.Organization> filterFindByC_P(long companyId,
                                                                             long parentOrganizationId)
                                                                      throws com.liferay.portal.kernel.exception.SystemException
Returns all the organizations that the user has permission to view where companyId = ? and parentOrganizationId = ?.

Specified by:
filterFindByC_P in interface com.liferay.portal.service.persistence.OrganizationPersistence
Parameters:
companyId - the company ID
parentOrganizationId - the parent organization ID
Returns:
the matching organizations that the user has permission to view
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

filterFindByC_P

public java.util.List<com.liferay.portal.model.Organization> filterFindByC_P(long companyId,
                                                                             long parentOrganizationId,
                                                                             int start,
                                                                             int end)
                                                                      throws com.liferay.portal.kernel.exception.SystemException
Returns a range of all the organizations that the user has permission to view where companyId = ? and parentOrganizationId = ?.

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:
filterFindByC_P in interface com.liferay.portal.service.persistence.OrganizationPersistence
Parameters:
companyId - the company ID
parentOrganizationId - the parent organization ID
start - the lower bound of the range of organizations
end - the upper bound of the range of organizations (not inclusive)
Returns:
the range of matching organizations that the user has permission to view
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

filterFindByC_P

public java.util.List<com.liferay.portal.model.Organization> filterFindByC_P(long companyId,
                                                                             long parentOrganizationId,
                                                                             int start,
                                                                             int end,
                                                                             com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                      throws com.liferay.portal.kernel.exception.SystemException
Returns an ordered range of all the organizations that the user has permissions to view where companyId = ? and parentOrganizationId = ?.

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:
filterFindByC_P in interface com.liferay.portal.service.persistence.OrganizationPersistence
Parameters:
companyId - the company ID
parentOrganizationId - the parent organization ID
start - the lower bound of the range of organizations
end - the upper bound of the range of organizations (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching organizations that the user has permission to view
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

filterFindByC_P_PrevAndNext

public com.liferay.portal.model.Organization[] filterFindByC_P_PrevAndNext(long organizationId,
                                                                           long companyId,
                                                                           long parentOrganizationId,
                                                                           com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                    throws com.liferay.portal.NoSuchOrganizationException,
                                                                           com.liferay.portal.kernel.exception.SystemException
Returns the organizations before and after the current organization in the ordered set of organizations that the user has permission to view where companyId = ? and parentOrganizationId = ?.

Specified by:
filterFindByC_P_PrevAndNext in interface com.liferay.portal.service.persistence.OrganizationPersistence
Parameters:
organizationId - the primary key of the current organization
companyId - the company ID
parentOrganizationId - the parent organization ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next organization
Throws:
com.liferay.portal.NoSuchOrganizationException - if a organization with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

filterGetByC_P_PrevAndNext

protected com.liferay.portal.model.Organization filterGetByC_P_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
                                                                           com.liferay.portal.model.Organization organization,
                                                                           long companyId,
                                                                           long parentOrganizationId,
                                                                           com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
                                                                           boolean previous)

findByC_N

public com.liferay.portal.model.Organization findByC_N(long companyId,
                                                       java.lang.String name)
                                                throws com.liferay.portal.NoSuchOrganizationException,
                                                       com.liferay.portal.kernel.exception.SystemException
Returns the organization where companyId = ? and name = ? or throws a NoSuchOrganizationException if it could not be found.

Specified by:
findByC_N in interface com.liferay.portal.service.persistence.OrganizationPersistence
Parameters:
companyId - the company ID
name - the name
Returns:
the matching organization
Throws:
com.liferay.portal.NoSuchOrganizationException - if a matching organization could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

fetchByC_N

public com.liferay.portal.model.Organization fetchByC_N(long companyId,
                                                        java.lang.String name)
                                                 throws com.liferay.portal.kernel.exception.SystemException
Returns the organization where companyId = ? and name = ? or returns null if it could not be found. Uses the finder cache.

Specified by:
fetchByC_N in interface com.liferay.portal.service.persistence.OrganizationPersistence
Parameters:
companyId - the company ID
name - the name
Returns:
the matching organization, or null if a matching organization could not be found
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

fetchByC_N

public com.liferay.portal.model.Organization fetchByC_N(long companyId,
                                                        java.lang.String name,
                                                        boolean retrieveFromCache)
                                                 throws com.liferay.portal.kernel.exception.SystemException
Returns the organization where companyId = ? and name = ? or returns null if it could not be found, optionally using the finder cache.

Specified by:
fetchByC_N in interface com.liferay.portal.service.persistence.OrganizationPersistence
Parameters:
companyId - the company ID
name - the name
retrieveFromCache - whether to use the finder cache
Returns:
the matching organization, or null if a matching organization could not be found
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findAll

public java.util.List<com.liferay.portal.model.Organization> findAll()
                                                              throws com.liferay.portal.kernel.exception.SystemException
Returns all the organizations.

Specified by:
findAll in interface com.liferay.portal.service.persistence.OrganizationPersistence
Returns:
the organizations
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findAll

public java.util.List<com.liferay.portal.model.Organization> findAll(int start,
                                                                     int end)
                                                              throws com.liferay.portal.kernel.exception.SystemException
Returns a range of all the organizations.

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 com.liferay.portal.service.persistence.OrganizationPersistence
Parameters:
start - the lower bound of the range of organizations
end - the upper bound of the range of organizations (not inclusive)
Returns:
the range of organizations
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findAll

public java.util.List<com.liferay.portal.model.Organization> findAll(int start,
                                                                     int end,
                                                                     com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                              throws com.liferay.portal.kernel.exception.SystemException
Returns an ordered range of all the organizations.

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 com.liferay.portal.service.persistence.OrganizationPersistence
Parameters:
start - the lower bound of the range of organizations
end - the upper bound of the range of organizations (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of organizations
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeByCompanyId

public void removeByCompanyId(long companyId)
                       throws com.liferay.portal.kernel.exception.SystemException
Removes all the organizations where companyId = ? from the database.

Specified by:
removeByCompanyId in interface com.liferay.portal.service.persistence.OrganizationPersistence
Parameters:
companyId - the company ID
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeByLocations

public void removeByLocations(long companyId)
                       throws com.liferay.portal.kernel.exception.SystemException
Removes all the organizations where companyId = ? from the database.

Specified by:
removeByLocations in interface com.liferay.portal.service.persistence.OrganizationPersistence
Parameters:
companyId - the company ID
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeByC_P

public void removeByC_P(long companyId,
                        long parentOrganizationId)
                 throws com.liferay.portal.kernel.exception.SystemException
Removes all the organizations where companyId = ? and parentOrganizationId = ? from the database.

Specified by:
removeByC_P in interface com.liferay.portal.service.persistence.OrganizationPersistence
Parameters:
companyId - the company ID
parentOrganizationId - the parent organization ID
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeByC_N

public void removeByC_N(long companyId,
                        java.lang.String name)
                 throws com.liferay.portal.NoSuchOrganizationException,
                        com.liferay.portal.kernel.exception.SystemException
Removes the organization where companyId = ? and name = ? from the database.

Specified by:
removeByC_N in interface com.liferay.portal.service.persistence.OrganizationPersistence
Parameters:
companyId - the company ID
name - the name
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
com.liferay.portal.NoSuchOrganizationException

removeAll

public void removeAll()
               throws com.liferay.portal.kernel.exception.SystemException
Removes all the organizations from the database.

Specified by:
removeAll in interface com.liferay.portal.service.persistence.OrganizationPersistence
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

countByCompanyId

public int countByCompanyId(long companyId)
                     throws com.liferay.portal.kernel.exception.SystemException
Returns the number of organizations where companyId = ?.

Specified by:
countByCompanyId in interface com.liferay.portal.service.persistence.OrganizationPersistence
Parameters:
companyId - the company ID
Returns:
the number of matching organizations
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

filterCountByCompanyId

public int filterCountByCompanyId(long companyId)
                           throws com.liferay.portal.kernel.exception.SystemException
Returns the number of organizations that the user has permission to view where companyId = ?.

Specified by:
filterCountByCompanyId in interface com.liferay.portal.service.persistence.OrganizationPersistence
Parameters:
companyId - the company ID
Returns:
the number of matching organizations that the user has permission to view
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

countByLocations

public int countByLocations(long companyId)
                     throws com.liferay.portal.kernel.exception.SystemException
Returns the number of organizations where companyId = ?.

Specified by:
countByLocations in interface com.liferay.portal.service.persistence.OrganizationPersistence
Parameters:
companyId - the company ID
Returns:
the number of matching organizations
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

filterCountByLocations

public int filterCountByLocations(long companyId)
                           throws com.liferay.portal.kernel.exception.SystemException
Returns the number of organizations that the user has permission to view where companyId = ?.

Specified by:
filterCountByLocations in interface com.liferay.portal.service.persistence.OrganizationPersistence
Parameters:
companyId - the company ID
Returns:
the number of matching organizations that the user has permission to view
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

countByC_P

public int countByC_P(long companyId,
                      long parentOrganizationId)
               throws com.liferay.portal.kernel.exception.SystemException
Returns the number of organizations where companyId = ? and parentOrganizationId = ?.

Specified by:
countByC_P in interface com.liferay.portal.service.persistence.OrganizationPersistence
Parameters:
companyId - the company ID
parentOrganizationId - the parent organization ID
Returns:
the number of matching organizations
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

filterCountByC_P

public int filterCountByC_P(long companyId,
                            long parentOrganizationId)
                     throws com.liferay.portal.kernel.exception.SystemException
Returns the number of organizations that the user has permission to view where companyId = ? and parentOrganizationId = ?.

Specified by:
filterCountByC_P in interface com.liferay.portal.service.persistence.OrganizationPersistence
Parameters:
companyId - the company ID
parentOrganizationId - the parent organization ID
Returns:
the number of matching organizations that the user has permission to view
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

countByC_N

public int countByC_N(long companyId,
                      java.lang.String name)
               throws com.liferay.portal.kernel.exception.SystemException
Returns the number of organizations where companyId = ? and name = ?.

Specified by:
countByC_N in interface com.liferay.portal.service.persistence.OrganizationPersistence
Parameters:
companyId - the company ID
name - the name
Returns:
the number of matching organizations
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

countAll

public int countAll()
             throws com.liferay.portal.kernel.exception.SystemException
Returns the number of organizations.

Specified by:
countAll in interface com.liferay.portal.service.persistence.OrganizationPersistence
Returns:
the number of organizations
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getGroups

public java.util.List<com.liferay.portal.model.Group> getGroups(long pk)
                                                         throws com.liferay.portal.kernel.exception.SystemException
Returns all the groups associated with the organization.

Specified by:
getGroups in interface com.liferay.portal.service.persistence.OrganizationPersistence
Parameters:
pk - the primary key of the organization
Returns:
the groups associated with the organization
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getGroups

public java.util.List<com.liferay.portal.model.Group> getGroups(long pk,
                                                                int start,
                                                                int end)
                                                         throws com.liferay.portal.kernel.exception.SystemException
Returns a range of all the groups associated with the organization.

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 com.liferay.portal.service.persistence.OrganizationPersistence
Parameters:
pk - the primary key of the organization
start - the lower bound of the range of organizations
end - the upper bound of the range of organizations (not inclusive)
Returns:
the range of groups associated with the organization
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getGroups

public java.util.List<com.liferay.portal.model.Group> getGroups(long pk,
                                                                int start,
                                                                int end,
                                                                com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                         throws com.liferay.portal.kernel.exception.SystemException
Returns an ordered range of all the groups associated with the organization.

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 com.liferay.portal.service.persistence.OrganizationPersistence
Parameters:
pk - the primary key of the organization
start - the lower bound of the range of organizations
end - the upper bound of the range of organizations (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of groups associated with the organization
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getGroupsSize

public int getGroupsSize(long pk)
                  throws com.liferay.portal.kernel.exception.SystemException
Returns the number of groups associated with the organization.

Specified by:
getGroupsSize in interface com.liferay.portal.service.persistence.OrganizationPersistence
Parameters:
pk - the primary key of the organization
Returns:
the number of groups associated with the organization
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

containsGroup

public boolean containsGroup(long pk,
                             long groupPK)
                      throws com.liferay.portal.kernel.exception.SystemException
Returns true if the group is associated with the organization.

Specified by:
containsGroup in interface com.liferay.portal.service.persistence.OrganizationPersistence
Parameters:
pk - the primary key of the organization
groupPK - the primary key of the group
Returns:
true if the group is associated with the organization; false otherwise
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

containsGroups

public boolean containsGroups(long pk)
                       throws com.liferay.portal.kernel.exception.SystemException
Returns true if the organization has any groups associated with it.

Specified by:
containsGroups in interface com.liferay.portal.service.persistence.OrganizationPersistence
Parameters:
pk - the primary key of the organization to check for associations with groups
Returns:
true if the organization has any groups associated with it; false otherwise
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

addGroup

public void addGroup(long pk,
                     long groupPK)
              throws com.liferay.portal.kernel.exception.SystemException
Adds an association between the organization and the group. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
addGroup in interface com.liferay.portal.service.persistence.OrganizationPersistence
Parameters:
pk - the primary key of the organization
groupPK - the primary key of the group
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

addGroup

public void addGroup(long pk,
                     com.liferay.portal.model.Group group)
              throws com.liferay.portal.kernel.exception.SystemException
Adds an association between the organization and the group. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
addGroup in interface com.liferay.portal.service.persistence.OrganizationPersistence
Parameters:
pk - the primary key of the organization
group - the group
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

addGroups

public void addGroups(long pk,
                      long[] groupPKs)
               throws com.liferay.portal.kernel.exception.SystemException
Adds an association between the organization and the groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
addGroups in interface com.liferay.portal.service.persistence.OrganizationPersistence
Parameters:
pk - the primary key of the organization
groupPKs - the primary keys of the groups
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

addGroups

public void addGroups(long pk,
                      java.util.List<com.liferay.portal.model.Group> groups)
               throws com.liferay.portal.kernel.exception.SystemException
Adds an association between the organization and the groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
addGroups in interface com.liferay.portal.service.persistence.OrganizationPersistence
Parameters:
pk - the primary key of the organization
groups - the groups
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

clearGroups

public void clearGroups(long pk)
                 throws com.liferay.portal.kernel.exception.SystemException
Clears all associations between the organization and its groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
clearGroups in interface com.liferay.portal.service.persistence.OrganizationPersistence
Parameters:
pk - the primary key of the organization to clear the associated groups from
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeGroup

public void removeGroup(long pk,
                        long groupPK)
                 throws com.liferay.portal.kernel.exception.SystemException
Removes the association between the organization and the group. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
removeGroup in interface com.liferay.portal.service.persistence.OrganizationPersistence
Parameters:
pk - the primary key of the organization
groupPK - the primary key of the group
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeGroup

public void removeGroup(long pk,
                        com.liferay.portal.model.Group group)
                 throws com.liferay.portal.kernel.exception.SystemException
Removes the association between the organization and the group. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
removeGroup in interface com.liferay.portal.service.persistence.OrganizationPersistence
Parameters:
pk - the primary key of the organization
group - the group
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeGroups

public void removeGroups(long pk,
                         long[] groupPKs)
                  throws com.liferay.portal.kernel.exception.SystemException
Removes the association between the organization and the groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
removeGroups in interface com.liferay.portal.service.persistence.OrganizationPersistence
Parameters:
pk - the primary key of the organization
groupPKs - the primary keys of the groups
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeGroups

public void removeGroups(long pk,
                         java.util.List<com.liferay.portal.model.Group> groups)
                  throws com.liferay.portal.kernel.exception.SystemException
Removes the association between the organization and the groups. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
removeGroups in interface com.liferay.portal.service.persistence.OrganizationPersistence
Parameters:
pk - the primary key of the organization
groups - the groups
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

setGroups

public void setGroups(long pk,
                      long[] groupPKs)
               throws com.liferay.portal.kernel.exception.SystemException
Sets the groups associated with the organization, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
setGroups in interface com.liferay.portal.service.persistence.OrganizationPersistence
Parameters:
pk - the primary key of the organization
groupPKs - the primary keys of the groups to be associated with the organization
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

setGroups

public void setGroups(long pk,
                      java.util.List<com.liferay.portal.model.Group> groups)
               throws com.liferay.portal.kernel.exception.SystemException
Sets the groups associated with the organization, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
setGroups in interface com.liferay.portal.service.persistence.OrganizationPersistence
Parameters:
pk - the primary key of the organization
groups - the groups to be associated with the organization
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getUsers

public java.util.List<com.liferay.portal.model.User> getUsers(long pk)
                                                       throws com.liferay.portal.kernel.exception.SystemException
Returns all the users associated with the organization.

Specified by:
getUsers in interface com.liferay.portal.service.persistence.OrganizationPersistence
Parameters:
pk - the primary key of the organization
Returns:
the users associated with the organization
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getUsers

public java.util.List<com.liferay.portal.model.User> getUsers(long pk,
                                                              int start,
                                                              int end)
                                                       throws com.liferay.portal.kernel.exception.SystemException
Returns a range of all the users associated with the organization.

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:
getUsers in interface com.liferay.portal.service.persistence.OrganizationPersistence
Parameters:
pk - the primary key of the organization
start - the lower bound of the range of organizations
end - the upper bound of the range of organizations (not inclusive)
Returns:
the range of users associated with the organization
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getUsers

public java.util.List<com.liferay.portal.model.User> getUsers(long pk,
                                                              int start,
                                                              int end,
                                                              com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                       throws com.liferay.portal.kernel.exception.SystemException
Returns an ordered range of all the users associated with the organization.

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:
getUsers in interface com.liferay.portal.service.persistence.OrganizationPersistence
Parameters:
pk - the primary key of the organization
start - the lower bound of the range of organizations
end - the upper bound of the range of organizations (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of users associated with the organization
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getUsersSize

public int getUsersSize(long pk)
                 throws com.liferay.portal.kernel.exception.SystemException
Returns the number of users associated with the organization.

Specified by:
getUsersSize in interface com.liferay.portal.service.persistence.OrganizationPersistence
Parameters:
pk - the primary key of the organization
Returns:
the number of users associated with the organization
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

containsUser

public boolean containsUser(long pk,
                            long userPK)
                     throws com.liferay.portal.kernel.exception.SystemException
Returns true if the user is associated with the organization.

Specified by:
containsUser in interface com.liferay.portal.service.persistence.OrganizationPersistence
Parameters:
pk - the primary key of the organization
userPK - the primary key of the user
Returns:
true if the user is associated with the organization; false otherwise
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

containsUsers

public boolean containsUsers(long pk)
                      throws com.liferay.portal.kernel.exception.SystemException
Returns true if the organization has any users associated with it.

Specified by:
containsUsers in interface com.liferay.portal.service.persistence.OrganizationPersistence
Parameters:
pk - the primary key of the organization to check for associations with users
Returns:
true if the organization has any users associated with it; false otherwise
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

addUser

public void addUser(long pk,
                    long userPK)
             throws com.liferay.portal.kernel.exception.SystemException
Adds an association between the organization and the user. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
addUser in interface com.liferay.portal.service.persistence.OrganizationPersistence
Parameters:
pk - the primary key of the organization
userPK - the primary key of the user
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

addUser

public void addUser(long pk,
                    com.liferay.portal.model.User user)
             throws com.liferay.portal.kernel.exception.SystemException
Adds an association between the organization and the user. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
addUser in interface com.liferay.portal.service.persistence.OrganizationPersistence
Parameters:
pk - the primary key of the organization
user - the user
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

addUsers

public void addUsers(long pk,
                     long[] userPKs)
              throws com.liferay.portal.kernel.exception.SystemException
Adds an association between the organization and the users. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
addUsers in interface com.liferay.portal.service.persistence.OrganizationPersistence
Parameters:
pk - the primary key of the organization
userPKs - the primary keys of the users
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

addUsers

public void addUsers(long pk,
                     java.util.List<com.liferay.portal.model.User> users)
              throws com.liferay.portal.kernel.exception.SystemException
Adds an association between the organization and the users. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
addUsers in interface com.liferay.portal.service.persistence.OrganizationPersistence
Parameters:
pk - the primary key of the organization
users - the users
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

clearUsers

public void clearUsers(long pk)
                throws com.liferay.portal.kernel.exception.SystemException
Clears all associations between the organization and its users. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
clearUsers in interface com.liferay.portal.service.persistence.OrganizationPersistence
Parameters:
pk - the primary key of the organization to clear the associated users from
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeUser

public void removeUser(long pk,
                       long userPK)
                throws com.liferay.portal.kernel.exception.SystemException
Removes the association between the organization and the user. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
removeUser in interface com.liferay.portal.service.persistence.OrganizationPersistence
Parameters:
pk - the primary key of the organization
userPK - the primary key of the user
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeUser

public void removeUser(long pk,
                       com.liferay.portal.model.User user)
                throws com.liferay.portal.kernel.exception.SystemException
Removes the association between the organization and the user. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
removeUser in interface com.liferay.portal.service.persistence.OrganizationPersistence
Parameters:
pk - the primary key of the organization
user - the user
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeUsers

public void removeUsers(long pk,
                        long[] userPKs)
                 throws com.liferay.portal.kernel.exception.SystemException
Removes the association between the organization and the users. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
removeUsers in interface com.liferay.portal.service.persistence.OrganizationPersistence
Parameters:
pk - the primary key of the organization
userPKs - the primary keys of the users
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeUsers

public void removeUsers(long pk,
                        java.util.List<com.liferay.portal.model.User> users)
                 throws com.liferay.portal.kernel.exception.SystemException
Removes the association between the organization and the users. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
removeUsers in interface com.liferay.portal.service.persistence.OrganizationPersistence
Parameters:
pk - the primary key of the organization
users - the users
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

setUsers

public void setUsers(long pk,
                     long[] userPKs)
              throws com.liferay.portal.kernel.exception.SystemException
Sets the users associated with the organization, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
setUsers in interface com.liferay.portal.service.persistence.OrganizationPersistence
Parameters:
pk - the primary key of the organization
userPKs - the primary keys of the users to be associated with the organization
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

setUsers

public void setUsers(long pk,
                     java.util.List<com.liferay.portal.model.User> users)
              throws com.liferay.portal.kernel.exception.SystemException
Sets the users associated with the organization, removing and adding associations as necessary. Also notifies the appropriate model listeners and clears the mapping table finder cache.

Specified by:
setUsers in interface com.liferay.portal.service.persistence.OrganizationPersistence
Parameters:
pk - the primary key of the organization
users - the users to be associated with the organization
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

afterPropertiesSet

public void afterPropertiesSet()
Initializes the organization persistence.


destroy

public void destroy()