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 orderByComparator)
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 orderByComparator)
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 orderByComparator)
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 orderByComparator)
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 orderByComparator)
105         throws com.liferay.portal.kernel.exception.SystemException;
106 
107     public com.liferay.portlet.social.model.SocialRelation findByCompanyId_First(
108         long companyId,
109         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
110         throws com.liferay.portal.kernel.exception.SystemException,
111             com.liferay.portlet.social.NoSuchRelationException;
112 
113     public com.liferay.portlet.social.model.SocialRelation findByCompanyId_Last(
114         long companyId,
115         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
116         throws com.liferay.portal.kernel.exception.SystemException,
117             com.liferay.portlet.social.NoSuchRelationException;
118 
119     public com.liferay.portlet.social.model.SocialRelation[] findByCompanyId_PrevAndNext(
120         long relationId, long companyId,
121         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
122         throws com.liferay.portal.kernel.exception.SystemException,
123             com.liferay.portlet.social.NoSuchRelationException;
124 
125     public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId1(
126         long userId1)
127         throws com.liferay.portal.kernel.exception.SystemException;
128 
129     public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId1(
130         long userId1, int start, int end)
131         throws com.liferay.portal.kernel.exception.SystemException;
132 
133     public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId1(
134         long userId1, int start, int end,
135         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
136         throws com.liferay.portal.kernel.exception.SystemException;
137 
138     public com.liferay.portlet.social.model.SocialRelation findByUserId1_First(
139         long userId1,
140         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
141         throws com.liferay.portal.kernel.exception.SystemException,
142             com.liferay.portlet.social.NoSuchRelationException;
143 
144     public com.liferay.portlet.social.model.SocialRelation findByUserId1_Last(
145         long userId1,
146         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
147         throws com.liferay.portal.kernel.exception.SystemException,
148             com.liferay.portlet.social.NoSuchRelationException;
149 
150     public com.liferay.portlet.social.model.SocialRelation[] findByUserId1_PrevAndNext(
151         long relationId, long userId1,
152         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
153         throws com.liferay.portal.kernel.exception.SystemException,
154             com.liferay.portlet.social.NoSuchRelationException;
155 
156     public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId2(
157         long userId2)
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         throws com.liferay.portal.kernel.exception.SystemException;
163 
164     public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId2(
165         long userId2, int start, int end,
166         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
167         throws com.liferay.portal.kernel.exception.SystemException;
168 
169     public com.liferay.portlet.social.model.SocialRelation findByUserId2_First(
170         long userId2,
171         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
172         throws com.liferay.portal.kernel.exception.SystemException,
173             com.liferay.portlet.social.NoSuchRelationException;
174 
175     public com.liferay.portlet.social.model.SocialRelation findByUserId2_Last(
176         long userId2,
177         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
178         throws com.liferay.portal.kernel.exception.SystemException,
179             com.liferay.portlet.social.NoSuchRelationException;
180 
181     public com.liferay.portlet.social.model.SocialRelation[] findByUserId2_PrevAndNext(
182         long relationId, long userId2,
183         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
184         throws com.liferay.portal.kernel.exception.SystemException,
185             com.liferay.portlet.social.NoSuchRelationException;
186 
187     public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByType(
188         int type) throws com.liferay.portal.kernel.exception.SystemException;
189 
190     public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByType(
191         int type, int start, int end)
192         throws com.liferay.portal.kernel.exception.SystemException;
193 
194     public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByType(
195         int type, 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.portlet.social.model.SocialRelation findByType_First(
200         int type,
201         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
202         throws com.liferay.portal.kernel.exception.SystemException,
203             com.liferay.portlet.social.NoSuchRelationException;
204 
205     public com.liferay.portlet.social.model.SocialRelation findByType_Last(
206         int type,
207         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
208         throws com.liferay.portal.kernel.exception.SystemException,
209             com.liferay.portlet.social.NoSuchRelationException;
210 
211     public com.liferay.portlet.social.model.SocialRelation[] findByType_PrevAndNext(
212         long relationId, int type,
213         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
214         throws com.liferay.portal.kernel.exception.SystemException,
215             com.liferay.portlet.social.NoSuchRelationException;
216 
217     public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByC_T(
218         long companyId, int type)
219         throws com.liferay.portal.kernel.exception.SystemException;
220 
221     public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByC_T(
222         long companyId, int type, int start, int end)
223         throws com.liferay.portal.kernel.exception.SystemException;
224 
225     public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByC_T(
226         long companyId, int type, int start, int end,
227         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
228         throws com.liferay.portal.kernel.exception.SystemException;
229 
230     public com.liferay.portlet.social.model.SocialRelation findByC_T_First(
231         long companyId, int type,
232         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
233         throws com.liferay.portal.kernel.exception.SystemException,
234             com.liferay.portlet.social.NoSuchRelationException;
235 
236     public com.liferay.portlet.social.model.SocialRelation findByC_T_Last(
237         long companyId, int type,
238         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
239         throws com.liferay.portal.kernel.exception.SystemException,
240             com.liferay.portlet.social.NoSuchRelationException;
241 
242     public com.liferay.portlet.social.model.SocialRelation[] findByC_T_PrevAndNext(
243         long relationId, long companyId, int type,
244         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
245         throws com.liferay.portal.kernel.exception.SystemException,
246             com.liferay.portlet.social.NoSuchRelationException;
247 
248     public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU1_T(
249         long userId1, int type)
250         throws com.liferay.portal.kernel.exception.SystemException;
251 
252     public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU1_T(
253         long userId1, int type, int start, int end)
254         throws com.liferay.portal.kernel.exception.SystemException;
255 
256     public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU1_T(
257         long userId1, int type, int start, int end,
258         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
259         throws com.liferay.portal.kernel.exception.SystemException;
260 
261     public com.liferay.portlet.social.model.SocialRelation findByU1_T_First(
262         long userId1, int type,
263         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
264         throws com.liferay.portal.kernel.exception.SystemException,
265             com.liferay.portlet.social.NoSuchRelationException;
266 
267     public com.liferay.portlet.social.model.SocialRelation findByU1_T_Last(
268         long userId1, int type,
269         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
270         throws com.liferay.portal.kernel.exception.SystemException,
271             com.liferay.portlet.social.NoSuchRelationException;
272 
273     public com.liferay.portlet.social.model.SocialRelation[] findByU1_T_PrevAndNext(
274         long relationId, long userId1, int type,
275         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
276         throws com.liferay.portal.kernel.exception.SystemException,
277             com.liferay.portlet.social.NoSuchRelationException;
278 
279     public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU2_T(
280         long userId2, int type)
281         throws com.liferay.portal.kernel.exception.SystemException;
282 
283     public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU2_T(
284         long userId2, int type, int start, int end)
285         throws com.liferay.portal.kernel.exception.SystemException;
286 
287     public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU2_T(
288         long userId2, int type, int start, int end,
289         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
290         throws com.liferay.portal.kernel.exception.SystemException;
291 
292     public com.liferay.portlet.social.model.SocialRelation findByU2_T_First(
293         long userId2, int type,
294         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
295         throws com.liferay.portal.kernel.exception.SystemException,
296             com.liferay.portlet.social.NoSuchRelationException;
297 
298     public com.liferay.portlet.social.model.SocialRelation findByU2_T_Last(
299         long userId2, int type,
300         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
301         throws com.liferay.portal.kernel.exception.SystemException,
302             com.liferay.portlet.social.NoSuchRelationException;
303 
304     public com.liferay.portlet.social.model.SocialRelation[] findByU2_T_PrevAndNext(
305         long relationId, long userId2, int type,
306         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
307         throws com.liferay.portal.kernel.exception.SystemException,
308             com.liferay.portlet.social.NoSuchRelationException;
309 
310     public com.liferay.portlet.social.model.SocialRelation findByU1_U2_T(
311         long userId1, long userId2, int type)
312         throws com.liferay.portal.kernel.exception.SystemException,
313             com.liferay.portlet.social.NoSuchRelationException;
314 
315     public com.liferay.portlet.social.model.SocialRelation fetchByU1_U2_T(
316         long userId1, long userId2, int type)
317         throws com.liferay.portal.kernel.exception.SystemException;
318 
319     public com.liferay.portlet.social.model.SocialRelation fetchByU1_U2_T(
320         long userId1, long userId2, int type, boolean retrieveFromCache)
321         throws com.liferay.portal.kernel.exception.SystemException;
322 
323     public java.util.List<com.liferay.portlet.social.model.SocialRelation> findAll()
324         throws com.liferay.portal.kernel.exception.SystemException;
325 
326     public java.util.List<com.liferay.portlet.social.model.SocialRelation> findAll(
327         int start, int end)
328         throws com.liferay.portal.kernel.exception.SystemException;
329 
330     public java.util.List<com.liferay.portlet.social.model.SocialRelation> findAll(
331         int start, int end,
332         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
333         throws com.liferay.portal.kernel.exception.SystemException;
334 
335     public void removeByUuid(java.lang.String uuid)
336         throws com.liferay.portal.kernel.exception.SystemException;
337 
338     public void removeByCompanyId(long companyId)
339         throws com.liferay.portal.kernel.exception.SystemException;
340 
341     public void removeByUserId1(long userId1)
342         throws com.liferay.portal.kernel.exception.SystemException;
343 
344     public void removeByUserId2(long userId2)
345         throws com.liferay.portal.kernel.exception.SystemException;
346 
347     public void removeByType(int type)
348         throws com.liferay.portal.kernel.exception.SystemException;
349 
350     public void removeByC_T(long companyId, int type)
351         throws com.liferay.portal.kernel.exception.SystemException;
352 
353     public void removeByU1_T(long userId1, int type)
354         throws com.liferay.portal.kernel.exception.SystemException;
355 
356     public void removeByU2_T(long userId2, int type)
357         throws com.liferay.portal.kernel.exception.SystemException;
358 
359     public void removeByU1_U2_T(long userId1, long userId2, int type)
360         throws com.liferay.portal.kernel.exception.SystemException,
361             com.liferay.portlet.social.NoSuchRelationException;
362 
363     public void removeAll()
364         throws com.liferay.portal.kernel.exception.SystemException;
365 
366     public int countByUuid(java.lang.String uuid)
367         throws com.liferay.portal.kernel.exception.SystemException;
368 
369     public int countByCompanyId(long companyId)
370         throws com.liferay.portal.kernel.exception.SystemException;
371 
372     public int countByUserId1(long userId1)
373         throws com.liferay.portal.kernel.exception.SystemException;
374 
375     public int countByUserId2(long userId2)
376         throws com.liferay.portal.kernel.exception.SystemException;
377 
378     public int countByType(int type)
379         throws com.liferay.portal.kernel.exception.SystemException;
380 
381     public int countByC_T(long companyId, int type)
382         throws com.liferay.portal.kernel.exception.SystemException;
383 
384     public int countByU1_T(long userId1, int type)
385         throws com.liferay.portal.kernel.exception.SystemException;
386 
387     public int countByU2_T(long userId2, int type)
388         throws com.liferay.portal.kernel.exception.SystemException;
389 
390     public int countByU1_U2_T(long userId1, long userId2, int type)
391         throws com.liferay.portal.kernel.exception.SystemException;
392 
393     public int countAll()
394         throws com.liferay.portal.kernel.exception.SystemException;
395 }