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