1   /**
2    * Copyright (c) 2000-2009 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   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
12   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
13   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
14   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
15   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
16   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
17   * SOFTWARE.
18   */
19  
20  package com.liferay.portlet.journal.service.persistence;
21  
22  import com.liferay.portal.PortalException;
23  import com.liferay.portal.SystemException;
24  import com.liferay.portal.kernel.annotation.Propagation;
25  import com.liferay.portal.kernel.annotation.Transactional;
26  import com.liferay.portal.service.persistence.BasePersistence;
27  
28  /**
29   * <a href="JournalContentSearchPersistence.java.html"><b><i>View Source</i></b></a>
30   *
31   * @author Brian Wing Shun Chan
32   *
33   */
34  @Transactional(rollbackFor =  {
35      PortalException.class, SystemException.class})
36  public interface JournalContentSearchPersistence extends BasePersistence {
37      public com.liferay.portlet.journal.model.JournalContentSearch create(
38          long contentSearchId);
39  
40      public com.liferay.portlet.journal.model.JournalContentSearch remove(
41          long contentSearchId)
42          throws com.liferay.portal.SystemException,
43              com.liferay.portlet.journal.NoSuchContentSearchException;
44  
45      public com.liferay.portlet.journal.model.JournalContentSearch remove(
46          com.liferay.portlet.journal.model.JournalContentSearch journalContentSearch)
47          throws com.liferay.portal.SystemException;
48  
49      /**
50       * @deprecated Use <code>update(JournalContentSearch journalContentSearch, boolean merge)</code>.
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      /**
57       * Add, update, or merge, the entity. This method also calls the model
58       * listeners to trigger the proper events associated with adding, deleting,
59       * or updating an entity.
60       *
61       * @param        journalContentSearch the entity to add, update, or merge
62       * @param        merge boolean value for whether to merge the entity. The
63       *                default value is false. Setting merge to true is more
64       *                expensive and should only be true when journalContentSearch is
65       *                transient. See LEP-5473 for a detailed discussion of this
66       *                method.
67       * @return        true if the portlet can be displayed via Ajax
68       */
69      public com.liferay.portlet.journal.model.JournalContentSearch update(
70          com.liferay.portlet.journal.model.JournalContentSearch journalContentSearch,
71          boolean merge) throws com.liferay.portal.SystemException;
72  
73      public com.liferay.portlet.journal.model.JournalContentSearch updateImpl(
74          com.liferay.portlet.journal.model.JournalContentSearch journalContentSearch,
75          boolean merge) throws com.liferay.portal.SystemException;
76  
77      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
78      public com.liferay.portlet.journal.model.JournalContentSearch findByPrimaryKey(
79          long contentSearchId)
80          throws com.liferay.portal.SystemException,
81              com.liferay.portlet.journal.NoSuchContentSearchException;
82  
83      public com.liferay.portlet.journal.model.JournalContentSearch fetchByPrimaryKey(
84          long contentSearchId) throws com.liferay.portal.SystemException;
85  
86      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
87      public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P(
88          long groupId, boolean privateLayout)
89          throws com.liferay.portal.SystemException;
90  
91      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
92      public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P(
93          long groupId, boolean privateLayout, int start, int end)
94          throws com.liferay.portal.SystemException;
95  
96      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
97      public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P(
98          long groupId, boolean privateLayout, int start, int end,
99          com.liferay.portal.kernel.util.OrderByComparator obc)
100         throws com.liferay.portal.SystemException;
101 
102     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
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     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
110     public com.liferay.portlet.journal.model.JournalContentSearch findByG_P_Last(
111         long groupId, boolean privateLayout,
112         com.liferay.portal.kernel.util.OrderByComparator obc)
113         throws com.liferay.portal.SystemException,
114             com.liferay.portlet.journal.NoSuchContentSearchException;
115 
116     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
117     public com.liferay.portlet.journal.model.JournalContentSearch[] findByG_P_PrevAndNext(
118         long contentSearchId, 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     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
124     public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_A(
125         long groupId, java.lang.String articleId)
126         throws com.liferay.portal.SystemException;
127 
128     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
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         throws com.liferay.portal.SystemException;
132 
133     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
134     public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_A(
135         long groupId, java.lang.String articleId, int start, int end,
136         com.liferay.portal.kernel.util.OrderByComparator obc)
137         throws com.liferay.portal.SystemException;
138 
139     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
140     public com.liferay.portlet.journal.model.JournalContentSearch findByG_A_First(
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     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
147     public com.liferay.portlet.journal.model.JournalContentSearch findByG_A_Last(
148         long groupId, java.lang.String articleId,
149         com.liferay.portal.kernel.util.OrderByComparator obc)
150         throws com.liferay.portal.SystemException,
151             com.liferay.portlet.journal.NoSuchContentSearchException;
152 
153     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
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     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
161     public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_L(
162         long groupId, boolean privateLayout, long layoutId)
163         throws com.liferay.portal.SystemException;
164 
165     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
166     public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_L(
167         long groupId, boolean privateLayout, long layoutId, int start, int end)
168         throws com.liferay.portal.SystemException;
169 
170     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
171     public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_L(
172         long groupId, boolean privateLayout, long layoutId, int start, int end,
173         com.liferay.portal.kernel.util.OrderByComparator obc)
174         throws com.liferay.portal.SystemException;
175 
176     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
177     public com.liferay.portlet.journal.model.JournalContentSearch findByG_P_L_First(
178         long groupId, boolean privateLayout, long layoutId,
179         com.liferay.portal.kernel.util.OrderByComparator obc)
180         throws com.liferay.portal.SystemException,
181             com.liferay.portlet.journal.NoSuchContentSearchException;
182 
183     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
184     public com.liferay.portlet.journal.model.JournalContentSearch findByG_P_L_Last(
185         long groupId, boolean privateLayout, long layoutId,
186         com.liferay.portal.kernel.util.OrderByComparator obc)
187         throws com.liferay.portal.SystemException,
188             com.liferay.portlet.journal.NoSuchContentSearchException;
189 
190     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
191     public com.liferay.portlet.journal.model.JournalContentSearch[] findByG_P_L_PrevAndNext(
192         long contentSearchId, long groupId, boolean privateLayout,
193         long layoutId, com.liferay.portal.kernel.util.OrderByComparator obc)
194         throws com.liferay.portal.SystemException,
195             com.liferay.portlet.journal.NoSuchContentSearchException;
196 
197     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
198     public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_A(
199         long groupId, boolean privateLayout, java.lang.String articleId)
200         throws com.liferay.portal.SystemException;
201 
202     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
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     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
208     public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_A(
209         long groupId, boolean privateLayout, java.lang.String articleId,
210         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
211         throws com.liferay.portal.SystemException;
212 
213     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
214     public com.liferay.portlet.journal.model.JournalContentSearch findByG_P_A_First(
215         long groupId, boolean privateLayout, java.lang.String articleId,
216         com.liferay.portal.kernel.util.OrderByComparator obc)
217         throws com.liferay.portal.SystemException,
218             com.liferay.portlet.journal.NoSuchContentSearchException;
219 
220     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
221     public com.liferay.portlet.journal.model.JournalContentSearch findByG_P_A_Last(
222         long groupId, boolean privateLayout, java.lang.String articleId,
223         com.liferay.portal.kernel.util.OrderByComparator obc)
224         throws com.liferay.portal.SystemException,
225             com.liferay.portlet.journal.NoSuchContentSearchException;
226 
227     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
228     public com.liferay.portlet.journal.model.JournalContentSearch[] findByG_P_A_PrevAndNext(
229         long contentSearchId, long groupId, boolean privateLayout,
230         java.lang.String articleId,
231         com.liferay.portal.kernel.util.OrderByComparator obc)
232         throws com.liferay.portal.SystemException,
233             com.liferay.portlet.journal.NoSuchContentSearchException;
234 
235     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
236     public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_L_P(
237         long groupId, boolean privateLayout, long layoutId,
238         java.lang.String portletId) throws com.liferay.portal.SystemException;
239 
240     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
241     public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_L_P(
242         long groupId, boolean privateLayout, long layoutId,
243         java.lang.String portletId, int start, int end)
244         throws com.liferay.portal.SystemException;
245 
246     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
247     public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_L_P(
248         long groupId, boolean privateLayout, long layoutId,
249         java.lang.String portletId, int start, int end,
250         com.liferay.portal.kernel.util.OrderByComparator obc)
251         throws com.liferay.portal.SystemException;
252 
253     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
254     public com.liferay.portlet.journal.model.JournalContentSearch findByG_P_L_P_First(
255         long groupId, boolean privateLayout, long layoutId,
256         java.lang.String portletId,
257         com.liferay.portal.kernel.util.OrderByComparator obc)
258         throws com.liferay.portal.SystemException,
259             com.liferay.portlet.journal.NoSuchContentSearchException;
260 
261     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
262     public com.liferay.portlet.journal.model.JournalContentSearch findByG_P_L_P_Last(
263         long groupId, boolean privateLayout, long layoutId,
264         java.lang.String portletId,
265         com.liferay.portal.kernel.util.OrderByComparator obc)
266         throws com.liferay.portal.SystemException,
267             com.liferay.portlet.journal.NoSuchContentSearchException;
268 
269     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
270     public com.liferay.portlet.journal.model.JournalContentSearch[] findByG_P_L_P_PrevAndNext(
271         long contentSearchId, long groupId, boolean privateLayout,
272         long layoutId, java.lang.String portletId,
273         com.liferay.portal.kernel.util.OrderByComparator obc)
274         throws com.liferay.portal.SystemException,
275             com.liferay.portlet.journal.NoSuchContentSearchException;
276 
277     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
278     public com.liferay.portlet.journal.model.JournalContentSearch findByG_P_L_P_A(
279         long groupId, boolean privateLayout, long layoutId,
280         java.lang.String portletId, java.lang.String articleId)
281         throws com.liferay.portal.SystemException,
282             com.liferay.portlet.journal.NoSuchContentSearchException;
283 
284     public com.liferay.portlet.journal.model.JournalContentSearch fetchByG_P_L_P_A(
285         long groupId, boolean privateLayout, long layoutId,
286         java.lang.String portletId, java.lang.String articleId)
287         throws com.liferay.portal.SystemException;
288 
289     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
290     public java.util.List<Object> findWithDynamicQuery(
291         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
292         throws com.liferay.portal.SystemException;
293 
294     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
295     public java.util.List<Object> findWithDynamicQuery(
296         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
297         int end) throws com.liferay.portal.SystemException;
298 
299     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
300     public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findAll()
301         throws com.liferay.portal.SystemException;
302 
303     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
304     public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findAll(
305         int start, int end) throws com.liferay.portal.SystemException;
306 
307     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
308     public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findAll(
309         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
310         throws com.liferay.portal.SystemException;
311 
312     public void removeByG_P(long groupId, boolean privateLayout)
313         throws com.liferay.portal.SystemException;
314 
315     public void removeByG_A(long groupId, java.lang.String articleId)
316         throws com.liferay.portal.SystemException;
317 
318     public void removeByG_P_L(long groupId, boolean privateLayout, long layoutId)
319         throws com.liferay.portal.SystemException;
320 
321     public void removeByG_P_A(long groupId, boolean privateLayout,
322         java.lang.String articleId) throws com.liferay.portal.SystemException;
323 
324     public void removeByG_P_L_P(long groupId, boolean privateLayout,
325         long layoutId, java.lang.String portletId)
326         throws com.liferay.portal.SystemException;
327 
328     public void removeByG_P_L_P_A(long groupId, boolean privateLayout,
329         long layoutId, java.lang.String portletId, java.lang.String articleId)
330         throws com.liferay.portal.SystemException,
331             com.liferay.portlet.journal.NoSuchContentSearchException;
332 
333     public void removeAll() throws com.liferay.portal.SystemException;
334 
335     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
336     public int countByG_P(long groupId, boolean privateLayout)
337         throws com.liferay.portal.SystemException;
338 
339     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
340     public int countByG_A(long groupId, java.lang.String articleId)
341         throws com.liferay.portal.SystemException;
342 
343     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
344     public int countByG_P_L(long groupId, boolean privateLayout, long layoutId)
345         throws com.liferay.portal.SystemException;
346 
347     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
348     public int countByG_P_A(long groupId, boolean privateLayout,
349         java.lang.String articleId) throws com.liferay.portal.SystemException;
350 
351     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
352     public int countByG_P_L_P(long groupId, boolean privateLayout,
353         long layoutId, java.lang.String portletId)
354         throws com.liferay.portal.SystemException;
355 
356     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
357     public int countByG_P_L_P_A(long groupId, boolean privateLayout,
358         long layoutId, java.lang.String portletId, java.lang.String articleId)
359         throws com.liferay.portal.SystemException;
360 
361     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
362     public int countAll() throws com.liferay.portal.SystemException;
363 }