1
14
15 package com.liferay.portlet.imagegallery.service.persistence;
16
17 import com.liferay.portal.SystemException;
18 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
19 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
20 import com.liferay.portal.kernel.util.ReferenceRegistry;
21
22 import com.liferay.portlet.imagegallery.model.IGFolder;
23
24 import java.util.List;
25
26
39 public class IGFolderUtil {
40
43 public static void clearCache() {
44 getPersistence().clearCache();
45 }
46
47
50 public static void clearCache(IGFolder igFolder) {
51 getPersistence().clearCache(igFolder);
52 }
53
54
57 public int countWithDynamicQuery(DynamicQuery dynamicQuery)
58 throws SystemException {
59 return getPersistence().countWithDynamicQuery(dynamicQuery);
60 }
61
62
65 public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
66 throws SystemException {
67 return getPersistence().findWithDynamicQuery(dynamicQuery);
68 }
69
70
73 public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
74 int start, int end) throws SystemException {
75 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
76 }
77
78
81 public static IGFolder remove(IGFolder igFolder) throws SystemException {
82 return getPersistence().remove(igFolder);
83 }
84
85
88 public static IGFolder update(IGFolder igFolder, boolean merge)
89 throws SystemException {
90 return getPersistence().update(igFolder, merge);
91 }
92
93 public static void cacheResult(
94 com.liferay.portlet.imagegallery.model.IGFolder igFolder) {
95 getPersistence().cacheResult(igFolder);
96 }
97
98 public static void cacheResult(
99 java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> igFolders) {
100 getPersistence().cacheResult(igFolders);
101 }
102
103 public static com.liferay.portlet.imagegallery.model.IGFolder create(
104 long folderId) {
105 return getPersistence().create(folderId);
106 }
107
108 public static com.liferay.portlet.imagegallery.model.IGFolder remove(
109 long folderId)
110 throws com.liferay.portal.SystemException,
111 com.liferay.portlet.imagegallery.NoSuchFolderException {
112 return getPersistence().remove(folderId);
113 }
114
115
118 public static com.liferay.portlet.imagegallery.model.IGFolder update(
119 com.liferay.portlet.imagegallery.model.IGFolder igFolder)
120 throws com.liferay.portal.SystemException {
121 return getPersistence().update(igFolder);
122 }
123
124 public static com.liferay.portlet.imagegallery.model.IGFolder updateImpl(
125 com.liferay.portlet.imagegallery.model.IGFolder igFolder, boolean merge)
126 throws com.liferay.portal.SystemException {
127 return getPersistence().updateImpl(igFolder, merge);
128 }
129
130 public static com.liferay.portlet.imagegallery.model.IGFolder findByPrimaryKey(
131 long folderId)
132 throws com.liferay.portal.SystemException,
133 com.liferay.portlet.imagegallery.NoSuchFolderException {
134 return getPersistence().findByPrimaryKey(folderId);
135 }
136
137 public static com.liferay.portlet.imagegallery.model.IGFolder fetchByPrimaryKey(
138 long folderId) throws com.liferay.portal.SystemException {
139 return getPersistence().fetchByPrimaryKey(folderId);
140 }
141
142 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByUuid(
143 java.lang.String uuid) throws com.liferay.portal.SystemException {
144 return getPersistence().findByUuid(uuid);
145 }
146
147 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByUuid(
148 java.lang.String uuid, int start, int end)
149 throws com.liferay.portal.SystemException {
150 return getPersistence().findByUuid(uuid, start, end);
151 }
152
153 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByUuid(
154 java.lang.String uuid, int start, int end,
155 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
156 throws com.liferay.portal.SystemException {
157 return getPersistence().findByUuid(uuid, start, end, orderByComparator);
158 }
159
160 public static com.liferay.portlet.imagegallery.model.IGFolder findByUuid_First(
161 java.lang.String uuid,
162 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
163 throws com.liferay.portal.SystemException,
164 com.liferay.portlet.imagegallery.NoSuchFolderException {
165 return getPersistence().findByUuid_First(uuid, orderByComparator);
166 }
167
168 public static com.liferay.portlet.imagegallery.model.IGFolder findByUuid_Last(
169 java.lang.String uuid,
170 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
171 throws com.liferay.portal.SystemException,
172 com.liferay.portlet.imagegallery.NoSuchFolderException {
173 return getPersistence().findByUuid_Last(uuid, orderByComparator);
174 }
175
176 public static com.liferay.portlet.imagegallery.model.IGFolder[] findByUuid_PrevAndNext(
177 long folderId, java.lang.String uuid,
178 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
179 throws com.liferay.portal.SystemException,
180 com.liferay.portlet.imagegallery.NoSuchFolderException {
181 return getPersistence()
182 .findByUuid_PrevAndNext(folderId, uuid, orderByComparator);
183 }
184
185 public static com.liferay.portlet.imagegallery.model.IGFolder findByUUID_G(
186 java.lang.String uuid, long groupId)
187 throws com.liferay.portal.SystemException,
188 com.liferay.portlet.imagegallery.NoSuchFolderException {
189 return getPersistence().findByUUID_G(uuid, groupId);
190 }
191
192 public static com.liferay.portlet.imagegallery.model.IGFolder fetchByUUID_G(
193 java.lang.String uuid, long groupId)
194 throws com.liferay.portal.SystemException {
195 return getPersistence().fetchByUUID_G(uuid, groupId);
196 }
197
198 public static com.liferay.portlet.imagegallery.model.IGFolder fetchByUUID_G(
199 java.lang.String uuid, long groupId, boolean retrieveFromCache)
200 throws com.liferay.portal.SystemException {
201 return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache);
202 }
203
204 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByGroupId(
205 long groupId) throws com.liferay.portal.SystemException {
206 return getPersistence().findByGroupId(groupId);
207 }
208
209 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByGroupId(
210 long groupId, int start, int end)
211 throws com.liferay.portal.SystemException {
212 return getPersistence().findByGroupId(groupId, start, end);
213 }
214
215 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByGroupId(
216 long groupId, int start, int end,
217 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
218 throws com.liferay.portal.SystemException {
219 return getPersistence()
220 .findByGroupId(groupId, start, end, orderByComparator);
221 }
222
223 public static com.liferay.portlet.imagegallery.model.IGFolder findByGroupId_First(
224 long groupId,
225 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
226 throws com.liferay.portal.SystemException,
227 com.liferay.portlet.imagegallery.NoSuchFolderException {
228 return getPersistence().findByGroupId_First(groupId, orderByComparator);
229 }
230
231 public static com.liferay.portlet.imagegallery.model.IGFolder findByGroupId_Last(
232 long groupId,
233 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
234 throws com.liferay.portal.SystemException,
235 com.liferay.portlet.imagegallery.NoSuchFolderException {
236 return getPersistence().findByGroupId_Last(groupId, orderByComparator);
237 }
238
239 public static com.liferay.portlet.imagegallery.model.IGFolder[] findByGroupId_PrevAndNext(
240 long folderId, long groupId,
241 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
242 throws com.liferay.portal.SystemException,
243 com.liferay.portlet.imagegallery.NoSuchFolderException {
244 return getPersistence()
245 .findByGroupId_PrevAndNext(folderId, groupId,
246 orderByComparator);
247 }
248
249 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByCompanyId(
250 long companyId) throws com.liferay.portal.SystemException {
251 return getPersistence().findByCompanyId(companyId);
252 }
253
254 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByCompanyId(
255 long companyId, int start, int end)
256 throws com.liferay.portal.SystemException {
257 return getPersistence().findByCompanyId(companyId, start, end);
258 }
259
260 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByCompanyId(
261 long companyId, int start, int end,
262 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
263 throws com.liferay.portal.SystemException {
264 return getPersistence()
265 .findByCompanyId(companyId, start, end, orderByComparator);
266 }
267
268 public static com.liferay.portlet.imagegallery.model.IGFolder findByCompanyId_First(
269 long companyId,
270 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
271 throws com.liferay.portal.SystemException,
272 com.liferay.portlet.imagegallery.NoSuchFolderException {
273 return getPersistence()
274 .findByCompanyId_First(companyId, orderByComparator);
275 }
276
277 public static com.liferay.portlet.imagegallery.model.IGFolder findByCompanyId_Last(
278 long companyId,
279 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
280 throws com.liferay.portal.SystemException,
281 com.liferay.portlet.imagegallery.NoSuchFolderException {
282 return getPersistence()
283 .findByCompanyId_Last(companyId, orderByComparator);
284 }
285
286 public static com.liferay.portlet.imagegallery.model.IGFolder[] findByCompanyId_PrevAndNext(
287 long folderId, long companyId,
288 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
289 throws com.liferay.portal.SystemException,
290 com.liferay.portlet.imagegallery.NoSuchFolderException {
291 return getPersistence()
292 .findByCompanyId_PrevAndNext(folderId, companyId,
293 orderByComparator);
294 }
295
296 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByG_P(
297 long groupId, long parentFolderId)
298 throws com.liferay.portal.SystemException {
299 return getPersistence().findByG_P(groupId, parentFolderId);
300 }
301
302 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByG_P(
303 long groupId, long parentFolderId, int start, int end)
304 throws com.liferay.portal.SystemException {
305 return getPersistence().findByG_P(groupId, parentFolderId, start, end);
306 }
307
308 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findByG_P(
309 long groupId, long parentFolderId, int start, int end,
310 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
311 throws com.liferay.portal.SystemException {
312 return getPersistence()
313 .findByG_P(groupId, parentFolderId, start, end,
314 orderByComparator);
315 }
316
317 public static com.liferay.portlet.imagegallery.model.IGFolder findByG_P_First(
318 long groupId, long parentFolderId,
319 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
320 throws com.liferay.portal.SystemException,
321 com.liferay.portlet.imagegallery.NoSuchFolderException {
322 return getPersistence()
323 .findByG_P_First(groupId, parentFolderId, orderByComparator);
324 }
325
326 public static com.liferay.portlet.imagegallery.model.IGFolder findByG_P_Last(
327 long groupId, long parentFolderId,
328 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
329 throws com.liferay.portal.SystemException,
330 com.liferay.portlet.imagegallery.NoSuchFolderException {
331 return getPersistence()
332 .findByG_P_Last(groupId, parentFolderId, orderByComparator);
333 }
334
335 public static com.liferay.portlet.imagegallery.model.IGFolder[] findByG_P_PrevAndNext(
336 long folderId, long groupId, long parentFolderId,
337 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
338 throws com.liferay.portal.SystemException,
339 com.liferay.portlet.imagegallery.NoSuchFolderException {
340 return getPersistence()
341 .findByG_P_PrevAndNext(folderId, groupId, parentFolderId,
342 orderByComparator);
343 }
344
345 public static com.liferay.portlet.imagegallery.model.IGFolder findByG_P_N(
346 long groupId, long parentFolderId, java.lang.String name)
347 throws com.liferay.portal.SystemException,
348 com.liferay.portlet.imagegallery.NoSuchFolderException {
349 return getPersistence().findByG_P_N(groupId, parentFolderId, name);
350 }
351
352 public static com.liferay.portlet.imagegallery.model.IGFolder fetchByG_P_N(
353 long groupId, long parentFolderId, java.lang.String name)
354 throws com.liferay.portal.SystemException {
355 return getPersistence().fetchByG_P_N(groupId, parentFolderId, name);
356 }
357
358 public static com.liferay.portlet.imagegallery.model.IGFolder fetchByG_P_N(
359 long groupId, long parentFolderId, java.lang.String name,
360 boolean retrieveFromCache) throws com.liferay.portal.SystemException {
361 return getPersistence()
362 .fetchByG_P_N(groupId, parentFolderId, name,
363 retrieveFromCache);
364 }
365
366 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findAll()
367 throws com.liferay.portal.SystemException {
368 return getPersistence().findAll();
369 }
370
371 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findAll(
372 int start, int end) throws com.liferay.portal.SystemException {
373 return getPersistence().findAll(start, end);
374 }
375
376 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> findAll(
377 int start, int end,
378 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
379 throws com.liferay.portal.SystemException {
380 return getPersistence().findAll(start, end, orderByComparator);
381 }
382
383 public static void removeByUuid(java.lang.String uuid)
384 throws com.liferay.portal.SystemException {
385 getPersistence().removeByUuid(uuid);
386 }
387
388 public static void removeByUUID_G(java.lang.String uuid, long groupId)
389 throws com.liferay.portal.SystemException,
390 com.liferay.portlet.imagegallery.NoSuchFolderException {
391 getPersistence().removeByUUID_G(uuid, groupId);
392 }
393
394 public static void removeByGroupId(long groupId)
395 throws com.liferay.portal.SystemException {
396 getPersistence().removeByGroupId(groupId);
397 }
398
399 public static void removeByCompanyId(long companyId)
400 throws com.liferay.portal.SystemException {
401 getPersistence().removeByCompanyId(companyId);
402 }
403
404 public static void removeByG_P(long groupId, long parentFolderId)
405 throws com.liferay.portal.SystemException {
406 getPersistence().removeByG_P(groupId, parentFolderId);
407 }
408
409 public static void removeByG_P_N(long groupId, long parentFolderId,
410 java.lang.String name)
411 throws com.liferay.portal.SystemException,
412 com.liferay.portlet.imagegallery.NoSuchFolderException {
413 getPersistence().removeByG_P_N(groupId, parentFolderId, name);
414 }
415
416 public static void removeAll() throws com.liferay.portal.SystemException {
417 getPersistence().removeAll();
418 }
419
420 public static int countByUuid(java.lang.String uuid)
421 throws com.liferay.portal.SystemException {
422 return getPersistence().countByUuid(uuid);
423 }
424
425 public static int countByUUID_G(java.lang.String uuid, long groupId)
426 throws com.liferay.portal.SystemException {
427 return getPersistence().countByUUID_G(uuid, groupId);
428 }
429
430 public static int countByGroupId(long groupId)
431 throws com.liferay.portal.SystemException {
432 return getPersistence().countByGroupId(groupId);
433 }
434
435 public static int countByCompanyId(long companyId)
436 throws com.liferay.portal.SystemException {
437 return getPersistence().countByCompanyId(companyId);
438 }
439
440 public static int countByG_P(long groupId, long parentFolderId)
441 throws com.liferay.portal.SystemException {
442 return getPersistence().countByG_P(groupId, parentFolderId);
443 }
444
445 public static int countByG_P_N(long groupId, long parentFolderId,
446 java.lang.String name) throws com.liferay.portal.SystemException {
447 return getPersistence().countByG_P_N(groupId, parentFolderId, name);
448 }
449
450 public static int countAll() throws com.liferay.portal.SystemException {
451 return getPersistence().countAll();
452 }
453
454 public static IGFolderPersistence getPersistence() {
455 if (_persistence == null) {
456 _persistence = (IGFolderPersistence)PortalBeanLocatorUtil.locate(IGFolderPersistence.class.getName());
457
458 ReferenceRegistry.registerReference(IGFolderUtil.class,
459 "_persistence");
460 }
461
462 return _persistence;
463 }
464
465 public void setPersistence(IGFolderPersistence persistence) {
466 _persistence = persistence;
467
468 ReferenceRegistry.registerReference(IGFolderUtil.class, "_persistence");
469 }
470
471 private static IGFolderPersistence _persistence;
472 }