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