1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   * 
13   */
14  
15  package com.liferay.portlet.blogs.service.persistence;
16  
17  import com.liferay.portal.service.persistence.BasePersistence;
18  
19  import com.liferay.portlet.blogs.model.BlogsEntry;
20  
21  /**
22   * <a href="BlogsEntryPersistence.java.html"><b><i>View Source</i></b></a>
23   *
24   * <p>
25   * ServiceBuilder generated this class. Modifications in this class will be
26   * overwritten the next time is generated.
27   * </p>
28   *
29   * @author    Brian Wing Shun Chan
30   * @see       BlogsEntryPersistenceImpl
31   * @see       BlogsEntryUtil
32   * @generated
33   */
34  public interface BlogsEntryPersistence extends BasePersistence<BlogsEntry> {
35      public void cacheResult(
36          com.liferay.portlet.blogs.model.BlogsEntry blogsEntry);
37  
38      public void cacheResult(
39          java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> blogsEntries);
40  
41      public com.liferay.portlet.blogs.model.BlogsEntry create(long entryId);
42  
43      public com.liferay.portlet.blogs.model.BlogsEntry remove(long entryId)
44          throws com.liferay.portal.SystemException,
45              com.liferay.portlet.blogs.NoSuchEntryException;
46  
47      /**
48       * @deprecated Use {@link BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)}.
49       */
50      public com.liferay.portlet.blogs.model.BlogsEntry update(
51          com.liferay.portlet.blogs.model.BlogsEntry blogsEntry)
52          throws com.liferay.portal.SystemException;
53  
54      public com.liferay.portlet.blogs.model.BlogsEntry updateImpl(
55          com.liferay.portlet.blogs.model.BlogsEntry blogsEntry, boolean merge)
56          throws com.liferay.portal.SystemException;
57  
58      public com.liferay.portlet.blogs.model.BlogsEntry findByPrimaryKey(
59          long entryId)
60          throws com.liferay.portal.SystemException,
61              com.liferay.portlet.blogs.NoSuchEntryException;
62  
63      public com.liferay.portlet.blogs.model.BlogsEntry fetchByPrimaryKey(
64          long entryId) throws com.liferay.portal.SystemException;
65  
66      public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByUuid(
67          java.lang.String uuid) throws com.liferay.portal.SystemException;
68  
69      public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByUuid(
70          java.lang.String uuid, int start, int end)
71          throws com.liferay.portal.SystemException;
72  
73      public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByUuid(
74          java.lang.String uuid, int start, int end,
75          com.liferay.portal.kernel.util.OrderByComparator obc)
76          throws com.liferay.portal.SystemException;
77  
78      public com.liferay.portlet.blogs.model.BlogsEntry findByUuid_First(
79          java.lang.String uuid,
80          com.liferay.portal.kernel.util.OrderByComparator obc)
81          throws com.liferay.portal.SystemException,
82              com.liferay.portlet.blogs.NoSuchEntryException;
83  
84      public com.liferay.portlet.blogs.model.BlogsEntry findByUuid_Last(
85          java.lang.String uuid,
86          com.liferay.portal.kernel.util.OrderByComparator obc)
87          throws com.liferay.portal.SystemException,
88              com.liferay.portlet.blogs.NoSuchEntryException;
89  
90      public com.liferay.portlet.blogs.model.BlogsEntry[] findByUuid_PrevAndNext(
91          long entryId, java.lang.String uuid,
92          com.liferay.portal.kernel.util.OrderByComparator obc)
93          throws com.liferay.portal.SystemException,
94              com.liferay.portlet.blogs.NoSuchEntryException;
95  
96      public com.liferay.portlet.blogs.model.BlogsEntry findByUUID_G(
97          java.lang.String uuid, long groupId)
98          throws com.liferay.portal.SystemException,
99              com.liferay.portlet.blogs.NoSuchEntryException;
100 
101     public com.liferay.portlet.blogs.model.BlogsEntry fetchByUUID_G(
102         java.lang.String uuid, long groupId)
103         throws com.liferay.portal.SystemException;
104 
105     public com.liferay.portlet.blogs.model.BlogsEntry fetchByUUID_G(
106         java.lang.String uuid, long groupId, boolean retrieveFromCache)
107         throws com.liferay.portal.SystemException;
108 
109     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByGroupId(
110         long groupId) throws com.liferay.portal.SystemException;
111 
112     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByGroupId(
113         long groupId, int start, int end)
114         throws com.liferay.portal.SystemException;
115 
116     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByGroupId(
117         long groupId, int start, int end,
118         com.liferay.portal.kernel.util.OrderByComparator obc)
119         throws com.liferay.portal.SystemException;
120 
121     public com.liferay.portlet.blogs.model.BlogsEntry findByGroupId_First(
122         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
123         throws com.liferay.portal.SystemException,
124             com.liferay.portlet.blogs.NoSuchEntryException;
125 
126     public com.liferay.portlet.blogs.model.BlogsEntry findByGroupId_Last(
127         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
128         throws com.liferay.portal.SystemException,
129             com.liferay.portlet.blogs.NoSuchEntryException;
130 
131     public com.liferay.portlet.blogs.model.BlogsEntry[] findByGroupId_PrevAndNext(
132         long entryId, long groupId,
133         com.liferay.portal.kernel.util.OrderByComparator obc)
134         throws com.liferay.portal.SystemException,
135             com.liferay.portlet.blogs.NoSuchEntryException;
136 
137     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByCompanyId(
138         long companyId) throws com.liferay.portal.SystemException;
139 
140     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByCompanyId(
141         long companyId, int start, int end)
142         throws com.liferay.portal.SystemException;
143 
144     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByCompanyId(
145         long companyId, int start, int end,
146         com.liferay.portal.kernel.util.OrderByComparator obc)
147         throws com.liferay.portal.SystemException;
148 
149     public com.liferay.portlet.blogs.model.BlogsEntry findByCompanyId_First(
150         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
151         throws com.liferay.portal.SystemException,
152             com.liferay.portlet.blogs.NoSuchEntryException;
153 
154     public com.liferay.portlet.blogs.model.BlogsEntry findByCompanyId_Last(
155         long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
156         throws com.liferay.portal.SystemException,
157             com.liferay.portlet.blogs.NoSuchEntryException;
158 
159     public com.liferay.portlet.blogs.model.BlogsEntry[] findByCompanyId_PrevAndNext(
160         long entryId, long companyId,
161         com.liferay.portal.kernel.util.OrderByComparator obc)
162         throws com.liferay.portal.SystemException,
163             com.liferay.portlet.blogs.NoSuchEntryException;
164 
165     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByG_U(
166         long groupId, long userId) throws com.liferay.portal.SystemException;
167 
168     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByG_U(
169         long groupId, long userId, int start, int end)
170         throws com.liferay.portal.SystemException;
171 
172     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByG_U(
173         long groupId, long userId, int start, int end,
174         com.liferay.portal.kernel.util.OrderByComparator obc)
175         throws com.liferay.portal.SystemException;
176 
177     public com.liferay.portlet.blogs.model.BlogsEntry findByG_U_First(
178         long groupId, long userId,
179         com.liferay.portal.kernel.util.OrderByComparator obc)
180         throws com.liferay.portal.SystemException,
181             com.liferay.portlet.blogs.NoSuchEntryException;
182 
183     public com.liferay.portlet.blogs.model.BlogsEntry findByG_U_Last(
184         long groupId, long userId,
185         com.liferay.portal.kernel.util.OrderByComparator obc)
186         throws com.liferay.portal.SystemException,
187             com.liferay.portlet.blogs.NoSuchEntryException;
188 
189     public com.liferay.portlet.blogs.model.BlogsEntry[] findByG_U_PrevAndNext(
190         long entryId, long groupId, long userId,
191         com.liferay.portal.kernel.util.OrderByComparator obc)
192         throws com.liferay.portal.SystemException,
193             com.liferay.portlet.blogs.NoSuchEntryException;
194 
195     public com.liferay.portlet.blogs.model.BlogsEntry findByG_UT(long groupId,
196         java.lang.String urlTitle)
197         throws com.liferay.portal.SystemException,
198             com.liferay.portlet.blogs.NoSuchEntryException;
199 
200     public com.liferay.portlet.blogs.model.BlogsEntry fetchByG_UT(
201         long groupId, java.lang.String urlTitle)
202         throws com.liferay.portal.SystemException;
203 
204     public com.liferay.portlet.blogs.model.BlogsEntry fetchByG_UT(
205         long groupId, java.lang.String urlTitle, boolean retrieveFromCache)
206         throws com.liferay.portal.SystemException;
207 
208     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByG_D_D(
209         long groupId, java.util.Date displayDate, boolean draft)
210         throws com.liferay.portal.SystemException;
211 
212     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByG_D_D(
213         long groupId, java.util.Date displayDate, boolean draft, int start,
214         int end) throws com.liferay.portal.SystemException;
215 
216     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByG_D_D(
217         long groupId, java.util.Date displayDate, boolean draft, int start,
218         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
219         throws com.liferay.portal.SystemException;
220 
221     public com.liferay.portlet.blogs.model.BlogsEntry findByG_D_D_First(
222         long groupId, java.util.Date displayDate, boolean draft,
223         com.liferay.portal.kernel.util.OrderByComparator obc)
224         throws com.liferay.portal.SystemException,
225             com.liferay.portlet.blogs.NoSuchEntryException;
226 
227     public com.liferay.portlet.blogs.model.BlogsEntry findByG_D_D_Last(
228         long groupId, java.util.Date displayDate, boolean draft,
229         com.liferay.portal.kernel.util.OrderByComparator obc)
230         throws com.liferay.portal.SystemException,
231             com.liferay.portlet.blogs.NoSuchEntryException;
232 
233     public com.liferay.portlet.blogs.model.BlogsEntry[] findByG_D_D_PrevAndNext(
234         long entryId, long groupId, java.util.Date displayDate, boolean draft,
235         com.liferay.portal.kernel.util.OrderByComparator obc)
236         throws com.liferay.portal.SystemException,
237             com.liferay.portlet.blogs.NoSuchEntryException;
238 
239     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByC_D_D(
240         long companyId, java.util.Date displayDate, boolean draft)
241         throws com.liferay.portal.SystemException;
242 
243     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByC_D_D(
244         long companyId, java.util.Date displayDate, boolean draft, int start,
245         int end) throws com.liferay.portal.SystemException;
246 
247     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByC_D_D(
248         long companyId, java.util.Date displayDate, boolean draft, int start,
249         int end, com.liferay.portal.kernel.util.OrderByComparator obc)
250         throws com.liferay.portal.SystemException;
251 
252     public com.liferay.portlet.blogs.model.BlogsEntry findByC_D_D_First(
253         long companyId, java.util.Date displayDate, boolean draft,
254         com.liferay.portal.kernel.util.OrderByComparator obc)
255         throws com.liferay.portal.SystemException,
256             com.liferay.portlet.blogs.NoSuchEntryException;
257 
258     public com.liferay.portlet.blogs.model.BlogsEntry findByC_D_D_Last(
259         long companyId, java.util.Date displayDate, boolean draft,
260         com.liferay.portal.kernel.util.OrderByComparator obc)
261         throws com.liferay.portal.SystemException,
262             com.liferay.portlet.blogs.NoSuchEntryException;
263 
264     public com.liferay.portlet.blogs.model.BlogsEntry[] findByC_D_D_PrevAndNext(
265         long entryId, long companyId, java.util.Date displayDate,
266         boolean draft, com.liferay.portal.kernel.util.OrderByComparator obc)
267         throws com.liferay.portal.SystemException,
268             com.liferay.portlet.blogs.NoSuchEntryException;
269 
270     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByG_U_D_D(
271         long groupId, long userId, java.util.Date displayDate, boolean draft)
272         throws com.liferay.portal.SystemException;
273 
274     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByG_U_D_D(
275         long groupId, long userId, java.util.Date displayDate, boolean draft,
276         int start, int end) throws com.liferay.portal.SystemException;
277 
278     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByG_U_D_D(
279         long groupId, long userId, java.util.Date displayDate, boolean draft,
280         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
281         throws com.liferay.portal.SystemException;
282 
283     public com.liferay.portlet.blogs.model.BlogsEntry findByG_U_D_D_First(
284         long groupId, long userId, java.util.Date displayDate, boolean draft,
285         com.liferay.portal.kernel.util.OrderByComparator obc)
286         throws com.liferay.portal.SystemException,
287             com.liferay.portlet.blogs.NoSuchEntryException;
288 
289     public com.liferay.portlet.blogs.model.BlogsEntry findByG_U_D_D_Last(
290         long groupId, long userId, java.util.Date displayDate, boolean draft,
291         com.liferay.portal.kernel.util.OrderByComparator obc)
292         throws com.liferay.portal.SystemException,
293             com.liferay.portlet.blogs.NoSuchEntryException;
294 
295     public com.liferay.portlet.blogs.model.BlogsEntry[] findByG_U_D_D_PrevAndNext(
296         long entryId, long groupId, long userId, java.util.Date displayDate,
297         boolean draft, com.liferay.portal.kernel.util.OrderByComparator obc)
298         throws com.liferay.portal.SystemException,
299             com.liferay.portlet.blogs.NoSuchEntryException;
300 
301     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findAll()
302         throws com.liferay.portal.SystemException;
303 
304     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findAll(
305         int start, int end) throws com.liferay.portal.SystemException;
306 
307     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findAll(
308         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
309         throws com.liferay.portal.SystemException;
310 
311     public void removeByUuid(java.lang.String uuid)
312         throws com.liferay.portal.SystemException;
313 
314     public void removeByUUID_G(java.lang.String uuid, long groupId)
315         throws com.liferay.portal.SystemException,
316             com.liferay.portlet.blogs.NoSuchEntryException;
317 
318     public void removeByGroupId(long groupId)
319         throws com.liferay.portal.SystemException;
320 
321     public void removeByCompanyId(long companyId)
322         throws com.liferay.portal.SystemException;
323 
324     public void removeByG_U(long groupId, long userId)
325         throws com.liferay.portal.SystemException;
326 
327     public void removeByG_UT(long groupId, java.lang.String urlTitle)
328         throws com.liferay.portal.SystemException,
329             com.liferay.portlet.blogs.NoSuchEntryException;
330 
331     public void removeByG_D_D(long groupId, java.util.Date displayDate,
332         boolean draft) throws com.liferay.portal.SystemException;
333 
334     public void removeByC_D_D(long companyId, java.util.Date displayDate,
335         boolean draft) throws com.liferay.portal.SystemException;
336 
337     public void removeByG_U_D_D(long groupId, long userId,
338         java.util.Date displayDate, boolean draft)
339         throws com.liferay.portal.SystemException;
340 
341     public void removeAll() throws com.liferay.portal.SystemException;
342 
343     public int countByUuid(java.lang.String uuid)
344         throws com.liferay.portal.SystemException;
345 
346     public int countByUUID_G(java.lang.String uuid, long groupId)
347         throws com.liferay.portal.SystemException;
348 
349     public int countByGroupId(long groupId)
350         throws com.liferay.portal.SystemException;
351 
352     public int countByCompanyId(long companyId)
353         throws com.liferay.portal.SystemException;
354 
355     public int countByG_U(long groupId, long userId)
356         throws com.liferay.portal.SystemException;
357 
358     public int countByG_UT(long groupId, java.lang.String urlTitle)
359         throws com.liferay.portal.SystemException;
360 
361     public int countByG_D_D(long groupId, java.util.Date displayDate,
362         boolean draft) throws com.liferay.portal.SystemException;
363 
364     public int countByC_D_D(long companyId, java.util.Date displayDate,
365         boolean draft) throws com.liferay.portal.SystemException;
366 
367     public int countByG_U_D_D(long groupId, long userId,
368         java.util.Date displayDate, boolean draft)
369         throws com.liferay.portal.SystemException;
370 
371     public int countAll() throws com.liferay.portal.SystemException;
372 }