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.PortalException;
26  import com.liferay.portal.SystemException;
27  import com.liferay.portal.kernel.annotation.Propagation;
28  import com.liferay.portal.kernel.annotation.Transactional;
29  import com.liferay.portal.service.persistence.BasePersistence;
30  
31  /**
32   * <a href="JournalContentSearchPersistence.java.html"><b><i>View Source</i></b></a>
33   *
34   * @author Brian Wing Shun Chan
35   *
36   */
37  @Transactional(rollbackFor =  {
38      PortalException.class, SystemException.class})
39  public interface JournalContentSearchPersistence extends BasePersistence {
40      public com.liferay.portlet.journal.model.JournalContentSearch create(
41          long contentSearchId);
42  
43      public com.liferay.portlet.journal.model.JournalContentSearch remove(
44          long contentSearchId)
45          throws com.liferay.portal.SystemException,
46              com.liferay.portlet.journal.NoSuchContentSearchException;
47  
48      public com.liferay.portlet.journal.model.JournalContentSearch remove(
49          com.liferay.portlet.journal.model.JournalContentSearch journalContentSearch)
50          throws com.liferay.portal.SystemException;
51  
52      /**
53       * @deprecated Use <code>update(JournalContentSearch journalContentSearch, boolean merge)</code>.
54       */
55      public com.liferay.portlet.journal.model.JournalContentSearch update(
56          com.liferay.portlet.journal.model.JournalContentSearch journalContentSearch)
57          throws com.liferay.portal.SystemException;
58  
59      /**
60       * Add, update, or merge, the entity. This method also calls the model
61       * listeners to trigger the proper events associated with adding, deleting,
62       * or updating an entity.
63       *
64       * @param        journalContentSearch the entity to add, update, or merge
65       * @param        merge boolean value for whether to merge the entity. The
66       *                default value is false. Setting merge to true is more
67       *                expensive and should only be true when journalContentSearch is
68       *                transient. See LEP-5473 for a detailed discussion of this
69       *                method.
70       * @return        true if the portlet can be displayed via Ajax
71       */
72      public com.liferay.portlet.journal.model.JournalContentSearch update(
73          com.liferay.portlet.journal.model.JournalContentSearch journalContentSearch,
74          boolean merge) throws com.liferay.portal.SystemException;
75  
76      public com.liferay.portlet.journal.model.JournalContentSearch updateImpl(
77          com.liferay.portlet.journal.model.JournalContentSearch journalContentSearch,
78          boolean merge) throws com.liferay.portal.SystemException;
79  
80      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
81      public com.liferay.portlet.journal.model.JournalContentSearch findByPrimaryKey(
82          long contentSearchId)
83          throws com.liferay.portal.SystemException,
84              com.liferay.portlet.journal.NoSuchContentSearchException;
85  
86      public com.liferay.portlet.journal.model.JournalContentSearch fetchByPrimaryKey(
87          long contentSearchId) throws com.liferay.portal.SystemException;
88  
89      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
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      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
95      public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P(
96          long groupId, boolean privateLayout, int start, int end)
97          throws com.liferay.portal.SystemException;
98  
99      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
100     public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P(
101         long groupId, boolean privateLayout, int start, int end,
102         com.liferay.portal.kernel.util.OrderByComparator obc)
103         throws com.liferay.portal.SystemException;
104 
105     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
106     public com.liferay.portlet.journal.model.JournalContentSearch findByG_P_First(
107         long groupId, boolean privateLayout,
108         com.liferay.portal.kernel.util.OrderByComparator obc)
109         throws com.liferay.portal.SystemException,
110             com.liferay.portlet.journal.NoSuchContentSearchException;
111 
112     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
113     public com.liferay.portlet.journal.model.JournalContentSearch findByG_P_Last(
114         long groupId, boolean privateLayout,
115         com.liferay.portal.kernel.util.OrderByComparator obc)
116         throws com.liferay.portal.SystemException,
117             com.liferay.portlet.journal.NoSuchContentSearchException;
118 
119     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
120     public com.liferay.portlet.journal.model.JournalContentSearch[] findByG_P_PrevAndNext(
121         long contentSearchId, long groupId, boolean privateLayout,
122         com.liferay.portal.kernel.util.OrderByComparator obc)
123         throws com.liferay.portal.SystemException,
124             com.liferay.portlet.journal.NoSuchContentSearchException;
125 
126     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
127     public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_A(
128         long groupId, java.lang.String articleId)
129         throws com.liferay.portal.SystemException;
130 
131     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
132     public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_A(
133         long groupId, java.lang.String articleId, int start, int end)
134         throws com.liferay.portal.SystemException;
135 
136     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
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     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
143     public com.liferay.portlet.journal.model.JournalContentSearch findByG_A_First(
144         long groupId, java.lang.String articleId,
145         com.liferay.portal.kernel.util.OrderByComparator obc)
146         throws com.liferay.portal.SystemException,
147             com.liferay.portlet.journal.NoSuchContentSearchException;
148 
149     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
150     public com.liferay.portlet.journal.model.JournalContentSearch findByG_A_Last(
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     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
157     public com.liferay.portlet.journal.model.JournalContentSearch[] findByG_A_PrevAndNext(
158         long contentSearchId, long groupId, java.lang.String articleId,
159         com.liferay.portal.kernel.util.OrderByComparator obc)
160         throws com.liferay.portal.SystemException,
161             com.liferay.portlet.journal.NoSuchContentSearchException;
162 
163     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
164     public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_L(
165         long groupId, boolean privateLayout, long layoutId)
166         throws com.liferay.portal.SystemException;
167 
168     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
169     public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_L(
170         long groupId, boolean privateLayout, long layoutId, int start, int end)
171         throws com.liferay.portal.SystemException;
172 
173     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
174     public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_L(
175         long groupId, boolean privateLayout, long layoutId, int start, int end,
176         com.liferay.portal.kernel.util.OrderByComparator obc)
177         throws com.liferay.portal.SystemException;
178 
179     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
180     public com.liferay.portlet.journal.model.JournalContentSearch findByG_P_L_First(
181         long groupId, boolean privateLayout, long layoutId,
182         com.liferay.portal.kernel.util.OrderByComparator obc)
183         throws com.liferay.portal.SystemException,
184             com.liferay.portlet.journal.NoSuchContentSearchException;
185 
186     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
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     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
194     public com.liferay.portlet.journal.model.JournalContentSearch[] findByG_P_L_PrevAndNext(
195         long contentSearchId, long groupId, boolean privateLayout,
196         long layoutId, com.liferay.portal.kernel.util.OrderByComparator obc)
197         throws com.liferay.portal.SystemException,
198             com.liferay.portlet.journal.NoSuchContentSearchException;
199 
200     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
201     public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_A(
202         long groupId, boolean privateLayout, java.lang.String articleId)
203         throws com.liferay.portal.SystemException;
204 
205     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
206     public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_A(
207         long groupId, boolean privateLayout, java.lang.String articleId,
208         int start, int end) throws com.liferay.portal.SystemException;
209 
210     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
211     public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_A(
212         long groupId, boolean privateLayout, java.lang.String articleId,
213         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
214         throws com.liferay.portal.SystemException;
215 
216     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
217     public com.liferay.portlet.journal.model.JournalContentSearch findByG_P_A_First(
218         long groupId, boolean privateLayout, 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     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
224     public com.liferay.portlet.journal.model.JournalContentSearch findByG_P_A_Last(
225         long groupId, boolean privateLayout, java.lang.String articleId,
226         com.liferay.portal.kernel.util.OrderByComparator obc)
227         throws com.liferay.portal.SystemException,
228             com.liferay.portlet.journal.NoSuchContentSearchException;
229 
230     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
231     public com.liferay.portlet.journal.model.JournalContentSearch[] findByG_P_A_PrevAndNext(
232         long contentSearchId, long groupId, boolean privateLayout,
233         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     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
239     public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_L_P(
240         long groupId, boolean privateLayout, long layoutId,
241         java.lang.String portletId) throws com.liferay.portal.SystemException;
242 
243     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
244     public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_L_P(
245         long groupId, boolean privateLayout, long layoutId,
246         java.lang.String portletId, int start, int end)
247         throws com.liferay.portal.SystemException;
248 
249     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
250     public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_L_P(
251         long groupId, boolean privateLayout, long layoutId,
252         java.lang.String portletId, int start, int end,
253         com.liferay.portal.kernel.util.OrderByComparator obc)
254         throws com.liferay.portal.SystemException;
255 
256     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
257     public com.liferay.portlet.journal.model.JournalContentSearch findByG_P_L_P_First(
258         long groupId, boolean privateLayout, long layoutId,
259         java.lang.String portletId,
260         com.liferay.portal.kernel.util.OrderByComparator obc)
261         throws com.liferay.portal.SystemException,
262             com.liferay.portlet.journal.NoSuchContentSearchException;
263 
264     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
265     public com.liferay.portlet.journal.model.JournalContentSearch findByG_P_L_P_Last(
266         long groupId, boolean privateLayout, long layoutId,
267         java.lang.String portletId,
268         com.liferay.portal.kernel.util.OrderByComparator obc)
269         throws com.liferay.portal.SystemException,
270             com.liferay.portlet.journal.NoSuchContentSearchException;
271 
272     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
273     public com.liferay.portlet.journal.model.JournalContentSearch[] findByG_P_L_P_PrevAndNext(
274         long contentSearchId, long groupId, boolean privateLayout,
275         long layoutId, 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     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
281     public com.liferay.portlet.journal.model.JournalContentSearch findByG_P_L_P_A(
282         long groupId, boolean privateLayout, long layoutId,
283         java.lang.String portletId, java.lang.String articleId)
284         throws com.liferay.portal.SystemException,
285             com.liferay.portlet.journal.NoSuchContentSearchException;
286 
287     public com.liferay.portlet.journal.model.JournalContentSearch fetchByG_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 
292     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
293     public java.util.List<Object> findWithDynamicQuery(
294         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
295         throws com.liferay.portal.SystemException;
296 
297     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
298     public java.util.List<Object> findWithDynamicQuery(
299         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
300         int end) throws com.liferay.portal.SystemException;
301 
302     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
303     public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findAll()
304         throws com.liferay.portal.SystemException;
305 
306     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
307     public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findAll(
308         int start, int end) throws com.liferay.portal.SystemException;
309 
310     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
311     public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findAll(
312         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
313         throws com.liferay.portal.SystemException;
314 
315     public void removeByG_P(long groupId, boolean privateLayout)
316         throws com.liferay.portal.SystemException;
317 
318     public void removeByG_A(long groupId, java.lang.String articleId)
319         throws com.liferay.portal.SystemException;
320 
321     public void removeByG_P_L(long groupId, boolean privateLayout, long layoutId)
322         throws com.liferay.portal.SystemException;
323 
324     public void removeByG_P_A(long groupId, boolean privateLayout,
325         java.lang.String articleId) throws com.liferay.portal.SystemException;
326 
327     public void removeByG_P_L_P(long groupId, boolean privateLayout,
328         long layoutId, java.lang.String portletId)
329         throws com.liferay.portal.SystemException;
330 
331     public void removeByG_P_L_P_A(long groupId, boolean privateLayout,
332         long layoutId, java.lang.String portletId, java.lang.String articleId)
333         throws com.liferay.portal.SystemException,
334             com.liferay.portlet.journal.NoSuchContentSearchException;
335 
336     public void removeAll() throws com.liferay.portal.SystemException;
337 
338     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
339     public int countByG_P(long groupId, boolean privateLayout)
340         throws com.liferay.portal.SystemException;
341 
342     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
343     public int countByG_A(long groupId, java.lang.String articleId)
344         throws com.liferay.portal.SystemException;
345 
346     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
347     public int countByG_P_L(long groupId, boolean privateLayout, long layoutId)
348         throws com.liferay.portal.SystemException;
349 
350     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
351     public int countByG_P_A(long groupId, boolean privateLayout,
352         java.lang.String articleId) throws com.liferay.portal.SystemException;
353 
354     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
355     public int countByG_P_L_P(long groupId, boolean privateLayout,
356         long layoutId, java.lang.String portletId)
357         throws com.liferay.portal.SystemException;
358 
359     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
360     public int countByG_P_L_P_A(long groupId, boolean privateLayout,
361         long layoutId, java.lang.String portletId, java.lang.String articleId)
362         throws com.liferay.portal.SystemException;
363 
364     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
365     public int countAll() throws com.liferay.portal.SystemException;
366 }