1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    *
5    *
6    *
7    * The contents of this file are subject to the terms of the Liferay Enterprise
8    * Subscription License ("License"). You may not use this file except in
9    * compliance with the License. You can obtain a copy of the License by
10   * contacting Liferay, Inc. See the License for the specific language governing
11   * permissions and limitations under the License, including but not limited to
12   * distribution rights of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.social.service.persistence;
24  
25  import com.liferay.portal.SystemException;
26  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
27  import com.liferay.portal.kernel.dao.orm.DynamicQuery;
28  
29  import com.liferay.portlet.social.model.SocialRelation;
30  
31  import java.util.List;
32  
33  /**
34   * <a href="SocialRelationUtil.java.html"><b><i>View Source</i></b></a>
35   *
36   * <p>
37   * ServiceBuilder generated this class. Modifications in this class will be
38   * overwritten the next time is generated.
39   * </p>
40   *
41   * @author    Brian Wing Shun Chan
42   * @see       SocialRelationPersistence
43   * @see       SocialRelationPersistenceImpl
44   * @generated
45   */
46  public class SocialRelationUtil {
47      /**
48       * @see com.liferay.portal.service.persistence.BasePersistence#clearCache()
49       */
50      public static void clearCache() {
51          getPersistence().clearCache();
52      }
53  
54      /**
55       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery)
56       */
57      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
58          throws SystemException {
59          return getPersistence().findWithDynamicQuery(dynamicQuery);
60      }
61  
62      /**
63       * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int)
64       */
65      public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
66          int start, int end) throws SystemException {
67          return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
68      }
69  
70      /**
71       * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel)
72       */
73      public static SocialRelation remove(SocialRelation socialRelation)
74          throws SystemException {
75          return getPersistence().remove(socialRelation);
76      }
77  
78      /**
79       * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)
80       */
81      public static SocialRelation update(SocialRelation socialRelation,
82          boolean merge) throws SystemException {
83          return getPersistence().update(socialRelation, merge);
84      }
85  
86      public static void cacheResult(
87          com.liferay.portlet.social.model.SocialRelation socialRelation) {
88          getPersistence().cacheResult(socialRelation);
89      }
90  
91      public static void cacheResult(
92          java.util.List<com.liferay.portlet.social.model.SocialRelation> socialRelations) {
93          getPersistence().cacheResult(socialRelations);
94      }
95  
96      public static com.liferay.portlet.social.model.SocialRelation create(
97          long relationId) {
98          return getPersistence().create(relationId);
99      }
100 
101     public static com.liferay.portlet.social.model.SocialRelation remove(
102         long relationId)
103         throws com.liferay.portal.SystemException,
104             com.liferay.portlet.social.NoSuchRelationException {
105         return getPersistence().remove(relationId);
106     }
107 
108     /**
109      * @deprecated Use {@link com.liferay.portal.service.persistence.BasePersistence.#update(com.liferay.portal.model.BaseModel, boolean)}.
110      */
111     public static com.liferay.portlet.social.model.SocialRelation update(
112         com.liferay.portlet.social.model.SocialRelation socialRelation)
113         throws com.liferay.portal.SystemException {
114         return getPersistence().update(socialRelation);
115     }
116 
117     public static com.liferay.portlet.social.model.SocialRelation updateImpl(
118         com.liferay.portlet.social.model.SocialRelation socialRelation,
119         boolean merge) throws com.liferay.portal.SystemException {
120         return getPersistence().updateImpl(socialRelation, merge);
121     }
122 
123     public static com.liferay.portlet.social.model.SocialRelation findByPrimaryKey(
124         long relationId)
125         throws com.liferay.portal.SystemException,
126             com.liferay.portlet.social.NoSuchRelationException {
127         return getPersistence().findByPrimaryKey(relationId);
128     }
129 
130     public static com.liferay.portlet.social.model.SocialRelation fetchByPrimaryKey(
131         long relationId) throws com.liferay.portal.SystemException {
132         return getPersistence().fetchByPrimaryKey(relationId);
133     }
134 
135     public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUuid(
136         java.lang.String uuid) throws com.liferay.portal.SystemException {
137         return getPersistence().findByUuid(uuid);
138     }
139 
140     public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUuid(
141         java.lang.String uuid, int start, int end)
142         throws com.liferay.portal.SystemException {
143         return getPersistence().findByUuid(uuid, start, end);
144     }
145 
146     public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUuid(
147         java.lang.String uuid, int start, int end,
148         com.liferay.portal.kernel.util.OrderByComparator obc)
149         throws com.liferay.portal.SystemException {
150         return getPersistence().findByUuid(uuid, start, end, obc);
151     }
152 
153     public static com.liferay.portlet.social.model.SocialRelation findByUuid_First(
154         java.lang.String uuid,
155         com.liferay.portal.kernel.util.OrderByComparator obc)
156         throws com.liferay.portal.SystemException,
157             com.liferay.portlet.social.NoSuchRelationException {
158         return getPersistence().findByUuid_First(uuid, obc);
159     }
160 
161     public static com.liferay.portlet.social.model.SocialRelation findByUuid_Last(
162         java.lang.String uuid,
163         com.liferay.portal.kernel.util.OrderByComparator obc)
164         throws com.liferay.portal.SystemException,
165             com.liferay.portlet.social.NoSuchRelationException {
166         return getPersistence().findByUuid_Last(uuid, obc);
167     }
168 
169     public static com.liferay.portlet.social.model.SocialRelation[] findByUuid_PrevAndNext(
170         long relationId, java.lang.String uuid,
171         com.liferay.portal.kernel.util.OrderByComparator obc)
172         throws com.liferay.portal.SystemException,
173             com.liferay.portlet.social.NoSuchRelationException {
174         return getPersistence().findByUuid_PrevAndNext(relationId, uuid, obc);
175     }
176 
177     public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByCompanyId(
178         long companyId) throws com.liferay.portal.SystemException {
179         return getPersistence().findByCompanyId(companyId);
180     }
181 
182     public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByCompanyId(
183         long companyId, int start, int end)
184         throws com.liferay.portal.SystemException {
185         return getPersistence().findByCompanyId(companyId, start, end);
186     }
187 
188     public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByCompanyId(
189         long companyId, int start, int end,
190         com.liferay.portal.kernel.util.OrderByComparator obc)
191         throws com.liferay.portal.SystemException {
192         return getPersistence().findByCompanyId(companyId, start, end, obc);
193     }
194 
195     public static com.liferay.portlet.social.model.SocialRelation findByCompanyId_First(
196         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
197         throws com.liferay.portal.SystemException,
198             com.liferay.portlet.social.NoSuchRelationException {
199         return getPersistence().findByCompanyId_First(companyId, obc);
200     }
201 
202     public static com.liferay.portlet.social.model.SocialRelation findByCompanyId_Last(
203         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
204         throws com.liferay.portal.SystemException,
205             com.liferay.portlet.social.NoSuchRelationException {
206         return getPersistence().findByCompanyId_Last(companyId, obc);
207     }
208 
209     public static com.liferay.portlet.social.model.SocialRelation[] findByCompanyId_PrevAndNext(
210         long relationId, long companyId,
211         com.liferay.portal.kernel.util.OrderByComparator obc)
212         throws com.liferay.portal.SystemException,
213             com.liferay.portlet.social.NoSuchRelationException {
214         return getPersistence()
215                    .findByCompanyId_PrevAndNext(relationId, companyId, obc);
216     }
217 
218     public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId1(
219         long userId1) throws com.liferay.portal.SystemException {
220         return getPersistence().findByUserId1(userId1);
221     }
222 
223     public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId1(
224         long userId1, int start, int end)
225         throws com.liferay.portal.SystemException {
226         return getPersistence().findByUserId1(userId1, start, end);
227     }
228 
229     public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId1(
230         long userId1, int start, int end,
231         com.liferay.portal.kernel.util.OrderByComparator obc)
232         throws com.liferay.portal.SystemException {
233         return getPersistence().findByUserId1(userId1, start, end, obc);
234     }
235 
236     public static com.liferay.portlet.social.model.SocialRelation findByUserId1_First(
237         long userId1, com.liferay.portal.kernel.util.OrderByComparator obc)
238         throws com.liferay.portal.SystemException,
239             com.liferay.portlet.social.NoSuchRelationException {
240         return getPersistence().findByUserId1_First(userId1, obc);
241     }
242 
243     public static com.liferay.portlet.social.model.SocialRelation findByUserId1_Last(
244         long userId1, com.liferay.portal.kernel.util.OrderByComparator obc)
245         throws com.liferay.portal.SystemException,
246             com.liferay.portlet.social.NoSuchRelationException {
247         return getPersistence().findByUserId1_Last(userId1, obc);
248     }
249 
250     public static com.liferay.portlet.social.model.SocialRelation[] findByUserId1_PrevAndNext(
251         long relationId, long userId1,
252         com.liferay.portal.kernel.util.OrderByComparator obc)
253         throws com.liferay.portal.SystemException,
254             com.liferay.portlet.social.NoSuchRelationException {
255         return getPersistence()
256                    .findByUserId1_PrevAndNext(relationId, userId1, obc);
257     }
258 
259     public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId2(
260         long userId2) throws com.liferay.portal.SystemException {
261         return getPersistence().findByUserId2(userId2);
262     }
263 
264     public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId2(
265         long userId2, int start, int end)
266         throws com.liferay.portal.SystemException {
267         return getPersistence().findByUserId2(userId2, start, end);
268     }
269 
270     public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId2(
271         long userId2, int start, int end,
272         com.liferay.portal.kernel.util.OrderByComparator obc)
273         throws com.liferay.portal.SystemException {
274         return getPersistence().findByUserId2(userId2, start, end, obc);
275     }
276 
277     public static com.liferay.portlet.social.model.SocialRelation findByUserId2_First(
278         long userId2, com.liferay.portal.kernel.util.OrderByComparator obc)
279         throws com.liferay.portal.SystemException,
280             com.liferay.portlet.social.NoSuchRelationException {
281         return getPersistence().findByUserId2_First(userId2, obc);
282     }
283 
284     public static com.liferay.portlet.social.model.SocialRelation findByUserId2_Last(
285         long userId2, com.liferay.portal.kernel.util.OrderByComparator obc)
286         throws com.liferay.portal.SystemException,
287             com.liferay.portlet.social.NoSuchRelationException {
288         return getPersistence().findByUserId2_Last(userId2, obc);
289     }
290 
291     public static com.liferay.portlet.social.model.SocialRelation[] findByUserId2_PrevAndNext(
292         long relationId, long userId2,
293         com.liferay.portal.kernel.util.OrderByComparator obc)
294         throws com.liferay.portal.SystemException,
295             com.liferay.portlet.social.NoSuchRelationException {
296         return getPersistence()
297                    .findByUserId2_PrevAndNext(relationId, userId2, obc);
298     }
299 
300     public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByType(
301         int type) throws com.liferay.portal.SystemException {
302         return getPersistence().findByType(type);
303     }
304 
305     public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByType(
306         int type, int start, int end) throws com.liferay.portal.SystemException {
307         return getPersistence().findByType(type, start, end);
308     }
309 
310     public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByType(
311         int type, int start, int end,
312         com.liferay.portal.kernel.util.OrderByComparator obc)
313         throws com.liferay.portal.SystemException {
314         return getPersistence().findByType(type, start, end, obc);
315     }
316 
317     public static com.liferay.portlet.social.model.SocialRelation findByType_First(
318         int type, com.liferay.portal.kernel.util.OrderByComparator obc)
319         throws com.liferay.portal.SystemException,
320             com.liferay.portlet.social.NoSuchRelationException {
321         return getPersistence().findByType_First(type, obc);
322     }
323 
324     public static com.liferay.portlet.social.model.SocialRelation findByType_Last(
325         int type, com.liferay.portal.kernel.util.OrderByComparator obc)
326         throws com.liferay.portal.SystemException,
327             com.liferay.portlet.social.NoSuchRelationException {
328         return getPersistence().findByType_Last(type, obc);
329     }
330 
331     public static com.liferay.portlet.social.model.SocialRelation[] findByType_PrevAndNext(
332         long relationId, int type,
333         com.liferay.portal.kernel.util.OrderByComparator obc)
334         throws com.liferay.portal.SystemException,
335             com.liferay.portlet.social.NoSuchRelationException {
336         return getPersistence().findByType_PrevAndNext(relationId, type, obc);
337     }
338 
339     public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByC_T(
340         long companyId, int type) throws com.liferay.portal.SystemException {
341         return getPersistence().findByC_T(companyId, type);
342     }
343 
344     public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByC_T(
345         long companyId, int type, int start, int end)
346         throws com.liferay.portal.SystemException {
347         return getPersistence().findByC_T(companyId, type, start, end);
348     }
349 
350     public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByC_T(
351         long companyId, int type, int start, int end,
352         com.liferay.portal.kernel.util.OrderByComparator obc)
353         throws com.liferay.portal.SystemException {
354         return getPersistence().findByC_T(companyId, type, start, end, obc);
355     }
356 
357     public static com.liferay.portlet.social.model.SocialRelation findByC_T_First(
358         long companyId, int type,
359         com.liferay.portal.kernel.util.OrderByComparator obc)
360         throws com.liferay.portal.SystemException,
361             com.liferay.portlet.social.NoSuchRelationException {
362         return getPersistence().findByC_T_First(companyId, type, obc);
363     }
364 
365     public static com.liferay.portlet.social.model.SocialRelation findByC_T_Last(
366         long companyId, int type,
367         com.liferay.portal.kernel.util.OrderByComparator obc)
368         throws com.liferay.portal.SystemException,
369             com.liferay.portlet.social.NoSuchRelationException {
370         return getPersistence().findByC_T_Last(companyId, type, obc);
371     }
372 
373     public static com.liferay.portlet.social.model.SocialRelation[] findByC_T_PrevAndNext(
374         long relationId, long companyId, int type,
375         com.liferay.portal.kernel.util.OrderByComparator obc)
376         throws com.liferay.portal.SystemException,
377             com.liferay.portlet.social.NoSuchRelationException {
378         return getPersistence()
379                    .findByC_T_PrevAndNext(relationId, companyId, type, obc);
380     }
381 
382     public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU1_T(
383         long userId1, int type) throws com.liferay.portal.SystemException {
384         return getPersistence().findByU1_T(userId1, type);
385     }
386 
387     public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU1_T(
388         long userId1, int type, int start, int end)
389         throws com.liferay.portal.SystemException {
390         return getPersistence().findByU1_T(userId1, type, start, end);
391     }
392 
393     public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU1_T(
394         long userId1, int type, int start, int end,
395         com.liferay.portal.kernel.util.OrderByComparator obc)
396         throws com.liferay.portal.SystemException {
397         return getPersistence().findByU1_T(userId1, type, start, end, obc);
398     }
399 
400     public static com.liferay.portlet.social.model.SocialRelation findByU1_T_First(
401         long userId1, int type,
402         com.liferay.portal.kernel.util.OrderByComparator obc)
403         throws com.liferay.portal.SystemException,
404             com.liferay.portlet.social.NoSuchRelationException {
405         return getPersistence().findByU1_T_First(userId1, type, obc);
406     }
407 
408     public static com.liferay.portlet.social.model.SocialRelation findByU1_T_Last(
409         long userId1, int type,
410         com.liferay.portal.kernel.util.OrderByComparator obc)
411         throws com.liferay.portal.SystemException,
412             com.liferay.portlet.social.NoSuchRelationException {
413         return getPersistence().findByU1_T_Last(userId1, type, obc);
414     }
415 
416     public static com.liferay.portlet.social.model.SocialRelation[] findByU1_T_PrevAndNext(
417         long relationId, long userId1, int type,
418         com.liferay.portal.kernel.util.OrderByComparator obc)
419         throws com.liferay.portal.SystemException,
420             com.liferay.portlet.social.NoSuchRelationException {
421         return getPersistence()
422                    .findByU1_T_PrevAndNext(relationId, userId1, type, obc);
423     }
424 
425     public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU2_T(
426         long userId2, int type) throws com.liferay.portal.SystemException {
427         return getPersistence().findByU2_T(userId2, type);
428     }
429 
430     public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU2_T(
431         long userId2, int type, int start, int end)
432         throws com.liferay.portal.SystemException {
433         return getPersistence().findByU2_T(userId2, type, start, end);
434     }
435 
436     public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU2_T(
437         long userId2, int type, int start, int end,
438         com.liferay.portal.kernel.util.OrderByComparator obc)
439         throws com.liferay.portal.SystemException {
440         return getPersistence().findByU2_T(userId2, type, start, end, obc);
441     }
442 
443     public static com.liferay.portlet.social.model.SocialRelation findByU2_T_First(
444         long userId2, int type,
445         com.liferay.portal.kernel.util.OrderByComparator obc)
446         throws com.liferay.portal.SystemException,
447             com.liferay.portlet.social.NoSuchRelationException {
448         return getPersistence().findByU2_T_First(userId2, type, obc);
449     }
450 
451     public static com.liferay.portlet.social.model.SocialRelation findByU2_T_Last(
452         long userId2, int type,
453         com.liferay.portal.kernel.util.OrderByComparator obc)
454         throws com.liferay.portal.SystemException,
455             com.liferay.portlet.social.NoSuchRelationException {
456         return getPersistence().findByU2_T_Last(userId2, type, obc);
457     }
458 
459     public static com.liferay.portlet.social.model.SocialRelation[] findByU2_T_PrevAndNext(
460         long relationId, long userId2, int type,
461         com.liferay.portal.kernel.util.OrderByComparator obc)
462         throws com.liferay.portal.SystemException,
463             com.liferay.portlet.social.NoSuchRelationException {
464         return getPersistence()
465                    .findByU2_T_PrevAndNext(relationId, userId2, type, obc);
466     }
467 
468     public static com.liferay.portlet.social.model.SocialRelation findByU1_U2_T(
469         long userId1, long userId2, int type)
470         throws com.liferay.portal.SystemException,
471             com.liferay.portlet.social.NoSuchRelationException {
472         return getPersistence().findByU1_U2_T(userId1, userId2, type);
473     }
474 
475     public static com.liferay.portlet.social.model.SocialRelation fetchByU1_U2_T(
476         long userId1, long userId2, int type)
477         throws com.liferay.portal.SystemException {
478         return getPersistence().fetchByU1_U2_T(userId1, userId2, type);
479     }
480 
481     public static com.liferay.portlet.social.model.SocialRelation fetchByU1_U2_T(
482         long userId1, long userId2, int type, boolean retrieveFromCache)
483         throws com.liferay.portal.SystemException {
484         return getPersistence()
485                    .fetchByU1_U2_T(userId1, userId2, type, retrieveFromCache);
486     }
487 
488     public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findAll()
489         throws com.liferay.portal.SystemException {
490         return getPersistence().findAll();
491     }
492 
493     public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findAll(
494         int start, int end) throws com.liferay.portal.SystemException {
495         return getPersistence().findAll(start, end);
496     }
497 
498     public static java.util.List<com.liferay.portlet.social.model.SocialRelation> findAll(
499         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
500         throws com.liferay.portal.SystemException {
501         return getPersistence().findAll(start, end, obc);
502     }
503 
504     public static void removeByUuid(java.lang.String uuid)
505         throws com.liferay.portal.SystemException {
506         getPersistence().removeByUuid(uuid);
507     }
508 
509     public static void removeByCompanyId(long companyId)
510         throws com.liferay.portal.SystemException {
511         getPersistence().removeByCompanyId(companyId);
512     }
513 
514     public static void removeByUserId1(long userId1)
515         throws com.liferay.portal.SystemException {
516         getPersistence().removeByUserId1(userId1);
517     }
518 
519     public static void removeByUserId2(long userId2)
520         throws com.liferay.portal.SystemException {
521         getPersistence().removeByUserId2(userId2);
522     }
523 
524     public static void removeByType(int type)
525         throws com.liferay.portal.SystemException {
526         getPersistence().removeByType(type);
527     }
528 
529     public static void removeByC_T(long companyId, int type)
530         throws com.liferay.portal.SystemException {
531         getPersistence().removeByC_T(companyId, type);
532     }
533 
534     public static void removeByU1_T(long userId1, int type)
535         throws com.liferay.portal.SystemException {
536         getPersistence().removeByU1_T(userId1, type);
537     }
538 
539     public static void removeByU2_T(long userId2, int type)
540         throws com.liferay.portal.SystemException {
541         getPersistence().removeByU2_T(userId2, type);
542     }
543 
544     public static void removeByU1_U2_T(long userId1, long userId2, int type)
545         throws com.liferay.portal.SystemException,
546             com.liferay.portlet.social.NoSuchRelationException {
547         getPersistence().removeByU1_U2_T(userId1, userId2, type);
548     }
549 
550     public static void removeAll() throws com.liferay.portal.SystemException {
551         getPersistence().removeAll();
552     }
553 
554     public static int countByUuid(java.lang.String uuid)
555         throws com.liferay.portal.SystemException {
556         return getPersistence().countByUuid(uuid);
557     }
558 
559     public static int countByCompanyId(long companyId)
560         throws com.liferay.portal.SystemException {
561         return getPersistence().countByCompanyId(companyId);
562     }
563 
564     public static int countByUserId1(long userId1)
565         throws com.liferay.portal.SystemException {
566         return getPersistence().countByUserId1(userId1);
567     }
568 
569     public static int countByUserId2(long userId2)
570         throws com.liferay.portal.SystemException {
571         return getPersistence().countByUserId2(userId2);
572     }
573 
574     public static int countByType(int type)
575         throws com.liferay.portal.SystemException {
576         return getPersistence().countByType(type);
577     }
578 
579     public static int countByC_T(long companyId, int type)
580         throws com.liferay.portal.SystemException {
581         return getPersistence().countByC_T(companyId, type);
582     }
583 
584     public static int countByU1_T(long userId1, int type)
585         throws com.liferay.portal.SystemException {
586         return getPersistence().countByU1_T(userId1, type);
587     }
588 
589     public static int countByU2_T(long userId2, int type)
590         throws com.liferay.portal.SystemException {
591         return getPersistence().countByU2_T(userId2, type);
592     }
593 
594     public static int countByU1_U2_T(long userId1, long userId2, int type)
595         throws com.liferay.portal.SystemException {
596         return getPersistence().countByU1_U2_T(userId1, userId2, type);
597     }
598 
599     public static int countAll() throws com.liferay.portal.SystemException {
600         return getPersistence().countAll();
601     }
602 
603     public static SocialRelationPersistence getPersistence() {
604         if (_persistence == null) {
605             _persistence = (SocialRelationPersistence)PortalBeanLocatorUtil.locate(SocialRelationPersistence.class.getName());
606         }
607 
608         return _persistence;
609     }
610 
611     public void setPersistence(SocialRelationPersistence persistence) {
612         _persistence = persistence;
613     }
614 
615     private static SocialRelationPersistence _persistence;
616 }