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