1   /**
2    * Copyright (c) 2000-2007 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      public com.liferay.portlet.journal.model.JournalContentSearch update(
45          com.liferay.portlet.journal.model.JournalContentSearch journalContentSearch)
46          throws com.liferay.portal.SystemException;
47  
48      public com.liferay.portlet.journal.model.JournalContentSearch update(
49          com.liferay.portlet.journal.model.JournalContentSearch journalContentSearch,
50          boolean merge) throws com.liferay.portal.SystemException;
51  
52      public com.liferay.portlet.journal.model.JournalContentSearch findByPrimaryKey(
53          long contentSearchId)
54          throws com.liferay.portal.SystemException, 
55              com.liferay.portlet.journal.NoSuchContentSearchException;
56  
57      public com.liferay.portlet.journal.model.JournalContentSearch fetchByPrimaryKey(
58          long contentSearchId) throws com.liferay.portal.SystemException;
59  
60      public java.util.List findByG_P(long groupId, boolean privateLayout)
61          throws com.liferay.portal.SystemException;
62  
63      public java.util.List findByG_P(long groupId, boolean privateLayout,
64          int begin, int end) throws com.liferay.portal.SystemException;
65  
66      public java.util.List findByG_P(long groupId, boolean privateLayout,
67          int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
68          throws com.liferay.portal.SystemException;
69  
70      public com.liferay.portlet.journal.model.JournalContentSearch findByG_P_First(
71          long groupId, boolean privateLayout,
72          com.liferay.portal.kernel.util.OrderByComparator obc)
73          throws com.liferay.portal.SystemException, 
74              com.liferay.portlet.journal.NoSuchContentSearchException;
75  
76      public com.liferay.portlet.journal.model.JournalContentSearch findByG_P_Last(
77          long groupId, boolean privateLayout,
78          com.liferay.portal.kernel.util.OrderByComparator obc)
79          throws com.liferay.portal.SystemException, 
80              com.liferay.portlet.journal.NoSuchContentSearchException;
81  
82      public com.liferay.portlet.journal.model.JournalContentSearch[] findByG_P_PrevAndNext(
83          long contentSearchId, long groupId, boolean privateLayout,
84          com.liferay.portal.kernel.util.OrderByComparator obc)
85          throws com.liferay.portal.SystemException, 
86              com.liferay.portlet.journal.NoSuchContentSearchException;
87  
88      public java.util.List findByG_A(long groupId, java.lang.String articleId)
89          throws com.liferay.portal.SystemException;
90  
91      public java.util.List findByG_A(long groupId, java.lang.String articleId,
92          int begin, int end) throws com.liferay.portal.SystemException;
93  
94      public java.util.List findByG_A(long groupId, java.lang.String articleId,
95          int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
96          throws com.liferay.portal.SystemException;
97  
98      public com.liferay.portlet.journal.model.JournalContentSearch findByG_A_First(
99          long groupId, java.lang.String articleId,
100         com.liferay.portal.kernel.util.OrderByComparator obc)
101         throws com.liferay.portal.SystemException, 
102             com.liferay.portlet.journal.NoSuchContentSearchException;
103 
104     public com.liferay.portlet.journal.model.JournalContentSearch findByG_A_Last(
105         long groupId, java.lang.String articleId,
106         com.liferay.portal.kernel.util.OrderByComparator obc)
107         throws com.liferay.portal.SystemException, 
108             com.liferay.portlet.journal.NoSuchContentSearchException;
109 
110     public com.liferay.portlet.journal.model.JournalContentSearch[] findByG_A_PrevAndNext(
111         long contentSearchId, long groupId, java.lang.String articleId,
112         com.liferay.portal.kernel.util.OrderByComparator obc)
113         throws com.liferay.portal.SystemException, 
114             com.liferay.portlet.journal.NoSuchContentSearchException;
115 
116     public java.util.List findByG_P_L(long groupId, boolean privateLayout,
117         long layoutId) throws com.liferay.portal.SystemException;
118 
119     public java.util.List findByG_P_L(long groupId, boolean privateLayout,
120         long layoutId, int begin, int end)
121         throws com.liferay.portal.SystemException;
122 
123     public java.util.List findByG_P_L(long groupId, boolean privateLayout,
124         long layoutId, int begin, int end,
125         com.liferay.portal.kernel.util.OrderByComparator obc)
126         throws com.liferay.portal.SystemException;
127 
128     public com.liferay.portlet.journal.model.JournalContentSearch findByG_P_L_First(
129         long groupId, boolean privateLayout, long layoutId,
130         com.liferay.portal.kernel.util.OrderByComparator obc)
131         throws com.liferay.portal.SystemException, 
132             com.liferay.portlet.journal.NoSuchContentSearchException;
133 
134     public com.liferay.portlet.journal.model.JournalContentSearch findByG_P_L_Last(
135         long groupId, boolean privateLayout, long layoutId,
136         com.liferay.portal.kernel.util.OrderByComparator obc)
137         throws com.liferay.portal.SystemException, 
138             com.liferay.portlet.journal.NoSuchContentSearchException;
139 
140     public com.liferay.portlet.journal.model.JournalContentSearch[] findByG_P_L_PrevAndNext(
141         long contentSearchId, long groupId, boolean privateLayout,
142         long layoutId, com.liferay.portal.kernel.util.OrderByComparator obc)
143         throws com.liferay.portal.SystemException, 
144             com.liferay.portlet.journal.NoSuchContentSearchException;
145 
146     public java.util.List findByG_P_A(long groupId, boolean privateLayout,
147         java.lang.String articleId) throws com.liferay.portal.SystemException;
148 
149     public java.util.List findByG_P_A(long groupId, boolean privateLayout,
150         java.lang.String articleId, int begin, int end)
151         throws com.liferay.portal.SystemException;
152 
153     public java.util.List findByG_P_A(long groupId, boolean privateLayout,
154         java.lang.String articleId, int begin, int end,
155         com.liferay.portal.kernel.util.OrderByComparator obc)
156         throws com.liferay.portal.SystemException;
157 
158     public com.liferay.portlet.journal.model.JournalContentSearch findByG_P_A_First(
159         long groupId, boolean privateLayout, java.lang.String articleId,
160         com.liferay.portal.kernel.util.OrderByComparator obc)
161         throws com.liferay.portal.SystemException, 
162             com.liferay.portlet.journal.NoSuchContentSearchException;
163 
164     public com.liferay.portlet.journal.model.JournalContentSearch findByG_P_A_Last(
165         long groupId, boolean privateLayout, java.lang.String articleId,
166         com.liferay.portal.kernel.util.OrderByComparator obc)
167         throws com.liferay.portal.SystemException, 
168             com.liferay.portlet.journal.NoSuchContentSearchException;
169 
170     public com.liferay.portlet.journal.model.JournalContentSearch[] findByG_P_A_PrevAndNext(
171         long contentSearchId, long groupId, boolean privateLayout,
172         java.lang.String articleId,
173         com.liferay.portal.kernel.util.OrderByComparator obc)
174         throws com.liferay.portal.SystemException, 
175             com.liferay.portlet.journal.NoSuchContentSearchException;
176 
177     public java.util.List findByG_P_L_P(long groupId, boolean privateLayout,
178         long layoutId, java.lang.String portletId)
179         throws com.liferay.portal.SystemException;
180 
181     public java.util.List findByG_P_L_P(long groupId, boolean privateLayout,
182         long layoutId, java.lang.String portletId, int begin, int end)
183         throws com.liferay.portal.SystemException;
184 
185     public java.util.List findByG_P_L_P(long groupId, boolean privateLayout,
186         long layoutId, java.lang.String portletId, int begin, int end,
187         com.liferay.portal.kernel.util.OrderByComparator obc)
188         throws com.liferay.portal.SystemException;
189 
190     public com.liferay.portlet.journal.model.JournalContentSearch findByG_P_L_P_First(
191         long groupId, boolean privateLayout, long layoutId,
192         java.lang.String portletId,
193         com.liferay.portal.kernel.util.OrderByComparator obc)
194         throws com.liferay.portal.SystemException, 
195             com.liferay.portlet.journal.NoSuchContentSearchException;
196 
197     public com.liferay.portlet.journal.model.JournalContentSearch findByG_P_L_P_Last(
198         long groupId, boolean privateLayout, long layoutId,
199         java.lang.String portletId,
200         com.liferay.portal.kernel.util.OrderByComparator obc)
201         throws com.liferay.portal.SystemException, 
202             com.liferay.portlet.journal.NoSuchContentSearchException;
203 
204     public com.liferay.portlet.journal.model.JournalContentSearch[] findByG_P_L_P_PrevAndNext(
205         long contentSearchId, long groupId, boolean privateLayout,
206         long layoutId, java.lang.String portletId,
207         com.liferay.portal.kernel.util.OrderByComparator obc)
208         throws com.liferay.portal.SystemException, 
209             com.liferay.portlet.journal.NoSuchContentSearchException;
210 
211     public com.liferay.portlet.journal.model.JournalContentSearch findByG_P_L_P_A(
212         long groupId, boolean privateLayout, long layoutId,
213         java.lang.String portletId, java.lang.String articleId)
214         throws com.liferay.portal.SystemException, 
215             com.liferay.portlet.journal.NoSuchContentSearchException;
216 
217     public com.liferay.portlet.journal.model.JournalContentSearch fetchByG_P_L_P_A(
218         long groupId, boolean privateLayout, long layoutId,
219         java.lang.String portletId, java.lang.String articleId)
220         throws com.liferay.portal.SystemException;
221 
222     public java.util.List findWithDynamicQuery(
223         com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
224         throws com.liferay.portal.SystemException;
225 
226     public java.util.List findWithDynamicQuery(
227         com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
228         int begin, int end) throws com.liferay.portal.SystemException;
229 
230     public java.util.List findAll() throws com.liferay.portal.SystemException;
231 
232     public java.util.List findAll(int begin, int end)
233         throws com.liferay.portal.SystemException;
234 
235     public java.util.List findAll(int begin, int end,
236         com.liferay.portal.kernel.util.OrderByComparator obc)
237         throws com.liferay.portal.SystemException;
238 
239     public void removeByG_P(long groupId, boolean privateLayout)
240         throws com.liferay.portal.SystemException;
241 
242     public void removeByG_A(long groupId, java.lang.String articleId)
243         throws com.liferay.portal.SystemException;
244 
245     public void removeByG_P_L(long groupId, boolean privateLayout, long layoutId)
246         throws com.liferay.portal.SystemException;
247 
248     public void removeByG_P_A(long groupId, boolean privateLayout,
249         java.lang.String articleId) throws com.liferay.portal.SystemException;
250 
251     public void removeByG_P_L_P(long groupId, boolean privateLayout,
252         long layoutId, java.lang.String portletId)
253         throws com.liferay.portal.SystemException;
254 
255     public void removeByG_P_L_P_A(long groupId, boolean privateLayout,
256         long layoutId, java.lang.String portletId, java.lang.String articleId)
257         throws com.liferay.portal.SystemException, 
258             com.liferay.portlet.journal.NoSuchContentSearchException;
259 
260     public void removeAll() throws com.liferay.portal.SystemException;
261 
262     public int countByG_P(long groupId, boolean privateLayout)
263         throws com.liferay.portal.SystemException;
264 
265     public int countByG_A(long groupId, java.lang.String articleId)
266         throws com.liferay.portal.SystemException;
267 
268     public int countByG_P_L(long groupId, boolean privateLayout, long layoutId)
269         throws com.liferay.portal.SystemException;
270 
271     public int countByG_P_A(long groupId, boolean privateLayout,
272         java.lang.String articleId) throws com.liferay.portal.SystemException;
273 
274     public int countByG_P_L_P(long groupId, boolean privateLayout,
275         long layoutId, java.lang.String portletId)
276         throws com.liferay.portal.SystemException;
277 
278     public int countByG_P_L_P_A(long groupId, boolean privateLayout,
279         long layoutId, java.lang.String portletId, java.lang.String articleId)
280         throws com.liferay.portal.SystemException;
281 
282     public int countAll() throws com.liferay.portal.SystemException;
283 }