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