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.SocialEquityUser;
020    
021    /**
022     * @author    Brian Wing Shun Chan
023     * @see       SocialEquityUserPersistenceImpl
024     * @see       SocialEquityUserUtil
025     * @generated
026     */
027    public interface SocialEquityUserPersistence extends BasePersistence<SocialEquityUser> {
028            public void cacheResult(
029                    com.liferay.portlet.social.model.SocialEquityUser socialEquityUser);
030    
031            public void cacheResult(
032                    java.util.List<com.liferay.portlet.social.model.SocialEquityUser> socialEquityUsers);
033    
034            public com.liferay.portlet.social.model.SocialEquityUser create(
035                    long equityUserId);
036    
037            public com.liferay.portlet.social.model.SocialEquityUser remove(
038                    long equityUserId)
039                    throws com.liferay.portal.kernel.exception.SystemException,
040                            com.liferay.portlet.social.NoSuchEquityUserException;
041    
042            public com.liferay.portlet.social.model.SocialEquityUser updateImpl(
043                    com.liferay.portlet.social.model.SocialEquityUser socialEquityUser,
044                    boolean merge)
045                    throws com.liferay.portal.kernel.exception.SystemException;
046    
047            public com.liferay.portlet.social.model.SocialEquityUser findByPrimaryKey(
048                    long equityUserId)
049                    throws com.liferay.portal.kernel.exception.SystemException,
050                            com.liferay.portlet.social.NoSuchEquityUserException;
051    
052            public com.liferay.portlet.social.model.SocialEquityUser fetchByPrimaryKey(
053                    long equityUserId)
054                    throws com.liferay.portal.kernel.exception.SystemException;
055    
056            public java.util.List<com.liferay.portlet.social.model.SocialEquityUser> findByGroupId(
057                    long groupId)
058                    throws com.liferay.portal.kernel.exception.SystemException;
059    
060            public java.util.List<com.liferay.portlet.social.model.SocialEquityUser> findByGroupId(
061                    long groupId, int start, int end)
062                    throws com.liferay.portal.kernel.exception.SystemException;
063    
064            public java.util.List<com.liferay.portlet.social.model.SocialEquityUser> findByGroupId(
065                    long groupId, 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.SocialEquityUser findByGroupId_First(
070                    long groupId,
071                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
072                    throws com.liferay.portal.kernel.exception.SystemException,
073                            com.liferay.portlet.social.NoSuchEquityUserException;
074    
075            public com.liferay.portlet.social.model.SocialEquityUser findByGroupId_Last(
076                    long groupId,
077                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
078                    throws com.liferay.portal.kernel.exception.SystemException,
079                            com.liferay.portlet.social.NoSuchEquityUserException;
080    
081            public com.liferay.portlet.social.model.SocialEquityUser[] findByGroupId_PrevAndNext(
082                    long equityUserId, long groupId,
083                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
084                    throws com.liferay.portal.kernel.exception.SystemException,
085                            com.liferay.portlet.social.NoSuchEquityUserException;
086    
087            public java.util.List<com.liferay.portlet.social.model.SocialEquityUser> findByGroupRanked(
088                    long groupId)
089                    throws com.liferay.portal.kernel.exception.SystemException;
090    
091            public java.util.List<com.liferay.portlet.social.model.SocialEquityUser> findByGroupRanked(
092                    long groupId, int start, int end)
093                    throws com.liferay.portal.kernel.exception.SystemException;
094    
095            public java.util.List<com.liferay.portlet.social.model.SocialEquityUser> findByGroupRanked(
096                    long groupId, 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.SocialEquityUser findByGroupRanked_First(
101                    long groupId,
102                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
103                    throws com.liferay.portal.kernel.exception.SystemException,
104                            com.liferay.portlet.social.NoSuchEquityUserException;
105    
106            public com.liferay.portlet.social.model.SocialEquityUser findByGroupRanked_Last(
107                    long groupId,
108                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
109                    throws com.liferay.portal.kernel.exception.SystemException,
110                            com.liferay.portlet.social.NoSuchEquityUserException;
111    
112            public com.liferay.portlet.social.model.SocialEquityUser[] findByGroupRanked_PrevAndNext(
113                    long equityUserId, long groupId,
114                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
115                    throws com.liferay.portal.kernel.exception.SystemException,
116                            com.liferay.portlet.social.NoSuchEquityUserException;
117    
118            public java.util.List<com.liferay.portlet.social.model.SocialEquityUser> findByUserId(
119                    long userId) throws com.liferay.portal.kernel.exception.SystemException;
120    
121            public java.util.List<com.liferay.portlet.social.model.SocialEquityUser> findByUserId(
122                    long userId, int start, int end)
123                    throws com.liferay.portal.kernel.exception.SystemException;
124    
125            public java.util.List<com.liferay.portlet.social.model.SocialEquityUser> findByUserId(
126                    long userId, int start, int end,
127                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
128                    throws com.liferay.portal.kernel.exception.SystemException;
129    
130            public com.liferay.portlet.social.model.SocialEquityUser findByUserId_First(
131                    long userId,
132                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
133                    throws com.liferay.portal.kernel.exception.SystemException,
134                            com.liferay.portlet.social.NoSuchEquityUserException;
135    
136            public com.liferay.portlet.social.model.SocialEquityUser findByUserId_Last(
137                    long userId,
138                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
139                    throws com.liferay.portal.kernel.exception.SystemException,
140                            com.liferay.portlet.social.NoSuchEquityUserException;
141    
142            public com.liferay.portlet.social.model.SocialEquityUser[] findByUserId_PrevAndNext(
143                    long equityUserId, long userId,
144                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
145                    throws com.liferay.portal.kernel.exception.SystemException,
146                            com.liferay.portlet.social.NoSuchEquityUserException;
147    
148            public java.util.List<com.liferay.portlet.social.model.SocialEquityUser> findByRank(
149                    int rank) throws com.liferay.portal.kernel.exception.SystemException;
150    
151            public java.util.List<com.liferay.portlet.social.model.SocialEquityUser> findByRank(
152                    int rank, int start, int end)
153                    throws com.liferay.portal.kernel.exception.SystemException;
154    
155            public java.util.List<com.liferay.portlet.social.model.SocialEquityUser> findByRank(
156                    int rank, int start, int end,
157                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
158                    throws com.liferay.portal.kernel.exception.SystemException;
159    
160            public com.liferay.portlet.social.model.SocialEquityUser findByRank_First(
161                    int rank,
162                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
163                    throws com.liferay.portal.kernel.exception.SystemException,
164                            com.liferay.portlet.social.NoSuchEquityUserException;
165    
166            public com.liferay.portlet.social.model.SocialEquityUser findByRank_Last(
167                    int rank,
168                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
169                    throws com.liferay.portal.kernel.exception.SystemException,
170                            com.liferay.portlet.social.NoSuchEquityUserException;
171    
172            public com.liferay.portlet.social.model.SocialEquityUser[] findByRank_PrevAndNext(
173                    long equityUserId, int rank,
174                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
175                    throws com.liferay.portal.kernel.exception.SystemException,
176                            com.liferay.portlet.social.NoSuchEquityUserException;
177    
178            public com.liferay.portlet.social.model.SocialEquityUser findByG_U(
179                    long groupId, long userId)
180                    throws com.liferay.portal.kernel.exception.SystemException,
181                            com.liferay.portlet.social.NoSuchEquityUserException;
182    
183            public com.liferay.portlet.social.model.SocialEquityUser fetchByG_U(
184                    long groupId, long userId)
185                    throws com.liferay.portal.kernel.exception.SystemException;
186    
187            public com.liferay.portlet.social.model.SocialEquityUser fetchByG_U(
188                    long groupId, long userId, boolean retrieveFromCache)
189                    throws com.liferay.portal.kernel.exception.SystemException;
190    
191            public java.util.List<com.liferay.portlet.social.model.SocialEquityUser> findByG_R(
192                    long groupId, int rank)
193                    throws com.liferay.portal.kernel.exception.SystemException;
194    
195            public java.util.List<com.liferay.portlet.social.model.SocialEquityUser> findByG_R(
196                    long groupId, int rank, int start, int end)
197                    throws com.liferay.portal.kernel.exception.SystemException;
198    
199            public java.util.List<com.liferay.portlet.social.model.SocialEquityUser> findByG_R(
200                    long groupId, int rank, int start, int end,
201                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
202                    throws com.liferay.portal.kernel.exception.SystemException;
203    
204            public com.liferay.portlet.social.model.SocialEquityUser findByG_R_First(
205                    long groupId, int rank,
206                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
207                    throws com.liferay.portal.kernel.exception.SystemException,
208                            com.liferay.portlet.social.NoSuchEquityUserException;
209    
210            public com.liferay.portlet.social.model.SocialEquityUser findByG_R_Last(
211                    long groupId, int rank,
212                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
213                    throws com.liferay.portal.kernel.exception.SystemException,
214                            com.liferay.portlet.social.NoSuchEquityUserException;
215    
216            public com.liferay.portlet.social.model.SocialEquityUser[] findByG_R_PrevAndNext(
217                    long equityUserId, long groupId, int rank,
218                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
219                    throws com.liferay.portal.kernel.exception.SystemException,
220                            com.liferay.portlet.social.NoSuchEquityUserException;
221    
222            public java.util.List<com.liferay.portlet.social.model.SocialEquityUser> findAll()
223                    throws com.liferay.portal.kernel.exception.SystemException;
224    
225            public java.util.List<com.liferay.portlet.social.model.SocialEquityUser> findAll(
226                    int start, int end)
227                    throws com.liferay.portal.kernel.exception.SystemException;
228    
229            public java.util.List<com.liferay.portlet.social.model.SocialEquityUser> findAll(
230                    int start, int end,
231                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
232                    throws com.liferay.portal.kernel.exception.SystemException;
233    
234            public void removeByGroupId(long groupId)
235                    throws com.liferay.portal.kernel.exception.SystemException;
236    
237            public void removeByGroupRanked(long groupId)
238                    throws com.liferay.portal.kernel.exception.SystemException;
239    
240            public void removeByUserId(long userId)
241                    throws com.liferay.portal.kernel.exception.SystemException;
242    
243            public void removeByRank(int rank)
244                    throws com.liferay.portal.kernel.exception.SystemException;
245    
246            public void removeByG_U(long groupId, long userId)
247                    throws com.liferay.portal.kernel.exception.SystemException,
248                            com.liferay.portlet.social.NoSuchEquityUserException;
249    
250            public void removeByG_R(long groupId, int rank)
251                    throws com.liferay.portal.kernel.exception.SystemException;
252    
253            public void removeAll()
254                    throws com.liferay.portal.kernel.exception.SystemException;
255    
256            public int countByGroupId(long groupId)
257                    throws com.liferay.portal.kernel.exception.SystemException;
258    
259            public int countByGroupRanked(long groupId)
260                    throws com.liferay.portal.kernel.exception.SystemException;
261    
262            public int countByUserId(long userId)
263                    throws com.liferay.portal.kernel.exception.SystemException;
264    
265            public int countByRank(int rank)
266                    throws com.liferay.portal.kernel.exception.SystemException;
267    
268            public int countByG_U(long groupId, long userId)
269                    throws com.liferay.portal.kernel.exception.SystemException;
270    
271            public int countByG_R(long groupId, int rank)
272                    throws com.liferay.portal.kernel.exception.SystemException;
273    
274            public int countAll()
275                    throws com.liferay.portal.kernel.exception.SystemException;
276    }