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 import com.liferay.portal.service.persistence.BasePersistence;
30
31
37 @Transactional(rollbackFor = {
38 PortalException.class, SystemException.class})
39 public interface JournalTemplatePersistence extends BasePersistence {
40 public com.liferay.portlet.journal.model.JournalTemplate create(long id);
41
42 public com.liferay.portlet.journal.model.JournalTemplate remove(long id)
43 throws com.liferay.portal.SystemException,
44 com.liferay.portlet.journal.NoSuchTemplateException;
45
46 public com.liferay.portlet.journal.model.JournalTemplate remove(
47 com.liferay.portlet.journal.model.JournalTemplate journalTemplate)
48 throws com.liferay.portal.SystemException;
49
50
53 public com.liferay.portlet.journal.model.JournalTemplate update(
54 com.liferay.portlet.journal.model.JournalTemplate journalTemplate)
55 throws com.liferay.portal.SystemException;
56
57
70 public com.liferay.portlet.journal.model.JournalTemplate update(
71 com.liferay.portlet.journal.model.JournalTemplate journalTemplate,
72 boolean merge) throws com.liferay.portal.SystemException;
73
74 public com.liferay.portlet.journal.model.JournalTemplate updateImpl(
75 com.liferay.portlet.journal.model.JournalTemplate journalTemplate,
76 boolean merge) throws com.liferay.portal.SystemException;
77
78 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
79 public com.liferay.portlet.journal.model.JournalTemplate findByPrimaryKey(
80 long id)
81 throws com.liferay.portal.SystemException,
82 com.liferay.portlet.journal.NoSuchTemplateException;
83
84 public com.liferay.portlet.journal.model.JournalTemplate fetchByPrimaryKey(
85 long id) throws com.liferay.portal.SystemException;
86
87 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
88 public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByUuid(
89 java.lang.String uuid) throws com.liferay.portal.SystemException;
90
91 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
92 public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByUuid(
93 java.lang.String uuid, 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.JournalTemplate> findByUuid(
98 java.lang.String uuid, 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.JournalTemplate findByUuid_First(
104 java.lang.String uuid,
105 com.liferay.portal.kernel.util.OrderByComparator obc)
106 throws com.liferay.portal.SystemException,
107 com.liferay.portlet.journal.NoSuchTemplateException;
108
109 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
110 public com.liferay.portlet.journal.model.JournalTemplate findByUuid_Last(
111 java.lang.String uuid,
112 com.liferay.portal.kernel.util.OrderByComparator obc)
113 throws com.liferay.portal.SystemException,
114 com.liferay.portlet.journal.NoSuchTemplateException;
115
116 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
117 public com.liferay.portlet.journal.model.JournalTemplate[] findByUuid_PrevAndNext(
118 long id, java.lang.String uuid,
119 com.liferay.portal.kernel.util.OrderByComparator obc)
120 throws com.liferay.portal.SystemException,
121 com.liferay.portlet.journal.NoSuchTemplateException;
122
123 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
124 public com.liferay.portlet.journal.model.JournalTemplate findByUUID_G(
125 java.lang.String uuid, long groupId)
126 throws com.liferay.portal.SystemException,
127 com.liferay.portlet.journal.NoSuchTemplateException;
128
129 public com.liferay.portlet.journal.model.JournalTemplate fetchByUUID_G(
130 java.lang.String uuid, long groupId)
131 throws com.liferay.portal.SystemException;
132
133 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
134 public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByGroupId(
135 long groupId) throws com.liferay.portal.SystemException;
136
137 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
138 public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByGroupId(
139 long groupId, int start, int end)
140 throws com.liferay.portal.SystemException;
141
142 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
143 public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByGroupId(
144 long groupId, int start, int end,
145 com.liferay.portal.kernel.util.OrderByComparator obc)
146 throws com.liferay.portal.SystemException;
147
148 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
149 public com.liferay.portlet.journal.model.JournalTemplate findByGroupId_First(
150 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
151 throws com.liferay.portal.SystemException,
152 com.liferay.portlet.journal.NoSuchTemplateException;
153
154 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
155 public com.liferay.portlet.journal.model.JournalTemplate findByGroupId_Last(
156 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
157 throws com.liferay.portal.SystemException,
158 com.liferay.portlet.journal.NoSuchTemplateException;
159
160 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
161 public com.liferay.portlet.journal.model.JournalTemplate[] findByGroupId_PrevAndNext(
162 long id, long groupId,
163 com.liferay.portal.kernel.util.OrderByComparator obc)
164 throws com.liferay.portal.SystemException,
165 com.liferay.portlet.journal.NoSuchTemplateException;
166
167 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
168 public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByTemplateId(
169 java.lang.String templateId) throws com.liferay.portal.SystemException;
170
171 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
172 public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByTemplateId(
173 java.lang.String templateId, int start, int end)
174 throws com.liferay.portal.SystemException;
175
176 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
177 public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByTemplateId(
178 java.lang.String templateId, int start, int end,
179 com.liferay.portal.kernel.util.OrderByComparator obc)
180 throws com.liferay.portal.SystemException;
181
182 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
183 public com.liferay.portlet.journal.model.JournalTemplate findByTemplateId_First(
184 java.lang.String templateId,
185 com.liferay.portal.kernel.util.OrderByComparator obc)
186 throws com.liferay.portal.SystemException,
187 com.liferay.portlet.journal.NoSuchTemplateException;
188
189 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
190 public com.liferay.portlet.journal.model.JournalTemplate findByTemplateId_Last(
191 java.lang.String templateId,
192 com.liferay.portal.kernel.util.OrderByComparator obc)
193 throws com.liferay.portal.SystemException,
194 com.liferay.portlet.journal.NoSuchTemplateException;
195
196 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
197 public com.liferay.portlet.journal.model.JournalTemplate[] findByTemplateId_PrevAndNext(
198 long id, java.lang.String templateId,
199 com.liferay.portal.kernel.util.OrderByComparator obc)
200 throws com.liferay.portal.SystemException,
201 com.liferay.portlet.journal.NoSuchTemplateException;
202
203 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
204 public com.liferay.portlet.journal.model.JournalTemplate findBySmallImageId(
205 long smallImageId)
206 throws com.liferay.portal.SystemException,
207 com.liferay.portlet.journal.NoSuchTemplateException;
208
209 public com.liferay.portlet.journal.model.JournalTemplate fetchBySmallImageId(
210 long smallImageId) throws com.liferay.portal.SystemException;
211
212 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
213 public com.liferay.portlet.journal.model.JournalTemplate findByG_T(
214 long groupId, java.lang.String templateId)
215 throws com.liferay.portal.SystemException,
216 com.liferay.portlet.journal.NoSuchTemplateException;
217
218 public com.liferay.portlet.journal.model.JournalTemplate fetchByG_T(
219 long groupId, java.lang.String templateId)
220 throws com.liferay.portal.SystemException;
221
222 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
223 public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByG_S(
224 long groupId, java.lang.String structureId)
225 throws com.liferay.portal.SystemException;
226
227 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
228 public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByG_S(
229 long groupId, java.lang.String structureId, int start, int end)
230 throws com.liferay.portal.SystemException;
231
232 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
233 public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByG_S(
234 long groupId, java.lang.String structureId, int start, int end,
235 com.liferay.portal.kernel.util.OrderByComparator obc)
236 throws com.liferay.portal.SystemException;
237
238 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
239 public com.liferay.portlet.journal.model.JournalTemplate findByG_S_First(
240 long groupId, java.lang.String structureId,
241 com.liferay.portal.kernel.util.OrderByComparator obc)
242 throws com.liferay.portal.SystemException,
243 com.liferay.portlet.journal.NoSuchTemplateException;
244
245 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
246 public com.liferay.portlet.journal.model.JournalTemplate findByG_S_Last(
247 long groupId, java.lang.String structureId,
248 com.liferay.portal.kernel.util.OrderByComparator obc)
249 throws com.liferay.portal.SystemException,
250 com.liferay.portlet.journal.NoSuchTemplateException;
251
252 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
253 public com.liferay.portlet.journal.model.JournalTemplate[] findByG_S_PrevAndNext(
254 long id, long groupId, java.lang.String structureId,
255 com.liferay.portal.kernel.util.OrderByComparator obc)
256 throws com.liferay.portal.SystemException,
257 com.liferay.portlet.journal.NoSuchTemplateException;
258
259 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
260 public java.util.List<Object> findWithDynamicQuery(
261 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
262 throws com.liferay.portal.SystemException;
263
264 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
265 public java.util.List<Object> findWithDynamicQuery(
266 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
267 int end) throws com.liferay.portal.SystemException;
268
269 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
270 public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findAll()
271 throws com.liferay.portal.SystemException;
272
273 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
274 public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findAll(
275 int start, int end) throws com.liferay.portal.SystemException;
276
277 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
278 public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findAll(
279 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
280 throws com.liferay.portal.SystemException;
281
282 public void removeByUuid(java.lang.String uuid)
283 throws com.liferay.portal.SystemException;
284
285 public void removeByUUID_G(java.lang.String uuid, long groupId)
286 throws com.liferay.portal.SystemException,
287 com.liferay.portlet.journal.NoSuchTemplateException;
288
289 public void removeByGroupId(long groupId)
290 throws com.liferay.portal.SystemException;
291
292 public void removeByTemplateId(java.lang.String templateId)
293 throws com.liferay.portal.SystemException;
294
295 public void removeBySmallImageId(long smallImageId)
296 throws com.liferay.portal.SystemException,
297 com.liferay.portlet.journal.NoSuchTemplateException;
298
299 public void removeByG_T(long groupId, java.lang.String templateId)
300 throws com.liferay.portal.SystemException,
301 com.liferay.portlet.journal.NoSuchTemplateException;
302
303 public void removeByG_S(long groupId, java.lang.String structureId)
304 throws com.liferay.portal.SystemException;
305
306 public void removeAll() throws com.liferay.portal.SystemException;
307
308 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
309 public int countByUuid(java.lang.String uuid)
310 throws com.liferay.portal.SystemException;
311
312 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
313 public int countByUUID_G(java.lang.String uuid, long groupId)
314 throws com.liferay.portal.SystemException;
315
316 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
317 public int countByGroupId(long groupId)
318 throws com.liferay.portal.SystemException;
319
320 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
321 public int countByTemplateId(java.lang.String templateId)
322 throws com.liferay.portal.SystemException;
323
324 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
325 public int countBySmallImageId(long smallImageId)
326 throws com.liferay.portal.SystemException;
327
328 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
329 public int countByG_T(long groupId, java.lang.String templateId)
330 throws com.liferay.portal.SystemException;
331
332 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
333 public int countByG_S(long groupId, java.lang.String structureId)
334 throws com.liferay.portal.SystemException;
335
336 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
337 public int countAll() throws com.liferay.portal.SystemException;
338 }