1
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
30
36 @Transactional(rollbackFor = {
37 PortalException.class, SystemException.class})
38 public interface JournalContentSearchPersistence {
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
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
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 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
80 public com.liferay.portlet.journal.model.JournalContentSearch findByPrimaryKey(
81 long contentSearchId)
82 throws com.liferay.portal.SystemException,
83 com.liferay.portlet.journal.NoSuchContentSearchException;
84
85 public com.liferay.portlet.journal.model.JournalContentSearch fetchByPrimaryKey(
86 long contentSearchId) throws com.liferay.portal.SystemException;
87
88 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
89 public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P(
90 long groupId, boolean privateLayout)
91 throws com.liferay.portal.SystemException;
92
93 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
94 public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P(
95 long groupId, boolean privateLayout, int start, int end)
96 throws com.liferay.portal.SystemException;
97
98 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
99 public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P(
100 long groupId, boolean privateLayout, int start, int end,
101 com.liferay.portal.kernel.util.OrderByComparator obc)
102 throws com.liferay.portal.SystemException;
103
104 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
105 public com.liferay.portlet.journal.model.JournalContentSearch findByG_P_First(
106 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 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
112 public com.liferay.portlet.journal.model.JournalContentSearch findByG_P_Last(
113 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 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
119 public com.liferay.portlet.journal.model.JournalContentSearch[] findByG_P_PrevAndNext(
120 long contentSearchId, long groupId, boolean privateLayout,
121 com.liferay.portal.kernel.util.OrderByComparator obc)
122 throws com.liferay.portal.SystemException,
123 com.liferay.portlet.journal.NoSuchContentSearchException;
124
125 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
126 public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_A(
127 long groupId, java.lang.String articleId)
128 throws com.liferay.portal.SystemException;
129
130 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
131 public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_A(
132 long groupId, java.lang.String articleId, int start, int end)
133 throws com.liferay.portal.SystemException;
134
135 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
136 public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_A(
137 long groupId, java.lang.String articleId, int start, int end,
138 com.liferay.portal.kernel.util.OrderByComparator obc)
139 throws com.liferay.portal.SystemException;
140
141 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
142 public com.liferay.portlet.journal.model.JournalContentSearch findByG_A_First(
143 long groupId, java.lang.String articleId,
144 com.liferay.portal.kernel.util.OrderByComparator obc)
145 throws com.liferay.portal.SystemException,
146 com.liferay.portlet.journal.NoSuchContentSearchException;
147
148 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
149 public com.liferay.portlet.journal.model.JournalContentSearch findByG_A_Last(
150 long groupId, java.lang.String articleId,
151 com.liferay.portal.kernel.util.OrderByComparator obc)
152 throws com.liferay.portal.SystemException,
153 com.liferay.portlet.journal.NoSuchContentSearchException;
154
155 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
156 public com.liferay.portlet.journal.model.JournalContentSearch[] findByG_A_PrevAndNext(
157 long contentSearchId, long groupId, java.lang.String articleId,
158 com.liferay.portal.kernel.util.OrderByComparator obc)
159 throws com.liferay.portal.SystemException,
160 com.liferay.portlet.journal.NoSuchContentSearchException;
161
162 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
163 public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_L(
164 long groupId, boolean privateLayout, long layoutId)
165 throws com.liferay.portal.SystemException;
166
167 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
168 public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_L(
169 long groupId, boolean privateLayout, long layoutId, int start, int end)
170 throws com.liferay.portal.SystemException;
171
172 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
173 public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_L(
174 long groupId, boolean privateLayout, long layoutId, int start, int end,
175 com.liferay.portal.kernel.util.OrderByComparator obc)
176 throws com.liferay.portal.SystemException;
177
178 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
179 public com.liferay.portlet.journal.model.JournalContentSearch findByG_P_L_First(
180 long groupId, boolean privateLayout, long layoutId,
181 com.liferay.portal.kernel.util.OrderByComparator obc)
182 throws com.liferay.portal.SystemException,
183 com.liferay.portlet.journal.NoSuchContentSearchException;
184
185 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
186 public com.liferay.portlet.journal.model.JournalContentSearch findByG_P_L_Last(
187 long groupId, boolean privateLayout, long layoutId,
188 com.liferay.portal.kernel.util.OrderByComparator obc)
189 throws com.liferay.portal.SystemException,
190 com.liferay.portlet.journal.NoSuchContentSearchException;
191
192 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
193 public com.liferay.portlet.journal.model.JournalContentSearch[] findByG_P_L_PrevAndNext(
194 long contentSearchId, long groupId, boolean privateLayout,
195 long layoutId, com.liferay.portal.kernel.util.OrderByComparator obc)
196 throws com.liferay.portal.SystemException,
197 com.liferay.portlet.journal.NoSuchContentSearchException;
198
199 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
200 public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_A(
201 long groupId, boolean privateLayout, java.lang.String articleId)
202 throws com.liferay.portal.SystemException;
203
204 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
205 public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_A(
206 long groupId, boolean privateLayout, java.lang.String articleId,
207 int start, int end) throws com.liferay.portal.SystemException;
208
209 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
210 public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_A(
211 long groupId, boolean privateLayout, java.lang.String articleId,
212 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
213 throws com.liferay.portal.SystemException;
214
215 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
216 public com.liferay.portlet.journal.model.JournalContentSearch findByG_P_A_First(
217 long groupId, boolean privateLayout, java.lang.String articleId,
218 com.liferay.portal.kernel.util.OrderByComparator obc)
219 throws com.liferay.portal.SystemException,
220 com.liferay.portlet.journal.NoSuchContentSearchException;
221
222 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
223 public com.liferay.portlet.journal.model.JournalContentSearch findByG_P_A_Last(
224 long groupId, boolean privateLayout, java.lang.String articleId,
225 com.liferay.portal.kernel.util.OrderByComparator obc)
226 throws com.liferay.portal.SystemException,
227 com.liferay.portlet.journal.NoSuchContentSearchException;
228
229 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
230 public com.liferay.portlet.journal.model.JournalContentSearch[] findByG_P_A_PrevAndNext(
231 long contentSearchId, long groupId, boolean privateLayout,
232 java.lang.String articleId,
233 com.liferay.portal.kernel.util.OrderByComparator obc)
234 throws com.liferay.portal.SystemException,
235 com.liferay.portlet.journal.NoSuchContentSearchException;
236
237 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
238 public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_L_P(
239 long groupId, boolean privateLayout, long layoutId,
240 java.lang.String portletId) throws com.liferay.portal.SystemException;
241
242 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
243 public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_L_P(
244 long groupId, boolean privateLayout, long layoutId,
245 java.lang.String portletId, int start, int end)
246 throws com.liferay.portal.SystemException;
247
248 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
249 public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_L_P(
250 long groupId, boolean privateLayout, long layoutId,
251 java.lang.String portletId, int start, int end,
252 com.liferay.portal.kernel.util.OrderByComparator obc)
253 throws com.liferay.portal.SystemException;
254
255 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
256 public com.liferay.portlet.journal.model.JournalContentSearch findByG_P_L_P_First(
257 long groupId, boolean privateLayout, long layoutId,
258 java.lang.String portletId,
259 com.liferay.portal.kernel.util.OrderByComparator obc)
260 throws com.liferay.portal.SystemException,
261 com.liferay.portlet.journal.NoSuchContentSearchException;
262
263 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
264 public com.liferay.portlet.journal.model.JournalContentSearch findByG_P_L_P_Last(
265 long groupId, boolean privateLayout, long layoutId,
266 java.lang.String portletId,
267 com.liferay.portal.kernel.util.OrderByComparator obc)
268 throws com.liferay.portal.SystemException,
269 com.liferay.portlet.journal.NoSuchContentSearchException;
270
271 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
272 public com.liferay.portlet.journal.model.JournalContentSearch[] findByG_P_L_P_PrevAndNext(
273 long contentSearchId, long groupId, boolean privateLayout,
274 long layoutId, java.lang.String portletId,
275 com.liferay.portal.kernel.util.OrderByComparator obc)
276 throws com.liferay.portal.SystemException,
277 com.liferay.portlet.journal.NoSuchContentSearchException;
278
279 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
280 public com.liferay.portlet.journal.model.JournalContentSearch findByG_P_L_P_A(
281 long groupId, boolean privateLayout, long layoutId,
282 java.lang.String portletId, java.lang.String articleId)
283 throws com.liferay.portal.SystemException,
284 com.liferay.portlet.journal.NoSuchContentSearchException;
285
286 public com.liferay.portlet.journal.model.JournalContentSearch fetchByG_P_L_P_A(
287 long groupId, boolean privateLayout, long layoutId,
288 java.lang.String portletId, java.lang.String articleId)
289 throws com.liferay.portal.SystemException;
290
291 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
292 public java.util.List<Object> findWithDynamicQuery(
293 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
294 throws com.liferay.portal.SystemException;
295
296 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
297 public java.util.List<Object> findWithDynamicQuery(
298 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
299 int end) throws com.liferay.portal.SystemException;
300
301 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
302 public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findAll()
303 throws com.liferay.portal.SystemException;
304
305 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
306 public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findAll(
307 int start, int end) throws com.liferay.portal.SystemException;
308
309 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
310 public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findAll(
311 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
312 throws com.liferay.portal.SystemException;
313
314 public void removeByG_P(long groupId, boolean privateLayout)
315 throws com.liferay.portal.SystemException;
316
317 public void removeByG_A(long groupId, java.lang.String articleId)
318 throws com.liferay.portal.SystemException;
319
320 public void removeByG_P_L(long groupId, boolean privateLayout, long layoutId)
321 throws com.liferay.portal.SystemException;
322
323 public void removeByG_P_A(long groupId, boolean privateLayout,
324 java.lang.String articleId) throws com.liferay.portal.SystemException;
325
326 public void removeByG_P_L_P(long groupId, boolean privateLayout,
327 long layoutId, java.lang.String portletId)
328 throws com.liferay.portal.SystemException;
329
330 public void removeByG_P_L_P_A(long groupId, boolean privateLayout,
331 long layoutId, java.lang.String portletId, java.lang.String articleId)
332 throws com.liferay.portal.SystemException,
333 com.liferay.portlet.journal.NoSuchContentSearchException;
334
335 public void removeAll() throws com.liferay.portal.SystemException;
336
337 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
338 public int countByG_P(long groupId, boolean privateLayout)
339 throws com.liferay.portal.SystemException;
340
341 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
342 public int countByG_A(long groupId, java.lang.String articleId)
343 throws com.liferay.portal.SystemException;
344
345 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
346 public int countByG_P_L(long groupId, boolean privateLayout, long layoutId)
347 throws com.liferay.portal.SystemException;
348
349 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
350 public int countByG_P_A(long groupId, boolean privateLayout,
351 java.lang.String articleId) throws com.liferay.portal.SystemException;
352
353 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
354 public int countByG_P_L_P(long groupId, boolean privateLayout,
355 long layoutId, java.lang.String portletId)
356 throws com.liferay.portal.SystemException;
357
358 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
359 public int countByG_P_L_P_A(long groupId, boolean privateLayout,
360 long layoutId, java.lang.String portletId, java.lang.String articleId)
361 throws com.liferay.portal.SystemException;
362
363 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
364 public int countAll() throws com.liferay.portal.SystemException;
365
366 public void registerListener(
367 com.liferay.portal.model.ModelListener listener);
368
369 public void unregisterListener(
370 com.liferay.portal.model.ModelListener listener);
371 }