1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   * 
13   */
14  
15  package com.liferay.portal.service.persistence;
16  
17  import com.liferay.portal.model.UserGroup;
18  
19  /**
20   * <a href="UserGroupPersistence.java.html"><b><i>View Source</i></b></a>
21   *
22   * <p>
23   * ServiceBuilder generated this class. Modifications in this class will be
24   * overwritten the next time is generated.
25   * </p>
26   *
27   * @author    Brian Wing Shun Chan
28   * @see       UserGroupPersistenceImpl
29   * @see       UserGroupUtil
30   * @generated
31   */
32  public interface UserGroupPersistence extends BasePersistence<UserGroup> {
33      public void cacheResult(com.liferay.portal.model.UserGroup userGroup);
34  
35      public void cacheResult(
36          java.util.List<com.liferay.portal.model.UserGroup> userGroups);
37  
38      public com.liferay.portal.model.UserGroup create(long userGroupId);
39  
40      public com.liferay.portal.model.UserGroup remove(long userGroupId)
41          throws com.liferay.portal.NoSuchUserGroupException,
42              com.liferay.portal.SystemException;
43  
44      /**
45       * @deprecated Use {@link BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)}.
46       */
47      public com.liferay.portal.model.UserGroup update(
48          com.liferay.portal.model.UserGroup userGroup)
49          throws com.liferay.portal.SystemException;
50  
51      public com.liferay.portal.model.UserGroup updateImpl(
52          com.liferay.portal.model.UserGroup userGroup, boolean merge)
53          throws com.liferay.portal.SystemException;
54  
55      public com.liferay.portal.model.UserGroup findByPrimaryKey(long userGroupId)
56          throws com.liferay.portal.NoSuchUserGroupException,
57              com.liferay.portal.SystemException;
58  
59      public com.liferay.portal.model.UserGroup fetchByPrimaryKey(
60          long userGroupId) throws com.liferay.portal.SystemException;
61  
62      public java.util.List<com.liferay.portal.model.UserGroup> findByCompanyId(
63          long companyId) throws com.liferay.portal.SystemException;
64  
65      public java.util.List<com.liferay.portal.model.UserGroup> findByCompanyId(
66          long companyId, int start, int end)
67          throws com.liferay.portal.SystemException;
68  
69      public java.util.List<com.liferay.portal.model.UserGroup> findByCompanyId(
70          long companyId, int start, int end,
71          com.liferay.portal.kernel.util.OrderByComparator obc)
72          throws com.liferay.portal.SystemException;
73  
74      public com.liferay.portal.model.UserGroup findByCompanyId_First(
75          long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
76          throws com.liferay.portal.NoSuchUserGroupException,
77              com.liferay.portal.SystemException;
78  
79      public com.liferay.portal.model.UserGroup findByCompanyId_Last(
80          long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
81          throws com.liferay.portal.NoSuchUserGroupException,
82              com.liferay.portal.SystemException;
83  
84      public com.liferay.portal.model.UserGroup[] findByCompanyId_PrevAndNext(
85          long userGroupId, long companyId,
86          com.liferay.portal.kernel.util.OrderByComparator obc)
87          throws com.liferay.portal.NoSuchUserGroupException,
88              com.liferay.portal.SystemException;
89  
90      public java.util.List<com.liferay.portal.model.UserGroup> findByC_P(
91          long companyId, long parentUserGroupId)
92          throws com.liferay.portal.SystemException;
93  
94      public java.util.List<com.liferay.portal.model.UserGroup> findByC_P(
95          long companyId, long parentUserGroupId, int start, int end)
96          throws com.liferay.portal.SystemException;
97  
98      public java.util.List<com.liferay.portal.model.UserGroup> findByC_P(
99          long companyId, long parentUserGroupId, int start, int end,
100         com.liferay.portal.kernel.util.OrderByComparator obc)
101         throws com.liferay.portal.SystemException;
102 
103     public com.liferay.portal.model.UserGroup findByC_P_First(long companyId,
104         long parentUserGroupId,
105         com.liferay.portal.kernel.util.OrderByComparator obc)
106         throws com.liferay.portal.NoSuchUserGroupException,
107             com.liferay.portal.SystemException;
108 
109     public com.liferay.portal.model.UserGroup findByC_P_Last(long companyId,
110         long parentUserGroupId,
111         com.liferay.portal.kernel.util.OrderByComparator obc)
112         throws com.liferay.portal.NoSuchUserGroupException,
113             com.liferay.portal.SystemException;
114 
115     public com.liferay.portal.model.UserGroup[] findByC_P_PrevAndNext(
116         long userGroupId, long companyId, long parentUserGroupId,
117         com.liferay.portal.kernel.util.OrderByComparator obc)
118         throws com.liferay.portal.NoSuchUserGroupException,
119             com.liferay.portal.SystemException;
120 
121     public com.liferay.portal.model.UserGroup findByC_N(long companyId,
122         java.lang.String name)
123         throws com.liferay.portal.NoSuchUserGroupException,
124             com.liferay.portal.SystemException;
125 
126     public com.liferay.portal.model.UserGroup fetchByC_N(long companyId,
127         java.lang.String name) throws com.liferay.portal.SystemException;
128 
129     public com.liferay.portal.model.UserGroup fetchByC_N(long companyId,
130         java.lang.String name, boolean retrieveFromCache)
131         throws com.liferay.portal.SystemException;
132 
133     public java.util.List<com.liferay.portal.model.UserGroup> findAll()
134         throws com.liferay.portal.SystemException;
135 
136     public java.util.List<com.liferay.portal.model.UserGroup> findAll(
137         int start, int end) throws com.liferay.portal.SystemException;
138 
139     public java.util.List<com.liferay.portal.model.UserGroup> findAll(
140         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
141         throws com.liferay.portal.SystemException;
142 
143     public void removeByCompanyId(long companyId)
144         throws com.liferay.portal.SystemException;
145 
146     public void removeByC_P(long companyId, long parentUserGroupId)
147         throws com.liferay.portal.SystemException;
148 
149     public void removeByC_N(long companyId, java.lang.String name)
150         throws com.liferay.portal.NoSuchUserGroupException,
151             com.liferay.portal.SystemException;
152 
153     public void removeAll() throws com.liferay.portal.SystemException;
154 
155     public int countByCompanyId(long companyId)
156         throws com.liferay.portal.SystemException;
157 
158     public int countByC_P(long companyId, long parentUserGroupId)
159         throws com.liferay.portal.SystemException;
160 
161     public int countByC_N(long companyId, java.lang.String name)
162         throws com.liferay.portal.SystemException;
163 
164     public int countAll() throws com.liferay.portal.SystemException;
165 
166     public java.util.List<com.liferay.portal.model.User> getUsers(long pk)
167         throws com.liferay.portal.SystemException;
168 
169     public java.util.List<com.liferay.portal.model.User> getUsers(long pk,
170         int start, int end) throws com.liferay.portal.SystemException;
171 
172     public java.util.List<com.liferay.portal.model.User> getUsers(long pk,
173         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
174         throws com.liferay.portal.SystemException;
175 
176     public int getUsersSize(long pk) throws com.liferay.portal.SystemException;
177 
178     public boolean containsUser(long pk, long userPK)
179         throws com.liferay.portal.SystemException;
180 
181     public boolean containsUsers(long pk)
182         throws com.liferay.portal.SystemException;
183 
184     public void addUser(long pk, long userPK)
185         throws com.liferay.portal.SystemException;
186 
187     public void addUser(long pk, com.liferay.portal.model.User user)
188         throws com.liferay.portal.SystemException;
189 
190     public void addUsers(long pk, long[] userPKs)
191         throws com.liferay.portal.SystemException;
192 
193     public void addUsers(long pk,
194         java.util.List<com.liferay.portal.model.User> users)
195         throws com.liferay.portal.SystemException;
196 
197     public void clearUsers(long pk) throws com.liferay.portal.SystemException;
198 
199     public void removeUser(long pk, long userPK)
200         throws com.liferay.portal.SystemException;
201 
202     public void removeUser(long pk, com.liferay.portal.model.User user)
203         throws com.liferay.portal.SystemException;
204 
205     public void removeUsers(long pk, long[] userPKs)
206         throws com.liferay.portal.SystemException;
207 
208     public void removeUsers(long pk,
209         java.util.List<com.liferay.portal.model.User> users)
210         throws com.liferay.portal.SystemException;
211 
212     public void setUsers(long pk, long[] userPKs)
213         throws com.liferay.portal.SystemException;
214 
215     public void setUsers(long pk,
216         java.util.List<com.liferay.portal.model.User> users)
217         throws com.liferay.portal.SystemException;
218 }