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.journal.service.persistence;
16  
17  import com.liferay.portal.service.persistence.BasePersistence;
18  
19  import com.liferay.portlet.journal.model.JournalContentSearch;
20  
21  /**
22   * <a href="JournalContentSearchPersistence.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       JournalContentSearchPersistenceImpl
31   * @see       JournalContentSearchUtil
32   * @generated
33   */
34  public interface JournalContentSearchPersistence extends BasePersistence<JournalContentSearch> {
35      public void cacheResult(
36          com.liferay.portlet.journal.model.JournalContentSearch journalContentSearch);
37  
38      public void cacheResult(
39          java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> journalContentSearchs);
40  
41      public com.liferay.portlet.journal.model.JournalContentSearch create(
42          long contentSearchId);
43  
44      public com.liferay.portlet.journal.model.JournalContentSearch remove(
45          long contentSearchId)
46          throws com.liferay.portal.SystemException,
47              com.liferay.portlet.journal.NoSuchContentSearchException;
48  
49      /**
50       * @deprecated Use {@link BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)}.
51       */
52      public com.liferay.portlet.journal.model.JournalContentSearch update(
53          com.liferay.portlet.journal.model.JournalContentSearch journalContentSearch)
54          throws com.liferay.portal.SystemException;
55  
56      public com.liferay.portlet.journal.model.JournalContentSearch updateImpl(
57          com.liferay.portlet.journal.model.JournalContentSearch journalContentSearch,
58          boolean merge) throws com.liferay.portal.SystemException;
59  
60      public com.liferay.portlet.journal.model.JournalContentSearch findByPrimaryKey(
61          long contentSearchId)
62          throws com.liferay.portal.SystemException,
63              com.liferay.portlet.journal.NoSuchContentSearchException;
64  
65      public com.liferay.portlet.journal.model.JournalContentSearch fetchByPrimaryKey(
66          long contentSearchId) throws com.liferay.portal.SystemException;
67  
68      public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByArticleId(
69          java.lang.String articleId) throws com.liferay.portal.SystemException;
70  
71      public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByArticleId(
72          java.lang.String articleId, int start, int end)
73          throws com.liferay.portal.SystemException;
74  
75      public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByArticleId(
76          java.lang.String articleId, int start, int end,
77          com.liferay.portal.kernel.util.OrderByComparator obc)
78          throws com.liferay.portal.SystemException;
79  
80      public com.liferay.portlet.journal.model.JournalContentSearch findByArticleId_First(
81          java.lang.String articleId,
82          com.liferay.portal.kernel.util.OrderByComparator obc)
83          throws com.liferay.portal.SystemException,
84              com.liferay.portlet.journal.NoSuchContentSearchException;
85  
86      public com.liferay.portlet.journal.model.JournalContentSearch findByArticleId_Last(
87          java.lang.String articleId,
88          com.liferay.portal.kernel.util.OrderByComparator obc)
89          throws com.liferay.portal.SystemException,
90              com.liferay.portlet.journal.NoSuchContentSearchException;
91  
92      public com.liferay.portlet.journal.model.JournalContentSearch[] findByArticleId_PrevAndNext(
93          long contentSearchId, java.lang.String articleId,
94          com.liferay.portal.kernel.util.OrderByComparator obc)
95          throws com.liferay.portal.SystemException,
96              com.liferay.portlet.journal.NoSuchContentSearchException;
97  
98      public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P(
99          long groupId, boolean privateLayout)
100         throws com.liferay.portal.SystemException;
101 
102     public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P(
103         long groupId, boolean privateLayout, int start, int end)
104         throws com.liferay.portal.SystemException;
105 
106     public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P(
107         long groupId, boolean privateLayout, int start, int end,
108         com.liferay.portal.kernel.util.OrderByComparator obc)
109         throws com.liferay.portal.SystemException;
110 
111     public com.liferay.portlet.journal.model.JournalContentSearch findByG_P_First(
112         long groupId, boolean privateLayout,
113         com.liferay.portal.kernel.util.OrderByComparator obc)
114         throws com.liferay.portal.SystemException,
115             com.liferay.portlet.journal.NoSuchContentSearchException;
116 
117     public com.liferay.portlet.journal.model.JournalContentSearch findByG_P_Last(
118         long groupId, boolean privateLayout,
119         com.liferay.portal.kernel.util.OrderByComparator obc)
120         throws com.liferay.portal.SystemException,
121             com.liferay.portlet.journal.NoSuchContentSearchException;
122 
123     public com.liferay.portlet.journal.model.JournalContentSearch[] findByG_P_PrevAndNext(
124         long contentSearchId, long groupId, boolean privateLayout,
125         com.liferay.portal.kernel.util.OrderByComparator obc)
126         throws com.liferay.portal.SystemException,
127             com.liferay.portlet.journal.NoSuchContentSearchException;
128 
129     public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_A(
130         long groupId, java.lang.String articleId)
131         throws com.liferay.portal.SystemException;
132 
133     public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_A(
134         long groupId, java.lang.String articleId, int start, int end)
135         throws com.liferay.portal.SystemException;
136 
137     public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_A(
138         long groupId, java.lang.String articleId, int start, int end,
139         com.liferay.portal.kernel.util.OrderByComparator obc)
140         throws com.liferay.portal.SystemException;
141 
142     public com.liferay.portlet.journal.model.JournalContentSearch findByG_A_First(
143         long groupId, java.lang.String articleId,
144         com.liferay.portal.kernel.util.OrderByComparator obc)
145         throws com.liferay.portal.SystemException,
146             com.liferay.portlet.journal.NoSuchContentSearchException;
147 
148     public com.liferay.portlet.journal.model.JournalContentSearch findByG_A_Last(
149         long groupId, java.lang.String articleId,
150         com.liferay.portal.kernel.util.OrderByComparator obc)
151         throws com.liferay.portal.SystemException,
152             com.liferay.portlet.journal.NoSuchContentSearchException;
153 
154     public com.liferay.portlet.journal.model.JournalContentSearch[] findByG_A_PrevAndNext(
155         long contentSearchId, long groupId, java.lang.String articleId,
156         com.liferay.portal.kernel.util.OrderByComparator obc)
157         throws com.liferay.portal.SystemException,
158             com.liferay.portlet.journal.NoSuchContentSearchException;
159 
160     public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_L(
161         long groupId, boolean privateLayout, long layoutId)
162         throws com.liferay.portal.SystemException;
163 
164     public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_L(
165         long groupId, boolean privateLayout, long layoutId, int start, int end)
166         throws com.liferay.portal.SystemException;
167 
168     public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_L(
169         long groupId, boolean privateLayout, long layoutId, int start, int end,
170         com.liferay.portal.kernel.util.OrderByComparator obc)
171         throws com.liferay.portal.SystemException;
172 
173     public com.liferay.portlet.journal.model.JournalContentSearch findByG_P_L_First(
174         long groupId, boolean privateLayout, long layoutId,
175         com.liferay.portal.kernel.util.OrderByComparator obc)
176         throws com.liferay.portal.SystemException,
177             com.liferay.portlet.journal.NoSuchContentSearchException;
178 
179     public com.liferay.portlet.journal.model.JournalContentSearch findByG_P_L_Last(
180         long groupId, boolean privateLayout, long layoutId,
181         com.liferay.portal.kernel.util.OrderByComparator obc)
182         throws com.liferay.portal.SystemException,
183             com.liferay.portlet.journal.NoSuchContentSearchException;
184 
185     public com.liferay.portlet.journal.model.JournalContentSearch[] findByG_P_L_PrevAndNext(
186         long contentSearchId, long groupId, boolean privateLayout,
187         long layoutId, com.liferay.portal.kernel.util.OrderByComparator obc)
188         throws com.liferay.portal.SystemException,
189             com.liferay.portlet.journal.NoSuchContentSearchException;
190 
191     public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_A(
192         long groupId, boolean privateLayout, java.lang.String articleId)
193         throws com.liferay.portal.SystemException;
194 
195     public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_A(
196         long groupId, boolean privateLayout, java.lang.String articleId,
197         int start, int end) throws com.liferay.portal.SystemException;
198 
199     public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_A(
200         long groupId, boolean privateLayout, java.lang.String articleId,
201         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
202         throws com.liferay.portal.SystemException;
203 
204     public com.liferay.portlet.journal.model.JournalContentSearch findByG_P_A_First(
205         long groupId, boolean privateLayout, java.lang.String articleId,
206         com.liferay.portal.kernel.util.OrderByComparator obc)
207         throws com.liferay.portal.SystemException,
208             com.liferay.portlet.journal.NoSuchContentSearchException;
209 
210     public com.liferay.portlet.journal.model.JournalContentSearch findByG_P_A_Last(
211         long groupId, boolean privateLayout, java.lang.String articleId,
212         com.liferay.portal.kernel.util.OrderByComparator obc)
213         throws com.liferay.portal.SystemException,
214             com.liferay.portlet.journal.NoSuchContentSearchException;
215 
216     public com.liferay.portlet.journal.model.JournalContentSearch[] findByG_P_A_PrevAndNext(
217         long contentSearchId, long groupId, boolean privateLayout,
218         java.lang.String articleId,
219         com.liferay.portal.kernel.util.OrderByComparator obc)
220         throws com.liferay.portal.SystemException,
221             com.liferay.portlet.journal.NoSuchContentSearchException;
222 
223     public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_L_P(
224         long groupId, boolean privateLayout, long layoutId,
225         java.lang.String portletId) throws com.liferay.portal.SystemException;
226 
227     public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_L_P(
228         long groupId, boolean privateLayout, long layoutId,
229         java.lang.String portletId, int start, int end)
230         throws com.liferay.portal.SystemException;
231 
232     public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_L_P(
233         long groupId, boolean privateLayout, long layoutId,
234         java.lang.String portletId, int start, int end,
235         com.liferay.portal.kernel.util.OrderByComparator obc)
236         throws com.liferay.portal.SystemException;
237 
238     public com.liferay.portlet.journal.model.JournalContentSearch findByG_P_L_P_First(
239         long groupId, boolean privateLayout, long layoutId,
240         java.lang.String portletId,
241         com.liferay.portal.kernel.util.OrderByComparator obc)
242         throws com.liferay.portal.SystemException,
243             com.liferay.portlet.journal.NoSuchContentSearchException;
244 
245     public com.liferay.portlet.journal.model.JournalContentSearch findByG_P_L_P_Last(
246         long groupId, boolean privateLayout, long layoutId,
247         java.lang.String portletId,
248         com.liferay.portal.kernel.util.OrderByComparator obc)
249         throws com.liferay.portal.SystemException,
250             com.liferay.portlet.journal.NoSuchContentSearchException;
251 
252     public com.liferay.portlet.journal.model.JournalContentSearch[] findByG_P_L_P_PrevAndNext(
253         long contentSearchId, long groupId, boolean privateLayout,
254         long layoutId, java.lang.String portletId,
255         com.liferay.portal.kernel.util.OrderByComparator obc)
256         throws com.liferay.portal.SystemException,
257             com.liferay.portlet.journal.NoSuchContentSearchException;
258 
259     public com.liferay.portlet.journal.model.JournalContentSearch findByG_P_L_P_A(
260         long groupId, boolean privateLayout, long layoutId,
261         java.lang.String portletId, java.lang.String articleId)
262         throws com.liferay.portal.SystemException,
263             com.liferay.portlet.journal.NoSuchContentSearchException;
264 
265     public com.liferay.portlet.journal.model.JournalContentSearch fetchByG_P_L_P_A(
266         long groupId, boolean privateLayout, long layoutId,
267         java.lang.String portletId, java.lang.String articleId)
268         throws com.liferay.portal.SystemException;
269 
270     public com.liferay.portlet.journal.model.JournalContentSearch fetchByG_P_L_P_A(
271         long groupId, boolean privateLayout, long layoutId,
272         java.lang.String portletId, java.lang.String articleId,
273         boolean retrieveFromCache) throws com.liferay.portal.SystemException;
274 
275     public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findAll()
276         throws com.liferay.portal.SystemException;
277 
278     public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findAll(
279         int start, int end) throws com.liferay.portal.SystemException;
280 
281     public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findAll(
282         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
283         throws com.liferay.portal.SystemException;
284 
285     public void removeByArticleId(java.lang.String articleId)
286         throws com.liferay.portal.SystemException;
287 
288     public void removeByG_P(long groupId, boolean privateLayout)
289         throws com.liferay.portal.SystemException;
290 
291     public void removeByG_A(long groupId, java.lang.String articleId)
292         throws com.liferay.portal.SystemException;
293 
294     public void removeByG_P_L(long groupId, boolean privateLayout, long layoutId)
295         throws com.liferay.portal.SystemException;
296 
297     public void removeByG_P_A(long groupId, boolean privateLayout,
298         java.lang.String articleId) throws com.liferay.portal.SystemException;
299 
300     public void removeByG_P_L_P(long groupId, boolean privateLayout,
301         long layoutId, java.lang.String portletId)
302         throws com.liferay.portal.SystemException;
303 
304     public void removeByG_P_L_P_A(long groupId, boolean privateLayout,
305         long layoutId, java.lang.String portletId, java.lang.String articleId)
306         throws com.liferay.portal.SystemException,
307             com.liferay.portlet.journal.NoSuchContentSearchException;
308 
309     public void removeAll() throws com.liferay.portal.SystemException;
310 
311     public int countByArticleId(java.lang.String articleId)
312         throws com.liferay.portal.SystemException;
313 
314     public int countByG_P(long groupId, boolean privateLayout)
315         throws com.liferay.portal.SystemException;
316 
317     public int countByG_A(long groupId, java.lang.String articleId)
318         throws com.liferay.portal.SystemException;
319 
320     public int countByG_P_L(long groupId, boolean privateLayout, long layoutId)
321         throws com.liferay.portal.SystemException;
322 
323     public int countByG_P_A(long groupId, boolean privateLayout,
324         java.lang.String articleId) throws com.liferay.portal.SystemException;
325 
326     public int countByG_P_L_P(long groupId, boolean privateLayout,
327         long layoutId, java.lang.String portletId)
328         throws com.liferay.portal.SystemException;
329 
330     public int countByG_P_L_P_A(long groupId, boolean privateLayout,
331         long layoutId, java.lang.String portletId, java.lang.String articleId)
332         throws com.liferay.portal.SystemException;
333 
334     public int countAll() throws com.liferay.portal.SystemException;
335 }