001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.social.service.persistence;
016    
017    import com.liferay.portal.service.persistence.BasePersistence;
018    
019    import com.liferay.portlet.social.model.SocialRelation;
020    
021    /**
022     * @author    Brian Wing Shun Chan
023     * @see       SocialRelationPersistenceImpl
024     * @see       SocialRelationUtil
025     * @generated
026     */
027    public interface SocialRelationPersistence extends BasePersistence<SocialRelation> {
028            public void cacheResult(
029                    com.liferay.portlet.social.model.SocialRelation socialRelation);
030    
031            public void cacheResult(
032                    java.util.List<com.liferay.portlet.social.model.SocialRelation> socialRelations);
033    
034            public com.liferay.portlet.social.model.SocialRelation create(
035                    long relationId);
036    
037            public com.liferay.portlet.social.model.SocialRelation remove(
038                    long relationId)
039                    throws com.liferay.portal.kernel.exception.SystemException,
040                            com.liferay.portlet.social.NoSuchRelationException;
041    
042            public com.liferay.portlet.social.model.SocialRelation updateImpl(
043                    com.liferay.portlet.social.model.SocialRelation socialRelation,
044                    boolean merge)
045                    throws com.liferay.portal.kernel.exception.SystemException;
046    
047            public com.liferay.portlet.social.model.SocialRelation findByPrimaryKey(
048                    long relationId)
049                    throws com.liferay.portal.kernel.exception.SystemException,
050                            com.liferay.portlet.social.NoSuchRelationException;
051    
052            public com.liferay.portlet.social.model.SocialRelation fetchByPrimaryKey(
053                    long relationId)
054                    throws com.liferay.portal.kernel.exception.SystemException;
055    
056            public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUuid(
057                    java.lang.String uuid)
058                    throws com.liferay.portal.kernel.exception.SystemException;
059    
060            public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUuid(
061                    java.lang.String uuid, int start, int end)
062                    throws com.liferay.portal.kernel.exception.SystemException;
063    
064            public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUuid(
065                    java.lang.String uuid, int start, int end,
066                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
067                    throws com.liferay.portal.kernel.exception.SystemException;
068    
069            public com.liferay.portlet.social.model.SocialRelation findByUuid_First(
070                    java.lang.String uuid,
071                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
072                    throws com.liferay.portal.kernel.exception.SystemException,
073                            com.liferay.portlet.social.NoSuchRelationException;
074    
075            public com.liferay.portlet.social.model.SocialRelation findByUuid_Last(
076                    java.lang.String uuid,
077                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
078                    throws com.liferay.portal.kernel.exception.SystemException,
079                            com.liferay.portlet.social.NoSuchRelationException;
080    
081            public com.liferay.portlet.social.model.SocialRelation[] findByUuid_PrevAndNext(
082                    long relationId, java.lang.String uuid,
083                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
084                    throws com.liferay.portal.kernel.exception.SystemException,
085                            com.liferay.portlet.social.NoSuchRelationException;
086    
087            public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByCompanyId(
088                    long companyId)
089                    throws com.liferay.portal.kernel.exception.SystemException;
090    
091            public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByCompanyId(
092                    long companyId, int start, int end)
093                    throws com.liferay.portal.kernel.exception.SystemException;
094    
095            public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByCompanyId(
096                    long companyId, int start, int end,
097                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
098                    throws com.liferay.portal.kernel.exception.SystemException;
099    
100            public com.liferay.portlet.social.model.SocialRelation findByCompanyId_First(
101                    long companyId,
102                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
103                    throws com.liferay.portal.kernel.exception.SystemException,
104                            com.liferay.portlet.social.NoSuchRelationException;
105    
106            public com.liferay.portlet.social.model.SocialRelation findByCompanyId_Last(
107                    long companyId,
108                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
109                    throws com.liferay.portal.kernel.exception.SystemException,
110                            com.liferay.portlet.social.NoSuchRelationException;
111    
112            public com.liferay.portlet.social.model.SocialRelation[] findByCompanyId_PrevAndNext(
113                    long relationId, long companyId,
114                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
115                    throws com.liferay.portal.kernel.exception.SystemException,
116                            com.liferay.portlet.social.NoSuchRelationException;
117    
118            public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId1(
119                    long userId1)
120                    throws com.liferay.portal.kernel.exception.SystemException;
121    
122            public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId1(
123                    long userId1, int start, int end)
124                    throws com.liferay.portal.kernel.exception.SystemException;
125    
126            public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId1(
127                    long userId1, int start, int end,
128                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
129                    throws com.liferay.portal.kernel.exception.SystemException;
130    
131            public com.liferay.portlet.social.model.SocialRelation findByUserId1_First(
132                    long userId1,
133                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
134                    throws com.liferay.portal.kernel.exception.SystemException,
135                            com.liferay.portlet.social.NoSuchRelationException;
136    
137            public com.liferay.portlet.social.model.SocialRelation findByUserId1_Last(
138                    long userId1,
139                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
140                    throws com.liferay.portal.kernel.exception.SystemException,
141                            com.liferay.portlet.social.NoSuchRelationException;
142    
143            public com.liferay.portlet.social.model.SocialRelation[] findByUserId1_PrevAndNext(
144                    long relationId, long userId1,
145                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
146                    throws com.liferay.portal.kernel.exception.SystemException,
147                            com.liferay.portlet.social.NoSuchRelationException;
148    
149            public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId2(
150                    long userId2)
151                    throws com.liferay.portal.kernel.exception.SystemException;
152    
153            public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId2(
154                    long userId2, int start, int end)
155                    throws com.liferay.portal.kernel.exception.SystemException;
156    
157            public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByUserId2(
158                    long userId2, int start, int end,
159                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
160                    throws com.liferay.portal.kernel.exception.SystemException;
161    
162            public com.liferay.portlet.social.model.SocialRelation findByUserId2_First(
163                    long userId2,
164                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
165                    throws com.liferay.portal.kernel.exception.SystemException,
166                            com.liferay.portlet.social.NoSuchRelationException;
167    
168            public com.liferay.portlet.social.model.SocialRelation findByUserId2_Last(
169                    long userId2,
170                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
171                    throws com.liferay.portal.kernel.exception.SystemException,
172                            com.liferay.portlet.social.NoSuchRelationException;
173    
174            public com.liferay.portlet.social.model.SocialRelation[] findByUserId2_PrevAndNext(
175                    long relationId, long userId2,
176                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
177                    throws com.liferay.portal.kernel.exception.SystemException,
178                            com.liferay.portlet.social.NoSuchRelationException;
179    
180            public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByType(
181                    int type) throws com.liferay.portal.kernel.exception.SystemException;
182    
183            public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByType(
184                    int type, int start, int end)
185                    throws com.liferay.portal.kernel.exception.SystemException;
186    
187            public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByType(
188                    int type, int start, int end,
189                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
190                    throws com.liferay.portal.kernel.exception.SystemException;
191    
192            public com.liferay.portlet.social.model.SocialRelation findByType_First(
193                    int type,
194                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
195                    throws com.liferay.portal.kernel.exception.SystemException,
196                            com.liferay.portlet.social.NoSuchRelationException;
197    
198            public com.liferay.portlet.social.model.SocialRelation findByType_Last(
199                    int type,
200                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
201                    throws com.liferay.portal.kernel.exception.SystemException,
202                            com.liferay.portlet.social.NoSuchRelationException;
203    
204            public com.liferay.portlet.social.model.SocialRelation[] findByType_PrevAndNext(
205                    long relationId, int type,
206                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
207                    throws com.liferay.portal.kernel.exception.SystemException,
208                            com.liferay.portlet.social.NoSuchRelationException;
209    
210            public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByC_T(
211                    long companyId, int type)
212                    throws com.liferay.portal.kernel.exception.SystemException;
213    
214            public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByC_T(
215                    long companyId, int type, int start, int end)
216                    throws com.liferay.portal.kernel.exception.SystemException;
217    
218            public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByC_T(
219                    long companyId, int type, int start, int end,
220                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
221                    throws com.liferay.portal.kernel.exception.SystemException;
222    
223            public com.liferay.portlet.social.model.SocialRelation findByC_T_First(
224                    long companyId, int type,
225                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
226                    throws com.liferay.portal.kernel.exception.SystemException,
227                            com.liferay.portlet.social.NoSuchRelationException;
228    
229            public com.liferay.portlet.social.model.SocialRelation findByC_T_Last(
230                    long companyId, int type,
231                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
232                    throws com.liferay.portal.kernel.exception.SystemException,
233                            com.liferay.portlet.social.NoSuchRelationException;
234    
235            public com.liferay.portlet.social.model.SocialRelation[] findByC_T_PrevAndNext(
236                    long relationId, long companyId, int type,
237                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
238                    throws com.liferay.portal.kernel.exception.SystemException,
239                            com.liferay.portlet.social.NoSuchRelationException;
240    
241            public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU1_T(
242                    long userId1, int type)
243                    throws com.liferay.portal.kernel.exception.SystemException;
244    
245            public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU1_T(
246                    long userId1, int type, int start, int end)
247                    throws com.liferay.portal.kernel.exception.SystemException;
248    
249            public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU1_T(
250                    long userId1, int type, int start, int end,
251                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
252                    throws com.liferay.portal.kernel.exception.SystemException;
253    
254            public com.liferay.portlet.social.model.SocialRelation findByU1_T_First(
255                    long userId1, int type,
256                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
257                    throws com.liferay.portal.kernel.exception.SystemException,
258                            com.liferay.portlet.social.NoSuchRelationException;
259    
260            public com.liferay.portlet.social.model.SocialRelation findByU1_T_Last(
261                    long userId1, int type,
262                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
263                    throws com.liferay.portal.kernel.exception.SystemException,
264                            com.liferay.portlet.social.NoSuchRelationException;
265    
266            public com.liferay.portlet.social.model.SocialRelation[] findByU1_T_PrevAndNext(
267                    long relationId, long userId1, int type,
268                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
269                    throws com.liferay.portal.kernel.exception.SystemException,
270                            com.liferay.portlet.social.NoSuchRelationException;
271    
272            public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU2_T(
273                    long userId2, int type)
274                    throws com.liferay.portal.kernel.exception.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                    throws com.liferay.portal.kernel.exception.SystemException;
279    
280            public java.util.List<com.liferay.portlet.social.model.SocialRelation> findByU2_T(
281                    long userId2, int type, int start, int end,
282                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
283                    throws com.liferay.portal.kernel.exception.SystemException;
284    
285            public com.liferay.portlet.social.model.SocialRelation findByU2_T_First(
286                    long userId2, int type,
287                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
288                    throws com.liferay.portal.kernel.exception.SystemException,
289                            com.liferay.portlet.social.NoSuchRelationException;
290    
291            public com.liferay.portlet.social.model.SocialRelation findByU2_T_Last(
292                    long userId2, int type,
293                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
294                    throws com.liferay.portal.kernel.exception.SystemException,
295                            com.liferay.portlet.social.NoSuchRelationException;
296    
297            public com.liferay.portlet.social.model.SocialRelation[] findByU2_T_PrevAndNext(
298                    long relationId, long userId2, int type,
299                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
300                    throws com.liferay.portal.kernel.exception.SystemException,
301                            com.liferay.portlet.social.NoSuchRelationException;
302    
303            public com.liferay.portlet.social.model.SocialRelation findByU1_U2_T(
304                    long userId1, long userId2, int type)
305                    throws com.liferay.portal.kernel.exception.SystemException,
306                            com.liferay.portlet.social.NoSuchRelationException;
307    
308            public com.liferay.portlet.social.model.SocialRelation fetchByU1_U2_T(
309                    long userId1, long userId2, int type)
310                    throws com.liferay.portal.kernel.exception.SystemException;
311    
312            public com.liferay.portlet.social.model.SocialRelation fetchByU1_U2_T(
313                    long userId1, long userId2, int type, boolean retrieveFromCache)
314                    throws com.liferay.portal.kernel.exception.SystemException;
315    
316            public java.util.List<com.liferay.portlet.social.model.SocialRelation> findAll()
317                    throws com.liferay.portal.kernel.exception.SystemException;
318    
319            public java.util.List<com.liferay.portlet.social.model.SocialRelation> findAll(
320                    int start, int end)
321                    throws com.liferay.portal.kernel.exception.SystemException;
322    
323            public java.util.List<com.liferay.portlet.social.model.SocialRelation> findAll(
324                    int start, int end,
325                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
326                    throws com.liferay.portal.kernel.exception.SystemException;
327    
328            public void removeByUuid(java.lang.String uuid)
329                    throws com.liferay.portal.kernel.exception.SystemException;
330    
331            public void removeByCompanyId(long companyId)
332                    throws com.liferay.portal.kernel.exception.SystemException;
333    
334            public void removeByUserId1(long userId1)
335                    throws com.liferay.portal.kernel.exception.SystemException;
336    
337            public void removeByUserId2(long userId2)
338                    throws com.liferay.portal.kernel.exception.SystemException;
339    
340            public void removeByType(int type)
341                    throws com.liferay.portal.kernel.exception.SystemException;
342    
343            public void removeByC_T(long companyId, int type)
344                    throws com.liferay.portal.kernel.exception.SystemException;
345    
346            public void removeByU1_T(long userId1, int type)
347                    throws com.liferay.portal.kernel.exception.SystemException;
348    
349            public void removeByU2_T(long userId2, int type)
350                    throws com.liferay.portal.kernel.exception.SystemException;
351    
352            public void removeByU1_U2_T(long userId1, long userId2, int type)
353                    throws com.liferay.portal.kernel.exception.SystemException,
354                            com.liferay.portlet.social.NoSuchRelationException;
355    
356            public void removeAll()
357                    throws com.liferay.portal.kernel.exception.SystemException;
358    
359            public int countByUuid(java.lang.String uuid)
360                    throws com.liferay.portal.kernel.exception.SystemException;
361    
362            public int countByCompanyId(long companyId)
363                    throws com.liferay.portal.kernel.exception.SystemException;
364    
365            public int countByUserId1(long userId1)
366                    throws com.liferay.portal.kernel.exception.SystemException;
367    
368            public int countByUserId2(long userId2)
369                    throws com.liferay.portal.kernel.exception.SystemException;
370    
371            public int countByType(int type)
372                    throws com.liferay.portal.kernel.exception.SystemException;
373    
374            public int countByC_T(long companyId, int type)
375                    throws com.liferay.portal.kernel.exception.SystemException;
376    
377            public int countByU1_T(long userId1, int type)
378                    throws com.liferay.portal.kernel.exception.SystemException;
379    
380            public int countByU2_T(long userId2, int type)
381                    throws com.liferay.portal.kernel.exception.SystemException;
382    
383            public int countByU1_U2_T(long userId1, long userId2, int type)
384                    throws com.liferay.portal.kernel.exception.SystemException;
385    
386            public int countAll()
387                    throws com.liferay.portal.kernel.exception.SystemException;
388    }