1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    *
5    *
6    *
7    * The contents of this file are subject to the terms of the Liferay Enterprise
8    * Subscription License ("License"). You may not use this file except in
9    * compliance with the License. You can obtain a copy of the License by
10   * contacting Liferay, Inc. See the License for the specific language governing
11   * permissions and limitations under the License, including but not limited to
12   * distribution rights of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.journal.service.persistence;
24  
25  import com.liferay.portal.service.persistence.BasePersistence;
26  
27  /**
28   * <a href="JournalContentSearchPersistence.java.html"><b><i>View Source</i></b></a>
29   *
30   * <p>
31   * ServiceBuilder generated this class. Modifications in this class will be
32   * overwritten the next time is generated.
33   * </p>
34   *
35   * @author    Brian Wing Shun Chan
36   * @see       JournalContentSearchPersistenceImpl
37   * @see       JournalContentSearchUtil
38   * @generated
39   */
40  public interface JournalContentSearchPersistence extends BasePersistence {
41      public void cacheResult(
42          com.liferay.portlet.journal.model.JournalContentSearch journalContentSearch);
43  
44      public void cacheResult(
45          java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> journalContentSearchs);
46  
47      public void clearCache();
48  
49      public com.liferay.portlet.journal.model.JournalContentSearch create(
50          long contentSearchId);
51  
52      public com.liferay.portlet.journal.model.JournalContentSearch remove(
53          long contentSearchId)
54          throws com.liferay.portal.SystemException,
55              com.liferay.portlet.journal.NoSuchContentSearchException;
56  
57      public com.liferay.portlet.journal.model.JournalContentSearch remove(
58          com.liferay.portlet.journal.model.JournalContentSearch journalContentSearch)
59          throws com.liferay.portal.SystemException;
60  
61      /**
62       * @deprecated Use {@link #update(JournalContentSearch, boolean merge)}.
63       */
64      public com.liferay.portlet.journal.model.JournalContentSearch update(
65          com.liferay.portlet.journal.model.JournalContentSearch journalContentSearch)
66          throws com.liferay.portal.SystemException;
67  
68      /**
69       * Add, update, or merge, the entity. This method also calls the model
70       * listeners to trigger the proper events associated with adding, deleting,
71       * or updating an entity.
72       *
73       * @param  journalContentSearch the entity to add, update, or merge
74       * @param  merge boolean value for whether to merge the entity. The default
75       *         value is false. Setting merge to true is more expensive and
76       *         should only be true when journalContentSearch is transient. See
77       *         LEP-5473 for a detailed discussion of this method.
78       * @return the entity that was added, updated, or merged
79       */
80      public com.liferay.portlet.journal.model.JournalContentSearch update(
81          com.liferay.portlet.journal.model.JournalContentSearch journalContentSearch,
82          boolean merge) throws com.liferay.portal.SystemException;
83  
84      public com.liferay.portlet.journal.model.JournalContentSearch updateImpl(
85          com.liferay.portlet.journal.model.JournalContentSearch journalContentSearch,
86          boolean merge) throws com.liferay.portal.SystemException;
87  
88      public com.liferay.portlet.journal.model.JournalContentSearch findByPrimaryKey(
89          long contentSearchId)
90          throws com.liferay.portal.SystemException,
91              com.liferay.portlet.journal.NoSuchContentSearchException;
92  
93      public com.liferay.portlet.journal.model.JournalContentSearch fetchByPrimaryKey(
94          long contentSearchId) throws com.liferay.portal.SystemException;
95  
96      public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByArticleId(
97          java.lang.String articleId) throws com.liferay.portal.SystemException;
98  
99      public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByArticleId(
100         java.lang.String articleId, int start, int end)
101         throws com.liferay.portal.SystemException;
102 
103     public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByArticleId(
104         java.lang.String articleId, int start, int end,
105         com.liferay.portal.kernel.util.OrderByComparator obc)
106         throws com.liferay.portal.SystemException;
107 
108     public com.liferay.portlet.journal.model.JournalContentSearch findByArticleId_First(
109         java.lang.String articleId,
110         com.liferay.portal.kernel.util.OrderByComparator obc)
111         throws com.liferay.portal.SystemException,
112             com.liferay.portlet.journal.NoSuchContentSearchException;
113 
114     public com.liferay.portlet.journal.model.JournalContentSearch findByArticleId_Last(
115         java.lang.String articleId,
116         com.liferay.portal.kernel.util.OrderByComparator obc)
117         throws com.liferay.portal.SystemException,
118             com.liferay.portlet.journal.NoSuchContentSearchException;
119 
120     public com.liferay.portlet.journal.model.JournalContentSearch[] findByArticleId_PrevAndNext(
121         long contentSearchId, java.lang.String articleId,
122         com.liferay.portal.kernel.util.OrderByComparator obc)
123         throws com.liferay.portal.SystemException,
124             com.liferay.portlet.journal.NoSuchContentSearchException;
125 
126     public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P(
127         long groupId, boolean privateLayout)
128         throws com.liferay.portal.SystemException;
129 
130     public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P(
131         long groupId, boolean privateLayout, int start, int end)
132         throws com.liferay.portal.SystemException;
133 
134     public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P(
135         long groupId, boolean privateLayout, int start, int end,
136         com.liferay.portal.kernel.util.OrderByComparator obc)
137         throws com.liferay.portal.SystemException;
138 
139     public com.liferay.portlet.journal.model.JournalContentSearch findByG_P_First(
140         long groupId, boolean privateLayout,
141         com.liferay.portal.kernel.util.OrderByComparator obc)
142         throws com.liferay.portal.SystemException,
143             com.liferay.portlet.journal.NoSuchContentSearchException;
144 
145     public com.liferay.portlet.journal.model.JournalContentSearch findByG_P_Last(
146         long groupId, boolean privateLayout,
147         com.liferay.portal.kernel.util.OrderByComparator obc)
148         throws com.liferay.portal.SystemException,
149             com.liferay.portlet.journal.NoSuchContentSearchException;
150 
151     public com.liferay.portlet.journal.model.JournalContentSearch[] findByG_P_PrevAndNext(
152         long contentSearchId, long groupId, boolean privateLayout,
153         com.liferay.portal.kernel.util.OrderByComparator obc)
154         throws com.liferay.portal.SystemException,
155             com.liferay.portlet.journal.NoSuchContentSearchException;
156 
157     public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_A(
158         long groupId, java.lang.String articleId)
159         throws com.liferay.portal.SystemException;
160 
161     public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_A(
162         long groupId, java.lang.String articleId, int start, int end)
163         throws com.liferay.portal.SystemException;
164 
165     public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_A(
166         long groupId, java.lang.String articleId, int start, int end,
167         com.liferay.portal.kernel.util.OrderByComparator obc)
168         throws com.liferay.portal.SystemException;
169 
170     public com.liferay.portlet.journal.model.JournalContentSearch findByG_A_First(
171         long groupId, java.lang.String articleId,
172         com.liferay.portal.kernel.util.OrderByComparator obc)
173         throws com.liferay.portal.SystemException,
174             com.liferay.portlet.journal.NoSuchContentSearchException;
175 
176     public com.liferay.portlet.journal.model.JournalContentSearch findByG_A_Last(
177         long groupId, java.lang.String articleId,
178         com.liferay.portal.kernel.util.OrderByComparator obc)
179         throws com.liferay.portal.SystemException,
180             com.liferay.portlet.journal.NoSuchContentSearchException;
181 
182     public com.liferay.portlet.journal.model.JournalContentSearch[] findByG_A_PrevAndNext(
183         long contentSearchId, long groupId, java.lang.String articleId,
184         com.liferay.portal.kernel.util.OrderByComparator obc)
185         throws com.liferay.portal.SystemException,
186             com.liferay.portlet.journal.NoSuchContentSearchException;
187 
188     public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_L(
189         long groupId, boolean privateLayout, long layoutId)
190         throws com.liferay.portal.SystemException;
191 
192     public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_L(
193         long groupId, boolean privateLayout, long layoutId, int start, int end)
194         throws com.liferay.portal.SystemException;
195 
196     public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_L(
197         long groupId, boolean privateLayout, long layoutId, int start, int end,
198         com.liferay.portal.kernel.util.OrderByComparator obc)
199         throws com.liferay.portal.SystemException;
200 
201     public com.liferay.portlet.journal.model.JournalContentSearch findByG_P_L_First(
202         long groupId, boolean privateLayout, long layoutId,
203         com.liferay.portal.kernel.util.OrderByComparator obc)
204         throws com.liferay.portal.SystemException,
205             com.liferay.portlet.journal.NoSuchContentSearchException;
206 
207     public com.liferay.portlet.journal.model.JournalContentSearch findByG_P_L_Last(
208         long groupId, boolean privateLayout, long layoutId,
209         com.liferay.portal.kernel.util.OrderByComparator obc)
210         throws com.liferay.portal.SystemException,
211             com.liferay.portlet.journal.NoSuchContentSearchException;
212 
213     public com.liferay.portlet.journal.model.JournalContentSearch[] findByG_P_L_PrevAndNext(
214         long contentSearchId, long groupId, boolean privateLayout,
215         long layoutId, com.liferay.portal.kernel.util.OrderByComparator obc)
216         throws com.liferay.portal.SystemException,
217             com.liferay.portlet.journal.NoSuchContentSearchException;
218 
219     public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_A(
220         long groupId, boolean privateLayout, java.lang.String articleId)
221         throws com.liferay.portal.SystemException;
222 
223     public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_A(
224         long groupId, boolean privateLayout, java.lang.String articleId,
225         int start, int end) throws com.liferay.portal.SystemException;
226 
227     public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_A(
228         long groupId, boolean privateLayout, java.lang.String articleId,
229         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
230         throws com.liferay.portal.SystemException;
231 
232     public com.liferay.portlet.journal.model.JournalContentSearch findByG_P_A_First(
233         long groupId, boolean privateLayout, java.lang.String articleId,
234         com.liferay.portal.kernel.util.OrderByComparator obc)
235         throws com.liferay.portal.SystemException,
236             com.liferay.portlet.journal.NoSuchContentSearchException;
237 
238     public com.liferay.portlet.journal.model.JournalContentSearch findByG_P_A_Last(
239         long groupId, boolean privateLayout, java.lang.String articleId,
240         com.liferay.portal.kernel.util.OrderByComparator obc)
241         throws com.liferay.portal.SystemException,
242             com.liferay.portlet.journal.NoSuchContentSearchException;
243 
244     public com.liferay.portlet.journal.model.JournalContentSearch[] findByG_P_A_PrevAndNext(
245         long contentSearchId, long groupId, boolean privateLayout,
246         java.lang.String articleId,
247         com.liferay.portal.kernel.util.OrderByComparator obc)
248         throws com.liferay.portal.SystemException,
249             com.liferay.portlet.journal.NoSuchContentSearchException;
250 
251     public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_L_P(
252         long groupId, boolean privateLayout, long layoutId,
253         java.lang.String portletId) throws com.liferay.portal.SystemException;
254 
255     public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_L_P(
256         long groupId, boolean privateLayout, long layoutId,
257         java.lang.String portletId, int start, int end)
258         throws com.liferay.portal.SystemException;
259 
260     public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_L_P(
261         long groupId, boolean privateLayout, long layoutId,
262         java.lang.String portletId, int start, int end,
263         com.liferay.portal.kernel.util.OrderByComparator obc)
264         throws com.liferay.portal.SystemException;
265 
266     public com.liferay.portlet.journal.model.JournalContentSearch findByG_P_L_P_First(
267         long groupId, boolean privateLayout, long layoutId,
268         java.lang.String portletId,
269         com.liferay.portal.kernel.util.OrderByComparator obc)
270         throws com.liferay.portal.SystemException,
271             com.liferay.portlet.journal.NoSuchContentSearchException;
272 
273     public com.liferay.portlet.journal.model.JournalContentSearch findByG_P_L_P_Last(
274         long groupId, boolean privateLayout, long layoutId,
275         java.lang.String portletId,
276         com.liferay.portal.kernel.util.OrderByComparator obc)
277         throws com.liferay.portal.SystemException,
278             com.liferay.portlet.journal.NoSuchContentSearchException;
279 
280     public com.liferay.portlet.journal.model.JournalContentSearch[] findByG_P_L_P_PrevAndNext(
281         long contentSearchId, long groupId, boolean privateLayout,
282         long layoutId, java.lang.String portletId,
283         com.liferay.portal.kernel.util.OrderByComparator obc)
284         throws com.liferay.portal.SystemException,
285             com.liferay.portlet.journal.NoSuchContentSearchException;
286 
287     public com.liferay.portlet.journal.model.JournalContentSearch findByG_P_L_P_A(
288         long groupId, boolean privateLayout, long layoutId,
289         java.lang.String portletId, java.lang.String articleId)
290         throws com.liferay.portal.SystemException,
291             com.liferay.portlet.journal.NoSuchContentSearchException;
292 
293     public com.liferay.portlet.journal.model.JournalContentSearch fetchByG_P_L_P_A(
294         long groupId, boolean privateLayout, long layoutId,
295         java.lang.String portletId, java.lang.String articleId)
296         throws com.liferay.portal.SystemException;
297 
298     public com.liferay.portlet.journal.model.JournalContentSearch fetchByG_P_L_P_A(
299         long groupId, boolean privateLayout, long layoutId,
300         java.lang.String portletId, java.lang.String articleId,
301         boolean retrieveFromCache) throws com.liferay.portal.SystemException;
302 
303     public java.util.List<Object> findWithDynamicQuery(
304         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
305         throws com.liferay.portal.SystemException;
306 
307     public java.util.List<Object> findWithDynamicQuery(
308         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
309         int end) throws com.liferay.portal.SystemException;
310 
311     public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findAll()
312         throws com.liferay.portal.SystemException;
313 
314     public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findAll(
315         int start, int end) throws com.liferay.portal.SystemException;
316 
317     public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findAll(
318         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
319         throws com.liferay.portal.SystemException;
320 
321     public void removeByArticleId(java.lang.String articleId)
322         throws com.liferay.portal.SystemException;
323 
324     public void removeByG_P(long groupId, boolean privateLayout)
325         throws com.liferay.portal.SystemException;
326 
327     public void removeByG_A(long groupId, java.lang.String articleId)
328         throws com.liferay.portal.SystemException;
329 
330     public void removeByG_P_L(long groupId, boolean privateLayout, long layoutId)
331         throws com.liferay.portal.SystemException;
332 
333     public void removeByG_P_A(long groupId, boolean privateLayout,
334         java.lang.String articleId) throws com.liferay.portal.SystemException;
335 
336     public void removeByG_P_L_P(long groupId, boolean privateLayout,
337         long layoutId, java.lang.String portletId)
338         throws com.liferay.portal.SystemException;
339 
340     public void removeByG_P_L_P_A(long groupId, boolean privateLayout,
341         long layoutId, java.lang.String portletId, java.lang.String articleId)
342         throws com.liferay.portal.SystemException,
343             com.liferay.portlet.journal.NoSuchContentSearchException;
344 
345     public void removeAll() throws com.liferay.portal.SystemException;
346 
347     public int countByArticleId(java.lang.String articleId)
348         throws com.liferay.portal.SystemException;
349 
350     public int countByG_P(long groupId, boolean privateLayout)
351         throws com.liferay.portal.SystemException;
352 
353     public int countByG_A(long groupId, java.lang.String articleId)
354         throws com.liferay.portal.SystemException;
355 
356     public int countByG_P_L(long groupId, boolean privateLayout, long layoutId)
357         throws com.liferay.portal.SystemException;
358 
359     public int countByG_P_A(long groupId, boolean privateLayout,
360         java.lang.String articleId) throws com.liferay.portal.SystemException;
361 
362     public int countByG_P_L_P(long groupId, boolean privateLayout,
363         long layoutId, java.lang.String portletId)
364         throws com.liferay.portal.SystemException;
365 
366     public int countByG_P_L_P_A(long groupId, boolean privateLayout,
367         long layoutId, java.lang.String portletId, java.lang.String articleId)
368         throws com.liferay.portal.SystemException;
369 
370     public int countAll() throws com.liferay.portal.SystemException;
371 }