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