1
14
15 package com.liferay.portlet.journal.service.persistence;
16
17 import com.liferay.portal.SystemException;
18 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
19 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
20 import com.liferay.portal.kernel.util.ReferenceRegistry;
21
22 import com.liferay.portlet.journal.model.JournalStructure;
23
24 import java.util.List;
25
26
39 public class JournalStructureUtil {
40
43 public static void clearCache() {
44 getPersistence().clearCache();
45 }
46
47
50 public static void clearCache(JournalStructure journalStructure) {
51 getPersistence().clearCache(journalStructure);
52 }
53
54
57 public int countWithDynamicQuery(DynamicQuery dynamicQuery)
58 throws SystemException {
59 return getPersistence().countWithDynamicQuery(dynamicQuery);
60 }
61
62
65 public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
66 throws SystemException {
67 return getPersistence().findWithDynamicQuery(dynamicQuery);
68 }
69
70
73 public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
74 int start, int end) throws SystemException {
75 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
76 }
77
78
81 public static JournalStructure remove(JournalStructure journalStructure)
82 throws SystemException {
83 return getPersistence().remove(journalStructure);
84 }
85
86
89 public static JournalStructure update(JournalStructure journalStructure,
90 boolean merge) throws SystemException {
91 return getPersistence().update(journalStructure, merge);
92 }
93
94 public static void cacheResult(
95 com.liferay.portlet.journal.model.JournalStructure journalStructure) {
96 getPersistence().cacheResult(journalStructure);
97 }
98
99 public static void cacheResult(
100 java.util.List<com.liferay.portlet.journal.model.JournalStructure> journalStructures) {
101 getPersistence().cacheResult(journalStructures);
102 }
103
104 public static com.liferay.portlet.journal.model.JournalStructure create(
105 long id) {
106 return getPersistence().create(id);
107 }
108
109 public static com.liferay.portlet.journal.model.JournalStructure remove(
110 long id)
111 throws com.liferay.portal.SystemException,
112 com.liferay.portlet.journal.NoSuchStructureException {
113 return getPersistence().remove(id);
114 }
115
116
119 public static com.liferay.portlet.journal.model.JournalStructure update(
120 com.liferay.portlet.journal.model.JournalStructure journalStructure)
121 throws com.liferay.portal.SystemException {
122 return getPersistence().update(journalStructure);
123 }
124
125 public static com.liferay.portlet.journal.model.JournalStructure updateImpl(
126 com.liferay.portlet.journal.model.JournalStructure journalStructure,
127 boolean merge) throws com.liferay.portal.SystemException {
128 return getPersistence().updateImpl(journalStructure, merge);
129 }
130
131 public static com.liferay.portlet.journal.model.JournalStructure findByPrimaryKey(
132 long id)
133 throws com.liferay.portal.SystemException,
134 com.liferay.portlet.journal.NoSuchStructureException {
135 return getPersistence().findByPrimaryKey(id);
136 }
137
138 public static com.liferay.portlet.journal.model.JournalStructure fetchByPrimaryKey(
139 long id) throws com.liferay.portal.SystemException {
140 return getPersistence().fetchByPrimaryKey(id);
141 }
142
143 public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByUuid(
144 java.lang.String uuid) throws com.liferay.portal.SystemException {
145 return getPersistence().findByUuid(uuid);
146 }
147
148 public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByUuid(
149 java.lang.String uuid, int start, int end)
150 throws com.liferay.portal.SystemException {
151 return getPersistence().findByUuid(uuid, start, end);
152 }
153
154 public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByUuid(
155 java.lang.String uuid, int start, int end,
156 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
157 throws com.liferay.portal.SystemException {
158 return getPersistence().findByUuid(uuid, start, end, orderByComparator);
159 }
160
161 public static com.liferay.portlet.journal.model.JournalStructure findByUuid_First(
162 java.lang.String uuid,
163 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
164 throws com.liferay.portal.SystemException,
165 com.liferay.portlet.journal.NoSuchStructureException {
166 return getPersistence().findByUuid_First(uuid, orderByComparator);
167 }
168
169 public static com.liferay.portlet.journal.model.JournalStructure findByUuid_Last(
170 java.lang.String uuid,
171 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
172 throws com.liferay.portal.SystemException,
173 com.liferay.portlet.journal.NoSuchStructureException {
174 return getPersistence().findByUuid_Last(uuid, orderByComparator);
175 }
176
177 public static com.liferay.portlet.journal.model.JournalStructure[] findByUuid_PrevAndNext(
178 long id, java.lang.String uuid,
179 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
180 throws com.liferay.portal.SystemException,
181 com.liferay.portlet.journal.NoSuchStructureException {
182 return getPersistence()
183 .findByUuid_PrevAndNext(id, uuid, orderByComparator);
184 }
185
186 public static com.liferay.portlet.journal.model.JournalStructure findByUUID_G(
187 java.lang.String uuid, long groupId)
188 throws com.liferay.portal.SystemException,
189 com.liferay.portlet.journal.NoSuchStructureException {
190 return getPersistence().findByUUID_G(uuid, groupId);
191 }
192
193 public static com.liferay.portlet.journal.model.JournalStructure fetchByUUID_G(
194 java.lang.String uuid, long groupId)
195 throws com.liferay.portal.SystemException {
196 return getPersistence().fetchByUUID_G(uuid, groupId);
197 }
198
199 public static com.liferay.portlet.journal.model.JournalStructure fetchByUUID_G(
200 java.lang.String uuid, long groupId, boolean retrieveFromCache)
201 throws com.liferay.portal.SystemException {
202 return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
203 }
204
205 public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByGroupId(
206 long groupId) throws com.liferay.portal.SystemException {
207 return getPersistence().findByGroupId(groupId);
208 }
209
210 public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByGroupId(
211 long groupId, int start, int end)
212 throws com.liferay.portal.SystemException {
213 return getPersistence().findByGroupId(groupId, start, end);
214 }
215
216 public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByGroupId(
217 long groupId, int start, int end,
218 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
219 throws com.liferay.portal.SystemException {
220 return getPersistence()
221 .findByGroupId(groupId, start, end, orderByComparator);
222 }
223
224 public static com.liferay.portlet.journal.model.JournalStructure findByGroupId_First(
225 long groupId,
226 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
227 throws com.liferay.portal.SystemException,
228 com.liferay.portlet.journal.NoSuchStructureException {
229 return getPersistence().findByGroupId_First(groupId, orderByComparator);
230 }
231
232 public static com.liferay.portlet.journal.model.JournalStructure findByGroupId_Last(
233 long groupId,
234 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
235 throws com.liferay.portal.SystemException,
236 com.liferay.portlet.journal.NoSuchStructureException {
237 return getPersistence().findByGroupId_Last(groupId, orderByComparator);
238 }
239
240 public static com.liferay.portlet.journal.model.JournalStructure[] findByGroupId_PrevAndNext(
241 long id, long groupId,
242 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
243 throws com.liferay.portal.SystemException,
244 com.liferay.portlet.journal.NoSuchStructureException {
245 return getPersistence()
246 .findByGroupId_PrevAndNext(id, groupId, orderByComparator);
247 }
248
249 public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByStructureId(
250 java.lang.String structureId) throws com.liferay.portal.SystemException {
251 return getPersistence().findByStructureId(structureId);
252 }
253
254 public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByStructureId(
255 java.lang.String structureId, int start, int end)
256 throws com.liferay.portal.SystemException {
257 return getPersistence().findByStructureId(structureId, start, end);
258 }
259
260 public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByStructureId(
261 java.lang.String structureId, int start, int end,
262 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
263 throws com.liferay.portal.SystemException {
264 return getPersistence()
265 .findByStructureId(structureId, start, end, orderByComparator);
266 }
267
268 public static com.liferay.portlet.journal.model.JournalStructure findByStructureId_First(
269 java.lang.String structureId,
270 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
271 throws com.liferay.portal.SystemException,
272 com.liferay.portlet.journal.NoSuchStructureException {
273 return getPersistence()
274 .findByStructureId_First(structureId, orderByComparator);
275 }
276
277 public static com.liferay.portlet.journal.model.JournalStructure findByStructureId_Last(
278 java.lang.String structureId,
279 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
280 throws com.liferay.portal.SystemException,
281 com.liferay.portlet.journal.NoSuchStructureException {
282 return getPersistence()
283 .findByStructureId_Last(structureId, orderByComparator);
284 }
285
286 public static com.liferay.portlet.journal.model.JournalStructure[] findByStructureId_PrevAndNext(
287 long id, java.lang.String structureId,
288 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
289 throws com.liferay.portal.SystemException,
290 com.liferay.portlet.journal.NoSuchStructureException {
291 return getPersistence()
292 .findByStructureId_PrevAndNext(id, structureId,
293 orderByComparator);
294 }
295
296 public static com.liferay.portlet.journal.model.JournalStructure findByG_S(
297 long groupId, java.lang.String structureId)
298 throws com.liferay.portal.SystemException,
299 com.liferay.portlet.journal.NoSuchStructureException {
300 return getPersistence().findByG_S(groupId, structureId);
301 }
302
303 public static com.liferay.portlet.journal.model.JournalStructure fetchByG_S(
304 long groupId, java.lang.String structureId)
305 throws com.liferay.portal.SystemException {
306 return getPersistence().fetchByG_S(groupId, structureId);
307 }
308
309 public static com.liferay.portlet.journal.model.JournalStructure fetchByG_S(
310 long groupId, java.lang.String structureId, boolean retrieveFromCache)
311 throws com.liferay.portal.SystemException {
312 return getPersistence()
313 .fetchByG_S(groupId, structureId, retrieveFromCache);
314 }
315
316 public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByG_P(
317 long groupId, java.lang.String parentStructureId)
318 throws com.liferay.portal.SystemException {
319 return getPersistence().findByG_P(groupId, parentStructureId);
320 }
321
322 public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByG_P(
323 long groupId, java.lang.String parentStructureId, int start, int end)
324 throws com.liferay.portal.SystemException {
325 return getPersistence().findByG_P(groupId, parentStructureId, start, end);
326 }
327
328 public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByG_P(
329 long groupId, java.lang.String parentStructureId, int start, int end,
330 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
331 throws com.liferay.portal.SystemException {
332 return getPersistence()
333 .findByG_P(groupId, parentStructureId, start, end,
334 orderByComparator);
335 }
336
337 public static com.liferay.portlet.journal.model.JournalStructure findByG_P_First(
338 long groupId, java.lang.String parentStructureId,
339 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
340 throws com.liferay.portal.SystemException,
341 com.liferay.portlet.journal.NoSuchStructureException {
342 return getPersistence()
343 .findByG_P_First(groupId, parentStructureId,
344 orderByComparator);
345 }
346
347 public static com.liferay.portlet.journal.model.JournalStructure findByG_P_Last(
348 long groupId, java.lang.String parentStructureId,
349 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
350 throws com.liferay.portal.SystemException,
351 com.liferay.portlet.journal.NoSuchStructureException {
352 return getPersistence()
353 .findByG_P_Last(groupId, parentStructureId, orderByComparator);
354 }
355
356 public static com.liferay.portlet.journal.model.JournalStructure[] findByG_P_PrevAndNext(
357 long id, long groupId, java.lang.String parentStructureId,
358 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
359 throws com.liferay.portal.SystemException,
360 com.liferay.portlet.journal.NoSuchStructureException {
361 return getPersistence()
362 .findByG_P_PrevAndNext(id, groupId, parentStructureId,
363 orderByComparator);
364 }
365
366 public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> findAll()
367 throws com.liferay.portal.SystemException {
368 return getPersistence().findAll();
369 }
370
371 public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> findAll(
372 int start, int end) throws com.liferay.portal.SystemException {
373 return getPersistence().findAll(start, end);
374 }
375
376 public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> findAll(
377 int start, int end,
378 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
379 throws com.liferay.portal.SystemException {
380 return getPersistence().findAll(start, end, orderByComparator);
381 }
382
383 public static void removeByUuid(java.lang.String uuid)
384 throws com.liferay.portal.SystemException {
385 getPersistence().removeByUuid(uuid);
386 }
387
388 public static void removeByUUID_G(java.lang.String uuid, long groupId)
389 throws com.liferay.portal.SystemException,
390 com.liferay.portlet.journal.NoSuchStructureException {
391 getPersistence().removeByUUID_G(uuid, groupId);
392 }
393
394 public static void removeByGroupId(long groupId)
395 throws com.liferay.portal.SystemException {
396 getPersistence().removeByGroupId(groupId);
397 }
398
399 public static void removeByStructureId(java.lang.String structureId)
400 throws com.liferay.portal.SystemException {
401 getPersistence().removeByStructureId(structureId);
402 }
403
404 public static void removeByG_S(long groupId, java.lang.String structureId)
405 throws com.liferay.portal.SystemException,
406 com.liferay.portlet.journal.NoSuchStructureException {
407 getPersistence().removeByG_S(groupId, structureId);
408 }
409
410 public static void removeByG_P(long groupId,
411 java.lang.String parentStructureId)
412 throws com.liferay.portal.SystemException {
413 getPersistence().removeByG_P(groupId, parentStructureId);
414 }
415
416 public static void removeAll() throws com.liferay.portal.SystemException {
417 getPersistence().removeAll();
418 }
419
420 public static int countByUuid(java.lang.String uuid)
421 throws com.liferay.portal.SystemException {
422 return getPersistence().countByUuid(uuid);
423 }
424
425 public static int countByUUID_G(java.lang.String uuid, long groupId)
426 throws com.liferay.portal.SystemException {
427 return getPersistence().countByUUID_G(uuid, groupId);
428 }
429
430 public static int countByGroupId(long groupId)
431 throws com.liferay.portal.SystemException {
432 return getPersistence().countByGroupId(groupId);
433 }
434
435 public static int countByStructureId(java.lang.String structureId)
436 throws com.liferay.portal.SystemException {
437 return getPersistence().countByStructureId(structureId);
438 }
439
440 public static int countByG_S(long groupId, java.lang.String structureId)
441 throws com.liferay.portal.SystemException {
442 return getPersistence().countByG_S(groupId, structureId);
443 }
444
445 public static int countByG_P(long groupId,
446 java.lang.String parentStructureId)
447 throws com.liferay.portal.SystemException {
448 return getPersistence().countByG_P(groupId, parentStructureId);
449 }
450
451 public static int countAll() throws com.liferay.portal.SystemException {
452 return getPersistence().countAll();
453 }
454
455 public static JournalStructurePersistence getPersistence() {
456 if (_persistence == null) {
457 _persistence = (JournalStructurePersistence)PortalBeanLocatorUtil.locate(JournalStructurePersistence.class.getName());
458
459 ReferenceRegistry.registerReference(JournalStructureUtil.class,
460 "_persistence");
461 }
462
463 return _persistence;
464 }
465
466 public void setPersistence(JournalStructurePersistence persistence) {
467 _persistence = persistence;
468
469 ReferenceRegistry.registerReference(JournalStructureUtil.class,
470 "_persistence");
471 }
472
473 private static JournalStructurePersistence _persistence;
474 }