1   /**
2    * Copyright (c) 2000-2008 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  /**
26   * <a href="JournalContentSearchPersistence.java.html"><b><i>View Source</i></b></a>
27   *
28   * @author Brian Wing Shun Chan
29   *
30   */
31  public interface JournalContentSearchPersistence {
32      public com.liferay.portlet.journal.model.JournalContentSearch create(
33          long contentSearchId);
34  
35      public com.liferay.portlet.journal.model.JournalContentSearch remove(
36          long contentSearchId)
37          throws com.liferay.portal.SystemException,
38              com.liferay.portlet.journal.NoSuchContentSearchException;
39  
40      public com.liferay.portlet.journal.model.JournalContentSearch remove(
41          com.liferay.portlet.journal.model.JournalContentSearch journalContentSearch)
42          throws com.liferay.portal.SystemException;
43  
44      /**
45       * @deprecated Use <code>update(JournalContentSearch journalContentSearch, boolean merge)</code>.
46       */
47      public com.liferay.portlet.journal.model.JournalContentSearch update(
48          com.liferay.portlet.journal.model.JournalContentSearch journalContentSearch)
49          throws com.liferay.portal.SystemException;
50  
51      /**
52       * Add, update, or merge, the entity. This method also calls the model
53       * listeners to trigger the proper events associated with adding, deleting,
54       * or updating an entity.
55       *
56       * @param        journalContentSearch the entity to add, update, or merge
57       * @param        merge boolean value for whether to merge the entity. The
58       *                default value is false. Setting merge to true is more
59       *                expensive and should only be true when journalContentSearch is
60       *                transient. See LEP-5473 for a detailed discussion of this
61       *                method.
62       * @return        true if the portlet can be displayed via Ajax
63       */
64      public com.liferay.portlet.journal.model.JournalContentSearch update(
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 updateImpl(
69          com.liferay.portlet.journal.model.JournalContentSearch journalContentSearch,
70          boolean merge) throws com.liferay.portal.SystemException;
71  
72      public com.liferay.portlet.journal.model.JournalContentSearch findByPrimaryKey(
73          long contentSearchId)
74          throws com.liferay.portal.SystemException,
75              com.liferay.portlet.journal.NoSuchContentSearchException;
76  
77      public com.liferay.portlet.journal.model.JournalContentSearch fetchByPrimaryKey(
78          long contentSearchId) throws com.liferay.portal.SystemException;
79  
80      public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P(
81          long groupId, boolean privateLayout)
82          throws com.liferay.portal.SystemException;
83  
84      public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P(
85          long groupId, boolean privateLayout, int start, int end)
86          throws com.liferay.portal.SystemException;
87  
88      public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P(
89          long groupId, boolean privateLayout, int start, int end,
90          com.liferay.portal.kernel.util.OrderByComparator obc)
91          throws com.liferay.portal.SystemException;
92  
93      public com.liferay.portlet.journal.model.JournalContentSearch findByG_P_First(
94          long groupId, boolean privateLayout,
95          com.liferay.portal.kernel.util.OrderByComparator obc)
96          throws com.liferay.portal.SystemException,
97              com.liferay.portlet.journal.NoSuchContentSearchException;
98  
99      public com.liferay.portlet.journal.model.JournalContentSearch findByG_P_Last(
100         long groupId, boolean privateLayout,
101         com.liferay.portal.kernel.util.OrderByComparator obc)
102         throws com.liferay.portal.SystemException,
103             com.liferay.portlet.journal.NoSuchContentSearchException;
104 
105     public com.liferay.portlet.journal.model.JournalContentSearch[] findByG_P_PrevAndNext(
106         long contentSearchId, long groupId, boolean privateLayout,
107         com.liferay.portal.kernel.util.OrderByComparator obc)
108         throws com.liferay.portal.SystemException,
109             com.liferay.portlet.journal.NoSuchContentSearchException;
110 
111     public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_A(
112         long groupId, java.lang.String articleId)
113         throws com.liferay.portal.SystemException;
114 
115     public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_A(
116         long groupId, java.lang.String articleId, int start, int end)
117         throws com.liferay.portal.SystemException;
118 
119     public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_A(
120         long groupId, java.lang.String articleId, int start, int end,
121         com.liferay.portal.kernel.util.OrderByComparator obc)
122         throws com.liferay.portal.SystemException;
123 
124     public com.liferay.portlet.journal.model.JournalContentSearch findByG_A_First(
125         long groupId, java.lang.String articleId,
126         com.liferay.portal.kernel.util.OrderByComparator obc)
127         throws com.liferay.portal.SystemException,
128             com.liferay.portlet.journal.NoSuchContentSearchException;
129 
130     public com.liferay.portlet.journal.model.JournalContentSearch findByG_A_Last(
131         long groupId, java.lang.String articleId,
132         com.liferay.portal.kernel.util.OrderByComparator obc)
133         throws com.liferay.portal.SystemException,
134             com.liferay.portlet.journal.NoSuchContentSearchException;
135 
136     public com.liferay.portlet.journal.model.JournalContentSearch[] findByG_A_PrevAndNext(
137         long contentSearchId, long groupId, java.lang.String articleId,
138         com.liferay.portal.kernel.util.OrderByComparator obc)
139         throws com.liferay.portal.SystemException,
140             com.liferay.portlet.journal.NoSuchContentSearchException;
141 
142     public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_L(
143         long groupId, boolean privateLayout, long layoutId)
144         throws com.liferay.portal.SystemException;
145 
146     public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_L(
147         long groupId, boolean privateLayout, long layoutId, int start, int end)
148         throws com.liferay.portal.SystemException;
149 
150     public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_L(
151         long groupId, boolean privateLayout, long layoutId, int start, int end,
152         com.liferay.portal.kernel.util.OrderByComparator obc)
153         throws com.liferay.portal.SystemException;
154 
155     public com.liferay.portlet.journal.model.JournalContentSearch findByG_P_L_First(
156         long groupId, boolean privateLayout, long layoutId,
157         com.liferay.portal.kernel.util.OrderByComparator obc)
158         throws com.liferay.portal.SystemException,
159             com.liferay.portlet.journal.NoSuchContentSearchException;
160 
161     public com.liferay.portlet.journal.model.JournalContentSearch findByG_P_L_Last(
162         long groupId, boolean privateLayout, long layoutId,
163         com.liferay.portal.kernel.util.OrderByComparator obc)
164         throws com.liferay.portal.SystemException,
165             com.liferay.portlet.journal.NoSuchContentSearchException;
166 
167     public com.liferay.portlet.journal.model.JournalContentSearch[] findByG_P_L_PrevAndNext(
168         long contentSearchId, long groupId, boolean privateLayout,
169         long layoutId, com.liferay.portal.kernel.util.OrderByComparator obc)
170         throws com.liferay.portal.SystemException,
171             com.liferay.portlet.journal.NoSuchContentSearchException;
172 
173     public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_A(
174         long groupId, boolean privateLayout, java.lang.String articleId)
175         throws com.liferay.portal.SystemException;
176 
177     public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_A(
178         long groupId, boolean privateLayout, java.lang.String articleId,
179         int start, int end) throws com.liferay.portal.SystemException;
180 
181     public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_A(
182         long groupId, boolean privateLayout, java.lang.String articleId,
183         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
184         throws com.liferay.portal.SystemException;
185 
186     public com.liferay.portlet.journal.model.JournalContentSearch findByG_P_A_First(
187         long groupId, boolean privateLayout, java.lang.String articleId,
188         com.liferay.portal.kernel.util.OrderByComparator obc)
189         throws com.liferay.portal.SystemException,
190             com.liferay.portlet.journal.NoSuchContentSearchException;
191 
192     public com.liferay.portlet.journal.model.JournalContentSearch findByG_P_A_Last(
193         long groupId, boolean privateLayout, java.lang.String articleId,
194         com.liferay.portal.kernel.util.OrderByComparator obc)
195         throws com.liferay.portal.SystemException,
196             com.liferay.portlet.journal.NoSuchContentSearchException;
197 
198     public com.liferay.portlet.journal.model.JournalContentSearch[] findByG_P_A_PrevAndNext(
199         long contentSearchId, long groupId, boolean privateLayout,
200         java.lang.String articleId,
201         com.liferay.portal.kernel.util.OrderByComparator obc)
202         throws com.liferay.portal.SystemException,
203             com.liferay.portlet.journal.NoSuchContentSearchException;
204 
205     public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_L_P(
206         long groupId, boolean privateLayout, long layoutId,
207         java.lang.String portletId) throws com.liferay.portal.SystemException;
208 
209     public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_L_P(
210         long groupId, boolean privateLayout, long layoutId,
211         java.lang.String portletId, int start, int end)
212         throws com.liferay.portal.SystemException;
213 
214     public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_L_P(
215         long groupId, boolean privateLayout, long layoutId,
216         java.lang.String portletId, int start, int end,
217         com.liferay.portal.kernel.util.OrderByComparator obc)
218         throws com.liferay.portal.SystemException;
219 
220     public com.liferay.portlet.journal.model.JournalContentSearch findByG_P_L_P_First(
221         long groupId, boolean privateLayout, long layoutId,
222         java.lang.String portletId,
223         com.liferay.portal.kernel.util.OrderByComparator obc)
224         throws com.liferay.portal.SystemException,
225             com.liferay.portlet.journal.NoSuchContentSearchException;
226 
227     public com.liferay.portlet.journal.model.JournalContentSearch findByG_P_L_P_Last(
228         long groupId, boolean privateLayout, long layoutId,
229         java.lang.String portletId,
230         com.liferay.portal.kernel.util.OrderByComparator obc)
231         throws com.liferay.portal.SystemException,
232             com.liferay.portlet.journal.NoSuchContentSearchException;
233 
234     public com.liferay.portlet.journal.model.JournalContentSearch[] findByG_P_L_P_PrevAndNext(
235         long contentSearchId, long groupId, boolean privateLayout,
236         long layoutId, java.lang.String portletId,
237         com.liferay.portal.kernel.util.OrderByComparator obc)
238         throws com.liferay.portal.SystemException,
239             com.liferay.portlet.journal.NoSuchContentSearchException;
240 
241     public com.liferay.portlet.journal.model.JournalContentSearch findByG_P_L_P_A(
242         long groupId, boolean privateLayout, long layoutId,
243         java.lang.String portletId, java.lang.String articleId)
244         throws com.liferay.portal.SystemException,
245             com.liferay.portlet.journal.NoSuchContentSearchException;
246 
247     public com.liferay.portlet.journal.model.JournalContentSearch fetchByG_P_L_P_A(
248         long groupId, boolean privateLayout, long layoutId,
249         java.lang.String portletId, java.lang.String articleId)
250         throws com.liferay.portal.SystemException;
251 
252     public java.util.List<Object> findWithDynamicQuery(
253         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
254         throws com.liferay.portal.SystemException;
255 
256     public java.util.List<Object> findWithDynamicQuery(
257         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
258         int end) throws com.liferay.portal.SystemException;
259 
260     public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findAll()
261         throws com.liferay.portal.SystemException;
262 
263     public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findAll(
264         int start, int end) throws com.liferay.portal.SystemException;
265 
266     public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findAll(
267         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
268         throws com.liferay.portal.SystemException;
269 
270     public void removeByG_P(long groupId, boolean privateLayout)
271         throws com.liferay.portal.SystemException;
272 
273     public void removeByG_A(long groupId, java.lang.String articleId)
274         throws com.liferay.portal.SystemException;
275 
276     public void removeByG_P_L(long groupId, boolean privateLayout, long layoutId)
277         throws com.liferay.portal.SystemException;
278 
279     public void removeByG_P_A(long groupId, boolean privateLayout,
280         java.lang.String articleId) throws com.liferay.portal.SystemException;
281 
282     public void removeByG_P_L_P(long groupId, boolean privateLayout,
283         long layoutId, java.lang.String portletId)
284         throws com.liferay.portal.SystemException;
285 
286     public void removeByG_P_L_P_A(long groupId, boolean privateLayout,
287         long layoutId, java.lang.String portletId, java.lang.String articleId)
288         throws com.liferay.portal.SystemException,
289             com.liferay.portlet.journal.NoSuchContentSearchException;
290 
291     public void removeAll() throws com.liferay.portal.SystemException;
292 
293     public int countByG_P(long groupId, boolean privateLayout)
294         throws com.liferay.portal.SystemException;
295 
296     public int countByG_A(long groupId, java.lang.String articleId)
297         throws com.liferay.portal.SystemException;
298 
299     public int countByG_P_L(long groupId, boolean privateLayout, long layoutId)
300         throws com.liferay.portal.SystemException;
301 
302     public int countByG_P_A(long groupId, boolean privateLayout,
303         java.lang.String articleId) throws com.liferay.portal.SystemException;
304 
305     public int countByG_P_L_P(long groupId, boolean privateLayout,
306         long layoutId, java.lang.String portletId)
307         throws com.liferay.portal.SystemException;
308 
309     public int countByG_P_L_P_A(long groupId, boolean privateLayout,
310         long layoutId, java.lang.String portletId, java.lang.String articleId)
311         throws com.liferay.portal.SystemException;
312 
313     public int countAll() throws com.liferay.portal.SystemException;
314 
315     public void registerListener(
316         com.liferay.portal.model.ModelListener listener);
317 
318     public void unregisterListener(
319         com.liferay.portal.model.ModelListener listener);
320 }