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