001
014
015 package com.liferay.portlet.journal.service.persistence;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
019 import com.liferay.portal.kernel.exception.SystemException;
020 import com.liferay.portal.kernel.util.OrderByComparator;
021 import com.liferay.portal.service.ServiceContext;
022
023 import com.liferay.portlet.journal.model.JournalStructure;
024
025 import java.util.List;
026
027
033 public class JournalStructureUtil {
034
037 public static void clearCache() {
038 getPersistence().clearCache();
039 }
040
041
044 public static void clearCache(JournalStructure journalStructure) {
045 getPersistence().clearCache(journalStructure);
046 }
047
048
051 public long countWithDynamicQuery(DynamicQuery dynamicQuery)
052 throws SystemException {
053 return getPersistence().countWithDynamicQuery(dynamicQuery);
054 }
055
056
059 public static List<JournalStructure> findWithDynamicQuery(
060 DynamicQuery dynamicQuery) throws SystemException {
061 return getPersistence().findWithDynamicQuery(dynamicQuery);
062 }
063
064
067 public static List<JournalStructure> findWithDynamicQuery(
068 DynamicQuery dynamicQuery, int start, int end)
069 throws SystemException {
070 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
071 }
072
073
076 public static List<JournalStructure> findWithDynamicQuery(
077 DynamicQuery dynamicQuery, int start, int end,
078 OrderByComparator orderByComparator) throws SystemException {
079 return getPersistence()
080 .findWithDynamicQuery(dynamicQuery, start, end,
081 orderByComparator);
082 }
083
084
087 public static JournalStructure remove(JournalStructure journalStructure)
088 throws SystemException {
089 return getPersistence().remove(journalStructure);
090 }
091
092
095 public static JournalStructure update(JournalStructure journalStructure,
096 boolean merge) throws SystemException {
097 return getPersistence().update(journalStructure, merge);
098 }
099
100
103 public static JournalStructure update(JournalStructure journalStructure,
104 boolean merge, ServiceContext serviceContext) throws SystemException {
105 return getPersistence().update(journalStructure, merge, serviceContext);
106 }
107
108 public static void cacheResult(
109 com.liferay.portlet.journal.model.JournalStructure journalStructure) {
110 getPersistence().cacheResult(journalStructure);
111 }
112
113 public static void cacheResult(
114 java.util.List<com.liferay.portlet.journal.model.JournalStructure> journalStructures) {
115 getPersistence().cacheResult(journalStructures);
116 }
117
118 public static com.liferay.portlet.journal.model.JournalStructure create(
119 long id) {
120 return getPersistence().create(id);
121 }
122
123 public static com.liferay.portlet.journal.model.JournalStructure remove(
124 long id)
125 throws com.liferay.portal.kernel.exception.SystemException,
126 com.liferay.portlet.journal.NoSuchStructureException {
127 return getPersistence().remove(id);
128 }
129
130 public static com.liferay.portlet.journal.model.JournalStructure updateImpl(
131 com.liferay.portlet.journal.model.JournalStructure journalStructure,
132 boolean merge)
133 throws com.liferay.portal.kernel.exception.SystemException {
134 return getPersistence().updateImpl(journalStructure, merge);
135 }
136
137 public static com.liferay.portlet.journal.model.JournalStructure findByPrimaryKey(
138 long id)
139 throws com.liferay.portal.kernel.exception.SystemException,
140 com.liferay.portlet.journal.NoSuchStructureException {
141 return getPersistence().findByPrimaryKey(id);
142 }
143
144 public static com.liferay.portlet.journal.model.JournalStructure fetchByPrimaryKey(
145 long id) throws com.liferay.portal.kernel.exception.SystemException {
146 return getPersistence().fetchByPrimaryKey(id);
147 }
148
149 public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByUuid(
150 java.lang.String uuid)
151 throws com.liferay.portal.kernel.exception.SystemException {
152 return getPersistence().findByUuid(uuid);
153 }
154
155 public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByUuid(
156 java.lang.String uuid, int start, int end)
157 throws com.liferay.portal.kernel.exception.SystemException {
158 return getPersistence().findByUuid(uuid, start, end);
159 }
160
161 public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByUuid(
162 java.lang.String uuid, int start, int end,
163 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
164 throws com.liferay.portal.kernel.exception.SystemException {
165 return getPersistence().findByUuid(uuid, start, end, orderByComparator);
166 }
167
168 public static com.liferay.portlet.journal.model.JournalStructure findByUuid_First(
169 java.lang.String uuid,
170 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
171 throws com.liferay.portal.kernel.exception.SystemException,
172 com.liferay.portlet.journal.NoSuchStructureException {
173 return getPersistence().findByUuid_First(uuid, orderByComparator);
174 }
175
176 public static com.liferay.portlet.journal.model.JournalStructure findByUuid_Last(
177 java.lang.String uuid,
178 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
179 throws com.liferay.portal.kernel.exception.SystemException,
180 com.liferay.portlet.journal.NoSuchStructureException {
181 return getPersistence().findByUuid_Last(uuid, orderByComparator);
182 }
183
184 public static com.liferay.portlet.journal.model.JournalStructure[] findByUuid_PrevAndNext(
185 long id, java.lang.String uuid,
186 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
187 throws com.liferay.portal.kernel.exception.SystemException,
188 com.liferay.portlet.journal.NoSuchStructureException {
189 return getPersistence()
190 .findByUuid_PrevAndNext(id, uuid, orderByComparator);
191 }
192
193 public static com.liferay.portlet.journal.model.JournalStructure findByUUID_G(
194 java.lang.String uuid, long groupId)
195 throws com.liferay.portal.kernel.exception.SystemException,
196 com.liferay.portlet.journal.NoSuchStructureException {
197 return getPersistence().findByUUID_G(uuid, groupId);
198 }
199
200 public static com.liferay.portlet.journal.model.JournalStructure fetchByUUID_G(
201 java.lang.String uuid, long groupId)
202 throws com.liferay.portal.kernel.exception.SystemException {
203 return getPersistence().fetchByUUID_G(uuid, groupId);
204 }
205
206 public static com.liferay.portlet.journal.model.JournalStructure fetchByUUID_G(
207 java.lang.String uuid, long groupId, boolean retrieveFromCache)
208 throws com.liferay.portal.kernel.exception.SystemException {
209 return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
210 }
211
212 public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByGroupId(
213 long groupId)
214 throws com.liferay.portal.kernel.exception.SystemException {
215 return getPersistence().findByGroupId(groupId);
216 }
217
218 public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByGroupId(
219 long groupId, int start, int end)
220 throws com.liferay.portal.kernel.exception.SystemException {
221 return getPersistence().findByGroupId(groupId, start, end);
222 }
223
224 public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByGroupId(
225 long groupId, int start, int end,
226 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
227 throws com.liferay.portal.kernel.exception.SystemException {
228 return getPersistence()
229 .findByGroupId(groupId, start, end, orderByComparator);
230 }
231
232 public static com.liferay.portlet.journal.model.JournalStructure findByGroupId_First(
233 long groupId,
234 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
235 throws com.liferay.portal.kernel.exception.SystemException,
236 com.liferay.portlet.journal.NoSuchStructureException {
237 return getPersistence().findByGroupId_First(groupId, orderByComparator);
238 }
239
240 public static com.liferay.portlet.journal.model.JournalStructure findByGroupId_Last(
241 long groupId,
242 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
243 throws com.liferay.portal.kernel.exception.SystemException,
244 com.liferay.portlet.journal.NoSuchStructureException {
245 return getPersistence().findByGroupId_Last(groupId, orderByComparator);
246 }
247
248 public static com.liferay.portlet.journal.model.JournalStructure[] findByGroupId_PrevAndNext(
249 long id, long groupId,
250 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
251 throws com.liferay.portal.kernel.exception.SystemException,
252 com.liferay.portlet.journal.NoSuchStructureException {
253 return getPersistence()
254 .findByGroupId_PrevAndNext(id, groupId, orderByComparator);
255 }
256
257 public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> filterFindByGroupId(
258 long groupId)
259 throws com.liferay.portal.kernel.exception.SystemException {
260 return getPersistence().filterFindByGroupId(groupId);
261 }
262
263 public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> filterFindByGroupId(
264 long groupId, int start, int end)
265 throws com.liferay.portal.kernel.exception.SystemException {
266 return getPersistence().filterFindByGroupId(groupId, start, end);
267 }
268
269 public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> filterFindByGroupId(
270 long groupId, int start, int end,
271 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
272 throws com.liferay.portal.kernel.exception.SystemException {
273 return getPersistence()
274 .filterFindByGroupId(groupId, start, end, orderByComparator);
275 }
276
277 public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByStructureId(
278 java.lang.String structureId)
279 throws com.liferay.portal.kernel.exception.SystemException {
280 return getPersistence().findByStructureId(structureId);
281 }
282
283 public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByStructureId(
284 java.lang.String structureId, int start, int end)
285 throws com.liferay.portal.kernel.exception.SystemException {
286 return getPersistence().findByStructureId(structureId, start, end);
287 }
288
289 public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByStructureId(
290 java.lang.String structureId, int start, int end,
291 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
292 throws com.liferay.portal.kernel.exception.SystemException {
293 return getPersistence()
294 .findByStructureId(structureId, start, end, orderByComparator);
295 }
296
297 public static com.liferay.portlet.journal.model.JournalStructure findByStructureId_First(
298 java.lang.String structureId,
299 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
300 throws com.liferay.portal.kernel.exception.SystemException,
301 com.liferay.portlet.journal.NoSuchStructureException {
302 return getPersistence()
303 .findByStructureId_First(structureId, orderByComparator);
304 }
305
306 public static com.liferay.portlet.journal.model.JournalStructure findByStructureId_Last(
307 java.lang.String structureId,
308 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
309 throws com.liferay.portal.kernel.exception.SystemException,
310 com.liferay.portlet.journal.NoSuchStructureException {
311 return getPersistence()
312 .findByStructureId_Last(structureId, orderByComparator);
313 }
314
315 public static com.liferay.portlet.journal.model.JournalStructure[] findByStructureId_PrevAndNext(
316 long id, java.lang.String structureId,
317 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
318 throws com.liferay.portal.kernel.exception.SystemException,
319 com.liferay.portlet.journal.NoSuchStructureException {
320 return getPersistence()
321 .findByStructureId_PrevAndNext(id, structureId,
322 orderByComparator);
323 }
324
325 public static com.liferay.portlet.journal.model.JournalStructure findByG_S(
326 long groupId, java.lang.String structureId)
327 throws com.liferay.portal.kernel.exception.SystemException,
328 com.liferay.portlet.journal.NoSuchStructureException {
329 return getPersistence().findByG_S(groupId, structureId);
330 }
331
332 public static com.liferay.portlet.journal.model.JournalStructure fetchByG_S(
333 long groupId, java.lang.String structureId)
334 throws com.liferay.portal.kernel.exception.SystemException {
335 return getPersistence().fetchByG_S(groupId, structureId);
336 }
337
338 public static com.liferay.portlet.journal.model.JournalStructure fetchByG_S(
339 long groupId, java.lang.String structureId, boolean retrieveFromCache)
340 throws com.liferay.portal.kernel.exception.SystemException {
341 return getPersistence()
342 .fetchByG_S(groupId, structureId, retrieveFromCache);
343 }
344
345 public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByG_P(
346 long groupId, java.lang.String parentStructureId)
347 throws com.liferay.portal.kernel.exception.SystemException {
348 return getPersistence().findByG_P(groupId, parentStructureId);
349 }
350
351 public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByG_P(
352 long groupId, java.lang.String parentStructureId, int start, int end)
353 throws com.liferay.portal.kernel.exception.SystemException {
354 return getPersistence().findByG_P(groupId, parentStructureId, start, end);
355 }
356
357 public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByG_P(
358 long groupId, java.lang.String parentStructureId, int start, int end,
359 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
360 throws com.liferay.portal.kernel.exception.SystemException {
361 return getPersistence()
362 .findByG_P(groupId, parentStructureId, start, end,
363 orderByComparator);
364 }
365
366 public static com.liferay.portlet.journal.model.JournalStructure findByG_P_First(
367 long groupId, java.lang.String parentStructureId,
368 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
369 throws com.liferay.portal.kernel.exception.SystemException,
370 com.liferay.portlet.journal.NoSuchStructureException {
371 return getPersistence()
372 .findByG_P_First(groupId, parentStructureId,
373 orderByComparator);
374 }
375
376 public static com.liferay.portlet.journal.model.JournalStructure findByG_P_Last(
377 long groupId, java.lang.String parentStructureId,
378 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
379 throws com.liferay.portal.kernel.exception.SystemException,
380 com.liferay.portlet.journal.NoSuchStructureException {
381 return getPersistence()
382 .findByG_P_Last(groupId, parentStructureId, orderByComparator);
383 }
384
385 public static com.liferay.portlet.journal.model.JournalStructure[] findByG_P_PrevAndNext(
386 long id, long groupId, java.lang.String parentStructureId,
387 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
388 throws com.liferay.portal.kernel.exception.SystemException,
389 com.liferay.portlet.journal.NoSuchStructureException {
390 return getPersistence()
391 .findByG_P_PrevAndNext(id, groupId, parentStructureId,
392 orderByComparator);
393 }
394
395 public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> filterFindByG_P(
396 long groupId, java.lang.String parentStructureId)
397 throws com.liferay.portal.kernel.exception.SystemException {
398 return getPersistence().filterFindByG_P(groupId, parentStructureId);
399 }
400
401 public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> filterFindByG_P(
402 long groupId, java.lang.String parentStructureId, int start, int end)
403 throws com.liferay.portal.kernel.exception.SystemException {
404 return getPersistence()
405 .filterFindByG_P(groupId, parentStructureId, start, end);
406 }
407
408 public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> filterFindByG_P(
409 long groupId, java.lang.String parentStructureId, int start, int end,
410 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
411 throws com.liferay.portal.kernel.exception.SystemException {
412 return getPersistence()
413 .filterFindByG_P(groupId, parentStructureId, start, end,
414 orderByComparator);
415 }
416
417 public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> findAll()
418 throws com.liferay.portal.kernel.exception.SystemException {
419 return getPersistence().findAll();
420 }
421
422 public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> findAll(
423 int start, int end)
424 throws com.liferay.portal.kernel.exception.SystemException {
425 return getPersistence().findAll(start, end);
426 }
427
428 public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> findAll(
429 int start, int end,
430 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
431 throws com.liferay.portal.kernel.exception.SystemException {
432 return getPersistence().findAll(start, end, orderByComparator);
433 }
434
435 public static void removeByUuid(java.lang.String uuid)
436 throws com.liferay.portal.kernel.exception.SystemException {
437 getPersistence().removeByUuid(uuid);
438 }
439
440 public static void removeByUUID_G(java.lang.String uuid, long groupId)
441 throws com.liferay.portal.kernel.exception.SystemException,
442 com.liferay.portlet.journal.NoSuchStructureException {
443 getPersistence().removeByUUID_G(uuid, groupId);
444 }
445
446 public static void removeByGroupId(long groupId)
447 throws com.liferay.portal.kernel.exception.SystemException {
448 getPersistence().removeByGroupId(groupId);
449 }
450
451 public static void removeByStructureId(java.lang.String structureId)
452 throws com.liferay.portal.kernel.exception.SystemException {
453 getPersistence().removeByStructureId(structureId);
454 }
455
456 public static void removeByG_S(long groupId, java.lang.String structureId)
457 throws com.liferay.portal.kernel.exception.SystemException,
458 com.liferay.portlet.journal.NoSuchStructureException {
459 getPersistence().removeByG_S(groupId, structureId);
460 }
461
462 public static void removeByG_P(long groupId,
463 java.lang.String parentStructureId)
464 throws com.liferay.portal.kernel.exception.SystemException {
465 getPersistence().removeByG_P(groupId, parentStructureId);
466 }
467
468 public static void removeAll()
469 throws com.liferay.portal.kernel.exception.SystemException {
470 getPersistence().removeAll();
471 }
472
473 public static int countByUuid(java.lang.String uuid)
474 throws com.liferay.portal.kernel.exception.SystemException {
475 return getPersistence().countByUuid(uuid);
476 }
477
478 public static int countByUUID_G(java.lang.String uuid, long groupId)
479 throws com.liferay.portal.kernel.exception.SystemException {
480 return getPersistence().countByUUID_G(uuid, groupId);
481 }
482
483 public static int countByGroupId(long groupId)
484 throws com.liferay.portal.kernel.exception.SystemException {
485 return getPersistence().countByGroupId(groupId);
486 }
487
488 public static int filterCountByGroupId(long groupId)
489 throws com.liferay.portal.kernel.exception.SystemException {
490 return getPersistence().filterCountByGroupId(groupId);
491 }
492
493 public static int countByStructureId(java.lang.String structureId)
494 throws com.liferay.portal.kernel.exception.SystemException {
495 return getPersistence().countByStructureId(structureId);
496 }
497
498 public static int countByG_S(long groupId, java.lang.String structureId)
499 throws com.liferay.portal.kernel.exception.SystemException {
500 return getPersistence().countByG_S(groupId, structureId);
501 }
502
503 public static int filterCountByG_S(long groupId,
504 java.lang.String structureId)
505 throws com.liferay.portal.kernel.exception.SystemException {
506 return getPersistence().filterCountByG_S(groupId, structureId);
507 }
508
509 public static int countByG_P(long groupId,
510 java.lang.String parentStructureId)
511 throws com.liferay.portal.kernel.exception.SystemException {
512 return getPersistence().countByG_P(groupId, parentStructureId);
513 }
514
515 public static int filterCountByG_P(long groupId,
516 java.lang.String parentStructureId)
517 throws com.liferay.portal.kernel.exception.SystemException {
518 return getPersistence().filterCountByG_P(groupId, parentStructureId);
519 }
520
521 public static int countAll()
522 throws com.liferay.portal.kernel.exception.SystemException {
523 return getPersistence().countAll();
524 }
525
526 public static JournalStructurePersistence getPersistence() {
527 if (_persistence == null) {
528 _persistence = (JournalStructurePersistence)PortalBeanLocatorUtil.locate(JournalStructurePersistence.class.getName());
529 }
530
531 return _persistence;
532 }
533
534 public void setPersistence(JournalStructurePersistence persistence) {
535 _persistence = persistence;
536 }
537
538 private static JournalStructurePersistence _persistence;
539 }