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