1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portal.service.persistence;
16  
17  import com.liferay.portal.model.UserGroupRole;
18  
19  /**
20   * <a href="UserGroupRolePersistence.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       UserGroupRolePersistenceImpl
29   * @see       UserGroupRoleUtil
30   * @generated
31   */
32  public interface UserGroupRolePersistence extends BasePersistence<UserGroupRole> {
33      public void cacheResult(
34          com.liferay.portal.model.UserGroupRole userGroupRole);
35  
36      public void cacheResult(
37          java.util.List<com.liferay.portal.model.UserGroupRole> userGroupRoles);
38  
39      public com.liferay.portal.model.UserGroupRole create(
40          com.liferay.portal.service.persistence.UserGroupRolePK userGroupRolePK);
41  
42      public com.liferay.portal.model.UserGroupRole remove(
43          com.liferay.portal.service.persistence.UserGroupRolePK userGroupRolePK)
44          throws com.liferay.portal.NoSuchUserGroupRoleException,
45              com.liferay.portal.kernel.exception.SystemException;
46  
47      public com.liferay.portal.model.UserGroupRole updateImpl(
48          com.liferay.portal.model.UserGroupRole userGroupRole, boolean merge)
49          throws com.liferay.portal.kernel.exception.SystemException;
50  
51      public com.liferay.portal.model.UserGroupRole findByPrimaryKey(
52          com.liferay.portal.service.persistence.UserGroupRolePK userGroupRolePK)
53          throws com.liferay.portal.NoSuchUserGroupRoleException,
54              com.liferay.portal.kernel.exception.SystemException;
55  
56      public com.liferay.portal.model.UserGroupRole fetchByPrimaryKey(
57          com.liferay.portal.service.persistence.UserGroupRolePK userGroupRolePK)
58          throws com.liferay.portal.kernel.exception.SystemException;
59  
60      public java.util.List<com.liferay.portal.model.UserGroupRole> findByUserId(
61          long userId) throws com.liferay.portal.kernel.exception.SystemException;
62  
63      public java.util.List<com.liferay.portal.model.UserGroupRole> findByUserId(
64          long userId, int start, int end)
65          throws com.liferay.portal.kernel.exception.SystemException;
66  
67      public java.util.List<com.liferay.portal.model.UserGroupRole> findByUserId(
68          long userId, int start, int end,
69          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
70          throws com.liferay.portal.kernel.exception.SystemException;
71  
72      public com.liferay.portal.model.UserGroupRole findByUserId_First(
73          long userId,
74          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
75          throws com.liferay.portal.NoSuchUserGroupRoleException,
76              com.liferay.portal.kernel.exception.SystemException;
77  
78      public com.liferay.portal.model.UserGroupRole findByUserId_Last(
79          long userId,
80          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
81          throws com.liferay.portal.NoSuchUserGroupRoleException,
82              com.liferay.portal.kernel.exception.SystemException;
83  
84      public com.liferay.portal.model.UserGroupRole[] findByUserId_PrevAndNext(
85          com.liferay.portal.service.persistence.UserGroupRolePK userGroupRolePK,
86          long userId,
87          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
88          throws com.liferay.portal.NoSuchUserGroupRoleException,
89              com.liferay.portal.kernel.exception.SystemException;
90  
91      public java.util.List<com.liferay.portal.model.UserGroupRole> findByGroupId(
92          long groupId)
93          throws com.liferay.portal.kernel.exception.SystemException;
94  
95      public java.util.List<com.liferay.portal.model.UserGroupRole> findByGroupId(
96          long groupId, int start, int end)
97          throws com.liferay.portal.kernel.exception.SystemException;
98  
99      public java.util.List<com.liferay.portal.model.UserGroupRole> findByGroupId(
100         long groupId, int start, int end,
101         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
102         throws com.liferay.portal.kernel.exception.SystemException;
103 
104     public com.liferay.portal.model.UserGroupRole findByGroupId_First(
105         long groupId,
106         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
107         throws com.liferay.portal.NoSuchUserGroupRoleException,
108             com.liferay.portal.kernel.exception.SystemException;
109 
110     public com.liferay.portal.model.UserGroupRole findByGroupId_Last(
111         long groupId,
112         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
113         throws com.liferay.portal.NoSuchUserGroupRoleException,
114             com.liferay.portal.kernel.exception.SystemException;
115 
116     public com.liferay.portal.model.UserGroupRole[] findByGroupId_PrevAndNext(
117         com.liferay.portal.service.persistence.UserGroupRolePK userGroupRolePK,
118         long groupId,
119         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
120         throws com.liferay.portal.NoSuchUserGroupRoleException,
121             com.liferay.portal.kernel.exception.SystemException;
122 
123     public java.util.List<com.liferay.portal.model.UserGroupRole> findByRoleId(
124         long roleId) throws com.liferay.portal.kernel.exception.SystemException;
125 
126     public java.util.List<com.liferay.portal.model.UserGroupRole> findByRoleId(
127         long roleId, int start, int end)
128         throws com.liferay.portal.kernel.exception.SystemException;
129 
130     public java.util.List<com.liferay.portal.model.UserGroupRole> findByRoleId(
131         long roleId, int start, int end,
132         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
133         throws com.liferay.portal.kernel.exception.SystemException;
134 
135     public com.liferay.portal.model.UserGroupRole findByRoleId_First(
136         long roleId,
137         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
138         throws com.liferay.portal.NoSuchUserGroupRoleException,
139             com.liferay.portal.kernel.exception.SystemException;
140 
141     public com.liferay.portal.model.UserGroupRole findByRoleId_Last(
142         long roleId,
143         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
144         throws com.liferay.portal.NoSuchUserGroupRoleException,
145             com.liferay.portal.kernel.exception.SystemException;
146 
147     public com.liferay.portal.model.UserGroupRole[] findByRoleId_PrevAndNext(
148         com.liferay.portal.service.persistence.UserGroupRolePK userGroupRolePK,
149         long roleId,
150         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
151         throws com.liferay.portal.NoSuchUserGroupRoleException,
152             com.liferay.portal.kernel.exception.SystemException;
153 
154     public java.util.List<com.liferay.portal.model.UserGroupRole> findByU_G(
155         long userId, long groupId)
156         throws com.liferay.portal.kernel.exception.SystemException;
157 
158     public java.util.List<com.liferay.portal.model.UserGroupRole> findByU_G(
159         long userId, long groupId, int start, int end)
160         throws com.liferay.portal.kernel.exception.SystemException;
161 
162     public java.util.List<com.liferay.portal.model.UserGroupRole> findByU_G(
163         long userId, long groupId, int start, int end,
164         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
165         throws com.liferay.portal.kernel.exception.SystemException;
166 
167     public com.liferay.portal.model.UserGroupRole findByU_G_First(long userId,
168         long groupId,
169         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
170         throws com.liferay.portal.NoSuchUserGroupRoleException,
171             com.liferay.portal.kernel.exception.SystemException;
172 
173     public com.liferay.portal.model.UserGroupRole findByU_G_Last(long userId,
174         long groupId,
175         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
176         throws com.liferay.portal.NoSuchUserGroupRoleException,
177             com.liferay.portal.kernel.exception.SystemException;
178 
179     public com.liferay.portal.model.UserGroupRole[] findByU_G_PrevAndNext(
180         com.liferay.portal.service.persistence.UserGroupRolePK userGroupRolePK,
181         long userId, long groupId,
182         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
183         throws com.liferay.portal.NoSuchUserGroupRoleException,
184             com.liferay.portal.kernel.exception.SystemException;
185 
186     public java.util.List<com.liferay.portal.model.UserGroupRole> findByG_R(
187         long groupId, long roleId)
188         throws com.liferay.portal.kernel.exception.SystemException;
189 
190     public java.util.List<com.liferay.portal.model.UserGroupRole> findByG_R(
191         long groupId, long roleId, int start, int end)
192         throws com.liferay.portal.kernel.exception.SystemException;
193 
194     public java.util.List<com.liferay.portal.model.UserGroupRole> findByG_R(
195         long groupId, long roleId, int start, int end,
196         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
197         throws com.liferay.portal.kernel.exception.SystemException;
198 
199     public com.liferay.portal.model.UserGroupRole findByG_R_First(
200         long groupId, long roleId,
201         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
202         throws com.liferay.portal.NoSuchUserGroupRoleException,
203             com.liferay.portal.kernel.exception.SystemException;
204 
205     public com.liferay.portal.model.UserGroupRole findByG_R_Last(long groupId,
206         long roleId,
207         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
208         throws com.liferay.portal.NoSuchUserGroupRoleException,
209             com.liferay.portal.kernel.exception.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 orderByComparator)
215         throws com.liferay.portal.NoSuchUserGroupRoleException,
216             com.liferay.portal.kernel.exception.SystemException;
217 
218     public java.util.List<com.liferay.portal.model.UserGroupRole> findAll()
219         throws com.liferay.portal.kernel.exception.SystemException;
220 
221     public java.util.List<com.liferay.portal.model.UserGroupRole> findAll(
222         int start, int end)
223         throws com.liferay.portal.kernel.exception.SystemException;
224 
225     public java.util.List<com.liferay.portal.model.UserGroupRole> findAll(
226         int start, int end,
227         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
228         throws com.liferay.portal.kernel.exception.SystemException;
229 
230     public void removeByUserId(long userId)
231         throws com.liferay.portal.kernel.exception.SystemException;
232 
233     public void removeByGroupId(long groupId)
234         throws com.liferay.portal.kernel.exception.SystemException;
235 
236     public void removeByRoleId(long roleId)
237         throws com.liferay.portal.kernel.exception.SystemException;
238 
239     public void removeByU_G(long userId, long groupId)
240         throws com.liferay.portal.kernel.exception.SystemException;
241 
242     public void removeByG_R(long groupId, long roleId)
243         throws com.liferay.portal.kernel.exception.SystemException;
244 
245     public void removeAll()
246         throws com.liferay.portal.kernel.exception.SystemException;
247 
248     public int countByUserId(long userId)
249         throws com.liferay.portal.kernel.exception.SystemException;
250 
251     public int countByGroupId(long groupId)
252         throws com.liferay.portal.kernel.exception.SystemException;
253 
254     public int countByRoleId(long roleId)
255         throws com.liferay.portal.kernel.exception.SystemException;
256 
257     public int countByU_G(long userId, long groupId)
258         throws com.liferay.portal.kernel.exception.SystemException;
259 
260     public int countByG_R(long groupId, long roleId)
261         throws com.liferay.portal.kernel.exception.SystemException;
262 
263     public int countAll()
264         throws com.liferay.portal.kernel.exception.SystemException;
265 }