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.portlet.social.service.persistence;
16  
17  import com.liferay.portal.service.persistence.BasePersistence;
18  
19  import com.liferay.portlet.social.model.SocialRelation;
20  
21  /**
22   * <a href="SocialRelationPersistence.java.html"><b><i>View Source</i></b></a>
23   *
24   * <p>
25   * ServiceBuilder generated this class. Modifications in this class will be
26   * overwritten the next time is generated.
27   * </p>
28   *
29   * @author    Brian Wing Shun Chan
30   * @see       SocialRelationPersistenceImpl
31   * @see       SocialRelationUtil
32   * @generated
33   */
34  public interface SocialRelationPersistence extends BasePersistence<SocialRelation> {
35      public void cacheResult(
36          com.liferay.portlet.social.model.SocialRelation socialRelation);
37  
38      public void cacheResult(
39          java.util.List<com.liferay.portlet.social.model.SocialRelation> socialRelations);
40  
41      public com.liferay.portlet.social.model.SocialRelation create(
42          long relationId);
43  
44      public com.liferay.portlet.social.model.SocialRelation remove(
45          long relationId)
46          throws com.liferay.portal.kernel.exception.SystemException,
47              com.liferay.portlet.social.NoSuchRelationException;
48  
49      public com.liferay.portlet.social.model.SocialRelation updateImpl(
50          com.liferay.portlet.social.model.SocialRelation socialRelation,
51          boolean merge)
52          throws com.liferay.portal.kernel.exception.SystemException;
53  
54      public com.liferay.portlet.social.model.SocialRelation findByPrimaryKey(
55          long relationId)
56          throws com.liferay.portal.kernel.exception.SystemException,
57              com.liferay.portlet.social.NoSuchRelationException;
58  
59      public com.liferay.portlet.social.model.SocialRelation fetchByPrimaryKey(
60          long relationId)
61          throws com.liferay.portal.kernel.exception.SystemException;
62  
63      public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUuid(
64          java.lang.String uuid)
65          throws com.liferay.portal.kernel.exception.SystemException;
66  
67      public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUuid(
68          java.lang.String uuid, int start, int end)
69          throws com.liferay.portal.kernel.exception.SystemException;
70  
71      public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUuid(
72          java.lang.String uuid, int start, int end,
73          com.liferay.portal.kernel.util.OrderByComparator obc)
74          throws com.liferay.portal.kernel.exception.SystemException;
75  
76      public com.liferay.portlet.social.model.SocialRelation findByUuid_First(
77          java.lang.String uuid,
78          com.liferay.portal.kernel.util.OrderByComparator obc)
79          throws com.liferay.portal.kernel.exception.SystemException,
80              com.liferay.portlet.social.NoSuchRelationException;
81  
82      public com.liferay.portlet.social.model.SocialRelation findByUuid_Last(
83          java.lang.String uuid,
84          com.liferay.portal.kernel.util.OrderByComparator obc)
85          throws com.liferay.portal.kernel.exception.SystemException,
86              com.liferay.portlet.social.NoSuchRelationException;
87  
88      public com.liferay.portlet.social.model.SocialRelation[] findByUuid_PrevAndNext(
89          long relationId, java.lang.String uuid,
90          com.liferay.portal.kernel.util.OrderByComparator obc)
91          throws com.liferay.portal.kernel.exception.SystemException,
92              com.liferay.portlet.social.NoSuchRelationException;
93  
94      public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByCompanyId(
95          long companyId)
96          throws com.liferay.portal.kernel.exception.SystemException;
97  
98      public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByCompanyId(
99          long companyId, int start, int end)
100         throws com.liferay.portal.kernel.exception.SystemException;
101 
102     public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByCompanyId(
103         long companyId, int start, int end,
104         com.liferay.portal.kernel.util.OrderByComparator obc)
105         throws com.liferay.portal.kernel.exception.SystemException;
106 
107     public com.liferay.portlet.social.model.SocialRelation findByCompanyId_First(
108         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
109         throws com.liferay.portal.kernel.exception.SystemException,
110             com.liferay.portlet.social.NoSuchRelationException;
111 
112     public com.liferay.portlet.social.model.SocialRelation findByCompanyId_Last(
113         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
114         throws com.liferay.portal.kernel.exception.SystemException,
115             com.liferay.portlet.social.NoSuchRelationException;
116 
117     public com.liferay.portlet.social.model.SocialRelation[] findByCompanyId_PrevAndNext(
118         long relationId, long companyId,
119         com.liferay.portal.kernel.util.OrderByComparator obc)
120         throws com.liferay.portal.kernel.exception.SystemException,
121             com.liferay.portlet.social.NoSuchRelationException;
122 
123     public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId1(
124         long userId1)
125         throws com.liferay.portal.kernel.exception.SystemException;
126 
127     public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId1(
128         long userId1, int start, int end)
129         throws com.liferay.portal.kernel.exception.SystemException;
130 
131     public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId1(
132         long userId1, int start, int end,
133         com.liferay.portal.kernel.util.OrderByComparator obc)
134         throws com.liferay.portal.kernel.exception.SystemException;
135 
136     public com.liferay.portlet.social.model.SocialRelation findByUserId1_First(
137         long userId1, com.liferay.portal.kernel.util.OrderByComparator obc)
138         throws com.liferay.portal.kernel.exception.SystemException,
139             com.liferay.portlet.social.NoSuchRelationException;
140 
141     public com.liferay.portlet.social.model.SocialRelation findByUserId1_Last(
142         long userId1, com.liferay.portal.kernel.util.OrderByComparator obc)
143         throws com.liferay.portal.kernel.exception.SystemException,
144             com.liferay.portlet.social.NoSuchRelationException;
145 
146     public com.liferay.portlet.social.model.SocialRelation[] findByUserId1_PrevAndNext(
147         long relationId, long userId1,
148         com.liferay.portal.kernel.util.OrderByComparator obc)
149         throws com.liferay.portal.kernel.exception.SystemException,
150             com.liferay.portlet.social.NoSuchRelationException;
151 
152     public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId2(
153         long userId2)
154         throws com.liferay.portal.kernel.exception.SystemException;
155 
156     public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId2(
157         long userId2, int start, int end)
158         throws com.liferay.portal.kernel.exception.SystemException;
159 
160     public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId2(
161         long userId2, int start, int end,
162         com.liferay.portal.kernel.util.OrderByComparator obc)
163         throws com.liferay.portal.kernel.exception.SystemException;
164 
165     public com.liferay.portlet.social.model.SocialRelation findByUserId2_First(
166         long userId2, com.liferay.portal.kernel.util.OrderByComparator obc)
167         throws com.liferay.portal.kernel.exception.SystemException,
168             com.liferay.portlet.social.NoSuchRelationException;
169 
170     public com.liferay.portlet.social.model.SocialRelation findByUserId2_Last(
171         long userId2, com.liferay.portal.kernel.util.OrderByComparator obc)
172         throws com.liferay.portal.kernel.exception.SystemException,
173             com.liferay.portlet.social.NoSuchRelationException;
174 
175     public com.liferay.portlet.social.model.SocialRelation[] findByUserId2_PrevAndNext(
176         long relationId, long userId2,
177         com.liferay.portal.kernel.util.OrderByComparator obc)
178         throws com.liferay.portal.kernel.exception.SystemException,
179             com.liferay.portlet.social.NoSuchRelationException;
180 
181     public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByType(
182         int type) throws com.liferay.portal.kernel.exception.SystemException;
183 
184     public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByType(
185         int type, int start, int end)
186         throws com.liferay.portal.kernel.exception.SystemException;
187 
188     public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByType(
189         int type, int start, int end,
190         com.liferay.portal.kernel.util.OrderByComparator obc)
191         throws com.liferay.portal.kernel.exception.SystemException;
192 
193     public com.liferay.portlet.social.model.SocialRelation findByType_First(
194         int type, com.liferay.portal.kernel.util.OrderByComparator obc)
195         throws com.liferay.portal.kernel.exception.SystemException,
196             com.liferay.portlet.social.NoSuchRelationException;
197 
198     public com.liferay.portlet.social.model.SocialRelation findByType_Last(
199         int type, com.liferay.portal.kernel.util.OrderByComparator obc)
200         throws com.liferay.portal.kernel.exception.SystemException,
201             com.liferay.portlet.social.NoSuchRelationException;
202 
203     public com.liferay.portlet.social.model.SocialRelation[] findByType_PrevAndNext(
204         long relationId, int type,
205         com.liferay.portal.kernel.util.OrderByComparator obc)
206         throws com.liferay.portal.kernel.exception.SystemException,
207             com.liferay.portlet.social.NoSuchRelationException;
208 
209     public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByC_T(
210         long companyId, int type)
211         throws com.liferay.portal.kernel.exception.SystemException;
212 
213     public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByC_T(
214         long companyId, int type, int start, int end)
215         throws com.liferay.portal.kernel.exception.SystemException;
216 
217     public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByC_T(
218         long companyId, int type, int start, int end,
219         com.liferay.portal.kernel.util.OrderByComparator obc)
220         throws com.liferay.portal.kernel.exception.SystemException;
221 
222     public com.liferay.portlet.social.model.SocialRelation findByC_T_First(
223         long companyId, int type,
224         com.liferay.portal.kernel.util.OrderByComparator obc)
225         throws com.liferay.portal.kernel.exception.SystemException,
226             com.liferay.portlet.social.NoSuchRelationException;
227 
228     public com.liferay.portlet.social.model.SocialRelation findByC_T_Last(
229         long companyId, int type,
230         com.liferay.portal.kernel.util.OrderByComparator obc)
231         throws com.liferay.portal.kernel.exception.SystemException,
232             com.liferay.portlet.social.NoSuchRelationException;
233 
234     public com.liferay.portlet.social.model.SocialRelation[] findByC_T_PrevAndNext(
235         long relationId, long companyId, int type,
236         com.liferay.portal.kernel.util.OrderByComparator obc)
237         throws com.liferay.portal.kernel.exception.SystemException,
238             com.liferay.portlet.social.NoSuchRelationException;
239 
240     public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU1_T(
241         long userId1, int type)
242         throws com.liferay.portal.kernel.exception.SystemException;
243 
244     public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU1_T(
245         long userId1, int type, int start, int end)
246         throws com.liferay.portal.kernel.exception.SystemException;
247 
248     public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU1_T(
249         long userId1, int type, int start, int end,
250         com.liferay.portal.kernel.util.OrderByComparator obc)
251         throws com.liferay.portal.kernel.exception.SystemException;
252 
253     public com.liferay.portlet.social.model.SocialRelation findByU1_T_First(
254         long userId1, int type,
255         com.liferay.portal.kernel.util.OrderByComparator obc)
256         throws com.liferay.portal.kernel.exception.SystemException,
257             com.liferay.portlet.social.NoSuchRelationException;
258 
259     public com.liferay.portlet.social.model.SocialRelation findByU1_T_Last(
260         long userId1, int type,
261         com.liferay.portal.kernel.util.OrderByComparator obc)
262         throws com.liferay.portal.kernel.exception.SystemException,
263             com.liferay.portlet.social.NoSuchRelationException;
264 
265     public com.liferay.portlet.social.model.SocialRelation[] findByU1_T_PrevAndNext(
266         long relationId, long userId1, int type,
267         com.liferay.portal.kernel.util.OrderByComparator obc)
268         throws com.liferay.portal.kernel.exception.SystemException,
269             com.liferay.portlet.social.NoSuchRelationException;
270 
271     public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU2_T(
272         long userId2, int type)
273         throws com.liferay.portal.kernel.exception.SystemException;
274 
275     public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU2_T(
276         long userId2, int type, int start, int end)
277         throws com.liferay.portal.kernel.exception.SystemException;
278 
279     public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU2_T(
280         long userId2, int type, int start, int end,
281         com.liferay.portal.kernel.util.OrderByComparator obc)
282         throws com.liferay.portal.kernel.exception.SystemException;
283 
284     public com.liferay.portlet.social.model.SocialRelation findByU2_T_First(
285         long userId2, int type,
286         com.liferay.portal.kernel.util.OrderByComparator obc)
287         throws com.liferay.portal.kernel.exception.SystemException,
288             com.liferay.portlet.social.NoSuchRelationException;
289 
290     public com.liferay.portlet.social.model.SocialRelation findByU2_T_Last(
291         long userId2, int type,
292         com.liferay.portal.kernel.util.OrderByComparator obc)
293         throws com.liferay.portal.kernel.exception.SystemException,
294             com.liferay.portlet.social.NoSuchRelationException;
295 
296     public com.liferay.portlet.social.model.SocialRelation[] findByU2_T_PrevAndNext(
297         long relationId, long userId2, int type,
298         com.liferay.portal.kernel.util.OrderByComparator obc)
299         throws com.liferay.portal.kernel.exception.SystemException,
300             com.liferay.portlet.social.NoSuchRelationException;
301 
302     public com.liferay.portlet.social.model.SocialRelation findByU1_U2_T(
303         long userId1, long userId2, int type)
304         throws com.liferay.portal.kernel.exception.SystemException,
305             com.liferay.portlet.social.NoSuchRelationException;
306 
307     public com.liferay.portlet.social.model.SocialRelation fetchByU1_U2_T(
308         long userId1, long userId2, int type)
309         throws com.liferay.portal.kernel.exception.SystemException;
310 
311     public com.liferay.portlet.social.model.SocialRelation fetchByU1_U2_T(
312         long userId1, long userId2, int type, boolean retrieveFromCache)
313         throws com.liferay.portal.kernel.exception.SystemException;
314 
315     public java.util.List<com.liferay.portlet.social.model.SocialRelation> findAll()
316         throws com.liferay.portal.kernel.exception.SystemException;
317 
318     public java.util.List<com.liferay.portlet.social.model.SocialRelation> findAll(
319         int start, int end)
320         throws com.liferay.portal.kernel.exception.SystemException;
321 
322     public java.util.List<com.liferay.portlet.social.model.SocialRelation> findAll(
323         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
324         throws com.liferay.portal.kernel.exception.SystemException;
325 
326     public void removeByUuid(java.lang.String uuid)
327         throws com.liferay.portal.kernel.exception.SystemException;
328 
329     public void removeByCompanyId(long companyId)
330         throws com.liferay.portal.kernel.exception.SystemException;
331 
332     public void removeByUserId1(long userId1)
333         throws com.liferay.portal.kernel.exception.SystemException;
334 
335     public void removeByUserId2(long userId2)
336         throws com.liferay.portal.kernel.exception.SystemException;
337 
338     public void removeByType(int type)
339         throws com.liferay.portal.kernel.exception.SystemException;
340 
341     public void removeByC_T(long companyId, int type)
342         throws com.liferay.portal.kernel.exception.SystemException;
343 
344     public void removeByU1_T(long userId1, int type)
345         throws com.liferay.portal.kernel.exception.SystemException;
346 
347     public void removeByU2_T(long userId2, int type)
348         throws com.liferay.portal.kernel.exception.SystemException;
349 
350     public void removeByU1_U2_T(long userId1, long userId2, int type)
351         throws com.liferay.portal.kernel.exception.SystemException,
352             com.liferay.portlet.social.NoSuchRelationException;
353 
354     public void removeAll()
355         throws com.liferay.portal.kernel.exception.SystemException;
356 
357     public int countByUuid(java.lang.String uuid)
358         throws com.liferay.portal.kernel.exception.SystemException;
359 
360     public int countByCompanyId(long companyId)
361         throws com.liferay.portal.kernel.exception.SystemException;
362 
363     public int countByUserId1(long userId1)
364         throws com.liferay.portal.kernel.exception.SystemException;
365 
366     public int countByUserId2(long userId2)
367         throws com.liferay.portal.kernel.exception.SystemException;
368 
369     public int countByType(int type)
370         throws com.liferay.portal.kernel.exception.SystemException;
371 
372     public int countByC_T(long companyId, int type)
373         throws com.liferay.portal.kernel.exception.SystemException;
374 
375     public int countByU1_T(long userId1, int type)
376         throws com.liferay.portal.kernel.exception.SystemException;
377 
378     public int countByU2_T(long userId2, int type)
379         throws com.liferay.portal.kernel.exception.SystemException;
380 
381     public int countByU1_U2_T(long userId1, long userId2, int type)
382         throws com.liferay.portal.kernel.exception.SystemException;
383 
384     public int countAll()
385         throws com.liferay.portal.kernel.exception.SystemException;
386 }