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