1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    *
5    *
6    *
7    * The contents of this file are subject to the terms of the Liferay Enterprise
8    * Subscription License ("License"). You may not use this file except in
9    * compliance with the License. You can obtain a copy of the License by
10   * contacting Liferay, Inc. See the License for the specific language governing
11   * permissions and limitations under the License, including but not limited to
12   * distribution rights of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portal.service.persistence;
24  
25  import com.liferay.portal.model.UserGroupRole;
26  
27  /**
28   * <a href="UserGroupRolePersistence.java.html"><b><i>View Source</i></b></a>
29   *
30   * <p>
31   * ServiceBuilder generated this class. Modifications in this class will be
32   * overwritten the next time is generated.
33   * </p>
34   *
35   * @author    Brian Wing Shun Chan
36   * @see       UserGroupRolePersistenceImpl
37   * @see       UserGroupRoleUtil
38   * @generated
39   */
40  public interface UserGroupRolePersistence extends BasePersistence<UserGroupRole> {
41      public void cacheResult(
42          com.liferay.portal.model.UserGroupRole userGroupRole);
43  
44      public void cacheResult(
45          java.util.List<com.liferay.portal.model.UserGroupRole> userGroupRoles);
46  
47      public com.liferay.portal.model.UserGroupRole create(
48          com.liferay.portal.service.persistence.UserGroupRolePK userGroupRolePK);
49  
50      public com.liferay.portal.model.UserGroupRole remove(
51          com.liferay.portal.service.persistence.UserGroupRolePK userGroupRolePK)
52          throws com.liferay.portal.NoSuchUserGroupRoleException,
53              com.liferay.portal.SystemException;
54  
55      /**
56       * @deprecated Use {@link BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)}.
57       */
58      public com.liferay.portal.model.UserGroupRole update(
59          com.liferay.portal.model.UserGroupRole userGroupRole)
60          throws com.liferay.portal.SystemException;
61  
62      public com.liferay.portal.model.UserGroupRole updateImpl(
63          com.liferay.portal.model.UserGroupRole userGroupRole, boolean merge)
64          throws com.liferay.portal.SystemException;
65  
66      public com.liferay.portal.model.UserGroupRole findByPrimaryKey(
67          com.liferay.portal.service.persistence.UserGroupRolePK userGroupRolePK)
68          throws com.liferay.portal.NoSuchUserGroupRoleException,
69              com.liferay.portal.SystemException;
70  
71      public com.liferay.portal.model.UserGroupRole fetchByPrimaryKey(
72          com.liferay.portal.service.persistence.UserGroupRolePK userGroupRolePK)
73          throws com.liferay.portal.SystemException;
74  
75      public java.util.List<com.liferay.portal.model.UserGroupRole> findByUserId(
76          long userId) throws com.liferay.portal.SystemException;
77  
78      public java.util.List<com.liferay.portal.model.UserGroupRole> findByUserId(
79          long userId, int start, int end)
80          throws com.liferay.portal.SystemException;
81  
82      public java.util.List<com.liferay.portal.model.UserGroupRole> findByUserId(
83          long userId, int start, int end,
84          com.liferay.portal.kernel.util.OrderByComparator obc)
85          throws com.liferay.portal.SystemException;
86  
87      public com.liferay.portal.model.UserGroupRole findByUserId_First(
88          long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
89          throws com.liferay.portal.NoSuchUserGroupRoleException,
90              com.liferay.portal.SystemException;
91  
92      public com.liferay.portal.model.UserGroupRole findByUserId_Last(
93          long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
94          throws com.liferay.portal.NoSuchUserGroupRoleException,
95              com.liferay.portal.SystemException;
96  
97      public com.liferay.portal.model.UserGroupRole[] findByUserId_PrevAndNext(
98          com.liferay.portal.service.persistence.UserGroupRolePK userGroupRolePK,
99          long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
100         throws com.liferay.portal.NoSuchUserGroupRoleException,
101             com.liferay.portal.SystemException;
102 
103     public java.util.List<com.liferay.portal.model.UserGroupRole> findByGroupId(
104         long groupId) throws com.liferay.portal.SystemException;
105 
106     public java.util.List<com.liferay.portal.model.UserGroupRole> findByGroupId(
107         long groupId, int start, int end)
108         throws com.liferay.portal.SystemException;
109 
110     public java.util.List<com.liferay.portal.model.UserGroupRole> findByGroupId(
111         long groupId, int start, int end,
112         com.liferay.portal.kernel.util.OrderByComparator obc)
113         throws com.liferay.portal.SystemException;
114 
115     public com.liferay.portal.model.UserGroupRole findByGroupId_First(
116         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
117         throws com.liferay.portal.NoSuchUserGroupRoleException,
118             com.liferay.portal.SystemException;
119 
120     public com.liferay.portal.model.UserGroupRole findByGroupId_Last(
121         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
122         throws com.liferay.portal.NoSuchUserGroupRoleException,
123             com.liferay.portal.SystemException;
124 
125     public com.liferay.portal.model.UserGroupRole[] findByGroupId_PrevAndNext(
126         com.liferay.portal.service.persistence.UserGroupRolePK userGroupRolePK,
127         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
128         throws com.liferay.portal.NoSuchUserGroupRoleException,
129             com.liferay.portal.SystemException;
130 
131     public java.util.List<com.liferay.portal.model.UserGroupRole> findByRoleId(
132         long roleId) throws com.liferay.portal.SystemException;
133 
134     public java.util.List<com.liferay.portal.model.UserGroupRole> findByRoleId(
135         long roleId, int start, int end)
136         throws com.liferay.portal.SystemException;
137 
138     public java.util.List<com.liferay.portal.model.UserGroupRole> findByRoleId(
139         long roleId, int start, int end,
140         com.liferay.portal.kernel.util.OrderByComparator obc)
141         throws com.liferay.portal.SystemException;
142 
143     public com.liferay.portal.model.UserGroupRole findByRoleId_First(
144         long roleId, com.liferay.portal.kernel.util.OrderByComparator obc)
145         throws com.liferay.portal.NoSuchUserGroupRoleException,
146             com.liferay.portal.SystemException;
147 
148     public com.liferay.portal.model.UserGroupRole findByRoleId_Last(
149         long roleId, com.liferay.portal.kernel.util.OrderByComparator obc)
150         throws com.liferay.portal.NoSuchUserGroupRoleException,
151             com.liferay.portal.SystemException;
152 
153     public com.liferay.portal.model.UserGroupRole[] findByRoleId_PrevAndNext(
154         com.liferay.portal.service.persistence.UserGroupRolePK userGroupRolePK,
155         long roleId, com.liferay.portal.kernel.util.OrderByComparator obc)
156         throws com.liferay.portal.NoSuchUserGroupRoleException,
157             com.liferay.portal.SystemException;
158 
159     public java.util.List<com.liferay.portal.model.UserGroupRole> findByU_G(
160         long userId, long groupId) throws com.liferay.portal.SystemException;
161 
162     public java.util.List<com.liferay.portal.model.UserGroupRole> findByU_G(
163         long userId, long groupId, int start, int end)
164         throws com.liferay.portal.SystemException;
165 
166     public java.util.List<com.liferay.portal.model.UserGroupRole> findByU_G(
167         long userId, long groupId, int start, int end,
168         com.liferay.portal.kernel.util.OrderByComparator obc)
169         throws com.liferay.portal.SystemException;
170 
171     public com.liferay.portal.model.UserGroupRole findByU_G_First(long userId,
172         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
173         throws com.liferay.portal.NoSuchUserGroupRoleException,
174             com.liferay.portal.SystemException;
175 
176     public com.liferay.portal.model.UserGroupRole findByU_G_Last(long userId,
177         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
178         throws com.liferay.portal.NoSuchUserGroupRoleException,
179             com.liferay.portal.SystemException;
180 
181     public com.liferay.portal.model.UserGroupRole[] findByU_G_PrevAndNext(
182         com.liferay.portal.service.persistence.UserGroupRolePK userGroupRolePK,
183         long userId, long groupId,
184         com.liferay.portal.kernel.util.OrderByComparator obc)
185         throws com.liferay.portal.NoSuchUserGroupRoleException,
186             com.liferay.portal.SystemException;
187 
188     public java.util.List<com.liferay.portal.model.UserGroupRole> findByG_R(
189         long groupId, long roleId) throws com.liferay.portal.SystemException;
190 
191     public java.util.List<com.liferay.portal.model.UserGroupRole> findByG_R(
192         long groupId, long roleId, int start, int end)
193         throws com.liferay.portal.SystemException;
194 
195     public java.util.List<com.liferay.portal.model.UserGroupRole> findByG_R(
196         long groupId, long roleId, int start, int end,
197         com.liferay.portal.kernel.util.OrderByComparator obc)
198         throws com.liferay.portal.SystemException;
199 
200     public com.liferay.portal.model.UserGroupRole findByG_R_First(
201         long groupId, long roleId,
202         com.liferay.portal.kernel.util.OrderByComparator obc)
203         throws com.liferay.portal.NoSuchUserGroupRoleException,
204             com.liferay.portal.SystemException;
205 
206     public com.liferay.portal.model.UserGroupRole findByG_R_Last(long groupId,
207         long roleId, com.liferay.portal.kernel.util.OrderByComparator obc)
208         throws com.liferay.portal.NoSuchUserGroupRoleException,
209             com.liferay.portal.SystemException;
210 
211     public com.liferay.portal.model.UserGroupRole[] findByG_R_PrevAndNext(
212         com.liferay.portal.service.persistence.UserGroupRolePK userGroupRolePK,
213         long groupId, long roleId,
214         com.liferay.portal.kernel.util.OrderByComparator obc)
215         throws com.liferay.portal.NoSuchUserGroupRoleException,
216             com.liferay.portal.SystemException;
217 
218     public java.util.List<com.liferay.portal.model.UserGroupRole> findAll()
219         throws com.liferay.portal.SystemException;
220 
221     public java.util.List<com.liferay.portal.model.UserGroupRole> findAll(
222         int start, int end) throws com.liferay.portal.SystemException;
223 
224     public java.util.List<com.liferay.portal.model.UserGroupRole> findAll(
225         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
226         throws com.liferay.portal.SystemException;
227 
228     public void removeByUserId(long userId)
229         throws com.liferay.portal.SystemException;
230 
231     public void removeByGroupId(long groupId)
232         throws com.liferay.portal.SystemException;
233 
234     public void removeByRoleId(long roleId)
235         throws com.liferay.portal.SystemException;
236 
237     public void removeByU_G(long userId, long groupId)
238         throws com.liferay.portal.SystemException;
239 
240     public void removeByG_R(long groupId, long roleId)
241         throws com.liferay.portal.SystemException;
242 
243     public void removeAll() throws com.liferay.portal.SystemException;
244 
245     public int countByUserId(long userId)
246         throws com.liferay.portal.SystemException;
247 
248     public int countByGroupId(long groupId)
249         throws com.liferay.portal.SystemException;
250 
251     public int countByRoleId(long roleId)
252         throws com.liferay.portal.SystemException;
253 
254     public int countByU_G(long userId, long groupId)
255         throws com.liferay.portal.SystemException;
256 
257     public int countByG_R(long groupId, long roleId)
258         throws com.liferay.portal.SystemException;
259 
260     public int countAll() throws com.liferay.portal.SystemException;
261 }