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 orderByComparator)
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 orderByComparator)
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 orderByComparator)
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 orderByComparator)
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 orderByComparator)
119         throws com.liferay.portal.SystemException;
120 
121     public com.liferay.portlet.blogs.model.BlogsEntry findByGroupId_First(
122         long groupId,
123         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
124         throws com.liferay.portal.SystemException,
125             com.liferay.portlet.blogs.NoSuchEntryException;
126 
127     public com.liferay.portlet.blogs.model.BlogsEntry findByGroupId_Last(
128         long groupId,
129         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
130         throws com.liferay.portal.SystemException,
131             com.liferay.portlet.blogs.NoSuchEntryException;
132 
133     public com.liferay.portlet.blogs.model.BlogsEntry[] findByGroupId_PrevAndNext(
134         long entryId, long groupId,
135         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
136         throws com.liferay.portal.SystemException,
137             com.liferay.portlet.blogs.NoSuchEntryException;
138 
139     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByCompanyId(
140         long companyId) throws com.liferay.portal.SystemException;
141 
142     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByCompanyId(
143         long companyId, int start, int end)
144         throws com.liferay.portal.SystemException;
145 
146     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByCompanyId(
147         long companyId, int start, int end,
148         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
149         throws com.liferay.portal.SystemException;
150 
151     public com.liferay.portlet.blogs.model.BlogsEntry findByCompanyId_First(
152         long companyId,
153         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
154         throws com.liferay.portal.SystemException,
155             com.liferay.portlet.blogs.NoSuchEntryException;
156 
157     public com.liferay.portlet.blogs.model.BlogsEntry findByCompanyId_Last(
158         long companyId,
159         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
160         throws com.liferay.portal.SystemException,
161             com.liferay.portlet.blogs.NoSuchEntryException;
162 
163     public com.liferay.portlet.blogs.model.BlogsEntry[] findByCompanyId_PrevAndNext(
164         long entryId, long companyId,
165         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
166         throws com.liferay.portal.SystemException,
167             com.liferay.portlet.blogs.NoSuchEntryException;
168 
169     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByG_U(
170         long groupId, long userId) 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         throws com.liferay.portal.SystemException;
175 
176     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByG_U(
177         long groupId, long userId, int start, int end,
178         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
179         throws com.liferay.portal.SystemException;
180 
181     public com.liferay.portlet.blogs.model.BlogsEntry findByG_U_First(
182         long groupId, long userId,
183         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
184         throws com.liferay.portal.SystemException,
185             com.liferay.portlet.blogs.NoSuchEntryException;
186 
187     public com.liferay.portlet.blogs.model.BlogsEntry findByG_U_Last(
188         long groupId, long userId,
189         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
190         throws com.liferay.portal.SystemException,
191             com.liferay.portlet.blogs.NoSuchEntryException;
192 
193     public com.liferay.portlet.blogs.model.BlogsEntry[] findByG_U_PrevAndNext(
194         long entryId, long groupId, long userId,
195         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
196         throws com.liferay.portal.SystemException,
197             com.liferay.portlet.blogs.NoSuchEntryException;
198 
199     public com.liferay.portlet.blogs.model.BlogsEntry findByG_UT(long groupId,
200         java.lang.String urlTitle)
201         throws com.liferay.portal.SystemException,
202             com.liferay.portlet.blogs.NoSuchEntryException;
203 
204     public com.liferay.portlet.blogs.model.BlogsEntry fetchByG_UT(
205         long groupId, java.lang.String urlTitle)
206         throws com.liferay.portal.SystemException;
207 
208     public com.liferay.portlet.blogs.model.BlogsEntry fetchByG_UT(
209         long groupId, java.lang.String urlTitle, boolean retrieveFromCache)
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)
214         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) throws com.liferay.portal.SystemException;
219 
220     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByG_D_D(
221         long groupId, java.util.Date displayDate, boolean draft, int start,
222         int end,
223         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
224         throws com.liferay.portal.SystemException;
225 
226     public com.liferay.portlet.blogs.model.BlogsEntry findByG_D_D_First(
227         long groupId, java.util.Date displayDate, boolean draft,
228         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
229         throws com.liferay.portal.SystemException,
230             com.liferay.portlet.blogs.NoSuchEntryException;
231 
232     public com.liferay.portlet.blogs.model.BlogsEntry findByG_D_D_Last(
233         long groupId, java.util.Date displayDate, boolean draft,
234         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
235         throws com.liferay.portal.SystemException,
236             com.liferay.portlet.blogs.NoSuchEntryException;
237 
238     public com.liferay.portlet.blogs.model.BlogsEntry[] findByG_D_D_PrevAndNext(
239         long entryId, long groupId, java.util.Date displayDate, boolean draft,
240         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
241         throws com.liferay.portal.SystemException,
242             com.liferay.portlet.blogs.NoSuchEntryException;
243 
244     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByC_D_D(
245         long companyId, java.util.Date displayDate, boolean draft)
246         throws com.liferay.portal.SystemException;
247 
248     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByC_D_D(
249         long companyId, java.util.Date displayDate, boolean draft, int start,
250         int end) throws com.liferay.portal.SystemException;
251 
252     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByC_D_D(
253         long companyId, java.util.Date displayDate, boolean draft, int start,
254         int end,
255         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
256         throws com.liferay.portal.SystemException;
257 
258     public com.liferay.portlet.blogs.model.BlogsEntry findByC_D_D_First(
259         long companyId, java.util.Date displayDate, boolean draft,
260         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
261         throws com.liferay.portal.SystemException,
262             com.liferay.portlet.blogs.NoSuchEntryException;
263 
264     public com.liferay.portlet.blogs.model.BlogsEntry findByC_D_D_Last(
265         long companyId, java.util.Date displayDate, boolean draft,
266         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
267         throws com.liferay.portal.SystemException,
268             com.liferay.portlet.blogs.NoSuchEntryException;
269 
270     public com.liferay.portlet.blogs.model.BlogsEntry[] findByC_D_D_PrevAndNext(
271         long entryId, long companyId, java.util.Date displayDate,
272         boolean draft,
273         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
274         throws com.liferay.portal.SystemException,
275             com.liferay.portlet.blogs.NoSuchEntryException;
276 
277     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByG_U_D_D(
278         long groupId, long userId, java.util.Date displayDate, boolean draft)
279         throws com.liferay.portal.SystemException;
280 
281     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByG_U_D_D(
282         long groupId, long userId, java.util.Date displayDate, boolean draft,
283         int start, int end) throws com.liferay.portal.SystemException;
284 
285     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findByG_U_D_D(
286         long groupId, long userId, java.util.Date displayDate, boolean draft,
287         int start, int end,
288         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
289         throws com.liferay.portal.SystemException;
290 
291     public com.liferay.portlet.blogs.model.BlogsEntry findByG_U_D_D_First(
292         long groupId, long userId, java.util.Date displayDate, boolean draft,
293         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
294         throws com.liferay.portal.SystemException,
295             com.liferay.portlet.blogs.NoSuchEntryException;
296 
297     public com.liferay.portlet.blogs.model.BlogsEntry findByG_U_D_D_Last(
298         long groupId, long userId, java.util.Date displayDate, boolean draft,
299         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
300         throws com.liferay.portal.SystemException,
301             com.liferay.portlet.blogs.NoSuchEntryException;
302 
303     public com.liferay.portlet.blogs.model.BlogsEntry[] findByG_U_D_D_PrevAndNext(
304         long entryId, long groupId, long userId, java.util.Date displayDate,
305         boolean draft,
306         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
307         throws com.liferay.portal.SystemException,
308             com.liferay.portlet.blogs.NoSuchEntryException;
309 
310     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findAll()
311         throws com.liferay.portal.SystemException;
312 
313     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findAll(
314         int start, int end) throws com.liferay.portal.SystemException;
315 
316     public java.util.List<com.liferay.portlet.blogs.model.BlogsEntry> findAll(
317         int start, int end,
318         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
319         throws com.liferay.portal.SystemException;
320 
321     public void removeByUuid(java.lang.String uuid)
322         throws com.liferay.portal.SystemException;
323 
324     public void removeByUUID_G(java.lang.String uuid, long groupId)
325         throws com.liferay.portal.SystemException,
326             com.liferay.portlet.blogs.NoSuchEntryException;
327 
328     public void removeByGroupId(long groupId)
329         throws com.liferay.portal.SystemException;
330 
331     public void removeByCompanyId(long companyId)
332         throws com.liferay.portal.SystemException;
333 
334     public void removeByG_U(long groupId, long userId)
335         throws com.liferay.portal.SystemException;
336 
337     public void removeByG_UT(long groupId, java.lang.String urlTitle)
338         throws com.liferay.portal.SystemException,
339             com.liferay.portlet.blogs.NoSuchEntryException;
340 
341     public void removeByG_D_D(long groupId, java.util.Date displayDate,
342         boolean draft) throws com.liferay.portal.SystemException;
343 
344     public void removeByC_D_D(long companyId, java.util.Date displayDate,
345         boolean draft) throws com.liferay.portal.SystemException;
346 
347     public void removeByG_U_D_D(long groupId, long userId,
348         java.util.Date displayDate, boolean draft)
349         throws com.liferay.portal.SystemException;
350 
351     public void removeAll() throws com.liferay.portal.SystemException;
352 
353     public int countByUuid(java.lang.String uuid)
354         throws com.liferay.portal.SystemException;
355 
356     public int countByUUID_G(java.lang.String uuid, long groupId)
357         throws com.liferay.portal.SystemException;
358 
359     public int countByGroupId(long groupId)
360         throws com.liferay.portal.SystemException;
361 
362     public int countByCompanyId(long companyId)
363         throws com.liferay.portal.SystemException;
364 
365     public int countByG_U(long groupId, long userId)
366         throws com.liferay.portal.SystemException;
367 
368     public int countByG_UT(long groupId, java.lang.String urlTitle)
369         throws com.liferay.portal.SystemException;
370 
371     public int countByG_D_D(long groupId, java.util.Date displayDate,
372         boolean draft) throws com.liferay.portal.SystemException;
373 
374     public int countByC_D_D(long companyId, java.util.Date displayDate,
375         boolean draft) throws com.liferay.portal.SystemException;
376 
377     public int countByG_U_D_D(long groupId, long userId,
378         java.util.Date displayDate, boolean draft)
379         throws com.liferay.portal.SystemException;
380 
381     public int countAll() throws com.liferay.portal.SystemException;
382 }