1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions 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   * @author Brian Wing Shun Chan
31   *
32   */
33  public interface JournalContentSearchPersistence extends BasePersistence {
34      public void cacheResult(
35          com.liferay.portlet.journal.model.JournalContentSearch journalContentSearch);
36  
37      public void cacheResult(
38          java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> journalContentSearchs);
39  
40      public void clearCache();
41  
42      public com.liferay.portlet.journal.model.JournalContentSearch create(
43          long contentSearchId);
44  
45      public com.liferay.portlet.journal.model.JournalContentSearch remove(
46          long contentSearchId)
47          throws com.liferay.portal.SystemException,
48              com.liferay.portlet.journal.NoSuchContentSearchException;
49  
50      public com.liferay.portlet.journal.model.JournalContentSearch remove(
51          com.liferay.portlet.journal.model.JournalContentSearch journalContentSearch)
52          throws com.liferay.portal.SystemException;
53  
54      /**
55       * @deprecated Use <code>update(JournalContentSearch journalContentSearch, boolean merge)</code>.
56       */
57      public com.liferay.portlet.journal.model.JournalContentSearch update(
58          com.liferay.portlet.journal.model.JournalContentSearch journalContentSearch)
59          throws com.liferay.portal.SystemException;
60  
61      /**
62       * Add, update, or merge, the entity. This method also calls the model
63       * listeners to trigger the proper events associated with adding, deleting,
64       * or updating an entity.
65       *
66       * @param        journalContentSearch the entity to add, update, or merge
67       * @param        merge boolean value for whether to merge the entity. The
68       *                default value is false. Setting merge to true is more
69       *                expensive and should only be true when journalContentSearch is
70       *                transient. See LEP-5473 for a detailed discussion of this
71       *                method.
72       * @return        true if the portlet can be displayed via Ajax
73       */
74      public com.liferay.portlet.journal.model.JournalContentSearch update(
75          com.liferay.portlet.journal.model.JournalContentSearch journalContentSearch,
76          boolean merge) throws com.liferay.portal.SystemException;
77  
78      public com.liferay.portlet.journal.model.JournalContentSearch updateImpl(
79          com.liferay.portlet.journal.model.JournalContentSearch journalContentSearch,
80          boolean merge) throws com.liferay.portal.SystemException;
81  
82      public com.liferay.portlet.journal.model.JournalContentSearch findByPrimaryKey(
83          long contentSearchId)
84          throws com.liferay.portal.SystemException,
85              com.liferay.portlet.journal.NoSuchContentSearchException;
86  
87      public com.liferay.portlet.journal.model.JournalContentSearch fetchByPrimaryKey(
88          long contentSearchId) throws com.liferay.portal.SystemException;
89  
90      public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P(
91          long groupId, boolean privateLayout)
92          throws com.liferay.portal.SystemException;
93  
94      public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P(
95          long groupId, boolean privateLayout, int start, int end)
96          throws com.liferay.portal.SystemException;
97  
98      public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P(
99          long groupId, boolean privateLayout, int start, int end,
100         com.liferay.portal.kernel.util.OrderByComparator obc)
101         throws com.liferay.portal.SystemException;
102 
103     public com.liferay.portlet.journal.model.JournalContentSearch findByG_P_First(
104         long groupId, boolean privateLayout,
105         com.liferay.portal.kernel.util.OrderByComparator obc)
106         throws com.liferay.portal.SystemException,
107             com.liferay.portlet.journal.NoSuchContentSearchException;
108 
109     public com.liferay.portlet.journal.model.JournalContentSearch findByG_P_Last(
110         long groupId, boolean privateLayout,
111         com.liferay.portal.kernel.util.OrderByComparator obc)
112         throws com.liferay.portal.SystemException,
113             com.liferay.portlet.journal.NoSuchContentSearchException;
114 
115     public com.liferay.portlet.journal.model.JournalContentSearch[] findByG_P_PrevAndNext(
116         long contentSearchId, long groupId, boolean privateLayout,
117         com.liferay.portal.kernel.util.OrderByComparator obc)
118         throws com.liferay.portal.SystemException,
119             com.liferay.portlet.journal.NoSuchContentSearchException;
120 
121     public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_A(
122         long groupId, java.lang.String articleId)
123         throws com.liferay.portal.SystemException;
124 
125     public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_A(
126         long groupId, java.lang.String articleId, int start, int end)
127         throws com.liferay.portal.SystemException;
128 
129     public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_A(
130         long groupId, java.lang.String articleId, int start, int end,
131         com.liferay.portal.kernel.util.OrderByComparator obc)
132         throws com.liferay.portal.SystemException;
133 
134     public com.liferay.portlet.journal.model.JournalContentSearch findByG_A_First(
135         long groupId, java.lang.String articleId,
136         com.liferay.portal.kernel.util.OrderByComparator obc)
137         throws com.liferay.portal.SystemException,
138             com.liferay.portlet.journal.NoSuchContentSearchException;
139 
140     public com.liferay.portlet.journal.model.JournalContentSearch findByG_A_Last(
141         long groupId, java.lang.String articleId,
142         com.liferay.portal.kernel.util.OrderByComparator obc)
143         throws com.liferay.portal.SystemException,
144             com.liferay.portlet.journal.NoSuchContentSearchException;
145 
146     public com.liferay.portlet.journal.model.JournalContentSearch[] findByG_A_PrevAndNext(
147         long contentSearchId, long groupId, java.lang.String articleId,
148         com.liferay.portal.kernel.util.OrderByComparator obc)
149         throws com.liferay.portal.SystemException,
150             com.liferay.portlet.journal.NoSuchContentSearchException;
151 
152     public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_L(
153         long groupId, boolean privateLayout, long layoutId)
154         throws com.liferay.portal.SystemException;
155 
156     public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_L(
157         long groupId, boolean privateLayout, long layoutId, int start, int end)
158         throws com.liferay.portal.SystemException;
159 
160     public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_L(
161         long groupId, boolean privateLayout, long layoutId, int start, int end,
162         com.liferay.portal.kernel.util.OrderByComparator obc)
163         throws com.liferay.portal.SystemException;
164 
165     public com.liferay.portlet.journal.model.JournalContentSearch findByG_P_L_First(
166         long groupId, boolean privateLayout, long layoutId,
167         com.liferay.portal.kernel.util.OrderByComparator obc)
168         throws com.liferay.portal.SystemException,
169             com.liferay.portlet.journal.NoSuchContentSearchException;
170 
171     public com.liferay.portlet.journal.model.JournalContentSearch findByG_P_L_Last(
172         long groupId, boolean privateLayout, long layoutId,
173         com.liferay.portal.kernel.util.OrderByComparator obc)
174         throws com.liferay.portal.SystemException,
175             com.liferay.portlet.journal.NoSuchContentSearchException;
176 
177     public com.liferay.portlet.journal.model.JournalContentSearch[] findByG_P_L_PrevAndNext(
178         long contentSearchId, long groupId, boolean privateLayout,
179         long layoutId, com.liferay.portal.kernel.util.OrderByComparator obc)
180         throws com.liferay.portal.SystemException,
181             com.liferay.portlet.journal.NoSuchContentSearchException;
182 
183     public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_A(
184         long groupId, boolean privateLayout, java.lang.String articleId)
185         throws com.liferay.portal.SystemException;
186 
187     public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_A(
188         long groupId, boolean privateLayout, java.lang.String articleId,
189         int start, int end) throws com.liferay.portal.SystemException;
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         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
194         throws com.liferay.portal.SystemException;
195 
196     public com.liferay.portlet.journal.model.JournalContentSearch findByG_P_A_First(
197         long groupId, boolean privateLayout, java.lang.String articleId,
198         com.liferay.portal.kernel.util.OrderByComparator obc)
199         throws com.liferay.portal.SystemException,
200             com.liferay.portlet.journal.NoSuchContentSearchException;
201 
202     public com.liferay.portlet.journal.model.JournalContentSearch findByG_P_A_Last(
203         long groupId, boolean privateLayout, java.lang.String articleId,
204         com.liferay.portal.kernel.util.OrderByComparator obc)
205         throws com.liferay.portal.SystemException,
206             com.liferay.portlet.journal.NoSuchContentSearchException;
207 
208     public com.liferay.portlet.journal.model.JournalContentSearch[] findByG_P_A_PrevAndNext(
209         long contentSearchId, long groupId, boolean privateLayout,
210         java.lang.String articleId,
211         com.liferay.portal.kernel.util.OrderByComparator obc)
212         throws com.liferay.portal.SystemException,
213             com.liferay.portlet.journal.NoSuchContentSearchException;
214 
215     public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_L_P(
216         long groupId, boolean privateLayout, long layoutId,
217         java.lang.String portletId) throws com.liferay.portal.SystemException;
218 
219     public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_L_P(
220         long groupId, boolean privateLayout, long layoutId,
221         java.lang.String portletId, int start, int end)
222         throws com.liferay.portal.SystemException;
223 
224     public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_L_P(
225         long groupId, boolean privateLayout, long layoutId,
226         java.lang.String portletId, int start, int end,
227         com.liferay.portal.kernel.util.OrderByComparator obc)
228         throws com.liferay.portal.SystemException;
229 
230     public com.liferay.portlet.journal.model.JournalContentSearch findByG_P_L_P_First(
231         long groupId, boolean privateLayout, long layoutId,
232         java.lang.String portletId,
233         com.liferay.portal.kernel.util.OrderByComparator obc)
234         throws com.liferay.portal.SystemException,
235             com.liferay.portlet.journal.NoSuchContentSearchException;
236 
237     public com.liferay.portlet.journal.model.JournalContentSearch findByG_P_L_P_Last(
238         long groupId, boolean privateLayout, long layoutId,
239         java.lang.String portletId,
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_L_P_PrevAndNext(
245         long contentSearchId, long groupId, boolean privateLayout,
246         long layoutId, java.lang.String portletId,
247         com.liferay.portal.kernel.util.OrderByComparator obc)
248         throws com.liferay.portal.SystemException,
249             com.liferay.portlet.journal.NoSuchContentSearchException;
250 
251     public com.liferay.portlet.journal.model.JournalContentSearch findByG_P_L_P_A(
252         long groupId, boolean privateLayout, long layoutId,
253         java.lang.String portletId, java.lang.String articleId)
254         throws com.liferay.portal.SystemException,
255             com.liferay.portlet.journal.NoSuchContentSearchException;
256 
257     public com.liferay.portlet.journal.model.JournalContentSearch fetchByG_P_L_P_A(
258         long groupId, boolean privateLayout, long layoutId,
259         java.lang.String portletId, java.lang.String articleId)
260         throws com.liferay.portal.SystemException;
261 
262     public com.liferay.portlet.journal.model.JournalContentSearch fetchByG_P_L_P_A(
263         long groupId, boolean privateLayout, long layoutId,
264         java.lang.String portletId, java.lang.String articleId,
265         boolean retrieveFromCache) throws com.liferay.portal.SystemException;
266 
267     public java.util.List<Object> findWithDynamicQuery(
268         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
269         throws com.liferay.portal.SystemException;
270 
271     public java.util.List<Object> findWithDynamicQuery(
272         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
273         int end) 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 removeByG_P(long groupId, boolean privateLayout)
286         throws com.liferay.portal.SystemException;
287 
288     public void removeByG_A(long groupId, java.lang.String articleId)
289         throws com.liferay.portal.SystemException;
290 
291     public void removeByG_P_L(long groupId, boolean privateLayout, long layoutId)
292         throws com.liferay.portal.SystemException;
293 
294     public void removeByG_P_A(long groupId, boolean privateLayout,
295         java.lang.String articleId) throws com.liferay.portal.SystemException;
296 
297     public void removeByG_P_L_P(long groupId, boolean privateLayout,
298         long layoutId, java.lang.String portletId)
299         throws com.liferay.portal.SystemException;
300 
301     public void removeByG_P_L_P_A(long groupId, boolean privateLayout,
302         long layoutId, java.lang.String portletId, java.lang.String articleId)
303         throws com.liferay.portal.SystemException,
304             com.liferay.portlet.journal.NoSuchContentSearchException;
305 
306     public void removeAll() throws com.liferay.portal.SystemException;
307 
308     public int countByG_P(long groupId, boolean privateLayout)
309         throws com.liferay.portal.SystemException;
310 
311     public int countByG_A(long groupId, java.lang.String articleId)
312         throws com.liferay.portal.SystemException;
313 
314     public int countByG_P_L(long groupId, boolean privateLayout, long layoutId)
315         throws com.liferay.portal.SystemException;
316 
317     public int countByG_P_A(long groupId, boolean privateLayout,
318         java.lang.String articleId) throws com.liferay.portal.SystemException;
319 
320     public int countByG_P_L_P(long groupId, boolean privateLayout,
321         long layoutId, java.lang.String portletId)
322         throws com.liferay.portal.SystemException;
323 
324     public int countByG_P_L_P_A(long groupId, boolean privateLayout,
325         long layoutId, java.lang.String portletId, java.lang.String articleId)
326         throws com.liferay.portal.SystemException;
327 
328     public int countAll() throws com.liferay.portal.SystemException;
329 }