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.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.SystemException,
47              com.liferay.portlet.social.NoSuchRelationException;
48  
49      /**
50       * @deprecated Use {@link BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)}.
51       */
52      public com.liferay.portlet.social.model.SocialRelation update(
53          com.liferay.portlet.social.model.SocialRelation socialRelation)
54          throws com.liferay.portal.SystemException;
55  
56      public com.liferay.portlet.social.model.SocialRelation updateImpl(
57          com.liferay.portlet.social.model.SocialRelation socialRelation,
58          boolean merge) throws com.liferay.portal.SystemException;
59  
60      public com.liferay.portlet.social.model.SocialRelation findByPrimaryKey(
61          long relationId)
62          throws com.liferay.portal.SystemException,
63              com.liferay.portlet.social.NoSuchRelationException;
64  
65      public com.liferay.portlet.social.model.SocialRelation fetchByPrimaryKey(
66          long relationId) throws com.liferay.portal.SystemException;
67  
68      public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUuid(
69          java.lang.String uuid) throws com.liferay.portal.SystemException;
70  
71      public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUuid(
72          java.lang.String uuid, int start, int end)
73          throws com.liferay.portal.SystemException;
74  
75      public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUuid(
76          java.lang.String uuid, int start, int end,
77          com.liferay.portal.kernel.util.OrderByComparator obc)
78          throws com.liferay.portal.SystemException;
79  
80      public com.liferay.portlet.social.model.SocialRelation findByUuid_First(
81          java.lang.String uuid,
82          com.liferay.portal.kernel.util.OrderByComparator obc)
83          throws com.liferay.portal.SystemException,
84              com.liferay.portlet.social.NoSuchRelationException;
85  
86      public com.liferay.portlet.social.model.SocialRelation findByUuid_Last(
87          java.lang.String uuid,
88          com.liferay.portal.kernel.util.OrderByComparator obc)
89          throws com.liferay.portal.SystemException,
90              com.liferay.portlet.social.NoSuchRelationException;
91  
92      public com.liferay.portlet.social.model.SocialRelation[] findByUuid_PrevAndNext(
93          long relationId, java.lang.String uuid,
94          com.liferay.portal.kernel.util.OrderByComparator obc)
95          throws com.liferay.portal.SystemException,
96              com.liferay.portlet.social.NoSuchRelationException;
97  
98      public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByCompanyId(
99          long companyId) throws com.liferay.portal.SystemException;
100 
101     public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByCompanyId(
102         long companyId, int start, int end)
103         throws com.liferay.portal.SystemException;
104 
105     public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByCompanyId(
106         long companyId, int start, int end,
107         com.liferay.portal.kernel.util.OrderByComparator obc)
108         throws com.liferay.portal.SystemException;
109 
110     public com.liferay.portlet.social.model.SocialRelation findByCompanyId_First(
111         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
112         throws com.liferay.portal.SystemException,
113             com.liferay.portlet.social.NoSuchRelationException;
114 
115     public com.liferay.portlet.social.model.SocialRelation findByCompanyId_Last(
116         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
117         throws com.liferay.portal.SystemException,
118             com.liferay.portlet.social.NoSuchRelationException;
119 
120     public com.liferay.portlet.social.model.SocialRelation[] findByCompanyId_PrevAndNext(
121         long relationId, long companyId,
122         com.liferay.portal.kernel.util.OrderByComparator obc)
123         throws com.liferay.portal.SystemException,
124             com.liferay.portlet.social.NoSuchRelationException;
125 
126     public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId1(
127         long userId1) throws com.liferay.portal.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.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 obc)
136         throws com.liferay.portal.SystemException;
137 
138     public com.liferay.portlet.social.model.SocialRelation findByUserId1_First(
139         long userId1, com.liferay.portal.kernel.util.OrderByComparator obc)
140         throws com.liferay.portal.SystemException,
141             com.liferay.portlet.social.NoSuchRelationException;
142 
143     public com.liferay.portlet.social.model.SocialRelation findByUserId1_Last(
144         long userId1, com.liferay.portal.kernel.util.OrderByComparator obc)
145         throws com.liferay.portal.SystemException,
146             com.liferay.portlet.social.NoSuchRelationException;
147 
148     public com.liferay.portlet.social.model.SocialRelation[] findByUserId1_PrevAndNext(
149         long relationId, long userId1,
150         com.liferay.portal.kernel.util.OrderByComparator obc)
151         throws com.liferay.portal.SystemException,
152             com.liferay.portlet.social.NoSuchRelationException;
153 
154     public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId2(
155         long userId2) throws com.liferay.portal.SystemException;
156 
157     public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId2(
158         long userId2, int start, int end)
159         throws com.liferay.portal.SystemException;
160 
161     public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId2(
162         long userId2, int start, int end,
163         com.liferay.portal.kernel.util.OrderByComparator obc)
164         throws com.liferay.portal.SystemException;
165 
166     public com.liferay.portlet.social.model.SocialRelation findByUserId2_First(
167         long userId2, com.liferay.portal.kernel.util.OrderByComparator obc)
168         throws com.liferay.portal.SystemException,
169             com.liferay.portlet.social.NoSuchRelationException;
170 
171     public com.liferay.portlet.social.model.SocialRelation findByUserId2_Last(
172         long userId2, com.liferay.portal.kernel.util.OrderByComparator obc)
173         throws com.liferay.portal.SystemException,
174             com.liferay.portlet.social.NoSuchRelationException;
175 
176     public com.liferay.portlet.social.model.SocialRelation[] findByUserId2_PrevAndNext(
177         long relationId, long userId2,
178         com.liferay.portal.kernel.util.OrderByComparator obc)
179         throws com.liferay.portal.SystemException,
180             com.liferay.portlet.social.NoSuchRelationException;
181 
182     public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByType(
183         int type) throws com.liferay.portal.SystemException;
184 
185     public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByType(
186         int type, int start, int end) throws com.liferay.portal.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.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.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.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.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) throws com.liferay.portal.SystemException;
211 
212     public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByC_T(
213         long companyId, int type, int start, int end)
214         throws com.liferay.portal.SystemException;
215 
216     public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByC_T(
217         long companyId, int type, int start, int end,
218         com.liferay.portal.kernel.util.OrderByComparator obc)
219         throws com.liferay.portal.SystemException;
220 
221     public com.liferay.portlet.social.model.SocialRelation findByC_T_First(
222         long companyId, int type,
223         com.liferay.portal.kernel.util.OrderByComparator obc)
224         throws com.liferay.portal.SystemException,
225             com.liferay.portlet.social.NoSuchRelationException;
226 
227     public com.liferay.portlet.social.model.SocialRelation findByC_T_Last(
228         long companyId, int type,
229         com.liferay.portal.kernel.util.OrderByComparator obc)
230         throws com.liferay.portal.SystemException,
231             com.liferay.portlet.social.NoSuchRelationException;
232 
233     public com.liferay.portlet.social.model.SocialRelation[] findByC_T_PrevAndNext(
234         long relationId, long companyId, int type,
235         com.liferay.portal.kernel.util.OrderByComparator obc)
236         throws com.liferay.portal.SystemException,
237             com.liferay.portlet.social.NoSuchRelationException;
238 
239     public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU1_T(
240         long userId1, int type) throws com.liferay.portal.SystemException;
241 
242     public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU1_T(
243         long userId1, int type, int start, int end)
244         throws com.liferay.portal.SystemException;
245 
246     public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU1_T(
247         long userId1, int type, int start, int end,
248         com.liferay.portal.kernel.util.OrderByComparator obc)
249         throws com.liferay.portal.SystemException;
250 
251     public com.liferay.portlet.social.model.SocialRelation findByU1_T_First(
252         long userId1, int type,
253         com.liferay.portal.kernel.util.OrderByComparator obc)
254         throws com.liferay.portal.SystemException,
255             com.liferay.portlet.social.NoSuchRelationException;
256 
257     public com.liferay.portlet.social.model.SocialRelation findByU1_T_Last(
258         long userId1, int type,
259         com.liferay.portal.kernel.util.OrderByComparator obc)
260         throws com.liferay.portal.SystemException,
261             com.liferay.portlet.social.NoSuchRelationException;
262 
263     public com.liferay.portlet.social.model.SocialRelation[] findByU1_T_PrevAndNext(
264         long relationId, long userId1, int type,
265         com.liferay.portal.kernel.util.OrderByComparator obc)
266         throws com.liferay.portal.SystemException,
267             com.liferay.portlet.social.NoSuchRelationException;
268 
269     public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU2_T(
270         long userId2, int type) throws com.liferay.portal.SystemException;
271 
272     public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU2_T(
273         long userId2, int type, int start, int end)
274         throws com.liferay.portal.SystemException;
275 
276     public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU2_T(
277         long userId2, int type, int start, int end,
278         com.liferay.portal.kernel.util.OrderByComparator obc)
279         throws com.liferay.portal.SystemException;
280 
281     public com.liferay.portlet.social.model.SocialRelation findByU2_T_First(
282         long userId2, int type,
283         com.liferay.portal.kernel.util.OrderByComparator obc)
284         throws com.liferay.portal.SystemException,
285             com.liferay.portlet.social.NoSuchRelationException;
286 
287     public com.liferay.portlet.social.model.SocialRelation findByU2_T_Last(
288         long userId2, int type,
289         com.liferay.portal.kernel.util.OrderByComparator obc)
290         throws com.liferay.portal.SystemException,
291             com.liferay.portlet.social.NoSuchRelationException;
292 
293     public com.liferay.portlet.social.model.SocialRelation[] findByU2_T_PrevAndNext(
294         long relationId, long userId2, int type,
295         com.liferay.portal.kernel.util.OrderByComparator obc)
296         throws com.liferay.portal.SystemException,
297             com.liferay.portlet.social.NoSuchRelationException;
298 
299     public com.liferay.portlet.social.model.SocialRelation findByU1_U2_T(
300         long userId1, long userId2, int type)
301         throws com.liferay.portal.SystemException,
302             com.liferay.portlet.social.NoSuchRelationException;
303 
304     public com.liferay.portlet.social.model.SocialRelation fetchByU1_U2_T(
305         long userId1, long userId2, int type)
306         throws com.liferay.portal.SystemException;
307 
308     public com.liferay.portlet.social.model.SocialRelation fetchByU1_U2_T(
309         long userId1, long userId2, int type, boolean retrieveFromCache)
310         throws com.liferay.portal.SystemException;
311 
312     public java.util.List<com.liferay.portlet.social.model.SocialRelation> findAll()
313         throws com.liferay.portal.SystemException;
314 
315     public java.util.List<com.liferay.portlet.social.model.SocialRelation> findAll(
316         int start, int end) throws com.liferay.portal.SystemException;
317 
318     public java.util.List<com.liferay.portlet.social.model.SocialRelation> findAll(
319         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
320         throws com.liferay.portal.SystemException;
321 
322     public void removeByUuid(java.lang.String uuid)
323         throws com.liferay.portal.SystemException;
324 
325     public void removeByCompanyId(long companyId)
326         throws com.liferay.portal.SystemException;
327 
328     public void removeByUserId1(long userId1)
329         throws com.liferay.portal.SystemException;
330 
331     public void removeByUserId2(long userId2)
332         throws com.liferay.portal.SystemException;
333 
334     public void removeByType(int type)
335         throws com.liferay.portal.SystemException;
336 
337     public void removeByC_T(long companyId, int type)
338         throws com.liferay.portal.SystemException;
339 
340     public void removeByU1_T(long userId1, int type)
341         throws com.liferay.portal.SystemException;
342 
343     public void removeByU2_T(long userId2, int type)
344         throws com.liferay.portal.SystemException;
345 
346     public void removeByU1_U2_T(long userId1, long userId2, int type)
347         throws com.liferay.portal.SystemException,
348             com.liferay.portlet.social.NoSuchRelationException;
349 
350     public void removeAll() throws com.liferay.portal.SystemException;
351 
352     public int countByUuid(java.lang.String uuid)
353         throws com.liferay.portal.SystemException;
354 
355     public int countByCompanyId(long companyId)
356         throws com.liferay.portal.SystemException;
357 
358     public int countByUserId1(long userId1)
359         throws com.liferay.portal.SystemException;
360 
361     public int countByUserId2(long userId2)
362         throws com.liferay.portal.SystemException;
363 
364     public int countByType(int type) throws com.liferay.portal.SystemException;
365 
366     public int countByC_T(long companyId, int type)
367         throws com.liferay.portal.SystemException;
368 
369     public int countByU1_T(long userId1, int type)
370         throws com.liferay.portal.SystemException;
371 
372     public int countByU2_T(long userId2, int type)
373         throws com.liferay.portal.SystemException;
374 
375     public int countByU1_U2_T(long userId1, long userId2, int type)
376         throws com.liferay.portal.SystemException;
377 
378     public int countAll() throws com.liferay.portal.SystemException;
379 }