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.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.SystemException;
46  
47      /**
48       * @deprecated Use {@link BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)}.
49       */
50      public com.liferay.portal.model.UserGroupRole update(
51          com.liferay.portal.model.UserGroupRole userGroupRole)
52          throws com.liferay.portal.SystemException;
53  
54      public com.liferay.portal.model.UserGroupRole updateImpl(
55          com.liferay.portal.model.UserGroupRole userGroupRole, boolean merge)
56          throws com.liferay.portal.SystemException;
57  
58      public com.liferay.portal.model.UserGroupRole findByPrimaryKey(
59          com.liferay.portal.service.persistence.UserGroupRolePK userGroupRolePK)
60          throws com.liferay.portal.NoSuchUserGroupRoleException,
61              com.liferay.portal.SystemException;
62  
63      public com.liferay.portal.model.UserGroupRole fetchByPrimaryKey(
64          com.liferay.portal.service.persistence.UserGroupRolePK userGroupRolePK)
65          throws com.liferay.portal.SystemException;
66  
67      public java.util.List<com.liferay.portal.model.UserGroupRole> findByUserId(
68          long userId) throws com.liferay.portal.SystemException;
69  
70      public java.util.List<com.liferay.portal.model.UserGroupRole> findByUserId(
71          long userId, int start, int end)
72          throws com.liferay.portal.SystemException;
73  
74      public java.util.List<com.liferay.portal.model.UserGroupRole> findByUserId(
75          long userId, int start, int end,
76          com.liferay.portal.kernel.util.OrderByComparator obc)
77          throws com.liferay.portal.SystemException;
78  
79      public com.liferay.portal.model.UserGroupRole findByUserId_First(
80          long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
81          throws com.liferay.portal.NoSuchUserGroupRoleException,
82              com.liferay.portal.SystemException;
83  
84      public com.liferay.portal.model.UserGroupRole findByUserId_Last(
85          long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
86          throws com.liferay.portal.NoSuchUserGroupRoleException,
87              com.liferay.portal.SystemException;
88  
89      public com.liferay.portal.model.UserGroupRole[] findByUserId_PrevAndNext(
90          com.liferay.portal.service.persistence.UserGroupRolePK userGroupRolePK,
91          long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
92          throws com.liferay.portal.NoSuchUserGroupRoleException,
93              com.liferay.portal.SystemException;
94  
95      public java.util.List<com.liferay.portal.model.UserGroupRole> findByGroupId(
96          long groupId) throws com.liferay.portal.SystemException;
97  
98      public java.util.List<com.liferay.portal.model.UserGroupRole> findByGroupId(
99          long groupId, int start, int end)
100         throws com.liferay.portal.SystemException;
101 
102     public java.util.List<com.liferay.portal.model.UserGroupRole> findByGroupId(
103         long groupId, int start, int end,
104         com.liferay.portal.kernel.util.OrderByComparator obc)
105         throws com.liferay.portal.SystemException;
106 
107     public com.liferay.portal.model.UserGroupRole findByGroupId_First(
108         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
109         throws com.liferay.portal.NoSuchUserGroupRoleException,
110             com.liferay.portal.SystemException;
111 
112     public com.liferay.portal.model.UserGroupRole findByGroupId_Last(
113         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
114         throws com.liferay.portal.NoSuchUserGroupRoleException,
115             com.liferay.portal.SystemException;
116 
117     public com.liferay.portal.model.UserGroupRole[] findByGroupId_PrevAndNext(
118         com.liferay.portal.service.persistence.UserGroupRolePK userGroupRolePK,
119         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
120         throws com.liferay.portal.NoSuchUserGroupRoleException,
121             com.liferay.portal.SystemException;
122 
123     public java.util.List<com.liferay.portal.model.UserGroupRole> findByRoleId(
124         long roleId) throws com.liferay.portal.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.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 obc)
133         throws com.liferay.portal.SystemException;
134 
135     public com.liferay.portal.model.UserGroupRole findByRoleId_First(
136         long roleId, com.liferay.portal.kernel.util.OrderByComparator obc)
137         throws com.liferay.portal.NoSuchUserGroupRoleException,
138             com.liferay.portal.SystemException;
139 
140     public com.liferay.portal.model.UserGroupRole findByRoleId_Last(
141         long roleId, com.liferay.portal.kernel.util.OrderByComparator obc)
142         throws com.liferay.portal.NoSuchUserGroupRoleException,
143             com.liferay.portal.SystemException;
144 
145     public com.liferay.portal.model.UserGroupRole[] findByRoleId_PrevAndNext(
146         com.liferay.portal.service.persistence.UserGroupRolePK userGroupRolePK,
147         long roleId, com.liferay.portal.kernel.util.OrderByComparator obc)
148         throws com.liferay.portal.NoSuchUserGroupRoleException,
149             com.liferay.portal.SystemException;
150 
151     public java.util.List<com.liferay.portal.model.UserGroupRole> findByU_G(
152         long userId, long groupId) throws com.liferay.portal.SystemException;
153 
154     public java.util.List<com.liferay.portal.model.UserGroupRole> findByU_G(
155         long userId, long groupId, int start, int end)
156         throws com.liferay.portal.SystemException;
157 
158     public java.util.List<com.liferay.portal.model.UserGroupRole> findByU_G(
159         long userId, long groupId, int start, int end,
160         com.liferay.portal.kernel.util.OrderByComparator obc)
161         throws com.liferay.portal.SystemException;
162 
163     public com.liferay.portal.model.UserGroupRole findByU_G_First(long userId,
164         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
165         throws com.liferay.portal.NoSuchUserGroupRoleException,
166             com.liferay.portal.SystemException;
167 
168     public com.liferay.portal.model.UserGroupRole findByU_G_Last(long userId,
169         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
170         throws com.liferay.portal.NoSuchUserGroupRoleException,
171             com.liferay.portal.SystemException;
172 
173     public com.liferay.portal.model.UserGroupRole[] findByU_G_PrevAndNext(
174         com.liferay.portal.service.persistence.UserGroupRolePK userGroupRolePK,
175         long userId, long groupId,
176         com.liferay.portal.kernel.util.OrderByComparator obc)
177         throws com.liferay.portal.NoSuchUserGroupRoleException,
178             com.liferay.portal.SystemException;
179 
180     public java.util.List<com.liferay.portal.model.UserGroupRole> findByG_R(
181         long groupId, long roleId) throws com.liferay.portal.SystemException;
182 
183     public java.util.List<com.liferay.portal.model.UserGroupRole> findByG_R(
184         long groupId, long roleId, int start, int end)
185         throws com.liferay.portal.SystemException;
186 
187     public java.util.List<com.liferay.portal.model.UserGroupRole> findByG_R(
188         long groupId, long roleId, int start, int end,
189         com.liferay.portal.kernel.util.OrderByComparator obc)
190         throws com.liferay.portal.SystemException;
191 
192     public com.liferay.portal.model.UserGroupRole findByG_R_First(
193         long groupId, long roleId,
194         com.liferay.portal.kernel.util.OrderByComparator obc)
195         throws com.liferay.portal.NoSuchUserGroupRoleException,
196             com.liferay.portal.SystemException;
197 
198     public com.liferay.portal.model.UserGroupRole findByG_R_Last(long groupId,
199         long roleId, com.liferay.portal.kernel.util.OrderByComparator obc)
200         throws com.liferay.portal.NoSuchUserGroupRoleException,
201             com.liferay.portal.SystemException;
202 
203     public com.liferay.portal.model.UserGroupRole[] findByG_R_PrevAndNext(
204         com.liferay.portal.service.persistence.UserGroupRolePK userGroupRolePK,
205         long groupId, long roleId,
206         com.liferay.portal.kernel.util.OrderByComparator obc)
207         throws com.liferay.portal.NoSuchUserGroupRoleException,
208             com.liferay.portal.SystemException;
209 
210     public java.util.List<com.liferay.portal.model.UserGroupRole> findAll()
211         throws com.liferay.portal.SystemException;
212 
213     public java.util.List<com.liferay.portal.model.UserGroupRole> findAll(
214         int start, int end) throws com.liferay.portal.SystemException;
215 
216     public java.util.List<com.liferay.portal.model.UserGroupRole> findAll(
217         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
218         throws com.liferay.portal.SystemException;
219 
220     public void removeByUserId(long userId)
221         throws com.liferay.portal.SystemException;
222 
223     public void removeByGroupId(long groupId)
224         throws com.liferay.portal.SystemException;
225 
226     public void removeByRoleId(long roleId)
227         throws com.liferay.portal.SystemException;
228 
229     public void removeByU_G(long userId, long groupId)
230         throws com.liferay.portal.SystemException;
231 
232     public void removeByG_R(long groupId, long roleId)
233         throws com.liferay.portal.SystemException;
234 
235     public void removeAll() throws com.liferay.portal.SystemException;
236 
237     public int countByUserId(long userId)
238         throws com.liferay.portal.SystemException;
239 
240     public int countByGroupId(long groupId)
241         throws com.liferay.portal.SystemException;
242 
243     public int countByRoleId(long roleId)
244         throws com.liferay.portal.SystemException;
245 
246     public int countByU_G(long userId, long groupId)
247         throws com.liferay.portal.SystemException;
248 
249     public int countByG_R(long groupId, long roleId)
250         throws com.liferay.portal.SystemException;
251 
252     public int countAll() throws com.liferay.portal.SystemException;
253 }